歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> OpenWrt修改flash大小

OpenWrt修改flash大小

日期:2017/2/28 13:58:42   编辑:Linux教程

前言

默認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


希望可以幫到你:)

MT7620a OpenWrt barrier_breaker編譯後wan口dhcp無法獲得地址 http://www.linuxidc.com/Linux/2015-08/122062.htm

Copyright © Linux教程網 All Rights Reserved