# dd if=/dev/mtd0 of=/mnt/usb1_1/rootfs.bin
dd: not found
#
连基本的linux命令都没有.想起来之前在/bin看到了busybox.这回有救了~~
# busybox
BusyBox v1.00 (2011.06.20-01:20+0000) multi-call binary
Usage: busybox [function] [arguments]...
or: [function] [arguments]...
BusyBox is a multi-call binary that combines many common Unix
utilities into a single executable. Most people will create a
link to busybox for each function they wish to use, and BusyBox
will act like whatever it was invoked as.
Currently defined functions:
[, busybox, cat, chmod, cp, date, deluser, df, dmesg, echo, expr,
false, ftpget, ifconfig, init, insmod, kill, killall, klogd, linuxrc,
ln, logger, logread, ls, lsmod, mkdir, mknod, mount, msh, ping,
ping6, ps, pwd, reboot, rm, rmdir, rmmod, route, sendarp, sh,
sleep, smuxctl, sync, syslogd, test, tftp, tftpd, top, true, tty,
umount, vconfig
#
还真是送的...
还好我这路由器支持U盘,而且之前测试过,U盘的里文件可以执行~~
然后去busybox官网上下了个预构建的busybox-mips.(我可没工夫配置交叉编译器)
copy到U盘里,插进路由器执行:
# /mnt/usb1_1/busybox-mips dd if=/dev/mtd0 of=/mnt/usb1_1/rootfs
10720+0 records in
10720+0 records out
5488640 bytes (5.2MB) copied, 2.524430 seconds, 2.1MB/s
#