[OpenWrt-Devel] [PATCH 1/2] ramips: read label MAC address from flash instead of using phy0/phy1
mail at adrianschmutzler.de
mail at adrianschmutzler.de
Sun Nov 10 19:04:39 EST 2019
> diff --git a/target/linux/ramips/mt7621/base-files/etc/board.d/02_network
> b/target/linux/ramips/mt7621/base-files/etc/board.d/02_network
> index ae03dc71b1..0de3804cdb 100755
> --- a/target/linux/ramips/mt7621/base-files/etc/board.d/02_network
> +++ b/target/linux/ramips/mt7621/base-files/etc/board.d/02_network
> @@ -188,7 +188,7 @@ ramips_setup_macs()
> asus,rt-ac65p|\
> asus,rt-ac85p)
> wan_mac=$(mtd_get_mac_ascii u-boot-env et1macaddr)
> - label_mac=$(cat /sys/class/ieee80211/phy0/macaddress)
> + label_mac=$(mtd_get_mac_binary factory 0x4)
This one will have to be mtd_get_mac_binary_ubi ?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: openpgp-digital-signature.asc
Type: application/pgp-signature
Size: 834 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20191111/41415a46/attachment.sig>
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list