diff options
Diffstat (limited to 'target/linux/mediatek/mt7622/base-files')
3 files changed, 9 insertions, 18 deletions
diff --git a/target/linux/mediatek/mt7622/base-files/etc/board.d/01_leds b/target/linux/mediatek/mt7622/base-files/etc/board.d/01_leds index e74944a65f..1e81648d16 100755 --- a/target/linux/mediatek/mt7622/base-files/etc/board.d/01_leds +++ b/target/linux/mediatek/mt7622/base-files/etc/board.d/01_leds @@ -8,7 +8,8 @@ board=$(board_name) board_config_update case $board in -linksys,e8450) +linksys,e8450|\ +linksys,e8450-ubi) ucidef_set_led_netdev "wan" "WAN" "inet:blue" "wan" ;; esac diff --git a/target/linux/mediatek/mt7622/base-files/etc/board.d/02_network b/target/linux/mediatek/mt7622/base-files/etc/board.d/02_network index 3d2b9ffe49..1e4b1273a1 100755 --- a/target/linux/mediatek/mt7622/base-files/etc/board.d/02_network +++ b/target/linux/mediatek/mt7622/base-files/etc/board.d/02_network @@ -12,6 +12,7 @@ mediatek_setup_interfaces() bananapi,bpi-r64-rootdisk|\ bananapi,bpi-r64|\ linksys,e8450|\ + linksys,e8450-ubi|\ mediatek,mt7622-rfb1) ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4" wan ;; @@ -25,26 +26,9 @@ mediatek_setup_interfaces() esac } -mediatek_setup_macs() -{ - local board="$1" - - case $board in - linksys,e8450) - wan_mac=$(mtd_get_mac_ascii devinfo wan_mac_addr) - lan_mac=$(mtd_get_mac_ascii devinfo lan_mac_addr) - label_mac=$wan_mac - ;; - esac - [ -n "$lan_mac" ] && ucidef_set_interface_macaddr "lan" $lan_mac - [ -n "$wan_mac" ] && ucidef_set_interface_macaddr "wan" $wan_mac - [ -n "$label_mac" ] && ucidef_set_label_macaddr $label_mac -} - board_config_update board=$(board_name) mediatek_setup_interfaces $board -mediatek_setup_macs $board board_config_flush exit 0 diff --git a/target/linux/mediatek/mt7622/base-files/lib/upgrade/platform.sh b/target/linux/mediatek/mt7622/base-files/lib/upgrade/platform.sh index 95ac8b5657..2cea6ce378 100755 --- a/target/linux/mediatek/mt7622/base-files/lib/upgrade/platform.sh +++ b/target/linux/mediatek/mt7622/base-files/lib/upgrade/platform.sh @@ -1,5 +1,9 @@ +RAMFS_COPY_BIN='fw_printenv fw_setenv' +RAMFS_COPY_DATA='/etc/fw_env.config /var/lock/fw_printenv.lock' + platform_do_upgrade() { local board=$(board_name) + local file_type=$(identify $1) case "$board" in bananapi,bpi-r64-rootdisk) @@ -7,7 +11,9 @@ platform_do_upgrade() { #of eMMC and to the location of the kernel get_image "$1" | dd of=/dev/mmcblk0 bs=2097152 seek=1 conv=fsync ;; + linksys,e8450-ubi|\ mediatek,mt7622,ubi) + CI_KERNPART="fit" nand_do_upgrade "$1" ;; linksys,e8450) |