Back to Blog
Qemu system arm no output5/27/2023 ![]() My task is not to emulate the operating system, but to execute and debug program code on a 32-bit arm processor (My macbook has a 64 bit ARM processor.). And more important, it uses hardware accelerated emulation, so everything runs a fast as if it was running on a real Pi. You can use a generic OS then, unmodified. That also does not emulate a RaspberryPi, but by default a generic machine 'virt'. Of course the whole root tree is RasPiOS, so for testing or development that is fine.Īs this emulation needs a modified kernel and dtb, I came to the conclusion that is much easier to use the comprehensive libvirt (run/control VMs in VirtManager). If CPU is 'arm1176' and machine is 'versatilepb', it is not a RaspberryPi, but it emulates an old ARM development board named Versatile (prototyping board). The problem is that hardware accelerated emulation is hard to get working with standalone qemu if you want to emulate RaspberryPi (Pi2 or 3 and also 64-bit). I have an (old) script with a dozen qemu starting options for various 'images', but I don't use them anymore. This github is a very helpfull starting point, but qemu has many many options and what works now might not work anymore in half a year or so. device "virtio-blk-pci,drive=disk0,disable-modern=on,disable-legacy=off" \ Check the /home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/build/build.log file for more details.-drive "file=/./-raspios-buster-lite-armhf.img,if=none,index=0,media=disk,format=raw,id=disk0" \ Summary: There was 1 ERROR message shown, returning a non-zero exit code.ĮRROR: Failed to build device-tree. home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/components/yocto/layers/meta-xilinx/meta-xilinx-bsp/recipes-bsp/device-tree/device-tree.bb:do_compile NOTE: Tasks Summary: Attempted 3147 tasks of which 3138 didn't need to be rerun and 1 failed. *** 0512: raise CalledProcessError(retcode, process.args,Ġ514: return CompletedProcess(process.args, retcode, stdout, stderr)Įxception: subprocess.CalledProcessError: Command '' returned non-zero exit status 1.Įrror: /home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/project-spec/configs/././components/plnx_workspace/device-tree/device-tree/zynqmp-pl-remoteport.dtsi:31.20-21 syntax errorĮRROR: Logfile of failure stored in: /home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.2 gitAUTOINC c0acd8f064-r0/temp/log.do_compile.265785ĮRROR: Task (/home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/components/yocto/layers/meta-xilinx/meta-xilinx-bsp/recipes-bsp/device-tree/device-tree.bb:do_compile) failed with exit code '1' *** 0119: n(dtcargs, check = True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)Ġ122: includes = expand_includes("DT_INCLUDE", d)Ġ123: listpath = d.getVar("DT_FILES_PATH")įile: '/home/stephenpd/tools/petalinux_2021_2/components/yocto/buildtools/sysroots/x86_64-petalinux-linux/usr/lib/python3.8/subprocess.py', lineno: 512, function: runĠ508: # We don't call process.wait() as. *** 0131: devicetree_compile(dtspath, includes, d)Ġ135: for DTB_FILE in ls *.dtb *.dtbo doįile: '/home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/components/yocto/layers/core/meta/classes/devicetree.bbclass', lineno: 119, function: devicetree_compileĠ116: dtcargs = ["-o", "".format(" ".join(dtcargs))) The stack trace of python calls that resulted in this exception/failure was:įile: 'exec_python_func() autogenerated', lineno: 2, function:įile: '/home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/components/yocto/layers/core/meta/classes/devicetree.bbclass', lineno: 131, function: devicetree_do_compileĠ127: if not(os.path.isfile(dtspath)) or not(dts.endswith(".dts") or devicetree_source_is_overlay(dtspath)):Ġ128: continue # skip non-.dts files and non-overlay filesĠ130: continue # skip if can't determine if overlay Sstate summary: Wanted 155 Found 127 Missed 28 Current 1071 (81% match, 97% complete)ĮRROR: device-tree-xilinx-v2021.2 gitAUTOINC c0acd8f064-r0 do_compile: Error executing a python function in exec_python_func() autogenerated: NOTE: Resolving any missing task queue dependencies 5133 targets, 234 skipped, 0 masked, 0 errors. ![]() bb files complete (3467 cached, 9 parsed). Loaded 5125 entries from dependency cache. NOTE: Started PRServer with DBfile: /home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/build/cache/prserv.sqlite3, IP: 127.0.0.1, PORT: 39733, PID: 265083 But after I add the zynqmp-pl-remote.dtsi to rebuild the DTB files, it output error:ĭevice-tree/device-tree/zynqmp-pl-remoteport.dtsi:31.20-21 syntax error, can you help me? When I petalinux-build to generate DTB files for qemu, it works well. ![]() I am using Version: DTC 1.5.0 and I want to co-simulation in qemu and vitis. Hello, It is a great demo for me to studuy.
0 Comments
Read More
Leave a Reply. |