summaryrefslogtreecommitdiff
path: root/target/linux/imx6/base-files
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/imx6/base-files')
-rw-r--r--target/linux/imx6/base-files/etc/uci-defaults/02_network34
-rwxr-xr-xtarget/linux/imx6/base-files/lib/imx6.sh68
-rwxr-xr-xtarget/linux/imx6/base-files/lib/upgrade/platform.sh19
3 files changed, 0 insertions, 121 deletions
diff --git a/target/linux/imx6/base-files/etc/uci-defaults/02_network b/target/linux/imx6/base-files/etc/uci-defaults/02_network
deleted file mode 100644
index 0e60e22..0000000
--- a/target/linux/imx6/base-files/etc/uci-defaults/02_network
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/bin/sh
-#
-# Copyright (C) 2013 OpenWrt.org
-#
-
-[ -e /etc/config/network ] && exit 0
-
-touch /etc/config/network
-
-. /lib/functions/uci-defaults.sh
-. /lib/imx6.sh
-
-board=$(imx6_board_name)
-
-ucidef_set_interface_loopback
-
-case "$board" in
-"gw51xx" |\
-"gw52xx")
- ucidef_set_interface_lan 'eth0'
- ;;
-"gw53xx" |\
-"gw54xx" |\
-"gw552x")
- ucidef_set_interfaces_lan_wan 'eth0' 'eth1'
- ;;
-"wandboard")
- ucidef_set_interface_wan 'eth0'
- ;;
-esac
-
-uci commit network
-
-exit 0
diff --git a/target/linux/imx6/base-files/lib/imx6.sh b/target/linux/imx6/base-files/lib/imx6.sh
deleted file mode 100755
index 360ec58..0000000
--- a/target/linux/imx6/base-files/lib/imx6.sh
+++ /dev/null
@@ -1,68 +0,0 @@
-#!/bin/sh
-#
-# Copyright (C) 2010-2013 OpenWrt.org
-#
-
-IMX6_BOARD_NAME=
-IMX6_MODEL=
-
-imx6_board_detect() {
- local machine
- local name
-
- machine=$(cat /proc/device-tree/model)
-
- case "$machine" in
- "Gateworks Ventana i.MX6 DualLite/Solo GW51XX" |\
- "Gateworks Ventana i.MX6 Dual/Quad GW51XX")
- name="gw51xx"
- ;;
-
- "Gateworks Ventana i.MX6 DualLite/Solo GW52XX" |\
- "Gateworks Ventana i.MX6 Dual/Quad GW52XX")
- name="gw52xx"
- ;;
-
- "Gateworks Ventana i.MX6 DualLite/Solo GW53XX" |\
- "Gateworks Ventana i.MX6 Dual/Quad GW53XX")
- name="gw53xx"
- ;;
-
- "Gateworks Ventana i.MX6 DualLite/Solo GW54XX" |\
- "Gateworks Ventana i.MX6 Dual/Quad GW54XX" |\
- "Gateworks Ventana GW5400-A")
- name="gw54xx"
- ;;
-
- "Gateworks Ventana i.MX6 DualLite/Solo GW552X" |\
- "Gateworks Ventana i.MX6 Dual/Quad GW552X")
- name="gw552x"
- ;;
-
- "Wandboard i.MX6 Dual Lite Board")
- name="wandboard"
- ;;
-
- *)
- name="generic"
- ;;
- esac
-
- [ -z "$IMX6_BOARD_NAME" ] && IMX6_BOARD_NAME="$name"
- [ -z "$IMX6_MODEL" ] && IMX6_MODEL="$machine"
-
- [ -e "/tmp/sysinfo/" ] || mkdir -p "/tmp/sysinfo/"
-
- echo "$IMX6_BOARD_NAME" > /tmp/sysinfo/board_name
- echo "$IMX6_MODEL" > /tmp/sysinfo/model
-}
-
-imx6_board_name() {
- local name
-
- [ -f /tmp/sysinfo/board_name ] || imx6_board_detect
- [ -f /tmp/sysinfo/board_name ] && name=$(cat /tmp/sysinfo/board_name)
- [ -z "$name" ] && name="unknown"
-
- echo "$name"
-}
diff --git a/target/linux/imx6/base-files/lib/upgrade/platform.sh b/target/linux/imx6/base-files/lib/upgrade/platform.sh
deleted file mode 100755
index c34a47b..0000000
--- a/target/linux/imx6/base-files/lib/upgrade/platform.sh
+++ /dev/null
@@ -1,19 +0,0 @@
-#
-# Copyright (C) 2010 OpenWrt.org
-#
-
-. /lib/imx6.sh
-
-platform_check_image() {
- local board=$(imx6_board_name)
-
- case "$board" in
- gw54xx)
- nand_do_platform_check $board $1
- return $?;
- ;;
- esac
-
- echo "Sysupgrade is not yet supported on $board."
- return 1
-}