diff options
Diffstat (limited to 'target/linux/kirkwood/base-files')
3 files changed, 13 insertions, 0 deletions
diff --git a/target/linux/kirkwood/base-files/etc/board.d/02_network b/target/linux/kirkwood/base-files/etc/board.d/02_network index 773730e642..df38694f40 100644 --- a/target/linux/kirkwood/base-files/etc/board.d/02_network +++ b/target/linux/kirkwood/base-files/etc/board.d/02_network @@ -22,6 +22,7 @@ kirkwood_setup_interfaces() globalscale,sheevaplug|\ iom,iconnect-1.1|\ iom,ix2-200|\ + iptime,nas1|\ netgear,readynas-duo-v2|\ raidsonic,ib-nas62x0|\ seagate,blackarmor-nas220|\ @@ -55,6 +56,10 @@ kirkwood_setup_macs() local label_mac="" case "$board" in + iptime,nas1) + lan_mac=$(mtd_get_mac_binary u-boot 0x3ffa8) + label_mac=$lan_mac + ;; linksys,e4200-v2|\ linksys,ea3500|\ linksys,ea4500) diff --git a/target/linux/kirkwood/base-files/lib/preinit/07_set_iface_mac b/target/linux/kirkwood/base-files/lib/preinit/07_set_iface_mac index 2a52b7962f..393c540d97 100644 --- a/target/linux/kirkwood/base-files/lib/preinit/07_set_iface_mac +++ b/target/linux/kirkwood/base-files/lib/preinit/07_set_iface_mac @@ -27,6 +27,10 @@ preinit_set_mac_address() { ip link set dev port3 address $(macaddr_add $mac 2) 2>/dev/null ip link set dev port4 address $(macaddr_add $mac 3) 2>/dev/null ;; + iptime,nas1) + mac=$(mtd_get_mac_binary u-boot 0x3ffa8) + ip link set dev eth0 address $mac 2>/dev/null + ;; esac } diff --git a/target/linux/kirkwood/base-files/lib/upgrade/platform.sh b/target/linux/kirkwood/base-files/lib/upgrade/platform.sh index e2f6dec44a..9885bf7d31 100644 --- a/target/linux/kirkwood/base-files/lib/upgrade/platform.sh +++ b/target/linux/kirkwood/base-files/lib/upgrade/platform.sh @@ -1,6 +1,7 @@ RAMFS_COPY_BIN='fw_printenv fw_setenv strings' RAMFS_COPY_DATA='/etc/fw_env.config /var/lock/fw_printenv.lock' +PART_NAME=firmware REQUIRE_IMAGE_METADATA=1 platform_check_image() { @@ -33,6 +34,9 @@ platform_do_upgrade() { return 1 fi ;; + iptime,nas1) + default_do_upgrade "$1" + ;; linksys,e4200-v2|\ linksys,ea3500|\ linksys,ea4500) |