diff options
Diffstat (limited to 'scripts')
-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 96f4f6f9b..227df6ffe 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 4ddb11613..ac2772d3f 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" |