Porting FreeBSD to Pinephone Pro (help needed)

Hi! As mentioned in the FreeBSD quarterly update, I am attempting to port FreeBSD to the PinePhone Pro with support from Honeyguide group. I am new to FreeBSD and kernel/driver development, so help is welcomed.

See the code repo at https://codeberg.org/Honeyguide/freebsd-pinephonepro for the current status, but in short, FreeBSD boots, but nothing works (not even the screen), but you can interact with the OS via UART over headphone jack. So far I've implemented a driver for the RK818 power management chip and the real-time clock.

Next I'll try to implement a driver for the battery status and battery charger. I'm struggling to find documentation on how to do this though, and I can't even find the source code for the "simple-battery" driver being referenced in the device tree of various devices, so any pointers would be appreciated.

Otherwise, if you'd like to give it a go, instructions are in the code repo.
 
Back
Top