
Hi Stephen,
On Wed, Oct 19, 2011 at 8:24 AM, Stephen Warren swarren@nvidia.com wrote:
Simon Glass wrote at Tuesday, October 18, 2011 7:04 PM:
On Tue, Oct 18, 2011 at 2:11 PM, Stephen Warren swarren@nvidia.com wrote:
v2: New patch
Signed-off-by: Stephen Warren swarren@nvidia.com
Looks good - how do I make such an image so I can test it?
Simply run the mkimage tool with '-T kernel_rel' instead of '-T kernel', or for a FIT image, use 'type = "kernel_rel"'.
OK thanks. My mkimage doesn't support this for some reason. The problem I seem to have is that CONFIG_SYS_RELATIVE_IMAGES is not defined for host C compiler builds. Is that right? How do you get the code you added in image.c to compile with HOSTCC?
Regards, Simon
When testing, I tested the code as in the patch I sent, and with image_addr_raw_to_abs() hacked to add in an additional 0x100 offset, just to make sure the offset showed up everywhere expected; I've been testing on Tegra20 where the SDRAM base is 0. Luckily, the kernel images I boot can run at any address, so didn't mind that random offset.
-- nvpublic