diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2023-02-13 17:58:26 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2023-02-19 14:22:38 +0100 |
commit | e9bdfe72927eb5e286ad1797d4afa81c82773f80 (patch) | |
tree | a5e5064d2406298ab5b48e658f2be5b47835cbb9 /scripts | |
parent | 39492d1d2f90d66931802d76677f8d0d0091dbcf (diff) |
atmel-ngw100: fix sd card boot
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/install.sh | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/scripts/install.sh b/scripts/install.sh index f62486155..8c7c4c938 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash #- -# Copyright © 2010-2022 +# Copyright © 2010-2023 # Waldemar Brodkorb <wbx@openadk.org> # Thorsten Glaser <tg@mirbsd.org> # @@ -155,7 +155,7 @@ tgt=$2 src=$3 case $target { -(banana-pro|banana-pro-zero|orange-pi0|pcengines-apu|phytec-imx6|phytec-wega|raspberry-pi|raspberry-pi0|raspberry-pi2|raspberry-pi3|raspberry-pi3-64|raspberry-pi4|raspberry-pi4-64|rockpi4-plus|solidrun-imx6|solidrun-clearfog|imgtec-ci20|default) ;; +(atmel-ngw100|banana-pro|banana-pro-zero|orange-pi0|pcengines-apu|phytec-imx6|phytec-wega|raspberry-pi|raspberry-pi0|raspberry-pi2|raspberry-pi3|raspberry-pi3-64|raspberry-pi4|raspberry-pi4-64|rockpi4-plus|solidrun-imx6|solidrun-clearfog|imgtec-ci20|default) ;; (*) print -u2 "Unknown target '$target', exiting" exit 1 ;; @@ -571,8 +571,15 @@ case $target { ;; } -(( noformat )) || create_fs "$rootpart" ADKROOT ext4 -(( noformat )) || tune_fs "$rootpart" +case $target { +(atmel-ngw100) + (( noformat )) || create_fs "$rootpart" ADKROOT ext2 + (( noformat )) || tune_fs "$rootpart" + ;; +(*) + (( noformat )) || create_fs "$rootpart" ADKROOT ext4 + (( noformat )) || tune_fs "$rootpart" +} (( quiet )) || print Extracting installation archive... mount_fs "$rootpart" "$R" ext4 |