[meta-xilinx] Errors running default qemuzynq meta-xilinx build on qemu

Nathan Rossi nathan.rossi at xilinx.com
Wed Jan 7 22:10:47 PST 2015


> -----Original Message-----
> From: meta-xilinx-bounces at yoctoproject.org [mailto:meta-xilinx-
> bounces at yoctoproject.org] On Behalf Of Robert Morris
> Sent: Thursday, January 08, 2015 2:20 PM
> To: meta-xilinx at yoctoproject.org
> Subject: [meta-xilinx] Errors running default qemuzynq meta-xilinx build
> on qemu
> 
> Hello list. I'm trying to run the result of building core-image-minimal on
> qemu from my source directory. I have just the basic config, I only added
> the qemuzynq machine to bblayer.conf and the meta-xilinx layer to
> local.conf. Am I missing anything else? It will run but I get messages
> during boot like

Your configs are setup correct.

> 
> 
> [    0.232228] CPU1: failed to boot: -38

Mainline QEMU does not emulate the second CPU currently. But the device tree describes it, so the kernel generates this error. It can be safely ignored.

> 
> 
> and
> 
> 
> [    7.939293] macb e000b000.ps7-ethernet eth0: unable to generate target
> frequency: 125000000 Hz

QEMU also does not emulate the clocking setup, and as such it defaults the primary clock value to that of the default reset value, which confuses the clocking framework in the kernel and thus cant calculate a valid setting for the input to the GEM. Since QEMU doesn't actually emulate the clocks this does not matter, and can be ignored, only problem is it will spam your console. The easiest way to suppress the messages is to reduce the kernel loglevel, use runqemu with 'bootparams="loglevel=4"'.

> 
> 
> 
> the later of which repeats. I'm mostly interested in getting the emulator
> working so I can play with the SDK at home. I haven't tried booting on a
> board.
> 
> 
> Tried this on two build machines, RHEL 6 and Ubuntu 14, same results
> either way. Found I have to add serial to the runqemu invoke, otherwise
> the terminal that comes up doesn't print anything. Thanks for any tips.

The qemuzynq machine does not have any graphics interface, its only interface with your terminal is via serial, so you will need to supply 'serial' or 'nographic'. I recommend running with the following args (and optionally 'slirp' for usermode networking if you do not have sudo).

$ runqemu qemuzynq nogprahic bootparams="loglevel=4"

Regards,
Nathan

> 
> 
> bblayer.conf:
> http://pastebin.com/EZDKQftq
> 
> 
> local.conf:
> http://pastebin.com/JBAPjKbK
> 
> 
> runqemu session:
> http://pastebin.com/rX0S40u1



More information about the meta-xilinx mailing list