diff options
Diffstat (limited to 'target/linux/ar71xx/base-files')
4 files changed, 14 insertions, 0 deletions
diff --git a/target/linux/ar71xx/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom b/target/linux/ar71xx/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom index 945167bee6..4db1b148a2 100644 --- a/target/linux/ar71xx/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom +++ b/target/linux/ar71xx/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom @@ -74,6 +74,9 @@ case "$FIRMWARE" in ath9k_eeprom_extract "caldata" 4096 2048 ath9k_patch_firmware_mac $(mtd_get_mac_binary caldata 0) ;; + rambutan) + ath9k_eeprom_extract "art" 4096 2048 + ;; z1) . /lib/upgrade/nand.sh diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh index 92ee516235..5c3b1a7e1b 100755 --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh @@ -811,6 +811,9 @@ ar71xx_board_detect() { *"R6100") name="r6100" ;; + *"Rambutan"*) + name="rambutan" + ;; *"RE450") name="re450" ;; diff --git a/target/linux/ar71xx/base-files/lib/preinit/05_set_iface_mac_ar71xx b/target/linux/ar71xx/base-files/lib/preinit/05_set_iface_mac_ar71xx index 50f59defe1..277287d383 100644 --- a/target/linux/ar71xx/base-files/lib/preinit/05_set_iface_mac_ar71xx +++ b/target/linux/ar71xx/base-files/lib/preinit/05_set_iface_mac_ar71xx @@ -44,6 +44,12 @@ preinit_set_mac_address() { mac_wan=$(mtd_get_mac_binary caldata 6) [ -n "$mac_wan" ] && ifconfig eth0 hw ether "$mac_wan" ;; + rambutan) + mac_lan=$(mtd_get_mac_binary art 0) + [ -n "$mac_lan" ] && ifconfig eth0 hw ether "$mac_lan" + mac_wan=$(mtd_get_mac_binary art 6) + [ -n "$mac_wan" ] && ifconfig eth1 hw ether "$mac_wan" + ;; tew-632brp) fetch_mac_from_mtd config lan_mac wan_mac ;; diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh index 5be678ea36..8ebdea3018 100755 --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh @@ -521,6 +521,7 @@ platform_check_image() { c-60|\ nbg6716|\ r6100|\ + rambutan|\ wndr3700v4|\ wndr4300) nand_do_platform_check $board $1 @@ -663,6 +664,7 @@ platform_pre_upgrade() { c-60|\ nbg6716|\ r6100|\ + rambutan|\ rb-411|\ rb-411u|\ rb-433|\ |