PINE64
can I get the hardware addresses of Pine Phones devices? - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120)
+--- Forum: PinePhone Hardware (https://forum.pine64.org/forumdisplay.php?fid=122)
+--- Thread: can I get the hardware addresses of Pine Phones devices? (/showthread.php?tid=9183)



can I get the hardware addresses of Pine Phones devices? - blicken - 02-15-2020

can I get the hardware addresses of Pine Phones devices?
I have tried sudo cat /proc/ioports
and some other commands that might work on more standard Ubuntu distros. this isnt a distro specific question, I just want the hardware addresses for the devices such as the motor, rgb LED, gps, acellerometer etc.


RE: can I get the hardware addresses of Pine Phones devices? - dukla2000 - 02-16-2020

Some of them are on the postmarketOS wiki.
Are they software addresses  Rolleyes there is a link to the postmarket wiki from the PinePhone software wiki page!


RE: can I get the hardware addresses of Pine Phones devices? - wibble - 02-16-2020

/proc/ioports is empty on the Raspberry Pi too (at least in Raspbian) - I don't know if this is a kernel config thing, and ARM-specific behaviour or what.

When I was poking around /sys and /proc yesterday in pine-pinephone-20200210-phosh.img.xz I found some of the info in the pmOS wiki wasn't quite right, notably the iio devices were numbered differently. I don't know if that's a kernel change, a detection order thing or what. I also couldn't find the flash LED anywhere.

GPS is on the modem, accessed via ttyUSB serial devices. It's controlled by AT commands through /dev/ttyUSB2 (and possibly 3?) while /dev/ttyUSB1 is read-only, sending the NMEA content you've configured via the AT commands. Search for "EC25&EC21 GNSS AT Commands Manual" for the full command set.