public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] howto write uboot to nand
@ 2013-06-28 20:15 kqt4at5v at gmail.com
  2013-06-28 21:04 ` Scott Wood
  2013-06-29 15:28 ` Jason Cooper
  0 siblings, 2 replies; 3+ messages in thread
From: kqt4at5v at gmail.com @ 2013-06-28 20:15 UTC (permalink / raw)
  To: u-boot

I thought I should ask before I screw this up. I have a new uboot that I 
load with kwboot. It works fine and I want to write it to nand. I see many 
references to write it after loading with tftp but not kwboot. Can I do 
this? How? This is to a Guruplug. Using tftp

tftp 0x6400000 u-boot.kwb
nand erase 0x00000000 0x0100000
nand write 0x6400000 0x0000000 0x80000

Richard

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

* [U-Boot] howto write uboot to nand
  2013-06-28 20:15 [U-Boot] howto write uboot to nand kqt4at5v at gmail.com
@ 2013-06-28 21:04 ` Scott Wood
  2013-06-29 15:28 ` Jason Cooper
  1 sibling, 0 replies; 3+ messages in thread
From: Scott Wood @ 2013-06-28 21:04 UTC (permalink / raw)
  To: u-boot

On 06/28/2013 03:15:03 PM, kqt4at5v at gmail.com wrote:
> I thought I should ask before I screw this up. I have a new uboot  
> that I load with kwboot. It works fine and I want to write it to  
> nand. I see many references to write it after loading with tftp but  
> not kwboot. Can I do this? How? This is to a Guruplug. Using tftp
> 
> tftp 0x6400000 u-boot.kwb
> nand erase 0x00000000 0x0100000
> nand write 0x6400000 0x0000000 0x80000

I'm not familiar with guruplug or kwboot (if you want an answer from  
someone who is, you should put it in the subject line) -- but assuming  
the image is supposed to be written to the beginning of NAND, the  
commands look good.

I'm curious why you erase 1 MiB but only write 512 KiB, though.  Even  
if your erase block size really is that large, the "nand erase" command  
will round up (so you can use $filesize if you want).

-Scott

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

* [U-Boot] howto write uboot to nand
  2013-06-28 20:15 [U-Boot] howto write uboot to nand kqt4at5v at gmail.com
  2013-06-28 21:04 ` Scott Wood
@ 2013-06-29 15:28 ` Jason Cooper
  1 sibling, 0 replies; 3+ messages in thread
From: Jason Cooper @ 2013-06-29 15:28 UTC (permalink / raw)
  To: u-boot

On Fri, Jun 28, 2013 at 03:15:03PM -0500, kqt4at5v at gmail.com wrote:
> I thought I should ask before I screw this up. I have a new uboot
> that I load with kwboot. It works fine and I want to write it to
> nand. I see many references to write it after loading with tftp but
> not kwboot. Can I do this? How? This is to a Guruplug. Using tftp
> 
> tftp 0x6400000 u-boot.kwb
> nand erase 0x00000000 0x0100000
> nand write 0x6400000 0x0000000 0x80000

Well, I typically use openocd and the jtag board to do the same thing.
I'll use openocd to load and execute the new version of u-boot that I
built, and then from that new u-boot, I'll transfer the .kwb image I
want to burn to flash.

So, basically, you can just use tftp like you outlined above, but from
the new image you loaded and executed via kwboot.

Ultimately, you're responsible if it breaks.  No response here is going
to mitigate that ;-)

hth,

Jason.

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

end of thread, other threads:[~2013-06-29 15:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-28 20:15 [U-Boot] howto write uboot to nand kqt4at5v at gmail.com
2013-06-28 21:04 ` Scott Wood
2013-06-29 15:28 ` Jason Cooper

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