mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* barebox can update itself by tftp?
@ 2011-07-29  9:24 斗破苍穷
  0 siblings, 0 replies; 7+ messages in thread
From: 斗破苍穷 @ 2011-07-29  9:24 UTC (permalink / raw)
  To: barebox


[-- Attachment #1.1: Type: text/plain, Size: 358 bytes --]

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

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

[-- Attachment #1.2: Type: text/html, Size: 415 bytes --]

[-- Attachment #2: Type: text/plain, Size: 149 bytes --]

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: barebox can update itself by tftp?
  2011-07-29  9:35 ` Sascha Hauer
@ 2011-07-29  9:49   ` Eric Bénard
  0 siblings, 0 replies; 7+ messages in thread
From: Eric Bénard @ 2011-07-29  9:49 UTC (permalink / raw)
  To: barebox

Hi,

On 29/07/2011 11:35, Sascha Hauer wrote:
> On Fri, Jul 29, 2011 at 05:18:46PM +0800, 斗破苍穷 wrote:
>> 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
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: barebox can update itself by tftp?
  2011-07-29  9:18 斗破苍穷
@ 2011-07-29  9:35 ` Sascha Hauer
  2011-07-29  9:49   ` Eric Bénard
  0 siblings, 1 reply; 7+ messages in thread
From: Sascha Hauer @ 2011-07-29  9:35 UTC (permalink / raw)
  To: 斗破苍穷; +Cc: barebox

On Fri, Jul 29, 2011 at 05:18:46PM +0800, 斗破苍穷 wrote:
> 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

-- 
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
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: barebox can update itself by tftp?
@ 2011-07-29  9:18 斗破苍穷
  2011-07-29  9:35 ` Sascha Hauer
  0 siblings, 1 reply; 7+ messages in thread
From: 斗破苍穷 @ 2011-07-29  9:18 UTC (permalink / raw)
  To: Sascha Hauer; +Cc: barebox


[-- Attachment #1.1: Type: text/plain, Size: 886 bytes --]

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"<154554381@qq.com>; 
Cc: "barebox"; 
Subject: Re: barebox can update itself by tftp?

 
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
-- 
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 |

[-- Attachment #1.2: Type: text/html, Size: 2005 bytes --]

[-- Attachment #2: Type: text/plain, Size: 149 bytes --]

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: barebox can update itself by tftp?
  2011-07-28 15:43 154554381
  2011-07-28 16:23 ` Uwe Kleine-König
@ 2011-07-29  7:34 ` Sascha Hauer
  1 sibling, 0 replies; 7+ messages in thread
From: Sascha Hauer @ 2011-07-29  7:34 UTC (permalink / raw)
  To: 154554381; +Cc: barebox

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


-- 
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
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: barebox can update itself by tftp?
  2011-07-28 15:43 154554381
@ 2011-07-28 16:23 ` Uwe Kleine-König
  2011-07-29  7:34 ` Sascha Hauer
  1 sibling, 0 replies; 7+ messages in thread
From: Uwe Kleine-König @ 2011-07-28 16:23 UTC (permalink / raw)
  To: 154554381; +Cc: barebox

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
This should work, you might have to erase /dev/self0 first though. You
can even test without writing to flash by adding a partitioning to
/dev/ram, tftp into a partition and then go $startaddressofpartition.

Best regards
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* barebox can update itself by tftp?
@ 2011-07-28 15:43 154554381
  2011-07-28 16:23 ` Uwe Kleine-König
  2011-07-29  7:34 ` Sascha Hauer
  0 siblings, 2 replies; 7+ messages in thread
From: 154554381 @ 2011-07-28 15:43 UTC (permalink / raw)
  To: barebox

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

2011-07-28 



154554381 


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

end of thread, other threads:[~2011-07-29  9:49 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-29  9:24 barebox can update itself by tftp? 斗破苍穷
  -- strict thread matches above, loose matches on Subject: below --
2011-07-29  9:18 斗破苍穷
2011-07-29  9:35 ` Sascha Hauer
2011-07-29  9:49   ` Eric Bénard
2011-07-28 15:43 154554381
2011-07-28 16:23 ` Uwe Kleine-König
2011-07-29  7:34 ` Sascha Hauer

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