MT 7620 a openwrtは32 M、16 M、8 M SPI flashをサポートする


Openwrtが32 M spi flash上で実行するCupがMT 7620 aであることをどのように実現するか、Openwrtのデフォルトは8 M Flashをサポートするが、16 Mまたは32 M flash上で実行するにはopenwrtソースコードの中でMT 7620 aを修正する必要がある.dtsファイル、そのディレクトリは以下の通りです.
root@ubuntu: /home/topeet/git/openwrt/chaos_calmer/target/linux/ramips/dts

ディレクトリへのアクセス
cd git/openwrt/chaos_calmer/target/linux/ramips/dts

MT 7620 aを編集する.dtsファイル
 vi MT7620a.dts

MT 7620 aを修正する.dts:
partition@50000 {
        label = "firmware";
        reg = <0x50000 0x7b0000>;
 };

変更後:
partition@50000 {
         label = "firmware";
         reg = <0x50000 0x1fb0000>;
 };

次の内容を削除します.
port@4{
status = “okay”;
phy-mode = “rgmil”;
phy-handle = ;
};

port@5{
status = “okay”;
phy-mode = “rgmil”;
phy-handle = ;
};

mdio-bus{
Status = “okay”;
phy4: ethernet-phy@4{
Reg = <4>;
phy-mode = “rgmii”
};
Phy5: ethernet-phy@5{
Reg = <5>;
phy-mode = “rgmii”
};
};

Openwrtの最上位ディレクトリでmake V=99をコンパイルしてコンパイルしたファームウェアを保存すると、32 M、16 M、8 MのSPI Flashをサポートできます