mediatek: fix wifi mac for livinet zr-3020
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
parent
4fbf4329b0
commit
fd1bf51885
@ -62,7 +62,7 @@ To build your own firmware you need a GNU/Linux, BSD or MacOSX system (case sens
|
|||||||
6. Run `make` to build your firmware. This will download all sources, build the cross-compile toolchain and then cross-compile the GNU/Linux kernel & all chosen applications for your target system.
|
6. Run `make` to build your firmware. This will download all sources, build the cross-compile toolchain and then cross-compile the GNU/Linux kernel & all chosen applications for your target system.
|
||||||
|
|
||||||
### Related Repositories
|
### Related Repositories
|
||||||
The main repository uses multiple sub-repositories to manage packages of different categories. All packages are installed via the ImmortalWrt package manager called opkg. If you're looking to develop the web interface or port packages to ImmortalWrt, please find the fitting repository below.
|
The main repository uses multiple sub-repositories to manage packages of different categories. All packages are installed via the OpenWrt package manager called opkg. If you're looking to develop the web interface or port packages to ImmortalWrt, please find the fitting repository below.
|
||||||
- [LuCI Web Interface](https://github.com/immortalwrt/luci): Modern and modular interface to control the device via a web browser.
|
- [LuCI Web Interface](https://github.com/immortalwrt/luci): Modern and modular interface to control the device via a web browser.
|
||||||
- [ImmortalWrt Packages](https://github.com/immortalwrt/packages): Community repository of ported packages.
|
- [ImmortalWrt Packages](https://github.com/immortalwrt/packages): Community repository of ported packages.
|
||||||
- [OpenWrt Routing](https://github.com/openwrt/routing): Packages specifically focused on (mesh) routing.
|
- [OpenWrt Routing](https://github.com/openwrt/routing): Packages specifically focused on (mesh) routing.
|
||||||
|
@ -176,10 +176,6 @@
|
|||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
#size-cells = <1>;
|
#size-cells = <1>;
|
||||||
|
|
||||||
macaddr_config_5068a: macaddr@5068a {
|
|
||||||
reg = <0x5068a 0x11>;
|
|
||||||
};
|
|
||||||
|
|
||||||
macaddr_config_50707: macaddr@50707 {
|
macaddr_config_50707: macaddr@50707 {
|
||||||
reg = <0x50707 0x11>;
|
reg = <0x50707 0x11>;
|
||||||
};
|
};
|
||||||
@ -316,7 +312,4 @@
|
|||||||
status = "okay";
|
status = "okay";
|
||||||
|
|
||||||
mediatek,mtd-eeprom = <&factory 0x0>;
|
mediatek,mtd-eeprom = <&factory 0x0>;
|
||||||
|
|
||||||
nvmem-cells = <&macaddr_config_5068a>;
|
|
||||||
nvmem-cell-names = "mac-address-ascii";
|
|
||||||
};
|
};
|
||||||
|
@ -38,8 +38,8 @@ case "$board" in
|
|||||||
;;
|
;;
|
||||||
livinet,zr-3020|\
|
livinet,zr-3020|\
|
||||||
livinet,zr-3020-ubootmod)
|
livinet,zr-3020-ubootmod)
|
||||||
addr=$(mtd_get_mac_ascii config2 wifi5gmac)
|
[ "$PHYNBR" = "0" ] && mtd_get_mac_ascii config2 wifi2gmac > /sys${DEVPATH}/macaddress
|
||||||
[ "$PHYNBR" = "1" ] && echo $macaddr > /sys${DEVPATH}/macaddress
|
[ "$PHYNBR" = "1" ] && mtd_get_mac_ascii config2 wifi5gmac > /sys${DEVPATH}/macaddress
|
||||||
;;
|
;;
|
||||||
mercusys,mr90x-v1)
|
mercusys,mr90x-v1)
|
||||||
addr=$(get_mac_binary "/tmp/tp_data/default-mac" 0)
|
addr=$(get_mac_binary "/tmp/tp_data/default-mac" 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user