[U-Boot] how can i change u-boot load address?

sahar mustafa nilesmile at live.com
Mon Oct 6 14:13:24 CEST 2008


hi every one..

currently, u-boot load it self in SDRAM address : 0x80100000
i want the u-boot to be loaded to address: 0x80FE0000.
i have try the following:

1#repeating the last steps preform by the build script:
1-./tools/mkimage -A mips -T firmware -C bzip2 -a 0x80100000  -e 0x80100000 
-n 'u-boot image' -d u-boot.bz2 u-boot.zimg
2-./mk_ubootimg.sh head.bin u-boot.zimg 12400 u-boot.img
3-mipsel-linux-objcopy -I binary -O binary --pad-to 0x10000  u-boot.img
u-boot.img
that of course after changing to the new address, but when downloading it to
the board, it hangs

2#in the mkimage.c file, i have change the code a little:

case 'a':
				if (--argc <= 0)
					usage ();
				addr = strtoul ("0x80FE0000", (char **)&ptr, 16);
				*++argv;
				if (*ptr) {
					fprintf (stderr,
						"%s: invalid load address %s\n",
						cmdname, *argv);
					exit (EXIT_FAILURE);

their was no compilation error, but also the board hangs
3# i thought a bout the entry point, and make it to match the load address,
but still the same result.

can you tell me how to change the load address without crippling the u-boot?

with respect
sahar mustafa.

-- 
View this message in context: http://www.nabble.com/how-can-i-change-u-boot-load-address--tp19836732p19836732.html
Sent from the Uboot - Users mailing list archive at Nabble.com.



More information about the U-Boot mailing list