我是 Linux 和嵌入式系统的新手,我已经尝试使用自定义固件刷新我的路由器有一段时间了。我设法找到匹配的 .bin 文件,但包含的更新命令需要“dev”才能刷新。我已将回复包含在下面。如果您知道该怎么做,请帮助我。谢谢。 PS 我输入了 mtd16,它显示“flash_earse:无法获取 MTD 设备信息”,输入了下面的完整响应。
~ # update upgrade.bin
compile at 17:42:38
useage: update filename devname
~ # cat /proc/mtd
dev: size erasesize name
mtd0: 00080000 00020000 "zloader"
mtd1: 00100000 00020000 "uboot"
mtd2: 00080000 00020000 "cpurpm"
mtd3: 00100000 00020000 "uboot-mirr"
mtd4: 00100000 00020000 "nvfac"
mtd5: 00200000 00020000 "nvro"
mtd6: 00300000 00020000 "nvrw"
mtd7: 00100000 00020000 "fotaflag"
mtd8: 00680000 00020000 "cpuphy"
mtd9: 00080000 00020000 "sms"
mtd10: 00800000 00020000 "cpups"
mtd11: 00500000 00020000 "cpuap"
mtd12: 00200000 00020000 "cpfs"
mtd13: 00100000 00020000 "recovery"
mtd14: 00100000 00020000 "recovery-kernel"
mtd15: 00100000 00020000 "cdrom"
mtd16: 04300000 00020000 "userdata"
mtd17: 01200000 00020000 "fotaupdate"
mtd18: 00100000 00020000 "yaffs"
mtd19: 00400000 00020000 "securefs"
~ # df -h
Filesystem Size Used Available Use% Mounted on
ubi0:rootfs 57.9M 24.4M 33.5M 42% /
mdev 24.3M 0 24.3M 0% /dev
tmpfs 24.3M 0 24.3M 0% /dev/shm
ubi1_0 1.2M 100.0K 1.1M 8% /securefs
mtd:yaffs 1.0M 436.0K 588.0K 43% /yaffs
ubi0:rootfs 57.9M 24.4M 33.5M 42% /mnt/tmp
~ # update upgrade.bin mtd16
compile at 17:42:38
flash_earse: Could not get MTD device info