[uClinux-dev] MCF5275EVB, booting linux from Flash
Aitor Calderón
aitor at garper-teleco.es
Fri Feb 23 04:16:52 EST 2007
El Jueves, 22 de Febrero de 2007 17:15, Calin Onofrei escribió:
> I've found your patch for u-boot(u-boot-1.1.6-5275.patch. I have another
> question please. After installing u-boot, there is any special
> configuration for uclinux to start from Flash? Regards,
You need to create an "uImage". Its an image with certain headers.
You can create it with 'mkimage -A m68k -O linux -T kernel -C gzip -a 20000
-e 20000 -n "your image" -d image.bin.gz uImage'
where image.bin.gz its the gziped uclinux image.
You can find mkimage command in your-uboot-dir/tools/mkimage
I have copied it to 0xfff40000 in flash, so I can load it from u-boot with
command 'bootm fff40000'.
If you want to load it at boot time, edit M5275EVB.h file located at
include/configs/ and change CONFIG_BOOTDELAY to 0 (I have 5 here, since I
dont wont it starts inmediatly) and add a line like this:
#define CONFIG_BOOTCOMMAND "bootm fff40000"
changing de fff40000 to the address where you have copied the image.
More info in the README, doc/README.autoboot and http://www.denx.de/wiki/DULG
Please, tell me if you success running u-boot, to know if it works in other
board than mine and the patch it's correct.
Regards,
Aitor.
More information about the uClinux-dev
mailing list