summaryrefslogtreecommitdiffstats
path: root/scripts/runqemu
AgeCommit message (Collapse)Author
2011-09-09runqemu: improve auto-detection of rootfs filenamesScott Garman
This refactors the way rootfs filenames are auto-detected when you run the runqemu script without an explicit rootfs filename argument. It allows the script to use rootfs files generated by hob, and when there are mutliple rootfs files to choose from, it will pick the most recently created one. Fixes [YOCTO #1437]. (From OE-Core rev: 094453f443ed592d814dfb4182a0a02f0a2552e4) Signed-off-by: Scott Garman <scott.a.garman@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-09-09imagetest-qemu/runqueue: Since we no longer support BUILDDIR, use TMPDIRRichard Purdie
Commit 993672fa2739794a6dd0dbd7bb232fa60522b897 removed the BUILDDIR support from runqueue which broke the imagetest-qemu integration. We now therefore need to set TMPDIR and pass this through the environment to ensure the runqueue script finds the right locations without running bitbake directly. This patch also adds a sleep to the qemu command in the error case so that this remains on the screen for a period of time so the user can see errors more easily. This change unbreaks automated testing failures on the autobuilder. (From OE-Core rev: de470333dbdeea444199340e4cd458c13fed6a5a) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-09-05runqemu: standardize ability to specify custom qemu/kenel boot optionsScott Garman
The old manner of specifying custom options to QEMU in this script using angle brackets was a frequent source of confusion. Meanwhile, Otavio Salvador added a decent method of specifying custom kernel boot options to this script. This patch documents the bootparams option and adds a similar way of specifying custom QEMU options using qemuparams="". This fixes [YOCTO #1019] (From OE-Core rev: 1038df14a96d789b3f9e9e1692305ba1fea67886) Signed-off-by: Scott Garman <scott.a.garman@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-08-29scripts/runqemu: disable unfs boot mode for qemuppcLiming Wang
Because unfs boot mode is unstable for qemuppc, disable it temporarily. (From OE-Core rev: 74ff1bc8c248824116ba4b787b10fa6ee0c13ce1) Signed-off-by: Liming Wang <liming.wang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-08-23scripts/runqemu: add support to pass bootparams to kernelOtavio Salvador
(From OE-Core rev: 4a2d3cfeeef4de6da1301c65033fa251538cddc9) Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-08-19scripts/runqemu: modify search paths for libglAnders Darander
On e.g. Debian libql is found under /usr/lib/x86_64-linux-gnu/libGL.so. Use a wildcard to match different locations, as uname -i only return unknown on Debian. (From OE-Core rev: 66e34066a0ac71f4212824b1e6353a4d323f4e21) Signed-off-by: Anders Darander <anders@chargestorm.se> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-08-11scripts/runqemu: Make it run on ubuntu 11.10Khem Raj
location of libGL has moved in ubuntu 11.10 so we look for it in the new locations (From OE-Core rev: 8d80918995a15663db7cc9c0683d45ee8ba7d45c) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-08-02scripts/runqemu: grep for line beginning with TMPDIRKhem Raj
Currently the grep regexp matches any occurance of 'TMPDIR=' but if you have another variable defined e.g. OE_BUILD_TMPDIR=xxx then that gets picked up too. $ bitbake -e | grep TMPDIR=\" TMPDIR="/home/kraj/work/angstrom/build/tmp-angstrom_2010_x-eglibc" OE_BUILD_TMPDIR="/home/kraj/work/angstrom/build/tmp-angstrom_2010_x" So we become a bit more stringent and look for line starting with TMPDIR $ bitbake -e | grep ^TMPDIR=\" TMPDIR="/home/kraj/work/angstrom/build/tmp-angstrom_2010_x-eglibc" make sure that it greps only TMPDIR=xxx occurance and not values of other variables whose names happens to end with TMPDIR (From OE-Core rev: 12ddf6c6a7559d97d9b8f84fcc89ed02e30df85d) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-07-25runqemu: report error if TMPDIR cannot be determinedScott Garman
Invoking runqemu outside of the build directory for an in-tree setup results in an empty TMPDIR because bitbake -e cannot be run to find it. A symptom of this problem is running runqemu and getting the following error: Error: Unable to find tunctl binary in <directory> Catch this case and report the error to the user. This fixes [YOCTO #1278] (From OE-Core rev: ab5544ac801a976b56468ade0f5d2e95c11feb87) Signed-off-by: Scott Garman <scott.a.garman@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-06-30scripts/runqemu: enable btrfsNitin A Kamble
(From OE-Core rev: 45689bbd46b0bb8e66b7c0ff7cc3321e5eef5b5f) Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-06-14runqemu: take TMPDIR from bitbakeAnders Darander
The old standard of using /home/anders/openembedded-core/build/tmp as TMPDIR do not work any longer, as - is appended to the real TMPDIR. Thus, always take TMPDIR from bitbake, unless TMPDIR is set in the environment. (From OE-Core rev: 993672fa2739794a6dd0dbd7bb232fa60522b897) Signed-off-by: Anders Darander <anders@chargestorm.se> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-04-21Further cleanup of various poky referencesRichard Purdie
(From OE-Core rev: fe73ea8c510877fe4e3c117985e8f3d0b79ddf1b) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-04-21Replace POKY_KVM_WIKI -> YOCTO_KVM_WIKIRichard Purdie
(From OE-Core rev: 416e76102fdef606a0459351b85d4f7b30729114) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-04-21POKY_NATIVE_SYSROOT -> OECORE_NATIVE_SYSROOTRichard Purdie
(From OE-Core rev: c056aeaa13549b404088e3d465f3b03443e5ab88) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-04-21Rename poky-image-* -> core-image-* and task-poky-* -> task-core-*Richard Purdie
(From OE-Core rev: 560b04181d8f51d189b99f01a72f17210dadf7a3) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-04-21Rename poky-qemu to runqemuRichard Purdie
(From OE-Core rev: 7687d91f73f4a116593315b3b1488ac3f0904905) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2010-10-07Merge runqemu features into poky-qemuScott Garman
This merges the functionality of the runqemu script into poky-qemu. It also removes the requirement to order command line args to poky-qemu in any particular order. This fixes a slew of runqemu-related bugs by making the runqemu script obsolete (and fixing the issues in the new poky-qemu), including [BUGID #294] [BUGID #295] [BUGID #371] and [BUGID #324]. Signed-off-by: Scott Garman <scott.a.garman@intel.com>
2010-09-10scripts/runqemu: Drop broken toolchain symlink codeRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-09-02runqemu: add poky-image-basic and poky-image-lsb to recognized imagesSaul Wold
Signed-off-by: Saul Wold <Saul.Wold@intel.com>
2010-08-20poky-qemu-internal: fix broken call to poky-qemu-ifupScott Garman
The poky-qemu-ifup script now requires a path to the native sysroot as an argument. This fixes a case where the argument was missing. Also, set up NATIVE_SYSROOT_DIR when running runqemu. Signed-off-by: Scott Garman <scott.a.garman@intel.com>
2010-08-02scripts: add qemux86-64 support to the qemu scriptsJoshua Lock
Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-07-22poky-env-internal/runqemu: Move BUILD_SYS handling which is runqemu specific ↵Richard Purdie
into runqemu Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-07-21scripts/runqemu: Path fixesSaul Wold
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-07-21Enable build dir outside of the poky directoryJoshua Lock
You need to first set up the build directory by sourcing the poky build script, after that builds can be run in that directory so long as bitbake is in $PATH removing the need to source the init script for each build. i.e: $ . poky-init-build-env ~/my-build $ bitbake some-image <<later, in a different shell>> $ cd ~/my-build $ export PATH=/path/to/bitbake/bin:$PATH $ bitbake an-image This patch also removes use of OEROOT in recipes, etc. Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-07-19qemu/mips: arrange for vmlinux to be bootableBruce Ashfield
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2010-07-15qemu-scripts: Add support for mips and powerpc machines, update qemuarmBruce Ashfield
For mips, the malta platform emulates a cirrus chipset. With the udpated 2.6.34 kernel options, we can now enable framebuffer boot for the qemumips platform. We need to pass a valid cpu (603e) and do a -nographic boot to make it all the way to a prompt so graphics is disabled for now for ppc. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2010-06-09scripts: Fix setting up links to cc and gcc in runqemuJoshua Lock
Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-04-28Fix references to CROSS_DIR now that it has been removedJoshua Lock
CROSS_DIR is no longer removed so fix up classes, packages and documentation which refer to it. Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-01-14scripts/runqemu: Fix some typosJoshua Lock
Fix typo in help message (we default to ext3 not ext2 now) and a typo whereby moblin-image-sdk wouldn't be autofound. Signed-off-by: Joshua Lock <josh@linux.intel.com>
2009-11-25runqemu: staging -> sysrootsRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-06-10scripts: Update qemux86 to use the vmmouse driver, not wacom and find moblin ↵Richard Purdie
images Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-01-21scripts/runqemu: Factor image location code into a shell functionRichard Purdie
2009-01-05scripts: Update qemu scripts with changes in recent qemu calling conventions ↵Richard Purdie
and the switch to ext3 images
2008-04-24Fix runqemu to handle clearing argsRoss Burton
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4328 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-04-10scripts: Add support for nokia800 to runqemuRichard Purdie
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4226 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-02-22scripts: Mark qemu scripts as bash specific to avoid dash problems and error ↵Richard Purdie
if a suitable qemu binary can't be found git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3859 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-02-04scripts/runqemu: Append to CROSSPATH after creating symlinksRichard Purdie
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3668 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-01-31scripts: Fix sdk compiler location handlingRichard Purdie
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3652 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-01-31scripts: Always try to start distccd, improve distccd cleanup, add SDK ↵Richard Purdie
directory to the search path so any cross compiler installed in /usr/local/poky is found and used, add ifdown script to avoid warning messages git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3649 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-01-09scripts: Further quoting fixesRichard Purdie
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3443 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-01-09scripts: Various tweaks/fixes for the qemu scriptsRichard Purdie
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3440 311d38ba-8fff-0310-9ca6-ca027cbcb966
2007-11-22runqemu: Fix path after staging layout changesRichard Purdie
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3204 311d38ba-8fff-0310-9ca6-ca027cbcb966
2007-07-17runqemu: Fix image namesRichard Purdie
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2193 311d38ba-8fff-0310-9ca6-ca027cbcb966
2007-07-05runqemu: Use pda image if sdk image not available for qemu machinesRichard Purdie
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2121 311d38ba-8fff-0310-9ca6-ca027cbcb966
2007-07-05runqemu: Use pda image if sdk image not available for qemu machinesRichard Purdie
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2120 311d38ba-8fff-0310-9ca6-ca027cbcb966
2007-06-27Rename oh-image -> poky-imageRichard Purdie
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2020 311d38ba-8fff-0310-9ca6-ca027cbcb966
2007-05-16Update copyrightRichard Purdie
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1734 311d38ba-8fff-0310-9ca6-ca027cbcb966
2007-01-30scripts: Add support to scripts for spitz imagesRichard Purdie
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1216 311d38ba-8fff-0310-9ca6-ca027cbcb966
2007-01-29scripts: Add framework for supporting akita images under qemuRichard Purdie
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1214 311d38ba-8fff-0310-9ca6-ca027cbcb966
2007-01-17Remove bashismRoss Burton
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1157 311d38ba-8fff-0310-9ca6-ca027cbcb966