summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2019-10-08 12:01:55 (GMT)
committerWaldemar Brodkorb <wbx@openadk.org>2019-10-08 12:03:13 (GMT)
commit9e4231e908d4d1f62db34295466419d49af8ab49 (patch)
treec7ccbb218e04bcf60f0814c813759364ea2be74e
parentd812e398b72377c561bda5e6669c30b5e00419d8 (diff)
more basic support for sd card creation for phytec-imx6
-rwxr-xr-xscripts/install.sh17
-rw-r--r--target/arm/Makefile2
2 files changed, 14 insertions, 5 deletions
diff --git a/scripts/install.sh b/scripts/install.sh
index 5f929b2..9f0deba 100755
--- a/scripts/install.sh
+++ b/scripts/install.sh
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
#-
-# Copyright © 2010-2017
+# Copyright © 2010-2019
# Waldemar Brodkorb <wbx@openadk.org>
# Thorsten Glaser <tg@mirbsd.org>
#
@@ -155,7 +155,7 @@ tgt=$2
src=$3
case $target {
-(banana-pro|orange-pi0|pcengines-apu|phytec-wega|raspberry-pi|raspberry-pi0|raspberry-pi2|raspberry-pi3|raspberry-pi3-64|raspberry-pi3p|raspberry-pi3p-64|solidrun-imx6|solidrun-clearfog|default) ;;
+(banana-pro|orange-pi0|pcengines-apu|phytec-imx6|phytec-wega|raspberry-pi|raspberry-pi0|raspberry-pi2|raspberry-pi3|raspberry-pi3-64|raspberry-pi3p|raspberry-pi3p-64|solidrun-imx6|solidrun-clearfog|default) ;;
(*)
print -u2 "Unknown target '$target', exiting"
exit 1 ;;
@@ -551,7 +551,7 @@ case $target {
(solidrun-clearfog)
dd if="$fwdir/u-boot-spl.kwb" of="$tgt" bs=512 seek=1 > /dev/null 2>&1
;;
-(solidrun-imx6)
+(solidrun-imx6|phytec-imx6)
dd if="$fwdir/SPL" of="$tgt" bs=1024 seek=1 > /dev/null 2>&1
dd if="$fwdir/u-boot.img" of="$tgt" bs=1024 seek=69 > /dev/null 2>&1
;;
@@ -581,7 +581,7 @@ if (( datafssz )); then
(banana-pro|orange-pi0|solidrun-clearfog)
echo "/dev/mmcblk0p2 /data ext4 rw 0 0" >> "$R"/etc/fstab
;;
- (solidrun-imx6)
+ (solidrun-imx6|phytec-imx6)
echo "/dev/mmcblk1p2 /data ext4 rw 0 0" >> "$R"/etc/fstab
;;
}
@@ -645,6 +645,15 @@ case $target {
-n "SolidrunImx6" \
-d $fwdir/boot.script.imx6 $R/boot/boot.scr.uimg
;;
+(phytec-imx6)
+ for x in "$fwdir"/*.dtb; do
+ [[ -e "$x" ]] && cp "$fwdir"/*.dtb "$R/boot/"
+ break
+ done
+ mkimage -A arm -O linux -T script -C none -a 0 -e 0 \
+ -n "PhytecImx6" \
+ -d $fwdir/boot.script.phytec $R/boot/boot.scr.uimg
+ ;;
(orange-pi0)
for x in "$fwdir"/*.dtb; do
[[ -e "$x" ]] && cp "$fwdir"/*.dtb "$R/boot/"
diff --git a/target/arm/Makefile b/target/arm/Makefile
index 5b7be21..b5530bb 100644
--- a/target/arm/Makefile
+++ b/target/arm/Makefile
@@ -81,7 +81,7 @@ ifeq ($(ADK_TARGET_SYSTEM_PHYTEC_WEGA),y)
endif
ifeq ($(ADK_TARGET_SYSTEM_PHYTEC_IMX6),y)
@echo "Use following command to install it on SD card:"
- @echo "sudo ./scripts/install.sh phytec-mira /dev/sdX $(FW_DIR)/$(ROOTFSTARBALL)"
+ @echo "sudo ./scripts/install.sh phytec-imx6 /dev/sdX $(FW_DIR)/$(ROOTFSTARBALL)"
@echo
endif
ifeq ($(ADK_TARGET_SYSTEM_BANANA_PRO),y)