From 2b88563ee5aafd9571d965b7f2093a0f58d98a31 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Thu, 26 Nov 2020 12:02:21 +0100 Subject: realtek: update the tree to the latest refactored version MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * rename the target to realtek * add refactored DSA driver * add latest gpio driver * lots of arch cleanups * new irq driver * additional boards Signed-off-by: Bert Vermeulen Signed-off-by: Birger Koblitz Signed-off-by: Sander Vanheule Signed-off-by: Bjørn Mork Signed-off-by: John Crispin --- .../linux/rtl838x/base-files/etc/board.d/01_leds | 14 -------- .../rtl838x/base-files/etc/board.d/02_network | 41 ---------------------- target/linux/rtl838x/base-files/etc/inittab | 3 -- .../rtl838x/base-files/lib/upgrade/platform.sh | 19 ---------- 4 files changed, 77 deletions(-) delete mode 100755 target/linux/rtl838x/base-files/etc/board.d/01_leds delete mode 100755 target/linux/rtl838x/base-files/etc/board.d/02_network delete mode 100644 target/linux/rtl838x/base-files/etc/inittab delete mode 100644 target/linux/rtl838x/base-files/lib/upgrade/platform.sh (limited to 'target/linux/rtl838x/base-files') diff --git a/target/linux/rtl838x/base-files/etc/board.d/01_leds b/target/linux/rtl838x/base-files/etc/board.d/01_leds deleted file mode 100755 index 699ab817dd..0000000000 --- a/target/linux/rtl838x/base-files/etc/board.d/01_leds +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/sh - -. /lib/functions/uci-defaults.sh - -board=$(board_name) - -board_config_update - -case $board in -esac - -board_config_flush - -exit 0 diff --git a/target/linux/rtl838x/base-files/etc/board.d/02_network b/target/linux/rtl838x/base-files/etc/board.d/02_network deleted file mode 100755 index d745526d0e..0000000000 --- a/target/linux/rtl838x/base-files/etc/board.d/02_network +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/sh - -. /lib/functions.sh -. /lib/functions/uci-defaults.sh -. /lib/functions/system.sh - -rtl838x_setup_switch() -{ - local lan lan_list - - for lan in /sys/class/net/lan*; do - lan_list="$lan_list $(basename $lan)" - done - ucidef_set_interface_lan "$lan_list" -} - -rtl838x_setup_macs() -{ - local board="$1" - local lan_mac - local wan_mac - local label_mac - - case $board in - allnet,all-sg8208m) - lan_mac=$(mtd_get_mac_ascii u-boot-env ethaddr) - label_mac=$lan_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) -rtl838x_setup_switch -rtl838x_setup_macs $board -board_config_flush - -exit 0 diff --git a/target/linux/rtl838x/base-files/etc/inittab b/target/linux/rtl838x/base-files/etc/inittab deleted file mode 100644 index 9820e7144b..0000000000 --- a/target/linux/rtl838x/base-files/etc/inittab +++ /dev/null @@ -1,3 +0,0 @@ -::sysinit:/etc/init.d/rcS S boot -::shutdown:/etc/init.d/rcS K shutdown -::askconsole:/usr/libexec/login.sh diff --git a/target/linux/rtl838x/base-files/lib/upgrade/platform.sh b/target/linux/rtl838x/base-files/lib/upgrade/platform.sh deleted file mode 100644 index 927aadbe31..0000000000 --- a/target/linux/rtl838x/base-files/lib/upgrade/platform.sh +++ /dev/null @@ -1,19 +0,0 @@ -PART_NAME=firmware -REQUIRE_IMAGE_METADATA=1 - -RAMFS_COPY_BIN='fw_printenv fw_setenv' -RAMFS_COPY_DATA='/etc/fw_env.config /var/lock/fw_printenv.lock' - -platform_check_image() { - return 0 -} - -platform_do_upgrade() { - local board=$(board_name) - - case "$board" in - *) - default_do_upgrade "$1" - ;; - esac -} -- cgit v1.2.3