Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 May 2017 16:20:17 -0700
From:      Adrian Chadd <adrian@freebsd.org>
To:        Mike Wolman <mike@wolman.co.uk>
Cc:        Aleksandr Rybalko <ray@ddteam.net>, "freebsd-mips@freebsd.org" <freebsd-mips@freebsd.org>
Subject:   Re: onion omega2+
Message-ID:  <CAJ-VmokjK-ehABi7nASMwLuVbeBnZ_fYDLfKjTiCSq3ojPuEBg@mail.gmail.com>
In-Reply-To: <b1892083-81ce-aa99-045b-e8fd83a71c7e@wolman.co.uk>
References:  <694efc3a-e183-35a1-a0bf-9a9c0d708826@wolman.co.uk> <CAJ1Oi8Hemuug5JRP9btUgs-MmCFgb-_qS0qrEW7h=BhPAYXpFQ@mail.gmail.com> <2c5cd01a-a8d4-3ffa-4e9c-2aad170574c1@wolman.co.uk> <39222.11970.qm@web101719.mail.ssk.yahoo.co.jp> <6f1b2d35-5d17-765a-6138-0ab85455fc09@wolman.co.uk> <5866.49154.qm@web101718.mail.ssk.yahoo.co.jp> <102de390-63ca-a156-2208-bea3d5eea0f9@wolman.co.uk> <541011.41820.qm@web101719.mail.ssk.yahoo.co.jp> <672be258-8fed-6317-1325-f9fccf2646c3@wolman.co.uk> <369335.16286.qm@web101716.mail.ssk.yahoo.co.jp> <711a889d-9701-2441-5c9c-98e0ac607ffb@wolman.co.uk> <456721.9572.qm@web101705.mail.ssk.yahoo.co.jp> <8b21a15c-3af8-bdba-cc70-6bd0e3a65f39@wolman.co.uk> <05065E4E-1D0F-49DE-B14D-D45ECCEA251F@gmail.com> <2b8211f6-9f42-0f11-678f-a2ed830b2430@wolman.co.uk> <AE3AB870-6C1F-4BCC-B8A6-B3FA49E8FE10@gmail.com> <a8b9fd4e-6eef-740a-166a-a611b0f133e5@wolman.co.uk> <CAJ1Oi8Eo3jWAy1nRO1auT03zcXBzdxtnqv=9JytyP6GU8yXWGg@mail.gmail.com> <b1892083-81ce-aa99-045b-e8fd83a71c7e@wolman.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-VmokjK-ehABi7nASMwLuVbeBnZ_fYDLfKjTiCSq3ojPuEBg>