FreeBSD on Layerscape/QorIQ LX2160X
Dan Kotowski
dan.kotowski at a9development.com
Mon May 25 03:23:05 UTC 2020
> > > Booted with NetBSD -current
> > > What was the panic? How about with the NVMe drive?
>
> (is your mail client eating quote levels sometimes? these shouldn't be both >>)
>
> > > I've sent a link to a known firmware build before:
> > > https://drive.google.com/file/d/1yXSS1O1U8CmtwaIPfxNDkzhAClJGvErK/view
> > > Have you tried it? Any difference in FreeBSD/NetBSD, with NVMe?
> >
> > Okay, lots of stuff here...
> > https://gist.github.com/agrajag9/7a1164387994cecea50170e2d93e257e
> >
> > 1. The latest build didn't get far at all, no matter what hardware combo I threw at it. Something
> > about the GIC...
> >
>
> Sorry, silly error (missed {}) when inserting debug prints all over the place.
>
> Could've tried the previous build with that firmware already ;) but new build, should be fixed:
>
> https://send.firefox.com/download/8b82b78a44456587/#KVNvzEyBbiZJkJdhiPfbDg
https://gist.github.com/agrajag9/37e7dddeef75eb9af66856e5b75c1c12
Back to panicking at NVMe.
I tried the 2 other firmware images you provided, but no luck with either. I didn't see any noticible differences in dmesg.out, but I did notice that the 2 linked emitted a lot of DPAAC errors during boot and the CPU fan ran at 100% the whole time the system was one (typically it only runs at 100% for a second before dialing back).
> > 2. NetBSD was... non-deterministic? The first time I tried booting it died real quick:
> >
> > But it sees the NVMe stick AND both the root sd card and the firmware sd card! And I was able to at
> > least read their geometries with fdisk! Progress!
>
> Okay so first of all:
>
> does NetBSD's ability to work with NVMe change when you swap firmware between your build and the linked one?
>
> (repeat the experiment a couple times, we're doing Science here :D)
NVMe worked fine with all 3 firmwares - mine and the 2 linked.
> UEFI supports MBR, generally (there is an MBR partition type).
> Actually the current FreeBSD/aarch64 images on Amazon EC2 are MBR (for no good reason lol)
>
> And Linux kernels often have the EFISTUB option on, which means you can directly run the kernel as an EFI binary..
> though an "LSDK" build might've turned that off. Also I'm not sure how that works with the initramfs stuff that linux distros use.
TIL :)
More information about the freebsd-arm
mailing list