FreeBSD on RaspberryPi

Oleksandr Tymoshenko gonzo at bluezbox.com
Tue Nov 27 03:44:13 UTC 2012


On 11/26/2012 6:53 PM, Tim Kientzle wrote:
>
> This all sounds good then.
>
> So we can put the FreeBSD .dts file on the MSDOS Boot partition, then:
>    * Firmware will load it into memory and add display information.
>    * ? ubldr will access the FDT and add memory information and MAC address info ?

Memory is somewhat complicated. memory node contains whole range of 
memory 256 or 512 Mb
The VideoCore part is passed as memreserve table. memreserve is not real 
property. It's got
own API calls in libfdt and does not fit nicely with generic OF 
framework we have in FreeBSD.

So I'm kind of on a fence here: either we need merge memory regions and 
memreserve in
FDT fixup procedure in ubldr. Or convert memreserve data to valid 
property in ubldr again.
Or add hack to arm/arm/machdep.c, which is not really good.


>    * Kernel will then load it and use it to initialize.
>
> Maybe another possibility would be to script ubldr and have it load the FDT from the correct location in memory.  ubldr already knows how to load an FDT and how to pass that FDT to the kernel.

ubldr loads FDT only from raw file or ELF kernel. We'll need "fdt addr" 
subcommand.But now you mentioned it, I think it might be worth adding it 
instead of compile-time option.



More information about the freebsd-hackers mailing list