ath9k_ubi_eeprom_extract "caldata" 20480 4096
else
ath9k_eeprom_extract "wifi_data" 20480 4096
- ath9k_patch_firmware_mac $(mtd_get_mac_binary wifi_data 12)
+ ath9k_patch_firmware_mac $(mtd_get_mac_binary wifi_data 0xc)
fi
;;
*)
ath9k_ubi_eeprom_extract "caldata" 4096 4096
else
ath9k_eeprom_extract "wifi_data" 4096 4096
- ath9k_patch_firmware_mac $(mtd_get_mac_binary wifi_data 0)
+ ath9k_patch_firmware_mac $(mtd_get_mac_binary wifi_data 0x0)
fi
;;
*)
case $(board_name) in
meraki,mr24|\
meraki,mx60)
- mac_lan=$(mtd_get_mac_binary_ubi board-config 102)
+ mac_lan=$(mtd_get_mac_binary_ubi board-config 0x66)
[ -n "$mac_lan" ] && ifconfig eth0 hw ether "$mac_lan"
;;
esac
case $board in
archer-c7-v4)
- base_mac=$(mtd_get_mac_binary config 8)
+ base_mac=$(mtd_get_mac_binary config 0x8)
wan_mac=$(macaddr_add "$base_mac" 1)
;;
archer-c7-v5)
- base_mac=$(mtd_get_mac_binary info 8)
+ base_mac=$(mtd_get_mac_binary info 0x8)
wan_mac=$(macaddr_add "$base_mac" 1)
;;
dgl-5500-a1|\
dir-835-a1|\
wndr3700v4|\
wndr4300)
- lan_mac=$(mtd_get_mac_binary caldata 0)
- wan_mac=$(mtd_get_mac_binary caldata 6)
+ lan_mac=$(mtd_get_mac_binary caldata 0x0)
+ wan_mac=$(mtd_get_mac_binary caldata 0x6)
;;
dir-869-a1|\
mynet-n750)
;;
tl-wr1043n-v5|\
tl-wr1043nd-v4)
- lan_mac=$(mtd_get_mac_binary product-info 8)
+ lan_mac=$(mtd_get_mac_binary product-info 0x8)
wan_mac=$(macaddr_add "$lan_mac" 1)
;;
wlr8100)
c-55|\
c-60)
ath9k_eeprom_extract "art" 4096 2048
- ath9k_patch_firmware_mac $(macaddr_add $(mtd_get_mac_binary art 0) +1)
+ ath9k_patch_firmware_mac $(macaddr_add $(mtd_get_mac_binary art 0x0) +1)
;;
fritz4020|\
fritz450e)
else
ath9k_eeprom_extract "odm-caldata" 4096 2048
fi
- ath9k_patch_firmware_mac $(macaddr_add $(mtd_get_mac_binary_ubi board-config 102) +1)
+ ath9k_patch_firmware_mac $(macaddr_add $(mtd_get_mac_binary_ubi board-config 0x66) +1)
;;
r6100 | \
wndr3700v4 | \
wndr4300)
ath9k_eeprom_extract "caldata" 4096 2048
- ath9k_patch_firmware_mac $(mtd_get_mac_binary caldata 0)
+ ath9k_patch_firmware_mac $(mtd_get_mac_binary caldata 0x0)
;;
rambutan)
ath9k_eeprom_extract "art" 4096 2048
else
ath9k_eeprom_extract "origcaldata" 4096 2048
fi
- ath9k_patch_firmware_mac $(macaddr_add $(mtd_get_mac_binary_ubi board-config 102) +2)
+ ath9k_patch_firmware_mac $(macaddr_add $(mtd_get_mac_binary_ubi board-config 0x66) +2)
;;
*)
ath9k_eeprom_die "board $board is not supported yet"
case $board in
c-55)
ath9k_eeprom_extract "art" 20480 2048
- ath9k_patch_firmware_mac $(macaddr_add $(mtd_get_mac_binary art 0) +2)
+ ath9k_patch_firmware_mac $(macaddr_add $(mtd_get_mac_binary art 0x0) +2)
;;
fritz300e)
ath9k_eeprom_extract_reverse "urloader" 5441 1088
else
ath9k_eeprom_extract "odm-caldata" 20480 2048
fi
- ath9k_patch_firmware_mac $(macaddr_add $(mtd_get_mac_binary_ubi board-config 102) +2)
+ ath9k_patch_firmware_mac $(macaddr_add $(mtd_get_mac_binary_ubi board-config 0x66) +2)
;;
wndr3700v4 | \
wndr4300)
ath9k_eeprom_extract "caldata" 20480 2048
- ath9k_patch_firmware_mac $(mtd_get_mac_binary caldata 12)
+ ath9k_patch_firmware_mac $(mtd_get_mac_binary caldata 0xc)
;;
z1)
. /lib/upgrade/nand.sh
else
ath9k_eeprom_extract "origcaldata" 86016 4096
fi
- ath9k_patch_firmware_mac $(macaddr_add $(mtd_get_mac_binary_ubi board-config 102) +3)
+ ath9k_patch_firmware_mac $(macaddr_add $(mtd_get_mac_binary_ubi board-config 0x66) +3)
;;
*)
ath9k_eeprom_die "board $board is not supported yet"
else
ath9k_eeprom_extract "odm-caldata" 36864 2048
fi
- ath9k_patch_firmware_mac $(macaddr_add $(mtd_get_mac_binary_ubi board-config 102) +3)
+ ath9k_patch_firmware_mac $(macaddr_add $(mtd_get_mac_binary_ubi board-config 0x66) +3)
;;
*)
ath9k_eeprom_die "board $board is not supported yet"
;;
dw33d)
ath10kcal_extract "art" 20480 2116
- ath10kcal_patch_mac $(mtd_get_mac_binary art 18)
+ ath10kcal_patch_mac $(mtd_get_mac_binary art 0x12)
;;
epg5000|\
esr1750)
;;
koala)
ath10kcal_extract "art" 20480 2116
- ath10kcal_patch_mac $(macaddr_add $(mtd_get_mac_binary art 12) +0)
+ ath10kcal_patch_mac $(macaddr_add $(mtd_get_mac_binary art 0xc) +0)
;;
mc-mac1200r)
ath10kcal_extract "art" 20480 2116
archer-c59-v2|\
archer-c60-v1|\
archer-c60-v2)
- echo $(macaddr_add $(mtd_get_mac_binary mac 8) $(($PHYNBR - 1)) ) > /sys${DEVPATH}/macaddress
+ echo $(macaddr_add $(mtd_get_mac_binary mac 0x8) $(($PHYNBR - 1)) ) > /sys${DEVPATH}/macaddress
;;
*)
;;
case $(board_name) in
c-55|\
c-60)
- mac_lan=$(mtd_get_mac_binary art 0)
+ mac_lan=$(mtd_get_mac_binary art 0x0)
[ -n "$mac_lan" ] && ifconfig eth0 hw ether "$mac_lan"
;;
dir-615-c1|\
;;
mr18|\
z1)
- mac_lan=$(mtd_get_mac_binary_ubi board-config 102)
+ mac_lan=$(mtd_get_mac_binary_ubi board-config 0x66)
[ -n "$mac_lan" ] && ifconfig eth0 hw ether "$mac_lan"
;;
r6100)
- mac_lan=$(mtd_get_mac_binary caldata 0)
+ mac_lan=$(mtd_get_mac_binary caldata 0x0)
[ -n "$mac_lan" ] && ifconfig eth1 hw ether "$mac_lan"
- mac_wan=$(mtd_get_mac_binary caldata 6)
+ mac_wan=$(mtd_get_mac_binary caldata 0x6)
[ -n "$mac_wan" ] && ifconfig eth0 hw ether "$mac_wan"
;;
rambutan)
- mac_lan=$(mtd_get_mac_binary art 0)
+ mac_lan=$(mtd_get_mac_binary art 0x0)
[ -n "$mac_lan" ] && ifconfig eth0 hw ether "$mac_lan"
- mac_wan=$(mtd_get_mac_binary art 6)
+ mac_wan=$(mtd_get_mac_binary art 0x6)
[ -n "$mac_wan" ] && ifconfig eth1 hw ether "$mac_wan"
;;
wrt160nl)
wan_mac=$(fritz_tffs -n macb -i $(find_mtd_part "tffs (1)"))
;;
dlink,dir-825-b1)
- lan_mac=$(mtd_get_mac_text "caldata" 65440)
- wan_mac=$(mtd_get_mac_text "caldata" 65460)
+ lan_mac=$(mtd_get_mac_text "caldata" 0xffa0)
+ wan_mac=$(mtd_get_mac_text "caldata" 0xffb4)
;;
dlink,dir-825-c1|\
dlink,dir-835-a1)
- lan_mac=$(mtd_get_mac_text "mac" 4)
- wan_mac=$(mtd_get_mac_text "mac" 24)
+ lan_mac=$(mtd_get_mac_text "mac" 0x4)
+ wan_mac=$(mtd_get_mac_text "mac" 0x18)
;;
dlink,dir-842-c1|\
dlink,dir-842-c2|\
;;
elecom,wrc-1750ghbk2-i|\
elecom,wrc-300ghbk2-i)
- wan_mac=$(macaddr_add "$(mtd_get_mac_binary art 4098)" -2)
+ wan_mac=$(macaddr_add "$(mtd_get_mac_binary art 0x1002)" -2)
;;
engenius,ecb1750)
lan_mac=$(mtd_get_mac_ascii u-boot-env ethaddr)
wan_mac=$(mtd_get_mac_ascii u-boot-env wanaddr)
;;
engenius,ews511ap)
- lan_mac=$(mtd_get_mac_text "u-boot-env" 233)
+ lan_mac=$(mtd_get_mac_text "u-boot-env" 0xe9)
eth1_mac=$(macaddr_add "$lan_mac" 1)
ucidef_set_interface "eth0" ifname "eth0" protocol "none" macaddr "$lan_mac"
ucidef_set_interface "eth1" ifname "eth1" protocol "none" macaddr "$eth1_mac"
lan_mac=$(macaddr_add "$wan_mac" 1)
;;
nec,wg800hp)
- lan_mac=$(mtd_get_mac_text board_data 640)
- wan_mac=$(mtd_get_mac_text board_data 1152)
+ lan_mac=$(mtd_get_mac_text board_data 0x280)
+ wan_mac=$(mtd_get_mac_text board_data 0x480)
;;
netgear,wndr3700|\
netgear,wndr3700v2|\
netgear,wndr3800)
- lan_mac=$(macaddr_setbit_la "$(mtd_get_mac_binary art 0)")
+ lan_mac=$(macaddr_setbit_la "$(mtd_get_mac_binary art 0x0)")
;;
phicomm,k2t)
lan_mac=$(k2t_get_mac "lan_mac")
wan_mac=$(mtd_get_mac_ascii devdata wanmac)
;;
rosinson,wr818)
- wan_mac=$(mtd_get_mac_binary factory 0)
+ wan_mac=$(mtd_get_mac_binary factory 0x0)
lan_mac=$(macaddr_setbit_la "$wan_mac")
;;
tplink,archer-a7-v5|\
tplink,archer-c7-v5|\
tplink,tl-wr1043nd-v4|\
tplink,tl-wr1043n-v5)
- base_mac=$(mtd_get_mac_binary info 8)
+ base_mac=$(mtd_get_mac_binary info 0x8)
wan_mac=$(macaddr_add "$base_mac" 1)
;;
tplink,tl-wr941-v2|\
tplink,tl-wr941n-v7-cn)
- base_mac=$(mtd_get_mac_binary u-boot 130048)
+ base_mac=$(mtd_get_mac_binary u-boot 0x1fc00)
wan_mac=$(macaddr_add "$base_mac" 1)
;;
trendnet,tew-823dru)
- lan_mac=$(mtd_get_mac_text mac 4)
- wan_mac=$(mtd_get_mac_text mac 24)
+ lan_mac=$(mtd_get_mac_text mac 0x4)
+ wan_mac=$(mtd_get_mac_text mac 0x18)
;;
ubnt,routerstation|\
ubnt,routerstation-pro)
dlink,dir-825-c1|\
dlink,dir-835-a1)
ath9k_eeprom_extract "art" 4096 1088
- ath9k_patch_fw_mac_crc $(mtd_get_mac_text "mac" 4) 2
+ ath9k_patch_fw_mac_crc $(mtd_get_mac_text "mac" 0x4) 2
;;
dlink,dir-842-c1|\
dlink,dir-842-c2|\
;;
nec,wg800hp)
ath9k_eeprom_extract "art" 4096 1088
- ath9k_patch_fw_mac $(mtd_get_mac_text board_data 1664) 2
+ ath9k_patch_fw_mac $(mtd_get_mac_text board_data 0x680) 2
;;
qihoo,c301)
ath9k_eeprom_extract "radiocfg" 4096 1088
dlink,dir-825-c1|\
dlink,dir-835-a1)
ath9k_eeprom_extract "art" 20480 1088
- ath9k_patch_fw_mac_crc $(macaddr_add $(mtd_get_mac_text "mac" 24) 1) 2
+ ath9k_patch_fw_mac_crc $(macaddr_add $(mtd_get_mac_text "mac" 0x18) 1) 2
;;
ocedo,raccoon|\
tplink,tl-wdr3600-v1|\
;;
dlink,dir-825-b1)
ath9k_eeprom_extract "caldata" 4096 3768
- ath9k_patch_fw_mac_crc $(mtd_get_mac_text "caldata" 65440) 524
+ ath9k_patch_fw_mac_crc $(mtd_get_mac_text "caldata" 0xffa0) 524
;;
*)
ath9k_eeprom_die "board $board is not supported yet"
;;
dlink,dir-825-b1)
ath9k_eeprom_extract "caldata" 20480 3768
- ath9k_patch_fw_mac_crc $(macaddr_add $(mtd_get_mac_text "caldata" 65460) 1) 524
+ ath9k_patch_fw_mac_crc $(macaddr_add $(mtd_get_mac_text "caldata" 0xffb4) 1) 524
;;
*)
ath9k_eeprom_die "board $board is not supported yet"
devolo,dvl1750i|\
devolo,dvl1750x)
ath10kcal_extract "art" 20480 2116
- ath10kcal_patch_mac_crc $(macaddr_add $(mtd_get_mac_binary art 0) -1)
+ ath10kcal_patch_mac_crc $(macaddr_add $(mtd_get_mac_binary art 0x0) -1)
;;
dlink,dir-859-a1)
ath10kcal_extract "art" 20480 2116
;;
glinet,gl-ar750s)
ath10kcal_extract "art" 20480 2116
- ath10kcal_patch_mac $(macaddr_add $(mtd_get_mac_binary art 0) +1)
+ ath10kcal_patch_mac $(macaddr_add $(mtd_get_mac_binary art 0x0) +1)
;;
glinet,gl-x750)
ath10kcal_extract "art" 20480 2116
- ath10kcal_patch_mac $(macaddr_add $(mtd_get_mac_binary art 0) +2)
+ ath10kcal_patch_mac $(macaddr_add $(mtd_get_mac_binary art 0x0) +2)
;;
nec,wg800hp)
ath10kcal_extract "art" 20480 2116
- ath10kcal_patch_mac_crc $(mtd_get_mac_text board_data 2176)
+ ath10kcal_patch_mac_crc $(mtd_get_mac_text board_data 0x880)
;;
ocedo,koala|\
ocedo,ursus)
ath10kcal_extract "art" 20480 2116
- ath10kcal_patch_mac $(mtd_get_mac_binary art 12)
+ ath10kcal_patch_mac $(mtd_get_mac_binary art 0xc)
;;
openmesh,om5p-ac-v2)
ath10kcal_extract "art" 20480 2116
tplink,archer-c7-v5|\
tplink,archer-c25-v1)
ath10kcal_extract "art" 20480 2116
- ath10kcal_patch_mac $(macaddr_add $(mtd_get_mac_binary info 8) -1)
+ ath10kcal_patch_mac $(macaddr_add $(mtd_get_mac_binary info 0x8) -1)
;;
tplink,archer-c5-v1|\
tplink,archer-c7-v2)
;;
tplink,re450-v2)
ath10kcal_extract "art" 20480 2116
- ath10kcal_patch_mac $(macaddr_add $(mtd_get_mac_binary info 8) +1)
+ ath10kcal_patch_mac $(macaddr_add $(mtd_get_mac_binary info 0x8) +1)
;;
ubnt,unifiac-lite|\
ubnt,unifiac-mesh|\
netgear,ex6400|\
netgear,ex7300)
ath10kcal_extract "caldata" 20480 12064
- ath10kcal_patch_mac $(mtd_get_mac_binary caldata 12)
+ ath10kcal_patch_mac $(mtd_get_mac_binary caldata 0xc)
;;
phicomm,k2t)
ath10kcal_extract "art" 20480 12064
tplink,archer-c60-v2|\
tplink,archer-c6-v2)
ath10kcal_extract "art" 20480 12064
- ath10kcal_patch_mac_crc $(macaddr_add $(mtd_get_mac_binary mac 8) -1)
+ ath10kcal_patch_mac_crc $(macaddr_add $(mtd_get_mac_binary mac 0x8) -1)
ln -sf /lib/firmware/ath10k/pre-cal-pci-0000\:00\:00.0.bin \
/lib/firmware/ath10k/QCA9888/hw2.0/board.bin
;;
mtd_get_mac_text mac 4 > /sys${DEVPATH}/macaddress
# set the 5G interface mac address to WAN MAC + 1
[ "$PHYNBR" -eq 0 ] && \
- macaddr_add "$(mtd_get_mac_text mac 24)" 1 > /sys${DEVPATH}/macaddress
+ macaddr_add "$(mtd_get_mac_text mac 0x18)" 1 > /sys${DEVPATH}/macaddress
;;
*)
;;
if [ -n "$part" ]; then
DEVID="$(dd if=$part bs=1 skip=119508 count=7 2>/dev/null)"
if [ "$DEVID" = "dns-313" ]; then
- MAC1="$(mtd_get_mac_binary RedBoot 119540)"
+ MAC1="$(mtd_get_mac_binary RedBoot 0x1d2f4)"
ip link set eth0 address "$MAC1" 2>/dev/null
return 0
fi
if [ -n "$part" ] ; then
DEVID="$(dd if=$part bs=1 skip=81516 count=7 2>/dev/null)"
if [ "$DEVID" = "ILI9322" ] ; then
- MAC1=$(mtd_get_mac_binary RedBoot 95040)
- MAC2=$(mtd_get_mac_binary RedBoot 95046)
+ MAC1=$(mtd_get_mac_binary RedBoot 0x17340)
+ MAC2=$(mtd_get_mac_binary RedBoot 0x17346)
ip link set eth0 address "$MAC1" 2>/dev/null
ip link set eth1 address "$MAC2" 2>/dev/null
return 0
case "$board" in
asus,rt-ac58u)
CI_UBIPART=UBI_DEV
- wan_mac=$(mtd_get_mac_binary_ubi Factory 20486)
- lan_mac=$(mtd_get_mac_binary_ubi Factory 4102)
+ wan_mac=$(mtd_get_mac_binary_ubi Factory 0x5006)
+ lan_mac=$(mtd_get_mac_binary_ubi Factory 0x1006)
;;
engenius,ens620ext)
wan_mac=$(mtd_get_mac_ascii u-boot-env ethaddr)
meraki,mr33)
ath10kcal_ubi_extract "ART" 36864 2116
ath10kcal_is_caldata_valid "4408" || ath10kcal_extract "ART" 36864 2116
- ath10kcal_patch_mac_crc $(macaddr_add $(get_mac_binary "/sys/bus/i2c/devices/0-0050/eeprom" 102) +1)
+ ath10kcal_patch_mac_crc $(macaddr_add $(get_mac_binary "/sys/bus/i2c/devices/0-0050/eeprom" 0x66) +1)
;;
esac
;;
meraki,mr33)
ath10kcal_ubi_extract "ART" 4096 12064
ath10kcal_is_caldata_valid "202f" || ath10kcal_extract "ART" 4096 12064
- ath10kcal_patch_mac_crc $(macaddr_add $(get_mac_binary "/sys/bus/i2c/devices/0-0050/eeprom" 102) +2)
+ ath10kcal_patch_mac_crc $(macaddr_add $(get_mac_binary "/sys/bus/i2c/devices/0-0050/eeprom" 0x66) +2)
;;
netgear,ex6100v2 |\
netgear,ex6150v2)
ath10kcal_extract "ART" 4096 12064
- ath10kcal_patch_mac_crc $(mtd_get_mac_binary dnidata 0)
+ ath10kcal_patch_mac_crc $(mtd_get_mac_binary dnidata 0x0)
;;
zyxel,nbg6617 |\
zyxel,wre6606)
meraki,mr33)
ath10kcal_ubi_extract "ART" 20480 12064
ath10kcal_is_caldata_valid "202f" || ath10kcal_extract "ART" 20480 12064
- ath10kcal_patch_mac_crc $(macaddr_add $(get_mac_binary "/sys/bus/i2c/devices/0-0050/eeprom" 102) +3)
+ ath10kcal_patch_mac_crc $(macaddr_add $(get_mac_binary "/sys/bus/i2c/devices/0-0050/eeprom" 0x66) +3)
;;
netgear,ex6100v2 |\
netgear,ex6150v2)
ath10kcal_extract "ART" 20480 12064
- ath10kcal_patch_mac_crc $(mtd_get_mac_binary dnidata 12)
+ ath10kcal_patch_mac_crc $(mtd_get_mac_binary dnidata 0xc)
;;
zyxel,nbg6617 |\
zyxel,wre6606)
preinit_set_mac_address() {
case $(board_name) in
asus,map-ac2200)
- base_mac=$(mtd_get_mac_binary_ubi Factory 4102)
+ base_mac=$(mtd_get_mac_binary_ubi Factory 0x1006)
ip link set dev eth0 address $(macaddr_add "$base_mac" +1)
ip link set dev eth1 address $(macaddr_add "$base_mac" +3)
;;
ip link set dev eth1 address $(macaddr_add "${base_mac}" 1)
;;
meraki,mr33)
- mac_lan=$(get_mac_binary "/sys/bus/i2c/devices/0-0050/eeprom" 102)
+ mac_lan=$(get_mac_binary "/sys/bus/i2c/devices/0-0050/eeprom" 0x66)
[ -n "$mac_lan" ] && ip link set dev eth0 address "$mac_lan"
;;
zyxel,nbg6617)
case $board in
buffalo,wxr-2533dhp)
ath10kcal_extract "ART" 4096 12064
- ath10kcal_patch_mac_crc $(mtd_get_mac_binary ART 30)
+ ath10kcal_patch_mac_crc $(mtd_get_mac_binary ART 0x1e)
;;
linksys,ea8500)
ath10kcal_extract "art" 4096 12064
;;
nec,wg2600hp)
ath10kcal_extract "ART" 4096 12064
- ath10kcal_patch_mac_crc $(macaddr_add $(mtd_get_mac_binary PRODUCTDATA 12) +1)
+ ath10kcal_patch_mac_crc $(macaddr_add $(mtd_get_mac_binary PRODUCTDATA 0xc) +1)
;;
netgear,d7800 |\
netgear,r7500v2 |\
netgear,r7800)
ath10kcal_extract "art" 4096 12064
- ath10kcal_patch_mac_crc $(macaddr_add $(mtd_get_mac_binary art 6) +1)
+ ath10kcal_patch_mac_crc $(macaddr_add $(mtd_get_mac_binary art 0x6) +1)
;;
tplink,c2600)
ath10kcal_extract "radio" 4096 12064
- ath10kcal_patch_mac_crc $(macaddr_add $(mtd_get_mac_binary default-mac 8) -1)
+ ath10kcal_patch_mac_crc $(macaddr_add $(mtd_get_mac_binary default-mac 0x8) -1)
;;
tplink,vr2600v)
ath10kcal_extract "ART" 4096 12064
- ath10kcal_patch_mac_crc $(macaddr_add $(mtd_get_mac_binary default-mac 0) -1)
+ ath10kcal_patch_mac_crc $(macaddr_add $(mtd_get_mac_binary default-mac 0x0) -1)
;;
zyxel,nbg6817)
ath10kcal_extract "0:ART" 4096 12064
case $board in
buffalo,wxr-2533dhp)
ath10kcal_extract "ART" 20480 12064
- ath10kcal_patch_mac_crc $(mtd_get_mac_binary ART 24)
+ ath10kcal_patch_mac_crc $(mtd_get_mac_binary ART 0x18)
;;
linksys,ea8500)
ath10kcal_extract "art" 20480 12064
;;
nec,wg2600hp)
ath10kcal_extract "ART" 20480 12064
- ath10kcal_patch_mac_crc $(mtd_get_mac_binary PRODUCTDATA 12)
+ ath10kcal_patch_mac_crc $(mtd_get_mac_binary PRODUCTDATA 0xc)
;;
netgear,d7800 |\
netgear,r7500v2 |\
netgear,r7800)
ath10kcal_extract "art" 20480 12064
- ath10kcal_patch_mac_crc $(macaddr_add $(mtd_get_mac_binary art 6) +2)
+ ath10kcal_patch_mac_crc $(macaddr_add $(mtd_get_mac_binary art 0x6) +2)
;;
tplink,c2600)
ath10kcal_extract "radio" 20480 12064
- ath10kcal_patch_mac_crc $(mtd_get_mac_binary default-mac 8)
+ ath10kcal_patch_mac_crc $(mtd_get_mac_binary default-mac 0x8)
;;
tplink,vr2600v)
ath10kcal_extract "ART" 20480 12064
- ath10kcal_patch_mac_crc $(mtd_get_mac_binary default-mac 0)
+ ath10kcal_patch_mac_crc $(mtd_get_mac_binary default-mac 0x0)
;;
zyxel,nbg6817)
ath10kcal_extract "0:ART" 20480 12064
arcadyan,arv7506pw11)
annex="b"
- wan_mac=$(macaddr_add "$(mtd_get_mac_binary board_config 22)" 2)
+ wan_mac=$(macaddr_add "$(mtd_get_mac_binary board_config 0x16)" 2)
ucidef_add_switch "switch0" \
"1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1" "5t@eth0"
;;
arcadyan,arv7519pw)
- wan_mac=$(macaddr_add "$(mtd_get_mac_binary board_config 22)" 1)
+ wan_mac=$(macaddr_add "$(mtd_get_mac_binary board_config 0x16)" 1)
ucidef_add_switch "switch0" \
"0:lan" "1:lan" "2:lan" "3:lan" "4t@eth0"
;;
arcadyan,arv7519rw22)
- wan_mac=$(macaddr_add "$(mtd_get_mac_binary boardconfig 22)" 1)
+ wan_mac=$(macaddr_add "$(mtd_get_mac_binary boardconfig 0x16)" 1)
ucidef_add_switch "switch0" \
"0:lan:5" "2:lan:3" "3:lan:4" "4:lan:1" "5:lan:2" "6t@eth0"
;;
;;
bt,homehub-v5a)
- lan_mac=$(mtd_get_mac_binary_ubi caldata 4364)
+ lan_mac=$(mtd_get_mac_binary_ubi caldata 0x110c)
wan_mac=$(macaddr_add "$lan_mac" 1)
ucidef_add_switch "switch0" \
"0:lan:3" "1:lan:4" "2:lan:2" "4:lan:1" "5:wan:5" "6t@eth0"
;;
netgear,dm200)
- lan_mac=$(mtd_get_mac_binary ART 0)
+ lan_mac=$(mtd_get_mac_binary ART 0x0)
wan_mac=$(macaddr_add "$lan_mac" 1)
ucidef_set_interface_lan 'eth0'
;;
avm,fritz7312|\
avm,fritz7320)
annex="b"
- wan_mac=$(macaddr_add "$(mtd_get_mac_binary urlader 2705)" 1)
+ wan_mac=$(macaddr_add "$(mtd_get_mac_binary urlader 0xa91)" 1)
ucidef_set_interface_lan 'eth0'
;;
avm,fritz7360sl)
annex="b"
- wan_mac=$(macaddr_add "$(mtd_get_mac_binary urlader 2705)" 1)
+ wan_mac=$(macaddr_add "$(mtd_get_mac_binary urlader 0xa91)" 1)
ucidef_add_switch "switch0" \
"0:lan:3" "1:lan:4" "2:lan:2" "4:lan:1" "6t@eth0"
;;
;;
tplink,tdw8970|tplink,tdw8980)
- wan_mac=$(macaddr_add "$(mtd_get_mac_binary boardconfig 61696)" 1)
+ wan_mac=$(macaddr_add "$(mtd_get_mac_binary boardconfig 0xf100)" 1)
ucidef_add_switch "switch0" \
"0:lan:2" "2:lan:3" "4:lan:4" "5:lan:1" "6t@eth0"
;;
;;
tplink,vr200|tplink,vr200v)
- wan_mac=$(macaddr_add "$(mtd_get_mac_binary romfile 61696)" 1)
+ wan_mac=$(macaddr_add "$(mtd_get_mac_binary romfile 0xf100)" 1)
ucidef_add_switch "switch0" \
"0:lan" "2:lan" "4:lan" "5:lan" "6t@eth0"
;;
arcadyan,vgv7510kw22-nor|arcadyan,vgv7510kw22-brn)
annex="b"
- wan_mac=$(macaddr_add "$(mtd_get_mac_binary board_config 22)" 2)
+ wan_mac=$(macaddr_add "$(mtd_get_mac_binary board_config 0x16)" 2)
ucidef_add_switch "switch0" \
"2:lan:2" "3:lan:1" "4:lan:4" "5:lan:3" "0:wan:5" "6t@eth0"
;;
arcadyan,vgv7519-nor|arcadyan,vgv7519-brn)
- wan_mac=$(mtd_get_mac_binary board_config 22)
+ wan_mac=$(mtd_get_mac_binary board_config 0x16)
ucidef_add_switch "switch0" \
"0:lan:4" "1:lan:3" "2:lan:2" "4:lan:1" "5:wan:5" "6t@eth0"
;;
case $board in
bt,homehub-v5a)
ath10k_caldata_extract_ubi "caldata" 20480 2116
- ath10k_caldata_set_macaddr $(macaddr_add $(mtd_get_mac_binary_ubi caldata 4364) +3)
+ ath10k_caldata_set_macaddr $(macaddr_add $(mtd_get_mac_binary_ubi caldata 0x110c) +3)
;;
*)
ath10k_caldata_die "board $board is not supported yet"
;;
bt,homehub-v5a)
ath9k_ubi_eeprom_extract "caldata" 4096 0
- ath9k_patch_fw_mac_crc $(macaddr_add $(mtd_get_mac_binary_ubi caldata 4364) +2) 268
+ ath9k_patch_fw_mac_crc $(macaddr_add $(mtd_get_mac_binary_ubi caldata 0x110c) +2) 268
;;
netgear,dgn3500|netgear,dgn3500b)
ath9k_eeprom_extract "calibration" 61440 0
tplink,tl-wdr4900-v1)
ucidef_add_switch "switch0" \
"0@eth0" "2:lan:1" "3:lan:2" "4:lan:3" "5:lan:4" "1:wan"
- ucidef_set_interface_macaddr "wan" "$(mtd_get_mac_binary config 332)"
+ ucidef_set_interface_macaddr "wan" "$(mtd_get_mac_binary config 0x14c)"
;;
*)
ucidef_set_interfaces_lan_wan "eth0" "eth1"
local offset=$1
local mac
- mac=$(mtd_get_mac_binary u-boot 326656)
+ mac=$(mtd_get_mac_binary u-boot 0x4fc00)
mac=$(macaddr_add $mac $offset)
macaddr_2bin $mac | dd bs=1 count=6 seek=2 conv=notrunc of=$FW_FILE 2>/dev/null
arcwireless,freestation5|\
cudy,wr1000|\
netgear,wnce2001)
- wan_mac=$(mtd_get_mac_binary factory 46)
+ wan_mac=$(mtd_get_mac_binary factory 0x2e)
;;
arcwireless,freestation5|\
dlink,dir-300-b7|\
asus,rt-ac57u|\
phicomm,k2p|\
planex,vr500)
- lan_mac=$(mtd_get_mac_binary factory 57344)
- wan_mac=$(mtd_get_mac_binary factory 57350)
+ lan_mac=$(mtd_get_mac_binary factory 0xe000)
+ wan_mac=$(mtd_get_mac_binary factory 0xe006)
;;
asus,rt-n56u)
lan_mac=$(macaddr_setbit_la "$(cat /sys/class/net/eth0/address)")
- wan_mac=$(mtd_get_mac_binary factory 32772)
+ wan_mac=$(mtd_get_mac_binary factory 0x8004)
;;
belkin,f9k1109v1)
wan_mac=$(mtd_get_mac_ascii uboot-env HW_WAN_MAC)
buffalo,whr-300hp2|\
buffalo,whr-600d|\
buffalo,wsr-600dhp)
- wan_mac=$(mtd_get_mac_binary factory 4)
+ wan_mac=$(mtd_get_mac_binary factory 0x4)
lan_mac=$wan_mac
;;
buffalo,whr-g300n|\
glinet,gl-mt300n-v2)
- wan_mac=$(mtd_get_mac_binary factory 4)
+ wan_mac=$(mtd_get_mac_binary factory 0x4)
;;
dlink,dch-m225|\
samsung,cy-swr1100)
wan_mac=$(mtd_get_mac_ascii u-boot-env WAN_MAC_ADDR)
;;
edimax,br-6475nd)
- wan_mac=$(mtd_get_mac_binary devdata 7)
+ wan_mac=$(mtd_get_mac_binary devdata 0x7)
;;
edimax,br-6478ac-v2)
wan_mac=$(macaddr_add "$(cat /sys/class/net/eth0/address)" 2)
elecom,wrc-1900gst|\
elecom,wrc-2533gst|\
samknows,whitebox-v8)
- wan_mac=$(mtd_get_mac_binary factory 57350)
+ wan_mac=$(mtd_get_mac_binary factory 0xe006)
;;
hiwifi,hc5661|\
hiwifi,hc5661a|\
;;
iodata,wn-ac1167gr|\
iodata,wn-ac733gr3)
- wan_mac=$(macaddr_add "$(mtd_get_mac_binary factory 4)" -1)
+ wan_mac=$(macaddr_add "$(mtd_get_mac_binary factory 0x4)" -1)
;;
iodata,wn-ax1167gr|\
iodata,wn-gx300gr|\
trendnet,tew-692gr)
- wan_mac=$(macaddr_add "$(mtd_get_mac_binary factory 4)" 1)
+ wan_mac=$(macaddr_add "$(mtd_get_mac_binary factory 0x4)" 1)
;;
lenovo,newifi-d1)
lan_mac=$(macaddr_add "$(cat /sys/class/net/eth0/address)" 2)
mediatek,linkit-smart-7688|\
onion,omega2|\
onion,omega2p)
- wan_mac=$(mtd_get_mac_binary factory 4)
- lan_mac=$(mtd_get_mac_binary factory 46)
+ wan_mac=$(mtd_get_mac_binary factory 0x4)
+ lan_mac=$(mtd_get_mac_binary factory 0x2e)
;;
mercury,mac1200r-v2)
- lan_mac=$(mtd_get_mac_binary factory_info 13)
+ lan_mac=$(mtd_get_mac_binary factory_info 0xd)
wan_mac=$(macaddr_add "$lan_mac" 1)
;;
netgear,r6220|\
netgear,r6350|\
netgear,wndr3700-v5)
- wan_mac=$(mtd_get_mac_binary factory 4)
+ wan_mac=$(mtd_get_mac_binary factory 0x4)
lan_mac=$(macaddr_add "$wan_mac" 1)
;;
ohyeah,oy-0001|\
phicomm,k2g|\
skylab,skw92a)
- lan_mac=$(mtd_get_mac_binary factory 40)
- wan_mac=$(mtd_get_mac_binary factory 46)
+ lan_mac=$(mtd_get_mac_binary factory 0x28)
+ wan_mac=$(mtd_get_mac_binary factory 0x2e)
;;
poray,m3|\
poray,m4-4m|\
lan_mac=$(macaddr_add "$(cat /sys/class/net/eth0/address)" -2)
;;
sitecom,wlr-6000)
- wan_mac=$(macaddr_add "$(mtd_get_mac_binary factory 32772)" 2)
+ wan_mac=$(macaddr_add "$(mtd_get_mac_binary factory 0x8004)" 2)
;;
sparklan,wcr-150gn|\
zyxel,keenetic-omni|\
zyxel,keenetic-omni-ii|\
zyxel,keenetic-start|\
zyxel,keenetic-viva)
- wan_mac=$(mtd_get_mac_binary factory 40)
+ wan_mac=$(mtd_get_mac_binary factory 0x28)
;;
tenda,w306r-v2)
wan_mac=$(macaddr_add "$(cat /sys/class/net/eth0/address)" 5)
;;
trendnet,tew-691gr)
- wan_mac=$(macaddr_add "$(mtd_get_mac_binary factory 4)" 3)
+ wan_mac=$(macaddr_add "$(mtd_get_mac_binary factory 0x4)" 3)
;;
wiznet,wizfi630a)
- lan_mac=$(mtd_get_mac_binary factory 4)
- wan_mac=$(mtd_get_mac_binary factory 40)
+ lan_mac=$(mtd_get_mac_binary factory 0x4)
+ wan_mac=$(mtd_get_mac_binary factory 0x28)
;;
xiaomi,mir3g|\
xiaomi,mir3p)