OpenWrt修改flash大小


前言

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


增加dts文件

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

修改dts的Makefile文件

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

再次编译

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


希望可以帮到你:)

MT7620a OpenWrt barrier_breaker编译后wan口dhcp无法获得地址 

本文永久更新链接地址

相关内容