summaryrefslogtreecommitdiff
path: root/scripts/runqemu
AgeCommit message (Collapse)AuthorFiles
2012-03-26qemu: add fedora pkg names when build failedRobert Yang1
When qemu build failed, we can see such messages: You need libGL.so and libGLU.so to exist in your library path and the development headers for SDL installed to build qemu-native. Ubuntu package names are: libgl1-mesa-dev, libglu1-mesa-dev and libsdl1.2-dev These pkgs have different names on Fedora distributions, and Fedora is one the main linux distributions, so add Fedora package names. The following Fedora versions have these pkgs: Fedora 9 64bit Fedora 13 32bit Fedora 13 64bit Fedora 16 64bit [YOCTO #2174] Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-01-17qemuppc: replace emulation of qemuppc from prep to mac99Liming Wang1
With this new emulation, existing qemuppc functionality is maintained and other functionality such as framebuffer + sato and NFS boot are added. Signed-off-by: Liming Wang <liming.wang@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2011-12-15scripts/runqemu: show an error if /dev/net/tun is unusablePaul Eggleton1
If /dev/net/tun is either not present or is not writable by the user, then show an appropriate error message. (QEMU needs access to this device in order to enable networking; it may be missing if it is not enabled or loaded into the kernel, and some distributions such as CentOS 5.x set restrictive permissions upon it.) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2011-11-29runqemu: look for *-image* to be more flexible for image namesSaul Wold1
We can't just look for *image* since it will catch up bzimage Signed-off-by: Saul Wold <sgw@linux.intel.com>
2011-09-28scripts: use OE_TMPDIR instead of TMPDIR external variablePaul Eggleton1
On OpenSUSE within an X session, TMPDIR is set to the system temporary directory (/tmp) which is incorrect for these scripts. Thus, change runqemu and oe-setup-rpmrepo to use OE_TMPDIR from the external environment rather than TMPDIR. Fixes [YOCTO #1530] Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-09-09runqemu: improve auto-detection of rootfs filenamesScott Garman1
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]. 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 Purdie1
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. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-09-05runqemu: standardize ability to specify custom qemu/kenel boot optionsScott Garman1
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] Signed-off-by: Scott Garman <scott.a.garman@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-08-26scripts/runqemu: disable unfs boot mode for qemuppcLiming Wang1
Because unfs boot mode is unstable for qemuppc, disable it temporarily. Signed-off-by: Liming Wang <liming.wang@windriver.com>
2011-08-23scripts/runqemu: add support to pass bootparams to kernelOtavio Salvador1
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2011-08-19scripts/runqemu: modify search paths for libglAnders Darander1
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. Signed-off-by: Anders Darander <anders@chargestorm.se>
2011-08-11scripts/runqemu: Make it run on ubuntu 11.10Khem Raj1
location of libGL has moved in ubuntu 11.10 so we look for it in the new locations Signed-off-by: Khem Raj <raj.khem@gmail.com>
2011-08-02scripts/runqemu: grep for line beginning with TMPDIRKhem Raj1
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 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 Garman1
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] Signed-off-by: Scott Garman <scott.a.garman@intel.com>
2011-06-30scripts/runqemu: enable btrfsNitin A Kamble1
Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
2011-06-14runqemu: take TMPDIR from bitbakeAnders Darander1
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. Signed-off-by: Anders Darander <anders@chargestorm.se>
2011-04-21Further cleanup of various poky referencesRichard Purdie1
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-04-20Replace POKY_KVM_WIKI -> YOCTO_KVM_WIKIRichard Purdie1
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-04-20POKY_NATIVE_SYSROOT -> OECORE_NATIVE_SYSROOTRichard Purdie1
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-04-20Rename poky-image-* -> core-image-* and task-poky-* -> task-core-*Richard Purdie1
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-04-20Rename poky-qemu to runqemuRichard Purdie1
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2010-10-07Merge runqemu features into poky-qemuScott Garman1
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 Purdie1
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-09-02runqemu: add poky-image-basic and poky-image-lsb to recognized imagesSaul Wold1
Signed-off-by: Saul Wold <Saul.Wold@intel.com>
2010-08-20poky-qemu-internal: fix broken call to poky-qemu-ifupScott Garman1
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 Lock1
Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-07-22poky-env-internal/runqemu: Move BUILD_SYS handling which is runqemu specific ↵Richard Purdie1
into runqemu Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-07-21scripts/runqemu: Path fixesSaul Wold1
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-07-21Enable build dir outside of the poky directoryJoshua Lock1
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 Ashfield1
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2010-07-15qemu-scripts: Add support for mips and powerpc machines, update qemuarmBruce Ashfield1
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 Lock1
Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-04-28Fix references to CROSS_DIR now that it has been removedJoshua Lock1
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 Lock1
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 Purdie1
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 Purdie1
images Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-01-21scripts/runqemu: Factor image location code into a shell functionRichard Purdie1
2009-01-05scripts: Update qemu scripts with changes in recent qemu calling conventions ↵Richard Purdie1
and the switch to ext3 images
2008-04-24Fix runqemu to handle clearing argsRoss Burton1
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 Purdie1
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 Purdie1
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 Purdie1
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 Purdie1
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 Purdie1
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 Purdie1
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 Purdie1
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 Purdie1
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3204 311d38ba-8fff-0310-9ca6-ca027cbcb966
2007-07-17runqemu: Fix image namesRichard Purdie1
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 Purdie1
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 Purdie1
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2120 311d38ba-8fff-0310-9ca6-ca027cbcb966