itemir / rpi_boat_utils

Utilities for Raspberry Pi, mostly for usage on a boat. Includes UART control scripts, traffic measurement tools for Mikrotik (RouterOS) and OpenWrt, AIS wireless daemon, AIS decoder and an extensible boat & IoT sensor daemon for Signal K.
MIT License
88 stars 24 forks source link

add support for Pi4 #5

Closed astuder closed 3 years ago

astuder commented 3 years ago

Added support to re-configure UART on the Raspberry Pi 4, mostly copying what was done for the Pi 3.

Main difference is that the overlay is now disable-bt instead of pi3-disable-bt. Given that the UART page on RaspberryPi.org no longer mentions pi3-disable-bt, it may be possible to consolidate the two. https://www.raspberrypi.org/documentation/configuration/uart.md

I also added a line to status indicating the Raspberry Pi version detected.

I tested the updated script on a Pi 4, but I'm not familiar with bash, so please review carefully :)

Solves issue #4

itemir commented 3 years ago

Thanks Adrian! This was on my list but I couldn't get to it.

I think this looks good. Wondering if pi3-disable-bt became obsolete with the same changes. I don't have a test set-up handy. Do you know if this still works with Raspberry Pi 3?

astuder commented 3 years ago

I haven't had a chance to test it with a Pi 3 lately. I also noticed, that the Pi 3B+ has a different part code: 0d vs 08 for the Pi 3B. https://www.raspberrypi.org/documentation/hardware/raspberrypi/revision-codes/README.md

On Wed, Dec 2, 2020, at 7:06 PM, Ilker Temir wrote:

Thanks Adrian! This was on my list but I couldn't get to it.

I think this looks good. Wondering if pi3-disable-bt became obsolete with the same changes. I don't have a test set-up handy. Do you know if this still works with Raspberry Pi 3?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/itemir/rpi_boat_utils/pull/5#issuecomment-737634771, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAI4ZGHMJM2BBAVL2CXIA7DSS36DPANCNFSM4ULIV52Q.

itemir commented 3 years ago

Ok, I tweaked it to include both 0d and 08. Let's hope this works :)

astuder commented 3 years ago

Successfully tested with a Raspberry Pi 3+ freshly setup from NOOBS. The overlay pi3-disable-bt also works as expected.

itemir commented 3 years ago

Lovely, thanks.