aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/cns3xxx/base-files
diff options
context:
space:
mode:
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-08-31 19:46:35 +0200
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-09-14 00:19:27 +0200
commita9790dff532e154a93b12abaeccd7889d9159791 (patch)
tree57e06c6743118d486bd3ffe4e85d0e20284abb8c /target/linux/cns3xxx/base-files
parent04d3b517dc3301e0148a2ce811ffc136568b04bd (diff)
downloadupstream-a9790dff532e154a93b12abaeccd7889d9159791.tar.gz
upstream-a9790dff532e154a93b12abaeccd7889d9159791.tar.bz2
upstream-a9790dff532e154a93b12abaeccd7889d9159791.zip
cns3xxx: drop target
This target has not been updated to 5.4 yet, and the only person trying it (Koen) decided to retreat based on the following reasons: - The target is not DT-aware at all - The huge amount of effort required - The SoC itself reached EoL at Cavium for some time now - Upstream removed some important parts as it's also slowly getting EoL over there - The commercial product that used this will fade out shortly - The amount of download for this binary suggest that the target is not that popular Since nobody has picked up the work since then, and this is the last remaining 4.19-only target, finally drop it now. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'target/linux/cns3xxx/base-files')
-rwxr-xr-xtarget/linux/cns3xxx/base-files/etc/init.d/netdev-cpu21
-rw-r--r--target/linux/cns3xxx/base-files/lib/cns3xxx.sh26
-rw-r--r--target/linux/cns3xxx/base-files/lib/preinit/01_sysinfo7
-rw-r--r--target/linux/cns3xxx/base-files/lib/upgrade/platform.sh19
4 files changed, 0 insertions, 73 deletions
diff --git a/target/linux/cns3xxx/base-files/etc/init.d/netdev-cpu b/target/linux/cns3xxx/base-files/etc/init.d/netdev-cpu
deleted file mode 100755
index 3a2a57bc1e..0000000000
--- a/target/linux/cns3xxx/base-files/etc/init.d/netdev-cpu
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/bin/sh /etc/rc.common
-
-START=99
-
-get_irq() {
- local name="$1"
- grep -m 1 "$name" /proc/interrupts | cut -d: -f1 | sed 's, *,,'
-}
-
-set_irq_affinity() {
- local name="$1"
- local val="$2"
- local irq="$(get_irq "$name")"
- [ -n "$irq" ] || return
- echo "$val" > "/proc/irq/$irq/smp_affinity"
-}
-
-start() {
- set_irq_affinity gig_switch 2
- set_irq_affinity gig_stat 2
-}
diff --git a/target/linux/cns3xxx/base-files/lib/cns3xxx.sh b/target/linux/cns3xxx/base-files/lib/cns3xxx.sh
deleted file mode 100644
index ec694c4f7a..0000000000
--- a/target/linux/cns3xxx/base-files/lib/cns3xxx.sh
+++ /dev/null
@@ -1,26 +0,0 @@
-CNS3XXX_BOARD_NAME=
-CNS3XXX_MODEL=
-
-cns3xxx_board_detect() {
- local machine
- local name
-
- machine=$(awk 'BEGIN{FS="[ \t]+:[ \t]"} /Hardware/ {print $2}' /proc/cpuinfo)
-
- case "$machine" in
- "Gateworks Corporation Laguna"*)
- name="laguna"
- ;;
- *)
- name="generic";
- ;;
- esac
-
- [ -z "$CNS3XXX_BOARD_NAME" ] && CNS3XXX_BOARD_NAME="$name"
- [ -z "$CNS3XXX_MODEL" ] && CNS3XXX_MODEL="$machine"
-
- [ -e "/tmp/sysinfo/" ] || mkdir -p "/tmp/sysinfo/"
-
- echo "$CNS3XXX_BOARD_NAME" > /tmp/sysinfo/board_name
- echo "$CNS3XXX_MODEL" > /tmp/sysinfo/model
-}
diff --git a/target/linux/cns3xxx/base-files/lib/preinit/01_sysinfo b/target/linux/cns3xxx/base-files/lib/preinit/01_sysinfo
deleted file mode 100644
index 155fee42e0..0000000000
--- a/target/linux/cns3xxx/base-files/lib/preinit/01_sysinfo
+++ /dev/null
@@ -1,7 +0,0 @@
-do_sysinfo_cns3xxx() {
- . /lib/cns3xxx.sh
-
- cns3xxx_board_detect
-}
-
-boot_hook_add preinit_main do_sysinfo_cns3xxx
diff --git a/target/linux/cns3xxx/base-files/lib/upgrade/platform.sh b/target/linux/cns3xxx/base-files/lib/upgrade/platform.sh
deleted file mode 100644
index 58dd6d7590..0000000000
--- a/target/linux/cns3xxx/base-files/lib/upgrade/platform.sh
+++ /dev/null
@@ -1,19 +0,0 @@
-PART_NAME=firmware
-
-CI_BLKSZ=65536
-
-platform_check_image() {
- local magic="$(get_magic_long "$1")"
-
- [ "$#" -gt 1 ] && return 1
-
- [ "$magic" != "27051956" ] && {
- echo "Invalid image type."
- return 1
- }
- return 0
-}
-
-platform_do_upgrade() {
- default_do_upgrade "$1"
-}