Unable to boot OpenBMC image in QEMU for AST2500

Stephen Beckwith embeddedsteve at gmail.com
Tue Sep 24 06:46:45 AEST 2019


Greetings,
     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.
    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?)
  I was successful in booting the Poky example from Yocto for both x86 and
ARM into the respective QEMU machines, for the minimal image.
  Any pointers would be greatly provided.

Regards,
Stephen Beckwith

Failure #1:  QEMU Hangs:
==> Fresh shell:

sbeckwit at ubuntu:~/yocto_dev/openbmc-master/build$ runqemu qemuarm
runqemu - INFO - Running MACHINE=qemuarm bitbake -e...
runqemu - INFO - Continuing with the following parameters:

KERNEL:
[/home/sbeckwit/yocto_dev/openbmc-master/build/tmp/deploy/images/qemuarm/zImage--5.0.19+git0+7f6e97c357_d1ed980ad9-r0-qemuarm-20190919131556.bin]
MACHINE: [qemuarm]
FSTYPE: [ext4]
ROOTFS:
[/home/sbeckwit/yocto_dev/openbmc-master/build/tmp/deploy/images/qemuarm/obmc-phosphor-image-qemuarm-20190919131556.rootfs.ext4]
CONFFILE:
[/home/sbeckwit/yocto_dev/openbmc-master/build/tmp/deploy/images/qemuarm/obmc-phosphor-image-qemuarm-20190919131556.qemuboot.conf]

runqemu - INFO - Setting up tap interface under sudo
[sudo] password for sbeckwit:
runqemu - INFO - Network configuration: 192.168.7.2::192.168.7.1:255
.255.255.0
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 '

^C to exit - TOP shows qeum-system-arm running but no output to a console.
.  no login prompt.

^Crunqemu - INFO - Cleaning up
Set 'tap0' nonpersistent
Traceback (most recent call last):
  File "/home/sbeckwit/yocto_dev/openbmc-master/scripts/runqemu", line
1486, in <module>
    sys.exit(main())
  File "/home/sbeckwit/yocto_dev/openbmc-master/scripts/runqemu", line
1472, in main
    config.start_qemu()
  File "/home/sbeckwit/yocto_dev/openbmc-master/scripts/runqemu", line
1362, in start_qemu
    retcode = process.wait()
  File "/usr/lib/python3.6/subprocess.py", line 1477, in wait
    (pid, sts) = self._try_wait(0)
  File "/usr/lib/python3.6/subprocess.py", line 1424, in _try_wait
    (pid, sts) = os.waitpid(self.pid, wait_flags)
KeyboardInterrupt

Failure #2 - Running from the "top level" directory:
==> Fresh shell:

sbeckwit at ubuntu:~/yocto_dev/openbmc-master$ source oe-init-build-env
Common targets are:
     obmc-phosphor-image

You can also run generated qemu images with a command like:
     runqemu qemuarm
sbeckwit at ubuntu:~/yocto_dev/openbmc-master/build$ cd ../
sbeckwit at ubuntu:~/yocto_dev/openbmc-master$
sbeckwit at ubuntu:~/yocto_dev/openbmc-master$
sbeckwit at ubuntu:~/yocto_dev/openbmc-master$ runqemu qemuarm
runqemu - INFO - Running bitbake -e...
runqemu - INFO - Continuing with the following parameters:

KERNEL:
[/home/sbeckwit/yocto_dev/openbmc-master/build/tmp/deploy/images/qemuarm/zImage--5.0.19+git0+7f6e97c357_d1ed980ad9-r0-qemuarm-20190919131556.bin]
MACHINE: [qemuarm]
FSTYPE: [nfs]
NFS_DIR: [/home/sbeckwit/yocto_dev/openbmc-master/qemuarm]
CONFFILE:
[/home/sbeckwit/yocto_dev/openbmc-master/build/tmp/deploy/images/qemuarm/obmc-phosphor-image-qemuarm-20190919131556.qemuboot.conf]

runqemu - INFO - Setting up tap interface under sudo
[sudo] password for sbeckwit:
runqemu - INFO - Running ('runqemu-export-rootfs', 'start',
'/home/sbeckwit/yocto_dev/openbmc-master/qemuarm')...
Running bitbake -e meta-ide-support
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
Error:
/home/sbeckwit/yocto_dev/openbmc-master/qemuarm/../qemuarm.pseudo_state
does not exist.
Did you create the export directory using runqemu-extract-sdk?
Traceback (most recent call last):
  File "/home/sbeckwit/yocto_dev/openbmc-master/scripts/runqemu", line
1469, in main
    config.setup_network()
  File "/home/sbeckwit/yocto_dev/openbmc-master/scripts/runqemu", line
1151, in setup_network
    self.setup_tap()
  File "/home/sbeckwit/yocto_dev/openbmc-master/scripts/runqemu", line
1126, in setup_tap
    self.setup_nfs()
  File "/home/sbeckwit/yocto_dev/openbmc-master/scripts/runqemu", line
1007, in setup_nfs
    raise RunQemuError('Failed to run %s' % cmd)
TypeError: not all arguments converted during string formatting
runqemu - INFO - Cleaning up
Set 'tap0' nonpersistent
sbeckwit at ubuntu:~/yocto_dev/openbmc-master$
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20190923/6d7f664d/attachment-0001.htm>


More information about the openbmc mailing list