cannot get UART interface to work with RPI3B+ during NOOBS install #536
Description
Hello everybody,
thank you for having created NOOBS!
I have been using it since 3 years. A client of mine builds devices that are a combination of a Raspberry PI and their custom hardware, attached via the UART interface. The custom hardware has an LED that displays the status of the device. The LED is talked to via UART – not by switching on an output PIN, but by sending a command via UART.
A user can reset the device, in which case, NOOBS reinstalls the system.
The LED should indicate that NOOBS is reinstalling.
This all works fine with RPI1 and 2 and an earlier version of NOOBS, where I was able to simply write to /dev/ttyAMA0
.
With the current NOOBS and RPI3B+, writing to ttyAMA0
or ttyS0
has no effect.
What do I need to do to enable UART either ttyAMA0 or ttyS0?
Btw, I write the command to set the LED by writing to ttyAMA0 or ttyS0:
echo -e "\xa5\x86\x04\x02\xff\xff\xff\xe1\xd3" > /dev/ttyAMA0
This is run from buildroot/package/recovery/init
.
I am aware that for RPI3B+ the ttyAMA0 is now used by Bluetooth. So I tried writing to /dev/ttyS0
or /dev/ttySerial0
. This does not work.
I then added the dtoverlay=pi3-disable-bt
to recovery.cmdline
and tried writing to /dev/ttyAMA0
. Nothing happens.
My recovery.cmdline looks like this:
runinstaller dtoverlay=pi3-disable-bt quiet enable_uart=1 ramdisk_size=32768 root=/dev/ram0 init=/init vt.cur_default=1 coherent_pool=6M elevator=deadline silentinstall gpiotriggerenable
I removed any console=....
entries.
The baud rate is set correctly (according to stty which I executed in a terminal when NOOBS started).
I there anything else I need to do to get communication with the UART interface working?
Any help is greatly appreciated! I tried a full day and need to get the LED via UART working.
Thank you!