howto cp to flash

zzs zzs213 at 126.com
Mon Nov 19 03:18:16 EST 2012


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





More information about the barebox mailing list