summaryrefslogtreecommitdiffstats
path: root/scripts/poky-qemu-internal
Commit message (Collapse)AuthorAgeFilesLines
* Add extra parameters options for poky-qemu scriptsLiping Ke2010-12-161-2/+20
| | | | | | | | In order to support qemu user's flexibility requirement, we add extra parameter options, user can add extra params such as "<-m 256>" in poky-qemu script command. Signed-off-by: Liping ke <liping.ke@intel.com>
* Make poky-qemu and related scripts work with arbitrary SDK locationsScott Garman2010-12-091-15/+1
| | | | | | | | | | * No longer assume SDK toolchains are installed in /opt/poky * [BUGFIX #568] where specifying paths to both the kernel and fs image caused an error due to POKY_NATIVE_SYSROOT never being set, triggering failure of poky-qemu-ifup/ifdown * Cosmetic improvements to usage() functions by using basename Signed-off-by: Scott Garman <scott.a.garman@intel.com>
* qemumips: re-enable wacom and standard USB UI optionsBruce Ashfield2010-11-101-1/+1
| | | | | | | | | | 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>
* poky-qemu-internal: make the -no-reboot qemu option mandatoryScott Garman2010-10-141-2/+3
| | | | | | This fixes [BUGID #100] Signed-off-by: Scott Garman <scott.a.garman@intel.com>
* poky-qemu: miscellaneous bugfixesScott Garman2010-10-141-1/+4
| | | | | | | | | | | 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>
* poky-qemu-internal: enforce a 128M memory limit for qemuarmScott Garman2010-10-121-1/+19
| | | | | | | | | 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>
* poky-qemu-internal: implement file locking in bashScott Garman2010-10-081-30/+53
| | | | | | | | | | | | | | | | 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>
* Merge runqemu features into poky-qemuScott Garman2010-10-071-13/+13
| | | | | | | | | | | | 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>
* Allow running of multiple QEMU nfs instancesScott Garman2010-10-071-13/+18
| | | | | | | | | | 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>
* poky-gen-tapdevs: script to create a 'bank' of tap interfacesScott Garman2010-10-071-0/+11
| | | | | | | | | | | | | | 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>
* poky-qemu-internal: use lockfile-progs for network interface lockingScott Garman2010-10-071-5/+20
| | | | | | | | | | 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>
* poky-qemu: integrate userspace nfsroot supportScott Garman2010-10-071-136/+117
| | | | | | | | | | 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>
* qemumips: override default UI options.Richard Griffiths2010-10-041-1/+1
| | | | | | | | | | | | | | | 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>
* poky-qemu-internal: only check mmap_min_addr when running arm imagesJoshua Lock2010-10-011-6/+6
| | | | | | No need to force users to poke /proc/sys when they don't need to. Signed-off-by: Joshua Lock <josh@linux.intel.com>
* Revert "Drop vm_mmap_min_addr checks from scripts and sanity class"Joshua Lock2010-09-291-0/+7
| | | | | | | | | 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>
* poky-qemu-internal: Add userspace nfs support for mips and ppcDongxiao Xu2010-09-271-0/+18
| | | | | | | Add userspace nfs support for mips and ppc architecture. This fixes [BUGID #343] Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
* poky-qemu-internal: fix locking of tap lockfileSaul Wold2010-09-171-5/+9
| | | | Signed-off-by: Saul Wold <Saul.Wold@intel.com>
* scrtips/poky-qemu: Fix network interface device numberingRichard Purdie2010-09-101-1/+4
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* poky-qemu-internal: Fix ifdown script to use the correct variableRichard Purdie2010-09-101-1/+1
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* scripts: use the exported POKY_NATIVE_SYSROOT variableJoshua Lock2010-09-071-2/+2
| | | | | | | | 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>
* poky-qemu-internal: fix the echo of KERNCMDLINEDexuan Cui2010-08-201-1/+1
| | | | | | | | | 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>
* poky-qemu-internal: fix broken call to poky-qemu-ifupScott Garman2010-08-201-2/+7
| | | | | | | | | | 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>
* poky-qemu-internal: fixes for userspace NFS bootingScott Garman2010-08-201-14/+27
| | | | | | | 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>
* poky-qemu-internal: Support use of a preconfigured tap deviceJeff Dike2010-08-201-4/+28
| | | | | | | | | | | | | 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>
* poky-qemu-internal: Support NFS boots betterJeff Dike2010-08-201-10/+14
| | | | | | | | | 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>
* qemu: Use a TAP device instead of slirp for networkingJeff Dike2010-08-201-3/+12
| | | | | | | | | | | | | | | | 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>
* scripts: add qemux86-64 support to the qemu scriptsJoshua Lock2010-08-021-3/+32
| | | | Signed-off-by: Joshua Lock <josh@linux.intel.com>
* poky-qemu-internal: Use 128MB memory for qemumips/qemuppcRichard Purdie2010-07-151-1/+7
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* qemu-scripts: Add support for mips and powerpc machines, update qemuarmBruce Ashfield2010-07-151-1/+28
| | | | | | | | | | | | 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>
* Fixes for Qemu to use VGA and Touch ScreenSaul Wold2010-06-071-4/+7
| | | | | | | 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>
* Drop vm_mmap_min_addr checks from scripts and sanity classJoshua Lock2010-05-281-7/+0
| | | | | | | 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>
* poky-qemu-internal Add -show-cursor to qemux86Nitin A Kamble2010-05-141-2/+2
| | | | | | | 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>
* scripts/poky-qemu-internal: Make sure qemuarm cursor is visibleRichard Purdie2009-11-261-3/+3
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* scripts: Update qemux86 to use the vmmouse driver, not wacom and find moblin ↵Richard Purdie2009-06-101-2/+2
| | | | | | images Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* scripts/poky-qemu-internal: Add support for GL passthrough in qemux86 imagesRichard Purdie2009-01-211-2/+2
|
* scripts: Update qemu scripts with changes in recent qemu calling conventions ↵Richard Purdie2009-01-051-4/+4
| | | | and the switch to ext3 images
* scripts/poky-qemu-internal: Add usb commandline to nfs mounted imagesRichard Purdie2008-12-151-2/+2
|
* scripts/poky-qemu-internal: Fix networking on qemuarm ext2 imagesRichard Purdie2008-07-241-1/+1
| | | | git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4940 311d38ba-8fff-0310-9ca6-ca027cbcb966
* poky-qemu-internal: added support for qemuarmv6/7Marcin Juszkiewicz2008-07-221-1/+9
| | | | git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4927 311d38ba-8fff-0310-9ca6-ca027cbcb966
* scripts/poky-qemu-internal: Check /proc/sys/vm/mmap_min_addr value and error ↵Richard Purdie2008-05-061-0/+7
| | | | | | if its potentially problematic git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4437 311d38ba-8fff-0310-9ca6-ca027cbcb966
* poky-qemu-internal: give 128M for qemux86 - otherwise generating of locales ↵Marcin Juszkiewicz2008-05-051-1/+9
| | | | | | fails git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4412 311d38ba-8fff-0310-9ca6-ca027cbcb966
* scripts/poky-qemu-internal: Enable n800 networkingRichard Purdie2008-04-241-3/+6
| | | | git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4333 311d38ba-8fff-0310-9ca6-ca027cbcb966
* Allow user-specified options to be passed to qemu via poky-qemuRoss Burton2008-04-241-2/+2
| | | | git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4327 311d38ba-8fff-0310-9ca6-ca027cbcb966
* scripts/poky-qemu: Add support for the nokia800-maemo machineRichard Purdie2008-04-231-12/+26
| | | | git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4315 311d38ba-8fff-0310-9ca6-ca027cbcb966
* scripts: Add support for nokia800 to runqemuRichard Purdie2008-04-101-5/+32
| | | | git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4226 311d38ba-8fff-0310-9ca6-ca027cbcb966
* scripts: Mark qemu scripts as bash specific to avoid dash problems and error ↵Richard Purdie2008-02-221-11/+22
| | | | | | 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
* scripts/poky-qemu-internal: Fix no-reboot option handling for qemuarmRichard Purdie2008-02-061-1/+1
| | | | git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3674 311d38ba-8fff-0310-9ca6-ca027cbcb966
* scripts/poky-qemu-internal: Fix PATH usage to find qemu binaryRichard Purdie2008-02-041-6/+8
| | | | git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3667 311d38ba-8fff-0310-9ca6-ca027cbcb966
* scripts: Fix sdk compiler location handlingRichard Purdie2008-01-311-3/+14
| | | | git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3652 311d38ba-8fff-0310-9ca6-ca027cbcb966
* scripts: Always try to start distccd, improve distccd cleanup, add SDK ↵Richard Purdie2008-01-311-2/+27
| | | | | | 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