openwrt修改flash大小


前言

默认openwrt trunk编译出来的flash大小为8M,但是我们手上的板子可能flash大小更大,本文以MT7620a为例,将其flash大小由8M修改为16M或者32M


增加dts文件

路径为`openwrt/target/linux/ramips/dts/
在其中增加MT7620a_16M.dtsMT7620a_32M.dts文件,下载地址为百度云.

修改dts的Makefile文件

路径为openwrt/target/linux/ramips/image/Makefile
将其中的Makefile文件替换为百度云中同名文件.

再次编译

再次编译后,bin文件路径为openwrt/bin/ramips,文件名为openwrt-ramips-mt7620a-mt7620a_16M-squashfs-sysupgrade.binopenwrt-ramips-mt7620a-mt7620a_32M-squashfs-sysupgrade.bin


希望可以帮到你:)

posted @ 2015-12-13 17:36  铁马丶冰河  阅读(1539)  评论(1编辑  收藏  举报