diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/poky-qemu | 2 | ||||
-rwxr-xr-x | scripts/poky-qemu-internal | 14 |
2 files changed, 8 insertions, 8 deletions
diff --git a/scripts/poky-qemu b/scripts/poky-qemu index caac03c254..c74a16f4a6 100755 --- a/scripts/poky-qemu +++ b/scripts/poky-qemu | |||
@@ -18,7 +18,7 @@ | |||
18 | 18 | ||
19 | if [ "x$1" = "x" ]; then | 19 | if [ "x$1" = "x" ]; then |
20 | MYNAME=`basename $0` | 20 | MYNAME=`basename $0` |
21 | echo -e "\nRun as MACHINE=xyz $MYNAME ZIMAGE IMAGEFILE" | 21 | echo "Run as MACHINE=xyz $MYNAME ZIMAGE IMAGEFILE" |
22 | echo "where:" | 22 | echo "where:" |
23 | echo " ZIMAGE - the kernel image file to use" | 23 | echo " ZIMAGE - the kernel image file to use" |
24 | echo " IMAGEFILE - the image file/location to use" | 24 | echo " IMAGEFILE - the image file/location to use" |
diff --git a/scripts/poky-qemu-internal b/scripts/poky-qemu-internal index e13f1b6dbe..a88f52ace8 100755 --- a/scripts/poky-qemu-internal +++ b/scripts/poky-qemu-internal | |||
@@ -41,17 +41,17 @@ if [ "x$SERIAL_LOGFILE" != "x" ]; then | |||
41 | fi | 41 | fi |
42 | 42 | ||
43 | if [ "$TYPE" != "nfs" -a ! -f "$HDIMAGE" ]; then | 43 | if [ "$TYPE" != "nfs" -a ! -f "$HDIMAGE" ]; then |
44 | echo -e "\nError, image file $HDIMAGE doesn't exist" | 44 | echo "Error, image file $HDIMAGE doesn't exist" |
45 | exit 1 | 45 | exit 1 |
46 | fi | 46 | fi |
47 | 47 | ||
48 | if [ ! -f "$ZIMAGE" ]; then | 48 | if [ ! -f "$ZIMAGE" ]; then |
49 | echo -e "\nError, kernel image file $ZIMAGE doesn't exist" | 49 | echo "Error, kernel image file $ZIMAGE doesn't exist" |
50 | exit 1 | 50 | exit 1 |
51 | fi | 51 | fi |
52 | 52 | ||
53 | if [ "$MACHINE" != "qemuarm" -a "$MACHINE" != "qemux86" ]; then | 53 | if [ "$MACHINE" != "qemuarm" -a "$MACHINE" != "qemux86" ]; then |
54 | echo -e "\nError, unsupported machine type $MACHINE" | 54 | echo "Error, unsupported machine type $MACHINE" |
55 | exit 1 | 55 | exit 1 |
56 | fi | 56 | fi |
57 | 57 | ||
@@ -65,7 +65,7 @@ if [ "$MACHINE" = "qemuarm" ]; then | |||
65 | HDIMAGE=/srv/nfs/qemuarm | 65 | HDIMAGE=/srv/nfs/qemuarm |
66 | fi | 66 | fi |
67 | if [ ! -d "$HDIMAGE" ]; then | 67 | if [ ! -d "$HDIMAGE" ]; then |
68 | echo -e "\nError, NFS mount point $HDIMAGE doesn't exist" | 68 | echo "Error, NFS mount point $HDIMAGE doesn't exist" |
69 | exit 1 | 69 | exit 1 |
70 | fi | 70 | fi |
71 | QEMUOPTIONS="-append \"root=/dev/nfs nfsroot=192.168.7.1:$HDIMAGE rw $KERNEL_NETWORK_CMD\" $QEMU_NETWORK_CMD -M versatilepb" | 71 | QEMUOPTIONS="-append \"root=/dev/nfs nfsroot=192.168.7.1:$HDIMAGE rw $KERNEL_NETWORK_CMD\" $QEMU_NETWORK_CMD -M versatilepb" |
@@ -82,7 +82,7 @@ if [ "$MACHINE" = "qemux86" ]; then | |||
82 | HDIMAGE=/srv/nfs/qemux86 | 82 | HDIMAGE=/srv/nfs/qemux86 |
83 | fi | 83 | fi |
84 | if [ ! -d "$HDIMAGE" ]; then | 84 | if [ ! -d "$HDIMAGE" ]; then |
85 | echo -e "\nError, NFS mount point $HDIMAGE doesn't exist." | 85 | echo "Error, NFS mount point $HDIMAGE doesn't exist." |
86 | exit 1 | 86 | exit 1 |
87 | fi | 87 | fi |
88 | QEMUOPTIONS="-std-vga -append \"root=/dev/nfs nfsroot=192.168.7.1:$HDIMAGE rw $KERNEL_NETWORK_CMD\" $QEMU_NETWORK_CMD" | 88 | QEMUOPTIONS="-std-vga -append \"root=/dev/nfs nfsroot=192.168.7.1:$HDIMAGE rw $KERNEL_NETWORK_CMD\" $QEMU_NETWORK_CMD" |
@@ -118,11 +118,11 @@ if [ "$MACHINE" = "akita" ]; then | |||
118 | fi | 118 | fi |
119 | 119 | ||
120 | if [ "x$QEMUOPTIONS" = "x" ]; then | 120 | if [ "x$QEMUOPTIONS" = "x" ]; then |
121 | echo -e "\nError, unable to support this combination of options" | 121 | echo "Error, unable to support this combination of options" |
122 | exit 1 | 122 | exit 1 |
123 | fi | 123 | fi |
124 | 124 | ||
125 | echo -e "\nRunning $QEMU using sudo..." | 125 | echo "Running $QEMU using sudo..." |
126 | echo "$QEMU -kernel $ZIMAGE $QEMUOPTIONS $SERIALOPTS" | 126 | echo "$QEMU -kernel $ZIMAGE $QEMUOPTIONS $SERIALOPTS" |
127 | sudo $QEMU -kernel $ZIMAGE $QEMUOPTIONS $SERIALOPTS | 127 | sudo $QEMU -kernel $ZIMAGE $QEMUOPTIONS $SERIALOPTS |
128 | 128 | ||