Skip to content

Commit

Permalink
ramips: add label MAC address for Onion Omega 2(+)
Browse files Browse the repository at this point in the history
Thanks to a hint from Michael Siegenthaler in 4b4fa2f ("ramips:
fix ethernet MAC address on Omega2"), the label MAC address of
the Onion Omega 2(+) can be set based on its documentation [1].

[1] https://docs.onion.io/omega2-docs/mac-address.html

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
  • Loading branch information
adschm committed Aug 21, 2021
1 parent c9faa84 commit c23bc50
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions target/linux/ramips/mt76x8/base-files/etc/board.d/02_network
Expand Up @@ -216,6 +216,12 @@ ramips_setup_macs()
mercury,mac1200r-v2)
wan_mac=$(macaddr_add "$(mtd_get_mac_binary factory_info 0xd)" 1)
;;
onion,omega2|\
onion,omega2p|\
vocore,vocore2|\
vocore,vocore2-lite)
label_mac=$(mtd_get_mac_binary factory 0x4)
;;
rakwireless,rak633|\
unielec,u7628-01-16m|\
wavlink,wl-wn575a3)
Expand All @@ -236,10 +242,6 @@ ramips_setup_macs()
tplink,archer-c50-v4)
wan_mac=$(macaddr_add "$(mtd_get_mac_binary rom 0xf100)" 1)
;;
vocore,vocore2|\
vocore,vocore2-lite)
label_mac=$(mtd_get_mac_binary factory 0x4)
;;
wavlink,wl-wn570ha1|\
zbtlink,zbt-we1226)
wan_mac=$(macaddr_add "$(mtd_get_mac_binary factory 0x2e)" 1)
Expand Down

0 comments on commit c23bc50

Please sign in to comment.