logo资料库

如何让OpenWrt支持32MB Flash.pdf

第1页 / 共2页
第2页 / 共2页
资料共2页,全文预览结束
如何让 OpenWrt 支持 32MB Flash WyBox-7620 开发板配套的教程,是基于 8MB SPI Flash 编写的,因此,如果我们想在 16MB 或者 32MB SPI Flash 上面运行,需要做如下修改。 1). 进入/home/openwrt/7620/openwrt/barrier_breaker/target/linux/ramips/dts 目录 # cd /home/openwrt/7620/openwrt/barrier_breaker/target/linux/ramips/dts 2). 修改 MT7620a.dts 文件 将 partition@50000 { label = "firmware"; reg = <0x50000 0x7b0000>; }; 改为 partition@50000 { label = "firmware"; reg = <0x50000 0x1fb0000>; }; 3). 将如下内容删除 port@4 { status = "okay"; phy-mode = "rgmii"; phy-handle = <&phy4>; }; port@5 { status = "okay"; phy-mode = "rgmii"; phy-handle = <&phy5>; }; mdio-bus { status = "okay"; phy4: ethernet-phy@4 { reg = <4>; phy-mode = "rgmii"; }; phy5: ethernet-phy@5 { reg = <5>; phy-mode = "rgmii"; }; https://wy-wulian.taobao.com/
}; 4). 最后保存退出,然后重新编译源码。这样新编译出来的固件,就能支持 32MB、16MB 和 8MB 的 SPI Flash 了。 注意: 1). 该教程为我司(https://wy-wulian.taobao.com/)原创教程,版权所有; 2). 该教程会不断更新、不断深入,详情请咨询我司客服; 3). 针对该教程,我们还有 QQ 群和论坛,专门负责技术答疑,详情请咨询我司客服。 https://wy-wulian.taobao.com/
分享到:
收藏