RS485 Serial Console on RevPi Flat S

Topics about the Hardware of Revolution Pi
Post Reply
kieranvrt
Posts: 5
Joined: 13 Mar 2025, 08:29

RS485 Serial Console on RevPi Flat S

Post by kieranvrt »

Hello,

I have had a hard time getting serial console to work on the RevPi Flat S.

Initially I tried to follow the guide in the Serial section of the RevPi Flat S documentation but I found the provided serial port details did not match my unit. With readlink I determinted the port I was after was ttyAMA4.

Code: Select all

RevPi67383:/boot $ readlink /dev/ttyRS485-1
ttyAMA4
RevPi67383:/boot $ readlink /dev/ttyRS485-0
ttyAMA3
I followed the steps at https://revolutionpi.com/documentation/ ... ices-rs485 to determine I was on the correct path.

I followed the suggestions here viewtopic.php?p=15586&hilit=serial+console#p15586 and tried editing the '/boot/cmdline.txt' with:

Code: Select all

 console=ttyAMA4 


I found that in this configuraiton I would get a stream of boot messages and then the system would lock up as further services such as bluetooth started initialising.

Excerpt of boot logs below;

Code: Select all

[   11.820509] mwifiex_sdio mmc3:0001:1: driver_version = mwifiex 1.0 (16.92.21.p11)
[   12.468464] mwifiex_sdio mmc3:0001:1 wlan0: renamed from mlan0
[   13.279882] Bluetooth: Core ver 2.22
[   13.279989] NET: Registered PF_BLUETOOTH protocol family
[   13.279993] Bluetooth: HCI device and connection manager initialized
[   13.280009] Bluetooth: HCI socket layer initialized
[   13.280018] Bluetooth: L2CAP socket layer initialized
[   13.280034] Bluetooth: SCO socket layer initialized
[   13.295425] Bluetooth: HCI UART driver ver 2.3
[   13.295465] Bluetooth: HCI UART protocol H4 registered
[   13.295606] Bluetooth: HCI UART protocol Three-wire (H5) registered
[   13.295890] Bluetooth: HCI UART protocol Broadcom registered
[   13.643102] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   13.643116] Bluetooth: BNEP filters: protocol multicast
[   13.643133] Bluetooth: BNEP socket layer initialized
[   14.778466] systemd-journald[183]: Time jumped backwards, rotating.
[   15.331671] Bluetooth: hci0: command 0x1003 tx timeout
[   15.331671] Bluetooth: hci0: Opcode 0x1003 failed: -110
[  385.335427] Initializing XFRM netlink socket
[  385.821671] bridge: filtering via arp/ip/ip6tables is no longer available by default.
I can make a console setup work with a agetty config after boot but if I use the cmdline.txt to generate it the system fails to boot.

Hopefully there is something obvious that I have overlooked or gotten wrong.
User avatar
dirk
Posts: 2271
Joined: 15 Dec 2016, 13:19

Re: RS485 Serial Console on RevPi Flat S

Post by dirk »

Hello kieranvrt, I have just replied to you here:

viewtopic.php?p=17000#p17000
Post Reply