Skip to contentSkip to conversation

barebox can update itself by tftp?

DISCUSSION 斗破苍穷 3 participants 3 messages Jul 29, 2011

lore
Share & tools
lore
#0 lore raw

does barebox have a command to erase /dev/self0, or i have to erase flash by other tools

------------------ Original ------------------
From: "Sascha Hauer";
Date: 2011年7月29日(星期五) 下午3:34
To: "154554381"<[email protected]>;
Cc: "barebox";
Subject: Re: barebox can update itself by tftp?

Quoted 3 lines · On Thu, Jul 28, 2011 at 11:43:30PM +0800, 154554381 wrote:

can barebox update self by tftp ?
for example
tftp barebox.bin /dev/self0

That's exactly the purpose of this device. Like Uwe said, if /dev/self0 is on flash you have to erase it first.
Sascha

Signature · 4 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

#1 lore raw
Quoted 1 line · 斗破苍穷

does barebox have a command to erase /dev/self0, or i have to erase flash by other tools

The command to erase /dev/self0 is 'erase /dev/self0' ;)

You might have to do a 'unprotect /dev/self0' aswell if your device is protected (some NOR flash)

Sascha

Signature · 9 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#2 lore raw

Hi,

Quoted 7 lines · Sascha Hauer
Quoted 1 line · 斗破苍穷

does barebox have a command to erase /dev/self0, or i have to erase flash by other tools

The command to erase /dev/self0 is 'erase /dev/self0' ;)

You might have to do a 'unprotect /dev/self0' aswell if your device is protected (some NOR flash)

there is also :
update -t barebox
which should do all the operation alone.

Eric

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox