summaryrefslogtreecommitdiff
path: root/package/adkinstall
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-02-23 22:28:04 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2010-02-23 22:28:04 +0100
commit86d7ffda38b870dc96035feb4788ae1589aab11c (patch)
treef059bcc2b8a26525e791c12e3ea4f28d0bd77822 /package/adkinstall
parent488a2ab4bcb764ee9f4c50cbe31627b6e0c7d881 (diff)
optimize foxg20 target
- make cfgfs work, a small busybox fdisk patch needed - make adkinstall and adkupdate work
Diffstat (limited to 'package/adkinstall')
-rw-r--r--package/adkinstall/src/adkinstall.foxg2018
1 files changed, 4 insertions, 14 deletions
diff --git a/package/adkinstall/src/adkinstall.foxg20 b/package/adkinstall/src/adkinstall.foxg20
index 8d1e21483..4b0251309 100644
--- a/package/adkinstall/src/adkinstall.foxg20
+++ b/package/adkinstall/src/adkinstall.foxg20
@@ -3,22 +3,14 @@
# special script for foxboard netus aka foxg20
if [ -z $1 ];then
- printf "Please give your root tar archive as first parameter\n"
+ printf "Please give your root tar archive as parameter\n"
exit 1
fi
-if [ -z $2 ];then
- 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"
parted -s /dev/mmcblk0 mklabel msdos
@@ -32,15 +24,12 @@ parted -s /dev/mmcblk0 set 1 boot on
sfdisk --change-id /dev/mmcblk0 3 88 >/dev/null 2>&1
sleep 2
sync
-printf "Installing kernel\n"
-mount -t vfat /dev/mmcblk0p1 /mnt
-cp $2 /mnt/uImage
-sync
-umount /mnt
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
+mkdir /mnt/boot
+mount -t vfat /dev/mmcblk0p1 /mnt/boot
printf "Extracting install archive\n"
tar -C /mnt -xzpf $1
@@ -52,6 +41,7 @@ fi
chmod 1777 /mnt/tmp
chmod 4755 /mnt/bin/busybox
sync
+umount /mnt/boot
umount /mnt
if [ $? -ne 0 ];then
printf "Unmounting filesystem failed"