我的openwrt学习笔记(十七):openwrt uboot.bin导出
Openwrt 烧写应用程序.BIN 是靠uboot.bin的,为了防止uboot.bin被破坏,无法恢复的问题,可以把uboot.bin从FLASH导出来,方法有很多,但是需要借助编程器等软件硬件!
这里提供一个新的方法,导出uboot.bin.
root@OpenWrt:/tmp# cat /proc/mtd dev: size erasesize name mtd0: 00030000 00010000 "u-boot" mtd1: 00010000 00010000 "u-boot-env" mtd2: 00010000 00010000 "factory" mtd3: 007b0000 00010000 "firmware" mtd4: 006bfd4b 00010000 "rootfs" mtd5: 00300000 00010000 "rootfs_data" root@OpenWrt:/tmp# dd if=/dev/mtdblock0 of=/tmp/uboot.bin 384+0 records in 384+0 records out root@OpenWrt:/tmp# ln -s /tmp /www/tmp root@OpenWrt:/tmp# ls -l -rw-r--r-- 1 root root 6 Jul 10 11:42 TZ -rw-r--r-- 1 root root 0 Jul 10 11:42 dhcp.leases drwxr-xr-x 2 root root 40 Jul 10 11:42 dnsmasq.d drwxr-xr-x 2 root root 60 Jul 10 11:42 etc drwxr-xr-x 2 root root 40 Jan 1 1970 extroot drwxr-xr-x 2 root root 60 Jul 10 11:45 hosts drwxr-xr-x 2 root root 40 Jan 1 1970 lock drwxr-xr-x 2 root root 80 Jul 10 11:42 log -rw------- 1 root root 56427 Jul 10 11:46 luci-indexcache drwxr-xr-x 2 root root 620 Jul 10 11:55 luci-modulecache drwx------ 2 root root 80 Jul 10 11:48 luci-sessions drwxr-xr-x 2 root root 40 Jan 1 1970 overlay -rw-r--r-- 1 root root 32 Jul 10 11:45 resolv.conf -rw-r--r-- 1 root root 0 Jul 10 11:42 resolv.conf.auto drwxr-xr-x 3 root root 240 Jul 10 11:45 run drwxr-xr-x 2 root root 60 Jul 10 11:42 state drwxr-xr-x 2 root root 80 Jan 1 1970 sysinfo lrwxrwxrwx 1 root root 4 Jul 10 11:58 tmp -> /tmp -rw-r--r-- 1 root root 196608 Jul 10 11:57 uboot.bin root@OpenWrt:/tmp# md5sum uboot.bin db70ae5ae66f6efbb7f334e71b95f1d0 uboot.bin |
|
剩下的就可以利用scp命令上传出该uboot.bin了 |
版权声明:本文为博主原创文章,未经博主允许不得转载。
我的openwrt学习笔记(十七):openwrt uboot.bin导出
原文地址:http://blog.csdn.net/xushx_bigbear/article/details/48003699