L72K GPS with Orange PI 5
Hardware⌗
- Orange PI 5
- L76K module
Software⌗
Enable UART0 module on orange pi 5⌗
- Add
U_BOOT_FDT_OVERLAYS_DIR
andU_BOOT_FDT_OVERLAYS
to/etc/default/u-boot
/etc/default/u-boot
⌗## /etc/default/u-boot - configuration file for u-boot-update(8) U_BOOT_MENU_LABEL="Kali Linux" U_BOOT_PARAMETERS="console=tty1 ro rootwait" U_BOOT_FDT="/boot/dtb/rockchip/rk3588s-orangepi-5.dtb" U_BOOT_FDT_OVERLAYS_DIR="/boot/dtb-5.10.110-rockchip-rk3588/rockchip/overlay" U_BOOT_FDT_OVERLAYS="rk3588-uart0-m2.dtbo"
- Run
sudo u-boot-update
andsudo reboot
. - Make sure
/dev/ttyS0
exists after reboot. - Check work by
sudo minicom -D /dev/ttyS0 -b 9600
, you should see likes this output:$GNVTG,,,,,,,,,N*2E $GNZDA,095735.000,29,01,2024,00,00*4B $GPTXT,01,01,01,ANTENNA OK*35
Configure gpsd⌗
- Install by
apt install gpsd
- Edit
/etc/default/gpsd
DEVICES="/dev/ttyS0" GPSD_OPTIONS="" USBAUTO="true"
- Start gpsd by
sudo systemctl start gpsd
- Check output for
sudo cgps
Читать другие посты