FreeBSD on Layerscape/QorIQ LX2160X

Dan Kotowski dan.kotowski at a9development.com
Fri May 22 23:32:51 UTC 2020


> > > I spent some time looking at that NetBSD Layerscape code - I couldn't figure out how to add it
> > > trivially to the current HEAD on my own, so I'm looking forward to seeing how we're going to yeet
> > > that in for testing...
> > > Something like this:
> > > https://github.com/myfreeweb/freebsd/commit/6cbdafbc310b9a0fa4d046f71979aa01302e8b0b
> > > https://send.firefox.com/download/ec0419c6d3fa856e/#QOMHO8pBq1dP1K2_4P4CBw
> >
> > https://gist.github.com/agrajag9/b214aa837d0ed6bb14139770ff5835ff
> > Line 404: panic: Misaligned access from kernel space!
>
> oops, I actually have to care about the`bytes` parameter..
>
> at least I got the ACPI-walking on the first try :)
>
> https://send.firefox.com/download/6406af63fee41a8a/#FnEEayn7igQ_eTGs0Wq0uw

https://gist.github.com/agrajag9/b47d63484fa51eed535d8a43625a5276

Feels like progress - got a shell, but still some significant failures:

PMU:
```
pmu0: Unable to setup interrupt handler.
device_attach: pmu0 attach returned 6
```

PCI:
```
pci2: <PCI bus> on pcib2
pcib2: allocated bus range (1-1) for rid 0 of pci2
pci2: domain=1, physical bus=1
pci2: pci1:1:0:0 bar 0x10 failed to allocate
```

AHCI:
```
ahci0: Bus is cache-coherent
ahci0: Bus is cache-coherent
ahci0: <AHCI SATA controller> iomem 0x3200000-0x320ffff,0x700100520-0x700100523 on acpi0
ahci0: unable to map interrupt
device_attach: ahci0 attach returned 6
ahci0: Bus is cache-coherent
ahci0: Bus is cache-coherent
ahci0: <AHCI SATA controller> iomem 0x3210000-0x321ffff on acpi0
ahci0: unable to map interrupt
device_attach: ahci0 attach returned 6
ahci0: Bus is cache-coherent
ahci0: Bus is cache-coherent
ahci0: <AHCI SATA controller> iomem 0x3220000-0x322ffff on acpi0
ahci0: unable to map interrupt
device_attach: ahci0 attach returned 6
ahci0: Bus is cache-coherent
ahci0: Bus is cache-coherent
ahci0: <AHCI SATA controller> iomem 0x3230000-0x323ffff on acpi0
ahci0: unable to map interrupt
device_attach: ahci0 attach returned 6
```


More information about the freebsd-arm mailing list