<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Bruce,<div><br><div><div>On Aug 26, 2013, at 11:08 PM, Bruce Ashfield &lt;<a href="mailto:bruce.ashfield@windriver.com">bruce.ashfield@windriver.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Are you interested in something from scratch, versus something that<br>isn't already partially in the tree (like qemuarma9) ?<br><br>We've got a few docs and tutorials, but I can also help step you through<br>the process to assist the existing material.<br></blockquote></div><br><div>I'd like to adapt the existing linux-yocto standard/base branch, and build up on existing qemuarma9 support. I've included detailed patch fragments below, so that you can replicate the current state of my work at your end.</div></div><div><br></div><div>I've performed the following steps till date, but unfortunately get a qemu ram / rom out of memory address error after doing all this. Must be because of an incorrectly mapped KMACHINE. The vexpress device doesn't support PCI, IDE or SCSI, only microsd card or ram devices, so the boot method should use an initrd file, for the root filesystem, as described here.</div><div><br></div><div><a href="https://wiki.linaro.org/PeterMaydell/QemuVersatileExpress">https://wiki.linaro.org/PeterMaydell/QemuVersatileExpress</a></div><div><br></div><div><b><u>Step 01.00: Clone linux-yocto-3.8 locally, create local meta branch, create local standard/qemuarma9 branch, tracking the master branch.</u></b></div><div><br></div><div>Make the following modification to the&nbsp;qemuarma9-standard.scc file.</div><div><br></div><div><font face="Menlo"><span style="font-size: 11px;">From 8e9b465f242941b70d7b61045c073e82700fcd91 Mon Sep 17 00:00:00 2001<br>From: Elvis Dowson &lt;<a href="mailto:elvis.dowson@gmail.com">elvis.dowson@gmail.com</a>&gt;<br>Date: Mon, 26 Aug 2013 22:18:24 +0400<br>Subject: [PATCH] qemuarma9: Update branch to qemuarma9.<br><br>Signed-off-by: Elvis Dowson &lt;<a href="mailto:elvis.dowson@gmail.com">elvis.dowson@gmail.com</a>&gt;<br>---<br>&nbsp;meta/cfg/kernel-cache/bsp/qemuarma9/qemuarma9-standard.scc | &nbsp; &nbsp;2 +-<br>&nbsp;1 file changed, 1 insertion(+), 1 deletion(-)<br><br>diff --git a/meta/cfg/kernel-cache/bsp/qemuarma9/qemuarma9-standard.scc b/meta/cfg/kernel-cache/bsp/qemuarma9/qemuarma9-standard.scc<br>index c71fe1c..729125d 100644<br>--- a/meta/cfg/kernel-cache/bsp/qemuarma9/qemuarma9-standard.scc<br>+++ b/meta/cfg/kernel-cache/bsp/qemuarma9/qemuarma9-standard.scc<br>@@ -3,7 +3,7 @@ define KTYPE standard<br>&nbsp;define KARCH arm<br>&nbsp;<br>&nbsp;include ktypes/standard/standard.scc<br>-branch arm-versatile-926ejs<br>+branch qemuarma9<br>&nbsp;<br>&nbsp;include qemuarma9.scc<br>&nbsp;<br>--&nbsp;<br>1.7.10.4</span></font><br><br></div><div><br></div><div><b><u>Step 02.00: Create a new qemuarma9.conf machine definition.</u></b></div><div><br></div><div>There is a dts file in arch/arm/boot/dts called vexpress-v2p-ca9.dts.&nbsp;</div><div><br></div><div>Q01: I guess the KMACHINE_qemuarma9 should be set to "vex press" ? instead of qemuarma9 below?</div><div><br></div><div><div><font face="Menlo"><span style="font-size: 11px;">#@TYPE: Machine</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">#@NAME: qemuarma9</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">#@DESCRIPTION: Machine configuration for QEMU ARM Cortex A9.</span></font></div><div><font face="Menlo"><span style="font-size: 11px;"><br></span></font></div><div><font face="Menlo"><span style="font-size: 11px;"># Specify the default tune.</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">DEFAULTTUNE = "armv7a-neon"</span></font></div><div><font face="Menlo"><span style="font-size: 11px;"><br></span></font></div><div><font face="Menlo"><span style="font-size: 11px;">require conf/machine/include/qemu.inc</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">require conf/machine/include/tune-cortexa9.inc</span></font></div><div><font face="Menlo"><span style="font-size: 11px;"><br></span></font></div><div><font face="Menlo"><span style="font-size: 11px;"># Specify the preferred kernel recipe version.</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">PREFERRED_VERSION_linux-yocto ?= "3.8%"</span></font></div><div><font face="Menlo"><span style="font-size: 11px;"><br></span></font></div><div><font face="Menlo"><span style="font-size: 11px;"># Specify the machine name used by the kernel.</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">KMACHINE_qemuarma9 = "<font color="#ff2600">qemuarma9</font>" &nbsp;<font color="#ff2600"># Error?!!</font></span></font></div><div><font face="Menlo"><span style="font-size: 11px;"><br></span></font></div><div><font face="Menlo"><span style="font-size: 11px;"># Specify the kernel image type.</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">KERNEL_IMAGETYPE = "uImage"</span></font></div><div><font face="Menlo"><span style="font-size: 11px;"><br></span></font></div><div><font face="Menlo"><span style="font-size: 11px;">MACHINE_DEVICETREE := "qemuarma9.dts"&nbsp;</span></font></div><div><font face="Menlo"><span style="font-size: 11px;"><br></span></font></div><div><font face="Menlo"><span style="font-size: 11px;"># Specify the serial console parameters.</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">SERIAL_CONSOLE = "115200 ttyAMA0"</span></font></div></div><div><br></div><div><br></div><div><b><u>Step 03.00: Patch the oe-core sources.</u></b></div><div><br></div><div><b>Step 03.01: </b>Patch scripts/runqemu</div><div><br></div><div><div><font face="Menlo"><span style="font-size: 11px;">@@ -37,10 +37,11 @@ usage() {</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp; &nbsp; &nbsp;echo " &nbsp;qemuparams=\"xyz\" - specify custom parameters to QEMU"</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp; &nbsp; &nbsp;echo " &nbsp;bootparams=\"xyz\" - specify custom kernel parameters during boot"</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp; &nbsp; &nbsp;echo ""</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp; &nbsp; &nbsp;echo "Examples:"</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp; &nbsp; &nbsp;echo " &nbsp;$MYNAME qemuarm"</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">+ &nbsp; &nbsp;echo " &nbsp;$MYNAME qemuarma9 ramfs"</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp; &nbsp; &nbsp;echo " &nbsp;$MYNAME qemux86-64 core-image-sato ext3"</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp; &nbsp; &nbsp;echo " &nbsp;$MYNAME path/to/bzImage-qemux86.bin path/to/nfsrootdir/ serial"</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp; &nbsp; &nbsp;echo " &nbsp;$MYNAME qemux86 ramfs"</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp; &nbsp; &nbsp;echo " &nbsp;$MYNAME qemux86 iso"</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp; &nbsp; &nbsp;echo " &nbsp;$MYNAME qemux86 qemuparams=\"-m 256\""</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">@@ -105,11 +106,11 @@ process_filename() {</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp;# bit more complex, but offers a great user experience.</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp;KVM_ENABLED="no"</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp;while true; do</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp; &nbsp; &nbsp;arg=${1}</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp; &nbsp; &nbsp;case "$arg" in</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">- &nbsp; &nbsp; &nbsp; &nbsp;"qemux86" | "qemux86-64" | "qemuarm" | "qemumips" | "qemumipsel" | \</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">+ &nbsp; &nbsp; &nbsp; &nbsp;"qemux86" | "qemux86-64" | "qemuarm" | "qemuarma9" |"qemumips" | "qemumipsel" | \</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"qemumips64" | "qemush4" &nbsp;| "qemuppc" | "qemumicroblaze" | "qemuzynq")</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;[ -z "$MACHINE" ] &amp;&amp; MACHINE=$arg || \</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;error "conflicting MACHINE types [$MACHINE] and [$arg]"</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;;</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"ext2" | "ext3" | "ext4" | "jffs2" | "nfs" | "btrfs")</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">@@ -222,17 +223,17 @@ if [ "$FSTYPE" = "nfs" -a -z "$ROOTFS" ]; then</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp; &nbsp; &nbsp;error "NFS booting without an explicit ROOTFS path is not yet supported"</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp;fi</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp;</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp;if [ -z "$MACHINE" ]; then</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp; &nbsp; &nbsp;if [ "x$FSTYPE" = "xvmdk" ]; then</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">- &nbsp; &nbsp; &nbsp; &nbsp;MACHINE=`basename $VM | sed 's/.*\(qemux86-64\|qemux86\|qemuarm\|qemumips64\|qemumips\|qemuppc\|qemush4\).*/\1/'`</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">+ &nbsp; &nbsp; &nbsp; &nbsp;MACHINE=`basename $VM | sed 's/.*\(qemux86-64\|qemux86\|qemuarm\|qemuarma9\|qemumips64\|qemumips\|qemuppc\|qemush4\).*/\1/'`</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if [ -z "$MACHINE" ]; then</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;error "Unable to set MACHINE from vmdk filename [$VM]"</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;fi</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;echo "Set MACHINE to [$MACHINE] based on vmdk [$VM]"</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp; &nbsp; &nbsp;else</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">- &nbsp; &nbsp; &nbsp; &nbsp;MACHINE=`basename $KERNEL | sed 's/.*\(qemux86-64\|qemux86\|qemuarm\|qemumips64\|qemumips\|qemuppc\|qemush4\).*/\1/'`</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">+ &nbsp; &nbsp; &nbsp; &nbsp;MACHINE=`basename $KERNEL | sed 's/.*\(qemux86-64\|qemux86\|qemuarm\|qemuarma9\|qemumips64\|qemumips\|qemuppc\|qemush4\).*/\1/'`</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if [ -z "$MACHINE" ]; then</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;error "Unable to set MACHINE from kernel filename [$KERNEL]"</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;fi</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;echo "Set MACHINE to [$MACHINE] based on kernel [$KERNEL]"</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp; &nbsp; &nbsp;fi</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">@@ -292,10 +293,13 @@ QEMUX86_64_DEFAULT_KERNEL=bzImage-qemux86-64.bin</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp;QEMUX86_64_DEFAULT_FSTYPE=ext3</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp;</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp;QEMUARM_DEFAULT_KERNEL=zImage-qemuarm.bin</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp;QEMUARM_DEFAULT_FSTYPE=ext3</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp;</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">+QEMUARMA9_DEFAULT_KERNEL=uImage</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">+QEMUARMA9_DEFAULT_FSTYPE=cpio.gz</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">+</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp;QEMUMIPS_DEFAULT_KERNEL=vmlinux-qemumips.bin</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp;QEMUMIPS_DEFAULT_FSTYPE=ext3</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp;</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp;QEMUMIPSEL_DEFAULT_KERNEL=vmlinux-qemumipsel.bin</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp;QEMUMIPSEL_DEFAULT_FSTYPE=ext3</span></font></div></div><div><br></div><div><br></div><div><b>Step 03.02: </b>Patch runqemu-internal.</div><div><br></div><div><div><font face="Menlo"><span style="font-size: 11px;">@@ -48,10 +48,13 @@ else</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;mem_size=128</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;;</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"qemuarm")</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;mem_size=128</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;;</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">+ &nbsp; &nbsp; &nbsp; &nbsp;"qemuarma9")</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;mem_size=128</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;;</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"qemumicroblaze")</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;mem_size=64</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;;</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"qemumips"|"qemumips64")</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;mem_size=128</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">@@ -265,10 +268,11 @@ else</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;fi</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp;fi</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp;</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp;case "$MACHINE" in</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp; &nbsp; &nbsp;"qemuarm") ;;</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">+ &nbsp; &nbsp;"qemuarma9") ;;</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp; &nbsp; &nbsp;"qemumicroblaze") ;;</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp; &nbsp; &nbsp;"qemumips") ;;</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp; &nbsp; &nbsp;"qemumipsel") ;;</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp; &nbsp; &nbsp;"qemumips64") ;;</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp; &nbsp; &nbsp;"qemush4") ;;</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">@@ -348,10 +352,39 @@ if [ "$MACHINE" = "qemuarm" -o "$MACHINE" = "qemuarmv6" -o "$MACHINE" = "qemuarm</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;QEMUOPTIONS="$QEMUOPTIONS -cpu arm1136"</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp; &nbsp; &nbsp;fi</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp; &nbsp; &nbsp;if [ "$MACHINE" = "qemuarmv7" ]; then</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;QEMUOPTIONS="$QEMUOPTIONS -cpu cortex-a8"</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp; &nbsp; &nbsp;fi</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">+ &nbsp; &nbsp;if [ "$MACHINE" = "qemuarma9" ]; then</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">+ &nbsp; &nbsp; &nbsp; &nbsp;MACHINE_SUBTYPE=vexpress-a9</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">+ &nbsp; &nbsp; &nbsp; &nbsp;QEMUOPTIONS="$QEMUOPTIONS -cpu cortex-a9"</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">+ &nbsp; &nbsp;fi</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">+fi</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">+</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">+if [ "$MACHINE" = "qemuarma9" ]; then</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">+ &nbsp; &nbsp;QEMU=qemu-system-arm</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">+ &nbsp; &nbsp;MACHINE_SUBTYPE=vexpress-a9</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">+ &nbsp; &nbsp;QEMUOPTIONS="$QEMUOPTIONS -cpu cortex-a9"</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">+ &nbsp; &nbsp;export QEMU_AUDIO_DRV="none"</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">+ &nbsp; &nbsp;QEMU_UI_OPTIONS="-show-cursor -usb"</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">+ &nbsp; &nbsp;# QEMU_UI_OPTIONS="$QEMU_UI_OPTIONS -force-pointer"</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">+ &nbsp; &nbsp;#QEMU_SYSTEM_OPTIONS="-M $MACHINE_SUBTYPE -serial null -serial mon:stdio -dtb $KERNEL-$MACHINE.dtb"</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">+ &nbsp; &nbsp;if [ "${FSTYPE:0:3}" = "ext" -o "${FSTYPE:0:4}" = "cpio" ]; then</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">+ &nbsp; &nbsp; &nbsp; &nbsp;KERNCMDLINE="earlyprintk root=/dev/mmcblk0p2 rw console=ttyAMA0,115200 console=tty $KERNEL_NETWORK_CMD mem=$QEMU_MEMORY highres=off -dtb $KERNEL-$MACHINE.dtb"</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">+ &nbsp; &nbsp; &nbsp; &nbsp;QEMUOPTIONS="-M ${MACHINE_SUBTYPE} -initrd $ROOTFS -no-reboot $QEMU_UI_OPTIONS"</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">+ &nbsp; &nbsp; &nbsp; &nbsp;#QEMUOPTIONS="$QEMU_NETWORK_CMD -M ${MACHINE_SUBTYPE} -hda $ROOTFS -no-reboot $QEMU_UI_OPTIONS"</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">+ &nbsp; &nbsp;fi</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">+</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">+ &nbsp; &nbsp;if [ "$FSTYPE" = "nfs" ]; then</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">+ &nbsp; &nbsp; &nbsp; &nbsp;if [ "$NFS_SERVER" = "192.168.7.1" -a ! -d "$NFS_DIR" ]; then</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;echo "Error: NFS mount point $ROOTFS doesn't exist"</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cleanup</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;return 1</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">+ &nbsp; &nbsp; &nbsp; &nbsp;fi</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">+ &nbsp; &nbsp; &nbsp; &nbsp;KERNCMDLINE="root=/dev/nfs nfsroot=$NFS_SERVER:$NFS_DIR,$UNFS_OPTS rw $KERNEL_NETWORK_CMD mem=$QEMU_MEMORY"</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">+ &nbsp; &nbsp; &nbsp; &nbsp;QEMUOPTIONS="$QEMU_NETWORK_CMD -M ${MACHINE_SUBTYPE} --no-reboot $QEMU_UI_OPTIONS"</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">+ &nbsp; &nbsp;fi</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp;fi</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp;</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp;if [ "$MACHINE" = "qemux86" ]; then</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp; &nbsp; &nbsp;QEMU=qemu-system-i386</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp; &nbsp; &nbsp;QEMU_UI_OPTIONS="$QEMU_UI_OPTIONS -vga vmware"</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">@@ -520,11 +553,11 @@ if [ "$MACHINE" = "qemuzynq" ]; then</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp; &nbsp; &nbsp;fi</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp;fi</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp;</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp;if [ "x$RAMFS" = "xtrue" ]; then</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp; &nbsp; &nbsp;QEMUOPTIONS="-initrd $ROOTFS -nographic"</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">- &nbsp; &nbsp;KERNCMDLINE="root=/dev/ram0 debugshell"</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">+ &nbsp; &nbsp;KERNCMDLINE="earlyprintk root=/dev/mmcblk0p2 debugshell"</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp;fi</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp;</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp;if [ "x$ISOFS" = "xtrue" ]; then</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp; &nbsp; &nbsp;QEMUOPTIONS="$QEMU_NETWORK_CMD -cdrom $ROOTFS $QEMU_UI_OPTIONS"</span></font></div><div><font face="Menlo"><span style="font-size: 11px;">&nbsp;fi</span></font></div></div><div><br></div><div>Best regards,</div><div><br></div><div>Elvis Dowson</div><div><br></div><div><br></div></body></html>