WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: ttyAMA0 missing in -dev  (Read 617 times)

Offline AXyOHM

  • Newbie
  • *
  • Posts: 17
ttyAMA0 missing in -dev
« 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”?

Offline Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1264
Re: ttyAMA0 missing in -dev
« Reply #1 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

Offline AXyOHM

  • Newbie
  • *
  • Posts: 17
Re: ttyAMA0 missing in -dev
« Reply #2 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?

Offline Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1264
Re: ttyAMA0 missing in -dev
« Reply #3 on: September 26, 2024, 01:43:08 PM »
Hciattach should run before bluetoohd and you may need to sudo that command.

Offline AXyOHM

  • Newbie
  • *
  • Posts: 17
Re: ttyAMA0 missing in -dev
« Reply #4 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?

Offline Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1264
Re: ttyAMA0 missing in -dev
« Reply #5 on: September 27, 2024, 11:27:30 AM »
do you have the bluetooth firmware extension loaded?

Offline AXyOHM

  • Newbie
  • *
  • Posts: 17
Re: ttyAMA0 missing in -dev
« Reply #6 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!