MT7620a openwrt 支援32M、16M、 8M SPI flash
阿新 • • 發佈:2019-01-13
如何實現openwrt 在32M spi flash上執行
Cup是MT7620a ,Openwrt預設是支援8M Flash ,而如想在16M或32 M flash 上面執行需要在openwrt原始碼裡面修改MT7620a.dts檔案,其所在目錄如下
[email protected]: /home/topeet/git/openwrt/chaos_calmer/target/linux/ramips/dts
進入目錄
cd git/openwrt/chaos_calmer/target/linux/ramips/dts
編輯MT7620a.dts 檔案
vi MT7620a.dts
修改 MT7620a.dts
將:
[email protected] {
label = "firmware";
reg = <0x50000 0x7b0000>;
};
改為:
[email protected] {
label = "firmware";
reg = <0x50000 0x1fb0000>;
};
刪除以下內容:
[email protected]{
status = “okay”;
phy-mode = “rgmil”;
phy-handle = <&phy4>;
};
[email protected]{
status = “okay”;
phy-mode = “rgmil”;
phy-handle = <&phy5>;
};
mdio-bus{
Status = “okay”;
phy4: [email protected]{
Reg = <4>;
phy-mode = “rgmii”
};
Phy5: [email protected]{
Reg = <5>;
phy-mode = “rgmii”
};
};
儲存退出 在openwrt頂層目錄編譯
make V=99
編譯出來的韌體,就能支援32M、16M、和8M的SPI Flash 了