Skip to contentSkip to conversation

How to burn new U-Boot over network

U-Boot alex889 3 participants 4 messages Sep 7, 2009 – Sep 9, 2009

lore
Share & tools
lore

alex889

author
#0 lore raw

Hi,
I'm working on the DM365evm,
and i was wondering if there is a way to burn new U-Boot version over network, instead of Code Composer and a JTAG?

Thanks,
Alex

Signature · 2 lines
View this message in context: http://www.nabble.com/-U-Boot--How-to-burn-new-U-Boot-over-network-tp25327003p25327003.html
Sent from the Uboot - Users mailing list archive at Nabble.com.
#1 lore raw
Quoted 7 lines · alex889 wrote:

Hi,
I'm working on the DM365evm,
and i was wondering if there is a way to burn new U-Boot version over network, instead of Code Composer and a JTAG?

Thanks,
Alex

Hi Alex,

of course it's possible!
But it depends on the location of your U-Boot.

I.e. your U-Boot is located in dataflash or NAND flash:

	tftp $(loadaddress) $(img)
	protect off $(start) $(end)
	erase $(start) $(end)
	cp.b $(loadaddress) $(start) $(filesize)

$(loadaddress) - the temporary RAM address for downloading new U-Boot

$(img)         - the path to your new U-Boot image (i.e. /tftpboot/update/u-boot.img)
$(start)       - the flash address, where U-Boot is located
$(end)         - $(start) + maximum size of U-Boot (erasesize)
$(filesize)    - set automatically after tftp transfer

Regards
Daniel

author
#2 lore raw

Thanks for your answer.
I tried this before i posted the question, and it didn't work.

Do you know the exact address of the U-Boot on the NAND? Is there an additional header before the U-Boot?

Alex

Quoted 38 lines · Daniel Gorsulowski
Quoted 7 lines · alex889 wrote:

Hi,
I'm working on the DM365evm,
and i was wondering if there is a way to burn new U-Boot version over network, instead of Code Composer and a JTAG?

Thanks,
Alex

Hi Alex,

of course it's possible!
But it depends on the location of your U-Boot.

I.e. your U-Boot is located in dataflash or NAND flash:

	tftp $(loadaddress) $(img)
	protect off $(start) $(end)
	erase $(start) $(end)
	cp.b $(loadaddress) $(start) $(filesize)

$(loadaddress) - the temporary RAM address for downloading new U-Boot
$(img) - the path to your new U-Boot image (i.e.
/tftpboot/update/u-boot.img)

$(start)       - the flash address, where U-Boot is located
$(end)         - $(start) + maximum size of U-Boot (erasesize)
$(filesize)    - set automatically after tftp transfer

Regards
Daniel

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Signature · 2 lines
View this message in context: http://www.nabble.com/-U-Boot--How-to-burn-new-U-Boot-over-network-tp25327003p25329639.html
Sent from the Uboot - Users mailing list archive at Nabble.com.
#3 lore raw
Quoted 5 lines · On Mon, Sep 07, 2009 at 05:18:43AM -0700, alex889 wrote:

Thanks for your answer.
I tried this before i posted the question, and it didn't work.

Do you know the exact address of the U-Boot on the NAND?

You need to use the "nand" command to erase and program NAND. Typically the boot image will be at offset zero within the NAND.

And be careful, if the new image doesn't work you'll need that JTAG.

Quoted 1 line

Is there an additional header before the U-Boot?

That's specific to your hardware and any pre-loader you may have.

If you're using nand_spl (U-boot's built-in NAND pre-loader), you'll typically just stick u-boot-nand.bin at offset zero.

Quoted 11 lines
Quoted 10 lines · Daniel Gorsulowski
Quoted 7 lines · alex889 wrote:

Hi,
I'm working on the DM365evm,
and i was wondering if there is a way to burn new U-Boot version over network, instead of Code Composer and a JTAG?

Thanks,
Alex

Quoted 6 lines
Quoted 6 lines

Hi Alex,

of course it's possible!
But it depends on the location of your U-Boot.

I.e. your U-Boot is located in dataflash or NAND flash:

I assume you mean "*not* located in dataflash or NAND flash"...

-Scott