diff options
| author | Richard Purdie <richard@openedhand.com> | 2008-04-23 09:58:18 +0000 | 
|---|---|---|
| committer | Richard Purdie <richard@openedhand.com> | 2008-04-23 09:58:18 +0000 | 
| commit | 8add63f66da98d1ca4c38b21f3912a1995b2d045 (patch) | |
| tree | c242bb517ead7184db4ca5a32c11e3c7460a5ad3 | |
| parent | c7005b754083ba6a30994967b935ed9a764601b4 (diff) | |
| download | openembedded-core-8add63f66da98d1ca4c38b21f3912a1995b2d045.tar.gz openembedded-core-8add63f66da98d1ca4c38b21f3912a1995b2d045.tar.bz2 openembedded-core-8add63f66da98d1ca4c38b21f3912a1995b2d045.zip | |
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
| -rwxr-xr-x | scripts/poky-qemu | 3 | ||||
| -rwxr-xr-x | scripts/poky-qemu-internal | 38 | 
2 files changed, 29 insertions, 12 deletions
| diff --git a/scripts/poky-qemu b/scripts/poky-qemu index 96f4f6f9b7..227df6ffe9 100755 --- a/scripts/poky-qemu +++ b/scripts/poky-qemu @@ -48,6 +48,9 @@ else      if [ "$MACHINE" = "nokia800" ]; then          TYPE="jffs2"      fi +    if [ "$MACHINE" = "nokia800-maemo" ]; then +        TYPE="jffs2" +    fi      HDIMAGE=$2  fi 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  	"akita") ;;  	"spitz") ;;  	"nokia800") ;; +	"nokia800-maemo") ;;  	*)  		echo "Error: Unsupported machine type $MACHINE"  		return @@ -136,18 +137,6 @@ if [ "$MACHINE" = "nokia800" ]; then      if [ "$TYPE" = "jffs2" ]; then          HDIMAGE=`readlink -f $HDIMAGE`          if [ ! -e "$HDIMAGE.qemuflash" ]; then -            #if [ ! -e "$HDIMAGE.initfs" ]; then -            #    echo "Error, $HDIMAGE.initfs must exist!" -            #    return -            #fi -            #if [ ! -e "$HDIMAGE.config" ]; then -            #    echo "Error, $HDIMAGE.config must exist!" -            #    return -            #fi -            #echo "'Flashing' config partition, please wait..." -            #poky-nokia800-flashutil $HDIMAGE.config $HDIMAGE.qemuflash config -            #echo "'Flashing' initfs, please wait..." -            #poky-nokia800-flashutil $HDIMAGE.initfs $HDIMAGE.qemuflash initfs              echo "'Flashing' rootfs, please wait..."              poky-nokia800-flashutil $HDIMAGE $HDIMAGE.qemuflash           fi @@ -156,6 +145,31 @@ if [ "$MACHINE" = "nokia800" ]; then      fi  fi +if [ "$MACHINE" = "nokia800-maemo" ]; then +    QEMU=qemu-system-arm +    if [ "$TYPE" = "jffs2" ]; then +        HDIMAGE=`readlink -f $HDIMAGE` +        if [ ! -e "$HDIMAGE.qemuflash" ]; then +            if [ ! -e "$HDIMAGE.initfs" ]; then +                echo "Error, $HDIMAGE.initfs must exist!" +                return +            fi +            if [ ! -e "$HDIMAGE.config" ]; then +                echo "Error, $HDIMAGE.config must exist!" +                echo "To generate it, take an n800 and cat /dev/mtdblock1 > $HDIMAGE.config" +                return +            fi +            echo "'Flashing' config partition, please wait..." +            poky-nokia800-flashutil $HDIMAGE.config $HDIMAGE.qemuflash config +            echo "'Flashing' initfs, please wait..." +            poky-nokia800-flashutil $HDIMAGE.initfs $HDIMAGE.qemuflash initfs +            echo "'Flashing' rootfs, please wait..." +            poky-nokia800-flashutil $HDIMAGE $HDIMAGE.qemuflash  +        fi +	KERNCMDLINE="" +        QEMUOPTIONS="$QEMU_NETWORK_CMD -M n800 -mtdblock $HDIMAGE.qemuflash -serial vc -m 130 -serial vc -serial vc -serial vc" +    fi +fi  if [ "x$QEMUOPTIONS" = "x" ]; then      echo "Error: Unable to support this combination of options" | 
