summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-02-22 20:08:35 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2010-02-22 20:08:35 +0100
commit488a2ab4bcb764ee9f4c50cbe31627b6e0c7d881 (patch)
tree814403e417bf4f6aa9b2a693a9403d925d98e3dd /package
parent9bc792f14aed0da0aa2e35cde15438fd8a817755 (diff)
optimize kernel config for foxg20
- boot from microsd now works - finetune adkinstall
Diffstat (limited to 'package')
-rw-r--r--package/adkinstall/src/adkinstall.foxg2017
1 files changed, 14 insertions, 3 deletions
diff --git a/package/adkinstall/src/adkinstall.foxg20 b/package/adkinstall/src/adkinstall.foxg20
index fec746ef0..8d1e21483 100644
--- a/package/adkinstall/src/adkinstall.foxg20
+++ b/package/adkinstall/src/adkinstall.foxg20
@@ -7,8 +7,17 @@ if [ -z $1 ];then
exit 1
fi
if [ -z $2 ];then
- printf "Please give your kernel as second parameter\n"
- exit 1
+ printf "Please give your kernel as second parameter\n"
+ exit 1
+fi
+
+if [ ! -f $1 ];then
+ printf "given root tar archive does not exist\n"
+ exit 1
+fi
+if [ ! -f $2 ];then
+ printf "given kernel does not exist\n"
+ exit 1
fi
printf "Creating partition scheme\n"
@@ -28,7 +37,9 @@ mount -t vfat /dev/mmcblk0p1 /mnt
cp $2 /mnt/uImage
sync
umount /mnt
-mke2fs /dev/mmcblk0p2
+printf "Creating ext2 filesystem\n"
+mke2fs /dev/mmcblk0p2 >/dev/null 2>&1
+tune2fs -c0 -i0 /dev/mmcblk0p2 >/dev/null 2>&1
mount -t ext2 /dev/mmcblk0p2 /mnt
printf "Extracting install archive\n"