summaryrefslogtreecommitdiff
path: root/scripts/poky-qemu-internal
AgeCommit message (Collapse)AuthorFiles
2010-11-10qemumips: re-enable wacom and standard USB UI optionsBruce Ashfield1
Fixes [BUGID #394] Now that the qemu/mti mips kernel branches have been fixed for wacom USB interaction, we can re-nable the standard set of qemu UI options for qemumips. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2010-10-14poky-qemu-internal: make the -no-reboot qemu option mandatoryScott Garman1
This fixes [BUGID #100] Signed-off-by: Scott Garman <scott.a.garman@intel.com>
2010-10-14poky-qemu: miscellaneous bugfixesScott Garman1
In scenarios where the POKY_NATIVE_SYSROOT env variable hasn't been set up, bug #427 can still be triggered. This fixes it by running setup_tmpdir(). This fixes [BUGID #427]. Also, the qemu tap dev lock directory needs to be chmod 777 so that multiple users can create and delete lock files. Signed-off-by: Scott Garman <scott.a.garman@intel.com>
2010-10-12poky-qemu-internal: enforce a 128M memory limit for qemuarmScott Garman1
This fixes [BUGID #433] Also set a sane default for the ifconfig command, which simplifies our autobuilder sanity test setup. Signed-off-by: Scott Garman <scott.a.garman@intel.com>
2010-10-08poky-qemu-internal: implement file locking in bashScott Garman1
There does not appear to be a universal lockfile utility that meets our needs. For example: * 'lockfile' is part of the procmail pacakge in Ubuntu, a requirement we don't want to impose on our users * lockfile-[create|remove] from the Ubuntu lockfile-progs package does not appear to be available in Fedora/openSUSE So, the most portable way to do this is just to implement it in bash. The likelihood of race conditions is minimal for what we need this for. Signed-off-by: Scott Garman <scott.a.garman@intel.com>
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-10-07Allow running of multiple QEMU nfs instancesScott Garman1
These changes allow multiple instances of the userspace NFS server to run, when brought up by consecutive instances of the poky-qemu control script. This fixes [BUGID #393] Signed-off-by: Scott Garman <scott.a.garman@intel.com>
2010-10-07poky-gen-tapdevs: script to create a 'bank' of tap interfacesScott Garman1
This script can be used to create and configure a 'bank' of tap interfaces that can be used by the poky-qemu script. It is useful in locked-down enterprise environments where developers do not have sudo access, but need to be able to run QEMU with networking. A sysadmin would then use this script to bring up a number of tap interfaces for the user to make use of. This fixes [BUGID #391] Signed-off-by: Scott Garman <scott.a.garman@intel.com>
2010-10-07poky-qemu-internal: use lockfile-progs for network interface lockingScott Garman1
The 'lockfile' utility originally used comes from the procmail package, which users shouldn't have to install. This uses the more general lockfile-progs utilities to acheive the same end. This fixes [BUGID #389] Signed-off-by: Scott Garman <scott.a.garman@intel.com>
2010-10-07poky-qemu: integrate userspace nfsroot supportScott Garman1
This is the first phase of some refactoring the poky-qemu control scripts are getting. This integrates userspace nfsroot support into poky-qemu, making runqemu-nfs obsolete. This fixes [BUGID #295] Signed-off-by: Scott Garman <scott.a.garman@intel.com>
2010-10-04qemumips: override default UI options.Richard Griffiths1
Fixes [BUGID #99] The mouse, usb and cursor devices don't work for the qemumips machine. There's no easy way to 'undo' the defaults, or dynamically remove them, so we simply don't use the default UI options for this machine type. Mouse and pointer are provided via ps/2 and not via the usb and wacom tablet driver. Signed-off-by: Richard Griffiths <rgriffit@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2010-10-01poky-qemu-internal: only check mmap_min_addr when running arm imagesJoshua Lock1
No need to force users to poke /proc/sys when they don't need to. Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-09-29Revert "Drop vm_mmap_min_addr checks from scripts and sanity class"Joshua Lock1
This reverts commit 138df217efe850528f88d340acf864c38780c2b0. We still need the vm_mmap_min_addr set to 0 to run locale generation for qemu-arm Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-09-27poky-qemu-internal: Add userspace nfs support for mips and ppcDongxiao Xu1
Add userspace nfs support for mips and ppc architecture. This fixes [BUGID #343] Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
2010-09-17poky-qemu-internal: fix locking of tap lockfileSaul Wold1
Signed-off-by: Saul Wold <Saul.Wold@intel.com>
2010-09-10scrtips/poky-qemu: Fix network interface device numberingRichard Purdie1
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-09-10poky-qemu-internal: Fix ifdown script to use the correct variableRichard Purdie1
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-09-07scripts: use the exported POKY_NATIVE_SYSROOT variableJoshua Lock1
Rather than trying to determine things through guess-work use the newly exported variables to determine where the native binaries reside and whether we are running in a build directory or not. Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-08-20poky-qemu-internal: fix the echo of KERNCMDLINEDexuan Cui1
Without the fix, when the commandline is printed with the "echo" command, it loses the quotes and this confuses people. Thanks Richard for pointing this out. Signed-off-by: Dexuan Cui <dexuan.cui@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-20poky-qemu-internal: fixes for userspace NFS bootingScott Garman1
Including a number of cases where the script could exit before releasing a tun/tap lockfile. Signed-off-by: Scott Garman <scott.a.garman@intel.com>
2010-08-20poky-qemu-internal: Support use of a preconfigured tap deviceJeff Dike1
This patch makes poky-qemu-internal check for the existence of an available preconfigured tap device before running poky-qemu-ifup to make a new one. Locking is handled with a lockfile in /tmp/qemu-tap-locks/. This uses the lockfile utility, so that needs to be present on the host. On exit, this script removes the lock file so that the tap device may be reused. Signed-off-by: Jeff Dike <jdike@linux.intel.com>
2010-08-20poky-qemu-internal: Support NFS boots betterJeff Dike1
The image specification can now be in the form nfs-server:directory. This makes it possible to nfs-boot from servers other than the host. poky-qemu-internal will properly construct the kernel command line given such a specification. Signed-off-by: Jeff Dike <jdike@linux.intel.com>
2010-08-20qemu: Use a TAP device instead of slirp for networkingJeff Dike1
With this patch, a persistent TAP device is set up by poky-qemu-ifup, which is now run before qemu. The qemu command line now uses the device that was constructed (rather than the hard-coded tap0) and it is told not to run any networking scripts. When qemu shuts down, poky-qemu-ifdown removes the TAP device. sudo use - sudo is used to run poky-qemu-ifup. sudo is no longer used to run qemu, as qemu no longer needs privileges to set up networking. poky-qemu-ifdown is run without privileges, as you can remove a TAP device which you own. Signed-off-by: Jeff Dike <jdike@linux.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-15poky-qemu-internal: Use 128MB memory for qemumips/qemuppcRichard Purdie1
Signed-off-by: Richard Purdie <rpurdie@linux.intel.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-07Fixes for Qemu to use VGA and Touch ScreenSaul Wold1
Added usb tablet options to poky-qemu-internal script, and adjusted the xorg.conf script for x86 to use VGA screen and tablet input device Signed-off-by: Saul Wold <saul.wold@intel.com>
2010-05-28Drop vm_mmap_min_addr checks from scripts and sanity classJoshua Lock1
QEMU 0.12.x is relocatable so we no longer need these tests, which is good because it doesn't work reliably with modern kernels. Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-05-14poky-qemu-internal Add -show-cursor to qemux86Nitin A Kamble1
Without this option the need to do the blind guesswork about the position of the pointer. Signed-Off-By: Nitin A Kamble <nitin.a.kamble@intel.com>
2009-11-26scripts/poky-qemu-internal: Make sure qemuarm cursor is visibleRichard 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/poky-qemu-internal: Add support for GL passthrough in qemux86 imagesRichard Purdie1
2009-01-05scripts: Update qemu scripts with changes in recent qemu calling conventions ↵Richard Purdie1
and the switch to ext3 images
2008-12-15scripts/poky-qemu-internal: Add usb commandline to nfs mounted imagesRichard Purdie1
2008-07-24scripts/poky-qemu-internal: Fix networking on qemuarm ext2 imagesRichard Purdie1
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4940 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-07-22poky-qemu-internal: added support for qemuarmv6/7Marcin Juszkiewicz1
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4927 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-05-06scripts/poky-qemu-internal: Check /proc/sys/vm/mmap_min_addr value and error ↵Richard Purdie1
if its potentially problematic git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4437 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-05-05poky-qemu-internal: give 128M for qemux86 - otherwise generating of locales ↵Marcin Juszkiewicz1
fails git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4412 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-04-24scripts/poky-qemu-internal: Enable n800 networkingRichard Purdie1
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4333 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-04-24Allow user-specified options to be passed to qemu via poky-qemuRoss Burton1
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4327 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-04-23scripts/poky-qemu: Add support for the nokia800-maemo machineRichard Purdie1
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4315 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-06scripts/poky-qemu-internal: Fix no-reboot option handling for qemuarmRichard Purdie1
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3674 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-02-04scripts/poky-qemu-internal: Fix PATH usage to find qemu binaryRichard Purdie1
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3667 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-22poky-qemu-internal: Add -no-reboot option for poky-qemu-internal since can't ↵Richard Purdie1
halt git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3571 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