onion omega2+

Adrian Chadd adrian at freebsd.org
Wed May 10 23:20:21 UTC 2017


Hi,

Ah, you're doing XIP. I haven't done XIP before; i typically just
generate a normal image and give it a separate load address 16MB or
something into physical memory so I don't overwrite it.

Ie, when you use mkimage to create a uboot application, you provide it
/both/ a load address and a run address. So, eg, for MIPS we do this:

* load: 0x80050000
* run: 0x80050100

.. the 256 bytes is space for the ELF header. And in the std.AR*
files, we specify the run address is 0x80050100 to ensure it all lines
up.

Then to bootm i load it somewhere else away from that load address, so
it gets copied to the right spot and run.



-adrian


More information about the freebsd-mips mailing list