How to boot freebsd on rpi4b?
Robert Crowston
crowston at protonmail.com
Thu Dec 19 14:29:29 UTC 2019
> Doesn't the pci controller needs some setup to have access to the usb controller ?
My experience of trying to write a driver for pci-e is the root complex has to be initialized before accesses to most of the memory space works (either you get 0x0 or 0xdeadbeef depending on how much initialization you did). Also, if you try to access other parts of the controller’s memory space before initializing, it breaks the JTAG link in a really strange way (thereafter you can only read registers, debug access of any memory address returns errors) but the device continues to function.
Maybe I am missing something or did something wrong. Not my area of expertise.
On Thu, Dec 19, 2019 at 11:54, Emmanuel Vadot <manu at bidouilliste.com> wrote:
> On Wed, 18 Dec 2019 13:48:54 +0000 (UTC)
> Greg V <greg at unrelenting.technology> wrote:
>
>>
>>
>> Dec 18, 2019 1:33:53 PM Emmanuel Vadot :
>>
>> > On Wed, 18 Dec 2019 10:11:27 +0000 (UTC)
>> > Greg V wrote:
>> >
>> >
>> > >
>> > >
>> > > Dec 17, 2019 4:51:00 AM ykla :
>> > >
>> > >
>> > > > Hi, I download latest version 12.12 current 13 img and write in TF card.
>> > > > Then I download rpi-firmware(2019-12-05 16:15:16) and extract and copy it
>> > > > in BOOT partition. And look at my screen shows me that stop boot on lo0
>> > > > state. I know it can't support USB/PCI/ethernet and I just want to install
>> > > > it. Thanks.
>> > > >
>> > >
>> > > USB should be relatively easy to add by the way. No need for actual PCIe support, we can directly use it as a memory mapped generic XHCI:
>> > >
>> > > https://github.com/pftf/edk2-platforms/commit/5779a50fd5a001f496fe5d9744a06e75762ba58c
>> > >
>> >
>> > That would mean booting in ACPI mode on RPI4 which nobody tested and
>> > also adding ACPI support to all RPI related driver which will take some
>> > time to do.
>>
>> You can also add the same address as a generic-xhci fdt node, right? assuming uboot does power on the controller.. or fdt mode can be set in edk2 I guess
>
> Doesn't the pci controller needs some setup to have access to the usb
> controller ? I don't know if u-boot supports PCI yet but booting EDK2
> in fdt mode might work.
>
> --
> Emmanuel Vadot <manu at bidouilliste.com>
> _______________________________________________
> freebsd-arm at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-arm
> To unsubscribe, send any mail to "freebsd-arm-unsubscribe at freebsd.org"
More information about the freebsd-arm
mailing list