[pkg-fso-commits] [SCM] Various non-packaged files branch, master, updated. 96fb873367a705202d37cb3f3b58055c6a3c891e

Joachim Breitner mail at joachim-breitner.de
Tue Dec 2 22:05:44 UTC 2008


The following commit has been merged in the master branch:
commit bfeed4561a05856b8f7401bff2ef13d5f787b617
Author: Michael <betheg at evil.elkcloner.org>
Date:   Tue Dec 2 23:03:21 2008 +0100

    Qi bootloader support

diff --git a/install.sh b/install.sh
index 1ec820b..0590174 100755
--- a/install.sh
+++ b/install.sh
@@ -36,6 +36,8 @@ APT_RECOMMENDS=${APT_RECOMMENDS:-false}
 DASH_BINSH=${DASH_BINSH:-true}
 FSO_MIRROR=${FSO_MIRROR:-http://pkg-fso.alioth.debian.org/debian}
 FSO_DEVICE=${FSO_DEVICE:-gta02}
+QI=${QI:-false}
+QI_VERBOSE_BOOT=${QI_VERBOSE_BOOT:-false}
 
 ### sanity check until the GTA01 installer will be merged
 if [ "${FSO_DEVICE}" != gta02 ]; then
@@ -154,6 +156,10 @@ Variables:
                    http://pkg-fso.alioth.debian.org/debian)
   FSO_DEVICE       the device the installation is being performed on
                    (default to gta02, possible value is gta02 only)
+  QI               if you use Qi bootloader set this to true 
+                   (default to false)
+  QI_VERBOSE_BOOT  set this to true if you want to see the kernel messages 
+                   do this only when QI=true (default to false)
 
 
 Stages:
@@ -638,6 +644,18 @@ apt-get --yes install linux-image-2.6.24-openmoko-gta02
 apt-get clean
 __END_CHROOT__
 echo "I: Kernel installed"
+
+if [ "$QI" = "true" ]; then
+	echo "Prepare system for booting with Qi"
+	mkdir $INST_DIR/boot/boot
+	( cd $INST_DIR/boot/boot && ln -s ../uImage.bin uImage-GTA02.bin )
+	
+	if [ "$QI_VERBOSE_BOOT" = "true" ]; then
+		echo "root=${SD_DEVICE}p2 console=tty0 loglevel=8" >$INST_DIR/boot/boot/append-GTA02
+	else
+		echo "root=${SD_DEVICE}p2" >$INST_DIR/boot/boot/append-GTA02
+	fi	
+fi
 ;;
 
 

-- 
Various non-packaged files



More information about the pkg-fso-commits mailing list