openwrt Could not open mtd device: u-boot

出现这类错误:

Could not open mtd device: u-boot

Can't open device for writing!

原因:官网openwrt firmware对uboot分区进行了保护。

解决:刷入一个解锁了uboot分区的openwrt固件后,再进行下面uboot写入命令。

    mtd -r write /tmp/uboot.bin u-boot 

修改dts文件,支持可写

参考文章:

http://www.openwrt.pro/post-300.html

原文地址:https://www.cnblogs.com/hzijone/p/12163167.html