* howto cp to flash
@ 2012-11-19 8:18 zzs
2012-11-19 8:24 ` Franck Jullien
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: zzs @ 2012-11-19 8:18 UTC (permalink / raw)
To: barebox
After download zbarebox.bin to /, I wrote it to flash
tftp barebox.bin
memcpy -b -s./zbarebox.bin -d/dev/nor0.root 0 0
Then I dump both:
# md -s /dev/nor0.root
00000000: ffffffff ffffffff ffffffff ffffffff ................
00000010: ffffffff ffffffff ffffffff ffffffff ................
00000020: ffffffff ffffffff ffffffff ffffffff ................
# md -s ./zbarebox.bin
00000000: ea00000a eafffffe eafffffe eafffffe ................
00000010: eafffffe 0000016c eafffffe eafffffe ....l...........
00000020: 65726162 00786f62 23b00000 0002389c barebox....#.8..
No contents in flash, Why?
Another question:
How can I get file size in script?
--
Best Regards,
zzs
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: howto cp to flash
2012-11-19 8:18 howto cp to flash zzs
@ 2012-11-19 8:24 ` Franck Jullien
2012-11-19 8:32 ` Eric Bénard
2012-11-19 8:36 ` zzs
2 siblings, 0 replies; 5+ messages in thread
From: Franck Jullien @ 2012-11-19 8:24 UTC (permalink / raw)
To: barebox
2012/11/19 zzs <zzs213@126.com>:
> After download zbarebox.bin to /, I wrote it to flash
>
> tftp barebox.bin
> memcpy -b -s./zbarebox.bin -d/dev/nor0.root 0 0
>
> Then I dump both:
>
> # md -s /dev/nor0.root
> 00000000: ffffffff ffffffff ffffffff ffffffff ................
> 00000010: ffffffff ffffffff ffffffff ffffffff ................
> 00000020: ffffffff ffffffff ffffffff ffffffff ................
>
> # md -s ./zbarebox.bin
> 00000000: ea00000a eafffffe eafffffe eafffffe ................
> 00000010: eafffffe 0000016c eafffffe eafffffe ....l...........
> 00000020: 65726162 00786f62 23b00000 0002389c barebox....#.8..
>
> No contents in flash, Why?
>
> Another question:
>
> How can I get file size in script?
>
> --
> Best Regards,
> zzs
>
>
>
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
Hi,
Did you erase the flash ?
You can also directly do a tftp barebox.bin /dev/nor0.your_partition
Franck.
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: howto cp to flash
2012-11-19 8:18 howto cp to flash zzs
2012-11-19 8:24 ` Franck Jullien
@ 2012-11-19 8:32 ` Eric Bénard
2012-11-19 8:36 ` zzs
2 siblings, 0 replies; 5+ messages in thread
From: Eric Bénard @ 2012-11-19 8:32 UTC (permalink / raw)
To: barebox
Hi,
Le Mon, 19 Nov 2012 16:18:16 +0800,
zzs <zzs213@126.com> a écrit :
> After download zbarebox.bin to /, I wrote it to flash
>
> tftp barebox.bin
> memcpy -b -s./zbarebox.bin -d/dev/nor0.root 0 0
>
this should work :
tftp barebox.bin
unprotect /dev/nor0.root
erase /dev/nor0.root
cp barebox.bin /dev/nor0.root
or with less operations :
unprotect /dev/nor0.root
erase /dev/nor0.root
tftp barebox.bin /dev/nor0.root
Eric
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: howto cp to flash
2012-11-19 8:18 howto cp to flash zzs
2012-11-19 8:24 ` Franck Jullien
2012-11-19 8:32 ` Eric Bénard
@ 2012-11-19 8:36 ` zzs
2012-11-19 10:05 ` Sascha Hauer
2 siblings, 1 reply; 5+ messages in thread
From: zzs @ 2012-11-19 8:36 UTC (permalink / raw)
To: barebox
I use cp command, the result is same
cp ./zbarebox.bin /dev/nor0.root
md -s /dev/nor0.root
00000000: ffffffff ffffffff ffffffff ffffffff ................
00000010: ffffffff ffffffff ffffffff ffffffff ................
00000020: ffffffff ffffffff ffffffff ffffffff ................
ls /dev/nor0.* -l
crw------- 4849664 /dev/nor0.root
crw------- 3145728 /dev/nor0.kernel
crw------- 131072 /dev/nor0.bareboxenv
crw------- 262144 /dev/nor0.barebox
My flash write OK in u-boot
--
Best Regards,
zzs
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: howto cp to flash
2012-11-19 8:36 ` zzs
@ 2012-11-19 10:05 ` Sascha Hauer
0 siblings, 0 replies; 5+ messages in thread
From: Sascha Hauer @ 2012-11-19 10:05 UTC (permalink / raw)
To: barebox
On Mon, Nov 19, 2012 at 04:36:22PM +0800, zzs wrote:
> I use cp command, the result is same
>
> cp ./zbarebox.bin /dev/nor0.root
>
> md -s /dev/nor0.root
> 00000000: ffffffff ffffffff ffffffff ffffffff ................
> 00000010: ffffffff ffffffff ffffffff ffffffff ................
> 00000020: ffffffff ffffffff ffffffff ffffffff ................
Have you tried the unprotect command like Eric suggested?
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] 5+ messages in thread
end of thread, other threads:[~2012-11-19 10:05 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-19 8:18 howto cp to flash zzs
2012-11-19 8:24 ` Franck Jullien
2012-11-19 8:32 ` Eric Bénard
2012-11-19 8:36 ` zzs
2012-11-19 10:05 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox