learning uboot sf command

 

=> sf probe 0 3000000
SF: Detected W25N01GV with page size 2 KiB, erase size 4 KiB, total 128 MiB
=> fatload mmc 0 0x1000000 rootfs.yaffs2
reading rootfs.yaffs2
34723840 bytes read in 3789 ms (8.7 MiB/s)
=> sf erase 0x1600000 0x6a00000
erase
SF: 111149056 bytes @ 0x1600000 Erased: OK
=> print fileaddr filesize
fileaddr=1000000
filesize=211d800
=> sf update 0x1000000 0x1600000 0x211d800
device 0 offset 0x1600000, size 0x211d800
erase
Updating, 1% 265777 B/serase
Updating, 2% 382604 B/serase
Updating, 3% 349981 B/serase
Updating, 3% 334707 B/serase
........

........
Updating, 99% 268288 B/serase
Updating, 100% 267224 B/serase
Updating, 100% 268240 B/serase
34330624 bytes written, 393216 bytes skipped in 133.667s, speed 267106 B/s

posted @ 2020-03-18 15:48  嵌入式实操  阅读(267)  评论(0编辑  收藏  举报