summaryrefslogtreecommitdiffstats
path: root/scripts/poky-qemu-ifup
Commit message (Collapse)AuthorAgeFilesLines
* Make poky-qemu and related scripts work with arbitrary SDK locationsScott Garman2010-12-091-8/+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>
* Update meta-ide-support dependenciesScott Garman2010-10-071-1/+1
| | | | | | | | | | | | | | | | | | Using poky-qemu with our new tap networking and/or unfs support required too many additional build steps. This updates the meta-ide-support dependencies so all features are built and available to use. Specifically, this adds psuedo-native, qemu-helper-native, and unfs-server-native to the dependency chain for meta-ide-support. This fixes [BUGID #392] Also add poky-gen-tapdevs and remove runqemu-nfs from the qemu-helper-native recipe, and update some qemu control script error messages to suggest building meta-ide-support. Signed-off-by: Scott Garman <scott.a.garman@intel.com>
* poky-qemu-ifup/ifdown: Require root privileges to runScott Garman2010-10-071-34/+19
| | | | | | | | | | This fixes [BUGID #232], requiring root privileges to run these scripts and giving an error prompt when that requirement is not met. The tunctl uid fallback code has also been removed, as we can rely on the specific version of tunctl run from the native sysroot. Signed-off-by: Scott Garman <scott.a.garman@intel.com>
* scripts/poky-qemu-ifup: Ensure the host has a route to itRichard Purdie2010-09-101-0/+9
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* scrtips/poky-qemu: Fix network interface device numberingRichard Purdie2010-09-101-1/+1
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* poky-qemu-[ifup|ifdown]: Use native tunctlJeff Dike2010-08-201-12/+74
| | | | | | | | | | | | | | | | | poky-qemu-ifup can run standalone by root in order to configure a bank of tap devices for later qemu use. These devices will, if possible, be owned by a specified group to which qemu users must belong. If the kernel is too old to support TUNSETGROUP, then it falls back to setting the tap device to be owned by a particular user, and that user will be the only one allowed to use it. Also overall usability improvements to the scripts, usage() help, etc. Signed-off-by: Jeff Dike <jdike@linux.intel.com> Signed-off-by: Scott Garman <scott.a.garman@intel.com>
* poky-qemu-ifup: allow multiple tap devicesJeff Dike2010-08-201-1/+2
| | | | | | | This patch bases the tap IP address on the device number, providing each device with its own IP address. Signed-off-by: Jeff Dike <jdike@linux.intel.com>
* qemu: Use a TAP device instead of slirp for networkingJeff Dike2010-08-201-1/+9
| | | | | | | | | | | | | | | | 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>
* Use /sbin/iptables if which iptables fails.Joshua Lock2008-06-261-2/+7
| | | | git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4733 311d38ba-8fff-0310-9ca6-ca027cbcb966
* poky-qemu-ifup: added NAT setupMarcin Juszkiewicz2008-05-081-0/+5
| | | | git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4457 311d38ba-8fff-0310-9ca6-ca027cbcb966
* Update copyrightRichard Purdie2007-05-161-0/+18
| | | | git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1734 311d38ba-8fff-0310-9ca6-ca027cbcb966
* scripts: Rename scripts, update READMERichard Purdie2007-01-161-0/+9
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1146 311d38ba-8fff-0310-9ca6-ca027cbcb966