WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Help on loading hci_uart...  (Read 2575 times)

Offline imo

  • Newbie
  • *
  • Posts: 11
Help on loading hci_uart...
« on: December 07, 2019, 06:01:59 PM »
Hi.
I am trying to install and run bluetooth/bluetooth low energy in a RPI zero w running piCore
I have installed bluetooth related modules, including bluetooth-4.9.22-piCore-v7.tcz
Then I ran the following commands:
sudo depmod
sudo modprobe hci_uart
   modprobe: module hci_uart not found in modules.dep
cat ....../config.txt
...
...
enable_uart=1
[PI3]
      #dtoverlay=pi3-disable-bt

I can see /usr/lib/modules/4.9.22-piCore-v7/kernel/drivers/bluetooth/hci_uart.ko
but it does not exists in modules.dep

If I:
tci-load -i  bluetooth-4.9.22-piCore-v7.tcz
it says "already installed"

Why does hci_uart is not in the modules.dep. Can I add it using vi text editor?

Thanks

Imo

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14798
Re: Help on loading hci_uart...
« Reply #1 on: December 08, 2019, 01:18:53 AM »
Loading an extension containing kernel modules will automatically run the depmod command to add the new module(s) to modules.dep

If hci_uart.ko does not appear in modules.dep it possible you have booted armv6 and are trying to load an armv7 extension or vice versa?

Offline imo

  • Newbie
  • *
  • Posts: 11
Re: Help on loading hci_uart...
« Reply #2 on: December 08, 2019, 07:34:48 AM »
Please, could someone help me on getting the arm version of the kernel/boot and the arm version of a module?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14798
Re: Help on loading hci_uart...
« Reply #3 on: December 08, 2019, 07:37:28 AM »
Boot into piCore and paste the output of “uname -m” here.

Offline imo

  • Newbie
  • *
  • Posts: 11
Re: Help on loading hci_uart...
« Reply #4 on: December 08, 2019, 08:51:58 AM »
The result is:
armv6l

Humm... it seems it is different from the folder where hci_uart is:
 /usr/lib/modules/4.9.22-piCore-v7/kernel/drivers/bluetooth/hci_uart.ko

I have used command :  tce-load -wi  xxx to install modules... and it seems that v7 was installed.

Please, how to solve this?

Many thanks

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14798
Re: Help on loading hci_uart...
« Reply #5 on: December 08, 2019, 08:57:23 AM »
Assuming that you are using piCore 9.x armv6..

Code: [Select]
$ tce-load -w bluetooth-KERNEL..should download the correct kernel modules for bluetooth

Offline imo

  • Newbie
  • *
  • Posts: 11
Re: Help on loading hci_uart...
« Reply #6 on: December 08, 2019, 09:32:35 AM »
Ok, now all the modules are running...

(I still have issues running BLE in RPI ZERO W but now i will try to solve it by myself, otherwise I will return to forum again)

Thank you very much Juanito