Open eleutherius opened 6 years ago
I had limited success with Orange Pi PC.
First, I had to apply this patch to prevent kernel panic: http://arrowd.name/h3audio.patch Next, I came up with following dtb: http://arrowd.name/sun8i-h3-orangepi-pc.dtb
With these I was able to successfully boot into FreeBSD, but unfortunately ethernet driver does not work.
How to insert your custom .dtb file into FreeBSD image ?
Create a memory disk from it (man mdconfig
), mount FreeBSD partition (md0s2a, probably) then copy that dtb into /mnt/boot/dtb.
I was able to install the correct dtb, but how did you install the patch?
Well, cd /usr/src && patch < patchfile
. Then rebuilt the image using crochet. Make sure to remove crochet/work/._builtkernel_something
to make crochet recompile the kernel.
Audio patch has landed a while ago: https://reviews.freebsd.org/D8425
How exactly does the ethernet fail?
The patch I posted seems to be a different one, it wasn't committed.
Ethernet wasn't working as no awg
device was showing up. But this got fixed automagically in a funny way - I inserted a cable into an ethernet port first and then powered up the board. After that the awg0
device appeared during boot and now it works fine.
Well, there are some hangs when bridging tap
and awg
, but that's a different story, I think.
Built orangepi-pc
U-Boot and dtb, an image for this board… but hit this problem:
https://lists.freebsd.org/pipermail/freebsd-arm/2017-November/017104.html (originally on Plus2E)
So I had to load -t dtb /boot/dtb/sun8i-h3-nanopi-neo.dtb
:D And that works, but we should be using our fdt…
hmmm I guess that kernel panic might be audio related, since it happens right after probing pcm.
Oh @arrowd your patch applies after the committed one. Where did it come from?
Oh @arrowd your patch applies after the committed one. Where did it come from?
I bugged jmcneill on #bsdmips IRC channel, he gave me it. It helped me with the crash, though.
Succeed in compiling Orange Pi One on FreeBSD 12.0-CURRENT #0 r334337(released on Tue May 29 17:12:35 UTC 2018) and set target to armv6 or armv7 by "-b" parameter . But hung when booting above images either armv6 or armv7 , error message is the following: Loaded DTB from file 'sun8i-h3-orangepi-one.dtb' kernel entry at 0x42200100... kernel args: (null)
Any successful runing on Orange Pi One ? I am appreciated if anyone may let me know the cause of this error or your detailed and correct system environment . BTW , I couldn't get FreeBSD 12.0-CURRENT r333094 as mentioned in "http://occnc.com/info/arm64/NOTES.html" above.
Thanks!
A board directory for Orange Pi One is now available. I have two of them and both work fine. I should update the NOTES.html file. I have not tried Orange Pi PC (I don't have one or a need for one at the moment). The Orange Pi PC seems more similar to Orange Pi PC Plus but it would be best to create a new board directory and use the correct dts file.
Looks like one of the cards that I thought was Orange Pi PC Plus is actually Orange Pi PC but it is running the Orange Pi PC Plus board config. The marvels of buying on Amazon - wrong card. BTW you don't have to run a specific build of FreeBSD 12. So far it has worked on two versions that I pulled. I mentioned the version just as an FYI.
Hm, so the dtb has arrived in the linux 4.15 sync, the u-boot port was merged, no updates on the audio bug though...
FYI- I just created a pull request for an Orange Pi PC board directory. And yes the audio bug is still there. btw- I updated http://occnc.com/info/arm64/NOTES.html a day or two ago. It does not reflect the pull request just made so I supposed needs another small update but I'll wait until the pull request is acted on.
Hello gues, I have problem with starting FreeBSD Current on ORANGE PI PC I tried to make an image for OrangePi-Plus2E, but it did not work.
I tried to choose dtb but it did not lead to success.
Please, help me start FreeBSD on OrangePC. Thanks.