summaryrefslogtreecommitdiffstats
path: root/scripts/poky-qemu-internal
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2008-04-23 09:58:18 +0000
committerRichard Purdie <richard@openedhand.com>2008-04-23 09:58:18 +0000
commit8add63f66da98d1ca4c38b21f3912a1995b2d045 (patch)
treec242bb517ead7184db4ca5a32c11e3c7460a5ad3 /scripts/poky-qemu-internal
parentc7005b754083ba6a30994967b935ed9a764601b4 (diff)
downloadpoky-8add63f66da98d1ca4c38b21f3912a1995b2d045.tar.gz
scripts/poky-qemu: Add support for the nokia800-maemo machine
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4315 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'scripts/poky-qemu-internal')
-rwxr-xr-xscripts/poky-qemu-internal38
1 files changed, 26 insertions, 12 deletions
diff --git a/scripts/poky-qemu-internal b/scripts/poky-qemu-internal
index 4ddb116130..ac2772d3f9 100755
--- a/scripts/poky-qemu-internal
+++ b/scripts/poky-qemu-internal
@@ -51,6 +51,7 @@ case "$MACHINE" in
51 "akita") ;; 51 "akita") ;;
52 "spitz") ;; 52 "spitz") ;;
53 "nokia800") ;; 53 "nokia800") ;;
54 "nokia800-maemo") ;;
54 *) 55 *)
55 echo "Error: Unsupported machine type $MACHINE" 56 echo "Error: Unsupported machine type $MACHINE"
56 return 57 return
@@ -136,18 +137,6 @@ if [ "$MACHINE" = "nokia800" ]; then
136 if [ "$TYPE" = "jffs2" ]; then 137 if [ "$TYPE" = "jffs2" ]; then
137 HDIMAGE=`readlink -f $HDIMAGE` 138 HDIMAGE=`readlink -f $HDIMAGE`
138 if [ ! -e "$HDIMAGE.qemuflash" ]; then 139 if [ ! -e "$HDIMAGE.qemuflash" ]; then
139 #if [ ! -e "$HDIMAGE.initfs" ]; then
140 # echo "Error, $HDIMAGE.initfs must exist!"
141 # return
142 #fi
143 #if [ ! -e "$HDIMAGE.config" ]; then
144 # echo "Error, $HDIMAGE.config must exist!"
145 # return
146 #fi
147 #echo "'Flashing' config partition, please wait..."
148 #poky-nokia800-flashutil $HDIMAGE.config $HDIMAGE.qemuflash config
149 #echo "'Flashing' initfs, please wait..."
150 #poky-nokia800-flashutil $HDIMAGE.initfs $HDIMAGE.qemuflash initfs
151 echo "'Flashing' rootfs, please wait..." 140 echo "'Flashing' rootfs, please wait..."
152 poky-nokia800-flashutil $HDIMAGE $HDIMAGE.qemuflash 141 poky-nokia800-flashutil $HDIMAGE $HDIMAGE.qemuflash
153 fi 142 fi
@@ -156,6 +145,31 @@ if [ "$MACHINE" = "nokia800" ]; then
156 fi 145 fi
157fi 146fi
158 147
148if [ "$MACHINE" = "nokia800-maemo" ]; then
149 QEMU=qemu-system-arm
150 if [ "$TYPE" = "jffs2" ]; then
151 HDIMAGE=`readlink -f $HDIMAGE`
152 if [ ! -e "$HDIMAGE.qemuflash" ]; then
153 if [ ! -e "$HDIMAGE.initfs" ]; then
154 echo "Error, $HDIMAGE.initfs must exist!"
155 return
156 fi
157 if [ ! -e "$HDIMAGE.config" ]; then
158 echo "Error, $HDIMAGE.config must exist!"
159 echo "To generate it, take an n800 and cat /dev/mtdblock1 > $HDIMAGE.config"
160 return
161 fi
162 echo "'Flashing' config partition, please wait..."
163 poky-nokia800-flashutil $HDIMAGE.config $HDIMAGE.qemuflash config
164 echo "'Flashing' initfs, please wait..."
165 poky-nokia800-flashutil $HDIMAGE.initfs $HDIMAGE.qemuflash initfs
166 echo "'Flashing' rootfs, please wait..."
167 poky-nokia800-flashutil $HDIMAGE $HDIMAGE.qemuflash
168 fi
169 KERNCMDLINE=""
170 QEMUOPTIONS="$QEMU_NETWORK_CMD -M n800 -mtdblock $HDIMAGE.qemuflash -serial vc -m 130 -serial vc -serial vc -serial vc"
171 fi
172fi
159 173
160if [ "x$QEMUOPTIONS" = "x" ]; then 174if [ "x$QEMUOPTIONS" = "x" ]; then
161 echo "Error: Unable to support this combination of options" 175 echo "Error: Unable to support this combination of options"