0

Pi GPS Setup on Fedora CoreOS?
Moderators: adafruit_support_bill, adafruit

Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
Please be positive and constructive with your questions and comments.

Pi GPS Setup on Fedora CoreOS?

by sfxworks on Mon Sep 20, 2021 7:44 am

Hello,

I recently got a Fedora CoreOS setup on my raspberry pi. I followed this guide https://www.raspberrypi.org/forums/viewtopic.php?t=304318 and refined it here https://github.com/sfxworks/TK/tree/main/rpi-fcos to do so. I am able to follow https://learn.adafruit.com/adafruit-ultimate-gps-hat-for-raspberry-pi/pi-setup on reading GPS via /dev/serial0 on a raspbian. However, when I mock the kernel args and config.txt in their similar setups, I cannot activate or read from the GPS hat.

Code: Select all | TOGGLE FULL SIZE
[root@tkpi01 ~]# rpm-ostree kargs
mitigations=auto,nosmt ignition.platform.id=metal $ignition_firstboot ostree=/ostree/boot.0/fedora-coreos/6c83cd056ad792951cc3a66fca99c45e9feaed6ddcb9d7bf71fe5b148ceef836/0 root=UUID=2643f23c-2bd0-4820-98b0-cc8aab87f5a8 rw rootflags=prjquota console=tty1


And on the boot partition's config.txt,
Code: Select all | TOGGLE FULL SIZE
root@rockpro64:~# cat /mnt/fcos/config.txt
arm_64bit=1
enable_uart=1
uart_2ndstage=1
enable_gic=1
armstub=RPI_EFI.fd
disable_commandline_tags=1
disable_overscan=1
device_tree_address=0x1f0000
device_tree_end=0x200000
dtoverlay=miniuart-bt


With this setup, I get the following error
Code: Select all | TOGGLE FULL SIZE
[root@tkpi01 ~]# stty -F /dev/ttyS0 raw 9600 cs8 clocal -cstopb
stty: /dev/ttyS0: Input/output error
[root@tkpi01 ~]# cat /dev/ttyS0
cat: /dev/ttyS0: Input/output error


Thanks

sfxworks
 
Posts: 2
Joined: Mon Sep 20, 2021 7:36 am

Re: Pi GPS Setup on Fedora CoreOS?

by mikeysklar on Mon Sep 20, 2021 7:17 pm

We are not familiar with the differences with Fedora CoreOS over Pi OS.

If you have another SD card it might make sense to get the Ultimate GPS going with Pi OS just to confirm the wiring and hardware all work for you then switch the Fedora card to deal with the OS differences / settings that might be necessary.

https://www.raspberrypi.org/software/op ... -os-32-bit

mikeysklar
 
Posts: 5767
Joined: Mon Aug 01, 2016 8:10 pm

Re: Pi GPS Setup on Fedora CoreOS?

by sfxworks on Mon Sep 20, 2021 8:31 pm

Hey there.
Sorry, I forgot to mention, it all works well on raspbian! I just can't find a way to get it to work on Fedora CoreOS.

sfxworks
 
Posts: 2
Joined: Mon Sep 20, 2021 7:36 am

Re: Pi GPS Setup on Fedora CoreOS?

by mikeysklar on Tue Sep 21, 2021 5:19 pm

Well I guess it all start with figuring what device the Ultimate GPS is showing up on.

In our guide page if you notice the screen shots are still referencing /dev/ttyAMA0 so you might want to try that in place of /dev/ttyS0 or /dev/serial0.

You can always boot Fedora without the Ultimate GPS shield on on list the /dev directory saving the contents to a file and then boot with the shield and see if a new serial device pops up.

Code: Select all | TOGGLE FULL SIZE
ls -rlt /dev > /tmp/noshield
ls -lrt /dev > /tmp/withshield

diff -uRN /tmp/noshield /tmp/withshield

mikeysklar
 
Posts: 5767
Joined: Mon Aug 01, 2016 8:10 pm

Please be positive and constructive with your questions and comments.