openwrt修改flash大小


前言

默認openwrt trunk編譯出來的flash大小爲8M,可是咱們手上的板子可能flash大小更大,本文以MT7620a爲例,將其flash大小由8M修改成16M或者32Mlinux


增長dts文件

路徑爲`openwrt/target/linux/ramips/dts/
在其中增長MT7620a_16M.dtsMT7620a_32M.dts文件,下載地址爲百度雲.markdown

修改dts的Makefile文件

路徑爲openwrt/target/linux/ramips/image/Makefile
將其中的Makefile文件替換爲百度雲中同名文件.code

再次編譯

再次編譯後,bin文件路徑爲openwrt/bin/ramips,文件名爲openwrt-ramips-mt7620a-mt7620a_16M-squashfs-sysupgrade.binopenwrt-ramips-mt7620a-mt7620a_32M-squashfs-sysupgrade.binip


但願能夠幫到你:)get

相關文章
相關標籤/搜索