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
This commit is contained in:
parent
c7005b7540
commit
8add63f66d
|
@ -48,6 +48,9 @@ else
|
||||||
if [ "$MACHINE" = "nokia800" ]; then
|
if [ "$MACHINE" = "nokia800" ]; then
|
||||||
TYPE="jffs2"
|
TYPE="jffs2"
|
||||||
fi
|
fi
|
||||||
|
if [ "$MACHINE" = "nokia800-maemo" ]; then
|
||||||
|
TYPE="jffs2"
|
||||||
|
fi
|
||||||
HDIMAGE=$2
|
HDIMAGE=$2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -51,6 +51,7 @@ case "$MACHINE" in
|
||||||
"akita") ;;
|
"akita") ;;
|
||||||
"spitz") ;;
|
"spitz") ;;
|
||||||
"nokia800") ;;
|
"nokia800") ;;
|
||||||
|
"nokia800-maemo") ;;
|
||||||
*)
|
*)
|
||||||
echo "Error: Unsupported machine type $MACHINE"
|
echo "Error: Unsupported machine type $MACHINE"
|
||||||
return
|
return
|
||||||
|
@ -136,18 +137,6 @@ if [ "$MACHINE" = "nokia800" ]; then
|
||||||
if [ "$TYPE" = "jffs2" ]; then
|
if [ "$TYPE" = "jffs2" ]; then
|
||||||
HDIMAGE=`readlink -f $HDIMAGE`
|
HDIMAGE=`readlink -f $HDIMAGE`
|
||||||
if [ ! -e "$HDIMAGE.qemuflash" ]; then
|
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..."
|
echo "'Flashing' rootfs, please wait..."
|
||||||
poky-nokia800-flashutil $HDIMAGE $HDIMAGE.qemuflash
|
poky-nokia800-flashutil $HDIMAGE $HDIMAGE.qemuflash
|
||||||
fi
|
fi
|
||||||
|
@ -156,6 +145,31 @@ if [ "$MACHINE" = "nokia800" ]; then
|
||||||
fi
|
fi
|
||||||
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
|
if [ "x$QEMUOPTIONS" = "x" ]; then
|
||||||
echo "Error: Unable to support this combination of options"
|
echo "Error: Unable to support this combination of options"
|
||||||
|
|
Loading…
Reference in New Issue