aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ath79/generic
diff options
context:
space:
mode:
authorTomasz Maciej Nowak <tmn505@gmail.com>2022-06-07 15:58:29 +0200
committerChristian Lamparter <chunkeey@gmail.com>2022-06-24 17:10:24 +0200
commitb52719b71a3337e5ae840c7a50fe41ebdc070f4e (patch)
tree6c376de48a264f21a79ba447c8daa6fdbc52a7ed /target/linux/ath79/generic
parent5897c52e78e3cd3846db083d48dd9d6b47ff3a08 (diff)
downloadupstream-b52719b71a3337e5ae840c7a50fe41ebdc070f4e.tar.gz
upstream-b52719b71a3337e5ae840c7a50fe41ebdc070f4e.tar.bz2
upstream-b52719b71a3337e5ae840c7a50fe41ebdc070f4e.zip
ath79: ja76pf2: use nvmem cells to specify MAC addresses
The bootloader on this board hid the partition containig MAC addresses and prevented adding this space to FIS directory, therefore those had to be stored in RedBoot configuration as aliases to be able to assigne them to proper interfaces. Now that fixed partition size are used instead of redboot-fis parser, the partition containig MAC addresses could be specified, and with marking it as nvmem cell, we can assign them without userspace involvement. Signed-off-by: Tomasz Maciej Nowak <tmn505@gmail.com>
Diffstat (limited to 'target/linux/ath79/generic')
-rw-r--r--target/linux/ath79/generic/base-files/etc/board.d/02_network4
1 files changed, 0 insertions, 4 deletions
diff --git a/target/linux/ath79/generic/base-files/etc/board.d/02_network b/target/linux/ath79/generic/base-files/etc/board.d/02_network
index 209395f024..42ab19b47a 100644
--- a/target/linux/ath79/generic/base-files/etc/board.d/02_network
+++ b/target/linux/ath79/generic/base-files/etc/board.d/02_network
@@ -652,10 +652,6 @@ ath79_setup_macs()
wan_mac=$(mtd_get_mac_ascii u-boot-env wanaddr)
label_mac=$wan_mac
;;
- jjplus,ja76pf2)
- wan_mac=$(fconfig -s -r -d $(find_mtd_part "RedBoot config") -n alias/ethaddr)
- lan_mac=$(macaddr_add "$wan_mac" 1)
- ;;
mercury,mw4530r-v1|\
tplink,tl-wdr3600-v1|\
tplink,tl-wdr4300-v1|\