diff options
author | Mike Frysinger <vapier@gentoo.org> | 2010-01-25 18:50:11 -0500 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2010-03-11 23:50:06 +0100 |
commit | 1b691bb0c2fa18c9b68f15398ef6c8b9e0c0f3e3 (patch) | |
tree | f4232fc7656e75de90881bd92e02cd2e14bcafb9 | |
parent | 4b99327a4121a28d2bdb2c2b841f5d97931ae905 (diff) | |
download | u-boot-imx-1b691bb0c2fa18c9b68f15398ef6c8b9e0c0f3e3.zip u-boot-imx-1b691bb0c2fa18c9b68f15398ef6c8b9e0c0f3e3.tar.gz u-boot-imx-1b691bb0c2fa18c9b68f15398ef6c8b9e0c0f3e3.tar.bz2 |
mkimage: dont force entry point with xip
Some people boot images with the entry point in the middle of the blob
(like Linux with the head code in discardable .init.text), and there is no
no real requirement that the entry point be right after the mkimage header
when doing XIP, so let people specify whatever they want. If they do need
an entry right after the header, then they still can do that with normal
-e behavior.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rw-r--r-- | tools/mkimage.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/tools/mkimage.c b/tools/mkimage.c index cf4b754..f71f8e7 100644 --- a/tools/mkimage.c +++ b/tools/mkimage.c @@ -283,20 +283,6 @@ NXTARG: ; params.ep += tparams->header_size; } - /* - * If XIP, ensure the entry point is equal to the load address plus - * the size of the U-Boot header. - */ - if (params.xflag) { - if (params.ep != params.addr + tparams->header_size) { - fprintf (stderr, - "%s: For XIP, the entry point must be the load addr + %lu\n", - params.cmdname, - (unsigned long)tparams->header_size); - exit (EXIT_FAILURE); - } - } - params.imagefile = *argv; if (params.fflag){ |