aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/sunxi/base-files/lib/preinit
diff options
context:
space:
mode:
authorYousong Zhou <yszhou4tech@gmail.com>2017-01-04 22:19:30 +0800
committerFelix Fietkau <nbd@nbd.name>2017-01-05 11:09:15 +0100
commit0ac00c931cc6f0c8a1b9a546f6d9aaa275e8959a (patch)
treebdf860c6d725cfe091882b933afa8cf471d5eb41 /target/linux/sunxi/base-files/lib/preinit
parent5ece16fd237688f8f8d33cd4bbc5137733365215 (diff)
downloadupstream-0ac00c931cc6f0c8a1b9a546f6d9aaa275e8959a.tar.gz
upstream-0ac00c931cc6f0c8a1b9a546f6d9aaa275e8959a.tar.bz2
upstream-0ac00c931cc6f0c8a1b9a546f6d9aaa275e8959a.zip
sunxi: use fwtool for checking sdcard images
To achieve this, device tree compatible string was used as boardname and the value of it will be checked against supported_devices list. It should be noted that we do not distinguish between sun5i-a13-olimex-som and sun5i-a13-olinuxino as they share the same dts file. The other thing is that we need to gunzip the generated firmware to do fwtool check. Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
Diffstat (limited to 'target/linux/sunxi/base-files/lib/preinit')
-rw-r--r--target/linux/sunxi/base-files/lib/preinit/01_preinit_sunxi.sh9
-rw-r--r--target/linux/sunxi/base-files/lib/preinit/02_b53_hack.sh2
2 files changed, 1 insertions, 10 deletions
diff --git a/target/linux/sunxi/base-files/lib/preinit/01_preinit_sunxi.sh b/target/linux/sunxi/base-files/lib/preinit/01_preinit_sunxi.sh
deleted file mode 100644
index f221dbc582..0000000000
--- a/target/linux/sunxi/base-files/lib/preinit/01_preinit_sunxi.sh
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/sh
-
-do_sunxi() {
- . /lib/sunxi.sh
-
- sunxi_board_detect
-}
-
-boot_hook_add preinit_main do_sunxi
diff --git a/target/linux/sunxi/base-files/lib/preinit/02_b53_hack.sh b/target/linux/sunxi/base-files/lib/preinit/02_b53_hack.sh
index 84070de3eb..7f508ff918 100644
--- a/target/linux/sunxi/base-files/lib/preinit/02_b53_hack.sh
+++ b/target/linux/sunxi/base-files/lib/preinit/02_b53_hack.sh
@@ -4,7 +4,7 @@
do_b53_hack() {
# hack: enable switch on Lamobo R1 and reset counters
case "$( sunxi_board_name )" in
- "lamobo-r1")
+ "lamobo,lamobo-r1")
ifconfig eth0 up
sleep 1
swconfig dev switch0 set reset 1