I don't know which product you are using. But, there is a way to write uboot 
from uboot. Here is the sample command:

tftp 0x80000000 u-boot.bin
nand erase <starting_address_uboot_partition> 0x1C0000
nandecc sw
nand write.i 0x80000000 <starting_address_uboot_partition> 0x1C0000

The <starting_address_uboot_partition> can be found in booting log. Typically, 
you will find the following part:

0x000000000000-0x000000080000 : "xloader-nand"
0x000000080000-0x000000240000 : "uboot-nand"
0x000000240000-0x000000280000 : "params-nand"
0x000000280000-0x000000780000 : "linux-nand"
0x000000780000-0x000020000000 : "jffs2-nand"

In my case, I use 0x80000 as <starting_address_uboot_partition>.

Hope this helps.

Regards,
Yan

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of 
Kieran Bingham
Sent: Friday, May 21, 2010 1:03 PM
To: [email protected]
Subject: Flashing uboot from Uboot

Hi Guys,

As I'm running linux, I can't easily switch to running Windows for CCS.

I've been making changes to UBoot and testing them by setting the 
TEXT_BASE at a different address in RAM, loading via TFTP, and calling 
go $(loadaddr)

Now I would like to write this uboot binary to flash, so I've recompiled 
it with the original TEXT_BASE, but I can't figure out where I need to 
flash it in the NAND.

Is it possible to reflash uboot from within Uboot?

--
Regards
Kieran
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to