WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Bluetooth devel suport ok, but what about interface configuration?  (Read 3775 times)

Offline imo

  • Newbie
  • *
  • Posts: 11
Hi all
My first time here.
The concept behing tinycore for RPI seems very interesting to me (no big dependency of SD Card) so I am thinking to use it to create some (open) product concept/prototype.
I have already installed the bluetooth dev support and today I can compile c programs that include bluetooth/bluetooth.h and also link the program with -lbluetooth with success. However  $hcitool dev executes well but returns no (bluetooth) interface.

I have installed WiFi by installing packages and executing a .sh file at the end. Is there the same thing to install bluetooth interface? Please, could you fuide me to install bluetooth on my RPI zero W?

Thanks a lot
Imo

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11694
Re: Bluetooth devel suport ok, but what about interface configuration?
« Reply #1 on: November 02, 2019, 08:44:16 AM »
Hi imo
Welcome to the forum. Does this help:
http://forum.tinycorelinux.net/index.php/topic,20854.0.html

Offline imo

  • Newbie
  • *
  • Posts: 11
Re: Bluetooth devel suport ok, but what about interface configuration?
« Reply #2 on: November 02, 2019, 01:33:34 PM »
I ma using a RPIzeroW and inside config.txt there is no block for it. I just see Pi1, Pi2 and Pi3 . Which one should I choose?

By the way, how:

$ cat /mnt/mmcblk0p1/config.txt | grep -i pi3
[PI3]
#dtoverlay=pi3-disable-bt
#dtoverlay=pi3-miniuart-bt

a cat command can enable bluetooth bluetooth?
« Last Edit: November 02, 2019, 01:35:32 PM by imo »

Offline imo

  • Newbie
  • *
  • Posts: 11
Re: Bluetooth devel suport ok, but what about interface configuration?
« Reply #3 on: November 02, 2019, 01:54:35 PM »
What?
I am using RPIzeroW because of its form factor! I am planning to create a prototype and a RPIzeroW must be used.
Well, dos tinycore has support for bluetooth on RPIzerow?

Eventhough having a RPIZeroW I have commented the

#dtoverlay=pi3-disable-bt
I dont have the #dtoverlay=pi3-miniuart-bt entry on config.txt
and saved the file and then reboot.

then
tce-load -i firmware-rpi3-bt bluez  (ok!)
sudo modprobe hci_uart   (no such module hci_uart)

How do I get the module hci_uart?




« Last Edit: November 02, 2019, 01:56:18 PM by imo »

Offline Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1264
Re: Bluetooth devel suport ok, but what about interface configuration?
« Reply #4 on: November 02, 2019, 04:24:35 PM »

sudo modprobe hci_uart   (no such module hci_uart)

How do I get the module hci_uart?

Not sure which piCore version you are running, but you need this extension bluetooth-4.9.22-piCore.tcz  (Or the one that matches your kernel version)

Offline imo

  • Newbie
  • *
  • Posts: 11
Re: Bluetooth devel suport ok, but what about interface configuration?
« Reply #5 on: November 02, 2019, 04:44:49 PM »
I am using RPI zero W and the piCore-9.0.3 and the software from: http://tinycorelinux.net/9.x/armv7/tcz

I have just turned it on then
tce-load -i bluetooth-4.9.22-piCore
tce-load -i firmware-rpi3-bt
tce-load -i bluez
sudo modprobe hci_uart  but it says that there is not such module

(Vin, there all lots of kernels out there for RPI but AFAIK not all support wifi and bluetooth which are the interfaces I need for my prototype)
« Last Edit: November 02, 2019, 04:52:25 PM by imo »

Offline Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1264
Re: Bluetooth devel suport ok, but what about interface configuration?
« Reply #6 on: November 02, 2019, 05:04:17 PM »
It was in the  .list file.  Can you find it on your system.

Offline imo

  • Newbie
  • *
  • Posts: 11
Re: Bluetooth devel suport ok, but what about interface configuration?
« Reply #7 on: November 02, 2019, 05:13:44 PM »
There is a ....hci_uart.ko file in there but it seems that it not not being load, right? as modprobe does not find it

How to load it?
« Last Edit: November 02, 2019, 05:17:46 PM by imo »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11694
Re: Bluetooth devel suport ok, but what about interface configuration?
« Reply #8 on: November 02, 2019, 05:23:22 PM »
Hi imo
Try:
Code: [Select]
sudo depmod
sudo modprobe hci_uart

Offline imo

  • Newbie
  • *
  • Posts: 11
Re: Bluetooth devel suport ok, but what about interface configuration?
« Reply #9 on: November 02, 2019, 05:26:47 PM »
the run output:

sudo depmod                   (no error nor output)
sudo modprobe hci_uart  ("..not found in modules.dep")

Offline vinceASPECT

  • Hero Member
  • *****
  • Posts: 809
Re: Bluetooth devel suport ok, but what about interface configuration?
« Reply #10 on: November 02, 2019, 05:43:57 PM »
Hi

The thread has inspired me  further  to try  with  Tinycore.

THe  basics  already  are   available  to me. 


the pleasant idea is the "always clean" booted  environment.     ..........O__0......
that and it's  Free.   Fast.

thx

V


Offline imo

  • Newbie
  • *
  • Posts: 11
Re: Bluetooth devel suport ok, but what about interface configuration?
« Reply #11 on: November 02, 2019, 05:54:50 PM »
Great!

Offline vinceASPECT

  • Hero Member
  • *****
  • Posts: 809
Re: Bluetooth devel suport ok, but what about interface configuration?
« Reply #12 on: November 02, 2019, 06:27:22 PM »
Yes.

There is  network  supply (ethernet)  here....

TCL is very unique  operating system.  Stands alone.   :D ;D ;D

V