<div dir="ltr"><div>Greetings,</div><div>     I am working on a Proof-of-Concept for OpenBMC.  I am familiar with SP/BMC setups using proprietary code.   I have successfully built the OpenBMC project (in a VM running Ubuntu 18.04) as well as building/installing the eSDK.  Note: system was built from a ZIP from github, git clone failed due to access rights.<br></div><div>    When I completed the process, I tried to load the available image into QEMU for ARM (which was also built) and received the following error(s), depending upon the directory from which this is run (which is also a question, why the difference?)</div><div>  I was successful in booting the Poky example from Yocto for both x86 and ARM into the respective QEMU machines, for the minimal image.  <br></div><div>  Any pointers would be greatly provided.</div><div><br></div><div>Regards,</div><div>Stephen Beckwith</div><div><br></div><div>Failure #1:  QEMU Hangs:<br></div><div>==> Fresh shell:<br><br>sbeckwit@ubuntu:~/yocto_dev/openbmc-master/build$ runqemu qemuarm<br>runqemu - INFO - Running MACHINE=qemuarm bitbake -e...<br>runqemu - INFO - Continuing with the following parameters:<br><br>KERNEL: [/home/sbeckwit/yocto_dev/openbmc-master/build/tmp/deploy/images/qemuarm/zImage--5.0.19+git0+7f6e97c357_d1ed980ad9-r0-qemuarm-20190919131556.bin]<br>MACHINE: [qemuarm]<br>FSTYPE: [ext4]<br>ROOTFS: [/home/sbeckwit/yocto_dev/openbmc-master/build/tmp/deploy/images/qemuarm/obmc-phosphor-image-qemuarm-20190919131556.rootfs.ext4]<br>CONFFILE: [/home/sbeckwit/yocto_dev/openbmc-master/build/tmp/deploy/images/qemuarm/obmc-phosphor-image-qemuarm-20190919131556.qemuboot.conf]<br><br>runqemu - INFO - Setting up tap interface under sudo<br>[sudo] password for sbeckwit: <br>runqemu - INFO - Network configuration: 192.168.7.2::192.168.7.1:255.255.255.0<br>runqemu - INFO - Running /home/sbeckwit/yocto_dev/openbmc-master/build/tmp/work/x86_64-linux/qemu-helper-native/1.0-r1/recipe-sysroot-native/usr/bin/qemu-system-arm -device virtio-net-device,netdev=net0,mac=52:54:00:12:34:02 -netdev tap,id=net0,ifname=tap0,script=no,downscript=no -drive id=disk0,file=/home/sbeckwit/yocto_dev/openbmc-master/build/tmp/deploy/images/qemuarm/obmc-phosphor-image-qemuarm-20190919131556.rootfs.ext4,if=none,format=raw -device virtio-blk-device,drive=disk0 -show-cursor -device VGA,edid=on -device qemu-xhci -device usb-tablet -device usb-kbd -object rng-random,filename=/dev/urandom,id=rng0 -device virtio-rng-pci,rng=rng0  -machine virt -cpu cortex-a15 -m 512 -serial mon:vc -serial null -kernel /home/sbeckwit/yocto_dev/openbmc-master/build/tmp/deploy/images/qemuarm/zImage--5.0.19+git0+7f6e97c357_d1ed980ad9-r0-qemuarm-20190919131556.bin -append 'root=/dev/vda rw highres=off  mem=512M ip=192.168.7.2::192.168.7.1:255.255.255.0 console=ttyAMA0 '<br><br>^C to exit - TOP shows qeum-system-arm running but no output to a console. .  no login prompt.<br><br>^Crunqemu - INFO - Cleaning up<br>Set 'tap0' nonpersistent<br>Traceback (most recent call last):<br>  File "/home/sbeckwit/yocto_dev/openbmc-master/scripts/runqemu", line 1486, in <module><br>    sys.exit(main())<br>  File "/home/sbeckwit/yocto_dev/openbmc-master/scripts/runqemu", line 1472, in main<br>    config.start_qemu()<br>  File "/home/sbeckwit/yocto_dev/openbmc-master/scripts/runqemu", line 1362, in start_qemu<br>    retcode = process.wait()<br>  File "/usr/lib/python3.6/subprocess.py", line 1477, in wait<br>    (pid, sts) = self._try_wait(0)<br>  File "/usr/lib/python3.6/subprocess.py", line 1424, in _try_wait<br>    (pid, sts) = os.waitpid(self.pid, wait_flags)<br>KeyboardInterrupt<br></div><div><br></div><div>Failure #2 - Running from the "top level" directory:</div><div>==> Fresh shell:<br><br>sbeckwit@ubuntu:~/yocto_dev/openbmc-master$ source oe-init-build-env <br>Common targets are:<br>     obmc-phosphor-image<br><br>You can also run generated qemu images with a command like:<br>     runqemu qemuarm<br>sbeckwit@ubuntu:~/yocto_dev/openbmc-master/build$ cd ../<br>sbeckwit@ubuntu:~/yocto_dev/openbmc-master$ <br>sbeckwit@ubuntu:~/yocto_dev/openbmc-master$ <br>sbeckwit@ubuntu:~/yocto_dev/openbmc-master$ runqemu qemuarm<br>runqemu - INFO - Running bitbake -e...<br>runqemu - INFO - Continuing with the following parameters:<br><br>KERNEL: [/home/sbeckwit/yocto_dev/openbmc-master/build/tmp/deploy/images/qemuarm/zImage--5.0.19+git0+7f6e97c357_d1ed980ad9-r0-qemuarm-20190919131556.bin]<br>MACHINE: [qemuarm]<br>FSTYPE: [nfs]<br>NFS_DIR: [/home/sbeckwit/yocto_dev/openbmc-master/qemuarm]<br>CONFFILE: [/home/sbeckwit/yocto_dev/openbmc-master/build/tmp/deploy/images/qemuarm/obmc-phosphor-image-qemuarm-20190919131556.qemuboot.conf]<br><br>runqemu - INFO - Setting up tap interface under sudo<br>[sudo] password for sbeckwit: <br>runqemu - INFO - Running ('runqemu-export-rootfs', 'start', '/home/sbeckwit/yocto_dev/openbmc-master/qemuarm')...<br>Running bitbake -e meta-ide-support<br>PSEUDO=/home/sbeckwit/yocto_dev/openbmc-master/build/tmp/work/armv7vet2hf-neon-openbmc-linux-gnueabi/meta-ide-support/1.0-r3/recipe-sysroot-native/usr/bin/pseudo<br>Error: /home/sbeckwit/yocto_dev/openbmc-master/qemuarm/../qemuarm.pseudo_state does not exist.<br>Did you create the export directory using runqemu-extract-sdk?<br>Traceback (most recent call last):<br>  File "/home/sbeckwit/yocto_dev/openbmc-master/scripts/runqemu", line 1469, in main<br>    config.setup_network()<br>  File "/home/sbeckwit/yocto_dev/openbmc-master/scripts/runqemu", line 1151, in setup_network<br>    self.setup_tap()<br>  File "/home/sbeckwit/yocto_dev/openbmc-master/scripts/runqemu", line 1126, in setup_tap<br>    self.setup_nfs()<br>  File "/home/sbeckwit/yocto_dev/openbmc-master/scripts/runqemu", line 1007, in setup_nfs<br>    raise RunQemuError('Failed to run %s' % cmd)<br>TypeError: not all arguments converted during string formatting<br>runqemu - INFO - Cleaning up<br>Set 'tap0' nonpersistent<br>sbeckwit@ubuntu:~/yocto_dev/openbmc-master$ <br></div><div><br></div></div>