ramips: improve support for STORYLiNK SAP-G3200U3
* Increase flash SPI frequency to 50MHz The maximum SPI frequency of MX25L6406EM2I is 86 MHz, but in this patch 50 MHz was chosen as a safe value. * Update Ethernet MAC addresses Till now LAN/WAN MAC addresses were flipped compared to stock firmware. * Fix Wi-Fi LEDs by adding mt76 led nodes * Fix LAN port order LAN ports are in reverse order of switch ports. * Fix the well-known "LZMA ERROR 1" error by using lzma-loader * Set uImage name, which enables installation via stock web interface: 1. Upload **initramfs** image file to the web page. 2. Boot into OpenWrt and perform sysupgrade with sysupgrade image. Signed-off-by: Sungbo Eo <mans0n@gorani.run>
This commit is contained in:
parent
85a8f58483
commit
261876a067
|
@ -43,7 +43,8 @@
|
||||||
flash@0 {
|
flash@0 {
|
||||||
compatible = "jedec,spi-nor";
|
compatible = "jedec,spi-nor";
|
||||||
reg = <0>;
|
reg = <0>;
|
||||||
spi-max-frequency = <10000000>;
|
spi-max-frequency = <50000000>;
|
||||||
|
m25p,fast-read;
|
||||||
|
|
||||||
partitions {
|
partitions {
|
||||||
compatible = "fixed-partitions";
|
compatible = "fixed-partitions";
|
||||||
|
@ -86,10 +87,12 @@
|
||||||
reg = <0x8000 0x200>;
|
reg = <0x8000 0x200>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
macaddr_factory_e000: macaddr@e000 {
|
||||||
|
reg = <0xe000 0x6>;
|
||||||
|
};
|
||||||
|
|
||||||
macaddr_factory_e006: macaddr@e006 {
|
macaddr_factory_e006: macaddr@e006 {
|
||||||
compatible = "mac-base";
|
|
||||||
reg = <0xe006 0x6>;
|
reg = <0xe006 0x6>;
|
||||||
#nvmem-cell-cells = <1>;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -108,25 +111,37 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
&pcie0 {
|
&pcie0 {
|
||||||
mt76@0,0 {
|
wifi@0,0 {
|
||||||
|
compatible = "mediatek,mt76";
|
||||||
reg = <0x0000 0 0 0 0>;
|
reg = <0x0000 0 0 0 0>;
|
||||||
nvmem-cells = <&eeprom_factory_8000>;
|
nvmem-cells = <&eeprom_factory_8000>;
|
||||||
nvmem-cell-names = "eeprom";
|
nvmem-cell-names = "eeprom";
|
||||||
ieee80211-freq-limit = <5000000 6000000>;
|
ieee80211-freq-limit = <5000000 6000000>;
|
||||||
|
|
||||||
|
led {
|
||||||
|
led-sources = <2>;
|
||||||
|
led-active-low;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
&pcie1 {
|
&pcie1 {
|
||||||
mt76@0,0 {
|
wifi@0,0 {
|
||||||
|
compatible = "mediatek,mt76";
|
||||||
reg = <0x0000 0 0 0 0>;
|
reg = <0x0000 0 0 0 0>;
|
||||||
nvmem-cells = <&eeprom_factory_0>;
|
nvmem-cells = <&eeprom_factory_0>;
|
||||||
nvmem-cell-names = "eeprom";
|
nvmem-cell-names = "eeprom";
|
||||||
ieee80211-freq-limit = <2400000 2500000>;
|
ieee80211-freq-limit = <2400000 2500000>;
|
||||||
|
|
||||||
|
led {
|
||||||
|
led-sources = <2>;
|
||||||
|
led-active-low;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
&gmac0 {
|
&gmac0 {
|
||||||
nvmem-cells = <&macaddr_factory_e006 0>;
|
nvmem-cells = <&macaddr_factory_e000>;
|
||||||
nvmem-cell-names = "mac-address";
|
nvmem-cell-names = "mac-address";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -135,7 +150,7 @@
|
||||||
label = "wan";
|
label = "wan";
|
||||||
phy-handle = <ðphy4>;
|
phy-handle = <ðphy4>;
|
||||||
|
|
||||||
nvmem-cells = <&macaddr_factory_e006 1>;
|
nvmem-cells = <&macaddr_factory_e006>;
|
||||||
nvmem-cell-names = "mac-address";
|
nvmem-cell-names = "mac-address";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -149,22 +164,22 @@
|
||||||
ports {
|
ports {
|
||||||
port@0 {
|
port@0 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
label = "lan1";
|
label = "lan4";
|
||||||
};
|
};
|
||||||
|
|
||||||
port@1 {
|
port@1 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
label = "lan2";
|
label = "lan3";
|
||||||
};
|
};
|
||||||
|
|
||||||
port@2 {
|
port@2 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
label = "lan3";
|
label = "lan2";
|
||||||
};
|
};
|
||||||
|
|
||||||
port@3 {
|
port@3 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
label = "lan4";
|
label = "lan1";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -2190,7 +2190,9 @@ TARGET_DEVICES += snr_snr-cpe-me2-sfp
|
||||||
|
|
||||||
define Device/storylink_sap-g3200u3
|
define Device/storylink_sap-g3200u3
|
||||||
$(Device/dsa-migration)
|
$(Device/dsa-migration)
|
||||||
|
$(Device/uimage-lzma-loader)
|
||||||
IMAGE_SIZE := 7872k
|
IMAGE_SIZE := 7872k
|
||||||
|
UIMAGE_NAME := SAP-G3200
|
||||||
DEVICE_VENDOR := STORYLiNK
|
DEVICE_VENDOR := STORYLiNK
|
||||||
DEVICE_MODEL := SAP-G3200U3
|
DEVICE_MODEL := SAP-G3200U3
|
||||||
DEVICE_PACKAGES := kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport \
|
DEVICE_PACKAGES := kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport \
|
||||||
|
|
Loading…
Reference in New Issue