diff options
author | Sander Vanheule <sander@svanheule.net> | 2022-07-28 15:13:52 +0200 |
---|---|---|
committer | Sander Vanheule <sander@svanheule.net> | 2022-07-28 15:17:04 +0200 |
commit | a63aeaecf1f3387df020854c9b22a365207399ce (patch) | |
tree | ef6c7197c70e8c5c6847af25ff282da71f322527 /target/linux/realtek/base-files | |
parent | f2f09bc00280f5bd60b36d525a5e229550958b6d (diff) | |
download | upstream-a63aeaecf1f3387df020854c9b22a365207399ce.tar.gz upstream-a63aeaecf1f3387df020854c9b22a365207399ce.tar.bz2 upstream-a63aeaecf1f3387df020854c9b22a365207399ce.zip |
realtek: remove support for HPE 1920 series
Support for HPE 1920 images depends on two non-existent tools (mkh3cimg
and mkh3cvfs) from the in the firmware-utils package. Revert commit
f2f09bc00280 ("realtek: add support for HPE 1920 series") until support
for these tools is merged and made available in OpenWrt.
Signed-off-by: Sander Vanheule <sander@svanheule.net>
Diffstat (limited to 'target/linux/realtek/base-files')
-rw-r--r-- | target/linux/realtek/base-files/etc/board.d/02_network | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/target/linux/realtek/base-files/etc/board.d/02_network b/target/linux/realtek/base-files/etc/board.d/02_network index 5356bcac65..af9db848dd 100644 --- a/target/linux/realtek/base-files/etc/board.d/02_network +++ b/target/linux/realtek/base-files/etc/board.d/02_network @@ -22,20 +22,9 @@ ucidef_set_bridge_device switch ucidef_set_interface_lan "$lan_list" lan_mac="" -lan_mac_start="" lan_mac_end="" label_mac="" case $board in -hpe,1920-8g|\ -hpe,1920-16g|\ -hpe,1920-24g) - label_mac=$(mtd_get_mac_binary factory 0x68) - lan_mac=$label_mac - mac_count1=$(hexdump -v -n 4 -s 0x110 -e '4 "%d"' $(find_mtd_part factory) 2>/dev/null) - mac_count2=$(hexdump -v -n 4 -s 0x114 -e '4 "%d"' $(find_mtd_part factory) 2>/dev/null) - lan_mac_start=$(macaddr_add $lan_mac 2) - lan_mac_end=$(macaddr_add $lan_mac $((mac_count2-mac_count1))) - ;; *) lan_mac=$(mtd_get_mac_ascii u-boot-env2 mac_start) lan_mac_end=$(mtd_get_mac_ascii u-boot-env2 mac_end) @@ -47,11 +36,10 @@ esac ucidef_set_interface_macaddr "lan" $lan_mac ucidef_set_bridge_mac "$lan_mac" ucidef_set_network_device_mac eth0 $lan_mac -[ -z "$lan_mac_start" ] && lan_mac_start=$lan_mac for lan in $lan_list; do - ucidef_set_network_device_mac $lan $lan_mac_start - [ -z "$lan_mac_end" ] || [ "$lan_mac_start" == "$lan_mac_end" ] && lan_mac_start=$(macaddr_setbit_la $lan_mac_start) - lan_mac_start=$(macaddr_add $lan_mac_start 1) + ucidef_set_network_device_mac $lan $lan_mac + [ -z "$lan_mac_end" ] || [ "$lan_mac" == "$lan_mac_end" ] && lan_mac=$(macaddr_setbit_la $lan_mac) + lan_mac=$(macaddr_add $lan_mac 1) done [ -n "$label_mac" ] && ucidef_set_label_macaddr $label_mac |