Tiny Core Linux

Tiny Core Base => Raspberry Pi => Topic started by: AXyOHM on September 23, 2024, 01:24:14 PM

Title: ttyAMA0 missing in -dev
Post by: AXyOHM on September 23, 2024, 01:24:14 PM
I have a Raspberry Pi 5 running piCore. I would like to configure Bluetooth to connect to a Bluetooth loudspeaker.
The problem I have is that in all scripts I’ve seen ttyAMA0 is referred to but there is no ttyAMA0 in /dev only ttyAMA10 (and a lot other tty devices of course).
In the Raspberry documentation section Configure UARTS, part Primary and Secondary UART, the primary UART for Raspberry Pi 5 is UART10 and the secondary is “dedicated UART”.
I suppose that UART10 will show up as ttyAMA10 in /dev but what is “dedicated UART”?
Title: Re: ttyAMA0 missing in -dev
Post by: Paul_123 on September 24, 2024, 11:26:09 AM
Raspi has not referenced ttyAMA0 in their scripts in many years(Because not all pis use them for UART).   There should be /dev/serial1 links created.

I would suggest you look at the raspiOS scripts.   https://github.com/RPi-Distro/pi-bluetooth/tree/master/usr/bin
Title: Re: ttyAMA0 missing in -dev
Post by: AXyOHM on September 26, 2024, 12:44:17 PM
Thank you Paul_123.
I have tried the "btuart" script and as far as I can tell the result is "On-board bluetooth is already enabled"!
exrcuting
Code: [Select]
$ sudo /usr/local/etc/init.d/dbus start
$ sudo /usr/local/lib/bluetooth/bluetoothd -nd
and then
Code: [Select]
$ hciattach /dev/ttyAMA0 bcm43xx 921600 noflow gives
"Can't open serial port: No such file or directory
Can't initialize device: No such file or directory" probably because /dev/ttyAMA0 do not exist!
What should be specfied instead of ttyAMA0?
Title: Re: ttyAMA0 missing in -dev
Post by: Paul_123 on September 26, 2024, 01:43:08 PM
Hciattach should run before bluetoohd and you may need to sudo that command.
Title: Re: ttyAMA0 missing in -dev
Post by: AXyOHM on September 27, 2024, 09:07:49 AM
Makes no difference, same outcome!
 I wonder what the secondary UART  “dedicated UART” for Raspberry Pi 5 is refering to?
Title: Re: ttyAMA0 missing in -dev
Post by: Paul_123 on September 27, 2024, 11:27:30 AM
do you have the bluetooth firmware extension loaded?
Title: Re: ttyAMA0 missing in -dev
Post by: AXyOHM on September 28, 2024, 05:13:31 AM
This is what´s been installed:
Code: [Select]
tc@Mypi:~$ tce-load -iw bluetooth-6.6.47-piCore-v8-16k
bluetooth-6.6.47-piCore-v8-16k is already installed!
tc@Mypi:~$ tce-load -iw bluetooth-6.6.47-piCore-v8
bluetooth-6.6.47-piCore-v8 is already installed!
tc@Mypi:~$ tce-load -iw bluez
bluez is already installed!
tc@Mypi:~$ tce-load -iw bluez-alsa
bluez-alsa is already installed!
tc@Mypi:~$ tce-load -iw firmware-rpi-bt
firmware-rpi-bt is already installed!
tc@Mypi:~$ tce-load -iw blueman
blueman is already installed!