public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] NAND boot from file
@ 2006-12-18 15:34 Charles Krinke
  2006-12-18 21:03 ` Wolfgang Denk
  2006-12-19 17:02 ` Charles Krinke
  0 siblings, 2 replies; 5+ messages in thread
From: Charles Krinke @ 2006-12-18 15:34 UTC (permalink / raw)
  To: u-boot

I have been able to perform a nand boot with nand read and write.jffs2
like this:

Write uImage
Uboot> tftp 0x1000000 uImage 
Uboot> nand write.jffs2 0x1000000 0 0x100000

(reboot)

Read uImage & boot from it
Uboot> nand read 0x1000000 0 0x100000
Uboot> bootm 0x1000000

This works fine, but I am trying to understand how to boot from a uImage
previously written on a formatted jffs2 flash by Linux-2.6.17.11 or if
it is possible. 

I see some hints that this may be possible with mtdids, mtdparts, fsinfo
and ls and would like to do something like

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)
Uboot> <commandToDetermineImageOffset> <uImageOffset>
Uboot> nboot <uImageOffset>

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.

Could you offer a couple of suggestions.

Charles

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-03-06 10:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-18 15:34 [U-Boot-Users] NAND boot from file Charles Krinke
2006-12-18 21:03 ` Wolfgang Denk
2006-12-19 17:02 ` Charles Krinke
2006-12-19 21:57   ` [U-Boot-Users] Help with TSEC on MPC8343 Johnson, Justin M
2009-03-06 10:22     ` [U-Boot] " rudresh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox