Bug 283

Summary: QEMU - more dynamic QEMU configuration
Product: [Build System, Metadata & Runtime] Meta-yocto Reporter: Mark Hatle <mark.hatle>
Component: meta-yoctoAssignee: liping Ke <liping.ke>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: Low CC: kevin.tian, poky.bs.watcher, poky.watcher, richard.purdie, sgw
Version: 0.9   
Target Milestone: 1.0 M1   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Mark Hatle 2010-09-07 08:38:16 UTC
Currently QEMU contains hard coded values about specific BSPs and configurations.  This should be made more dynamic to more easily enable additional BSPs and configurations to work with QEMU.

It would be nice to include serial vs X11 console configuration as part of this work.
Comment 1 Mark Hatle 2010-10-01 11:47:59 UTC
The dynamic configuration should be made up of a combination of command line switches (with reasonable Poky defaults) and per BSP/machine configurations that can be loaded by the script.

Instead of saying a qemuarm "board" requires the following configuration (in the qemu startup script), it should go out and load the qemuarm board's configuration file -- which would specify what, if any, special QEMU parameters are needed.  In addition it could also specify if graphics is available, serial is available or other hardware (as it gets defined in the future....)
Comment 2 Scott Garman 2010-12-07 15:20:32 UTC
This will be possible with the upcoming option to add custom QEMU command line
options that Liping is working on.
Comment 3 liping Ke 2010-12-19 17:51:43 UTC
Please refer to bug 461 and changeset:
http://git.pokylinux.org/cgit/cgit.cgi/poky/commit/?id=ae4f5c942ef0561335313d676ff8defc0f0bdbbc

Now extra parameters could be added by user with extra parameters in $poky-qemu qemu-image.bin nfs_extraction_dir "<qemu extra parameters>", eg, it could be 
"<-m 256>"
Thanks & Regards,
criping