Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 04 Apr 2023 10:16:53 +0200
From:      Dmitry Salychev <dsl@FreeBSD.org>
To:        Marcin Cieslak <saper@saper.info>
Cc:        Pete Wright <pete@nomadlogic.org>, freebsd-arm@freebsd.org
Subject:   Re: Pinephone Pro
Message-ID:  <86ttxwvyv7.fsf@peasant.tower.home>
In-Reply-To: <r8p634s5-n94r-003p-po15-r0n3233q8r25@fncre.vasb>
References:  <66fee230-24eb-c7d8-fa30-4530409c0f5c@nomadlogic.org> <r8p634s5-n94r-003p-po15-r0n3233q8r25@fncre.vasb>

next in thread | previous in thread | raw e-mail | index | archive | help

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?=C2=A0 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

--=20
Open source software/hardware enthusiast
hackaday.io/dsl | github.com/mcusim | patreon.com/salychev



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86ttxwvyv7.fsf>