[U-Boot-Users] NAND boot from file
Wolfgang Denk
wd at denx.de
Mon Dec 18 22:03:47 CET 2006
In message <A590D28B5042C041BCC880094CB6172E33DF3C at mail1irv.inside.istor.com> you wrote:
>
> Write uImage with Linux using 'cp uImage /mnt/flash'
> # flash_eraseall -j /dev/mtd0
> # mount -t jffs2 /dev/mtdblock0 /mnt/flash0
> # cp uImage /mnt/flash0
>
> (reboot)
>
> Read uImage
> Uboot> setenv mtdids nand0=atx-0
> Uboot> setenv mtdparts mtdparts=atx-0:16M at 0M(boot)
OK.
> Uboot> <commandToDetermineImageOffset> <uImageOffset>
> Uboot> nboot <uImageOffset>
Um... if this is JFFS2, then why not simply "fsload" + "bootm" ?
> There are a few issues. One is that I don't know the offset of the
> uImage as written by Linux. Another is I don't know if this is the right
> recipe or whether I am going in the right direction.
JFFS2 is a supported file system, so use file system code to read the
files.
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
The best things in life are for a fee.
More information about the U-Boot
mailing list