IMAGE/factory.trx := append-kernel | append-ubi | check-size
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
DEVICE_PACKAGES := kmod-usb3 kmod-mt7615e kmod-mt7615-firmware \
- uboot-envtools
+ uboot-envtools uencrypt
endef
TARGET_DEVICES += beeline_smartbox-flash
IMAGES += factory.trx
IMAGE/factory.trx := append-kernel | append-ubi | check-size
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
- DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware uboot-envtools
+ DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware uboot-envtools uencrypt
endef
TARGET_DEVICES += mts_wg430223
wan_mac=$(mtd_get_mac_ascii u-boot-env et1macaddr)
label_mac=$(mtd_get_mac_binary factory 0x4)
;;
- beeline,smartbox-flash|\
- mts,wg430223)
- lan_mac=$(mtd_get_mac_ascii u-boot-env eth2macaddr)
- wan_mac=$(mtd_get_mac_ascii u-boot-env eth3macaddr)
- label_mac=$lan_mac
+ beeline,smartbox-flash)
+ wan_mac=$(mtd_get_mac_encrypted_arcadyan "board_data")
+ label_mac=$(macaddr_add "$wan_mac" 3)
+ lan_mac=$label_mac
;;
buffalo,wsr-1166dhp)
local index="$(find_mtd_index "board_data")"
wan_mac=$label_mac
lan_mac=$(macaddr_add $label_mac 1)
;;
+ mts,wg430223)
+ wan_mac=$(mtd_get_mac_encrypted_arcadyan "board_data")
+ label_mac=$wan_mac
+ lan_mac=$(macaddr_add "$wan_mac" 2)
+ ;;
netgear,wax202)
lan_mac=$(mtd_get_mac_ascii Config mac)
wan_mac=$(macaddr_add "$lan_mac" 1)
board=$(board_name)
case "$board" in
- beeline,smartbox-flash|\
- mts,wg430223)
- hw_mac_addr_ra0="$(mtd_get_mac_ascii u-boot-env ra0macaddr)"
- hw_mac_addr_rax0="$(mtd_get_mac_ascii u-boot-env rax0macaddr)"
- [ "$PHYNBR" = "0" ] && echo -n $hw_mac_addr_ra0 > /sys${DEVPATH}/macaddress
- [ "$PHYNBR" = "1" ] && echo -n $hw_mac_addr_rax0 > /sys${DEVPATH}/macaddress
+ beeline,smartbox-flash)
+ hw_mac_addr=$(macaddr_add $(mtd_get_mac_encrypted_arcadyan "board_data") 1)
+ [ "$PHYNBR" = "0" ] && echo -n "$hw_mac_addr" > /sys${DEVPATH}/macaddress
+ hw_mac_addr=$(macaddr_setbit $hw_mac_addr 26)
+ hw_mac_addr=$(macaddr_unsetbit $hw_mac_addr 27)
+ hw_mac_addr=$(macaddr_unsetbit $hw_mac_addr 28)
+ [ "$PHYNBR" = "1" ] && macaddr_setbit_la $hw_mac_addr > /sys${DEVPATH}/macaddress
;;
cudy,x6)
hw_mac_addr="$(mtd_get_mac_binary factory 0x4)"
[ "$PHYNBR" = "0" ] && macaddr_add $hw_mac_addr 2 > /sys${DEVPATH}/macaddress
[ "$PHYNBR" = "1" ] && macaddr_add $hw_mac_addr 3 > /sys${DEVPATH}/macaddress
;;
+ mts,wg430223)
+ hw_mac_addr=$(macaddr_add $(mtd_get_mac_encrypted_arcadyan "board_data") 1)
+ [ "$PHYNBR" = "0" ] && echo -n "$hw_mac_addr" > /sys${DEVPATH}/macaddress
+ hw_mac_addr=$(macaddr_unsetbit $hw_mac_addr 26)
+ hw_mac_addr=$(macaddr_setbit $hw_mac_addr 27)
+ hw_mac_addr=$(macaddr_unsetbit $hw_mac_addr 28)
+ [ "$PHYNBR" = "1" ] && macaddr_setbit_la $hw_mac_addr > /sys${DEVPATH}/macaddress
+ ;;
oraybox,x3a)
if [ "$PHYNBR" = "1" ]; then
hw_mac_addr="$(mtd_get_mac_binary factory 0x4)"