Re: Pinephone Pro
- Reply: Marcin Cieslak : "Re: Pinephone Pro"
- In reply to: Marcin Cieslak : "Re: Pinephone Pro"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 04 Apr 2023 08:16:53 UTC
Marcin Cieslak <saper@saper.info> writes: > [[S/MIME Signed Part:Undecided]] > On Fri, 31 Mar 2023, Pete Wright wrote: > >> So my question is - is the PINE64 the right image to use? Anyone >> else tried this and able to share tweaks or docs they used to get >> things moving? > > What I would do is to take the device tree used by the Linux kernel > and try to see if something very similar can be used for FreeBSD, > first and foremost if the devices listed there are supported. > > Device trees used by FreeBSD kernel are in sys/contrib/device-tree > > https://cgit.freebsd.org/src/tree/sys/contrib/device-tree > > plus some overlays in https://cgit.freebsd.org/src/tree/sys/dts > > PinePhone Pro seems to be using a variant of RockChip RK3399 > so I'd do for the "rockchip" directory to looks for similar boards. > > Pine64 uses Allwinner processors, so this is unlikely to work. > > Some notes: > > https://wiki.pine64.org/wiki/PinePhone_Pro_Development > > Their fork of the Linux kernel: > > https://github.com/megous/linux > > This seems to be the device tree: > > https://github.com/megous/linux/blob/master/arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts > > (it includes also other files, like rk3399.dtsi and rk3399-opp.dtsi, > both seems to be included in the FreeBSD kernel tree). > > Seems like they are still figuring things out for Linux as well, > so you are not alone in that effort. > > I think you should be prepared to build your own image. > With FreeBSD it is not very difficult (I find it easier than in > the Linux world). > > Marcin > > [[End of S/MIME Signed Part]] I'd take their device tree and try to boot GENERIC kernel for arm64 in order to get an idea which drivers are missing: # dmesg | grep "no driver" | grep -v "disabled" Pete, are you going to keep your findings somewhere? I don't have PinePhone Pro at the moment, but would like to follow and can support with customizing your kernel. Regards, Dmitry -- Open source software/hardware enthusiast hackaday.io/dsl | github.com/mcusim | patreon.com/salychev