pmbootstrap/pmb/helpers
Pablo Castellano 49b35ad32d Close #226: Launch postmarketOS in a qemu virtual machine (#350)
Thanks to Pablo Castellano and Martijn Braam!
In postmarketOS we are now able to generate system images with the
correct configuration so that they can boot already using qemu

This commit brings the `pmbootstrap qemu` action.
This command is very handy because you don't have to set all the
qemu parameters, pmbootstrap does it for you.

* device-qemu-vexpress: Added kernel command line according to wiki
* qemu: Added workaround for image writing permissions
* qemu: Added support to launch postmarketOS in a QEMU virtual machine

- Support for emulating these architectures in QEMU: arm, aarch64, x86_84
- Generate QEMU command correctly depending no guest architecture (arm/x86)
- Run QEMU in the same architecture as the host by default
- Refactoring in pmb.parse.arch and pmb.qemu.run
- Raise exception if DTB file or system image are not present
- Display more useful information when something fails (e.g. image not found)
- Run qemu version depending on arch (host or argument), not device configured

* device-qemu-amd64: set deviceinfo_kernel_cmdline to "PMOS_NO_OUTPUT_REDIRECT"
* qemu: added --memory argument to specific guest RAM
* device-qemu-amd64: adjusted deviceinfo_kernel_cmdline (console=tty1)
* Added /etc/network/interfaces for qemu-amd64
* qemu: Added KVM support if /dev/kvm if present
* Specify separate machines for architecture
* qemu: Check if QEMU is installed instead of crashing
* Added graphics driver to qemu-aarch64

- Use arm (as used in qemu) instead of armhf (used in Alpine)
- qemu argument is -dtb
- Follow same style to build the command + arguments

* qemu: Added SSH port redirection: ./pmbootstrap.py qemu -p 2222
2017-08-09 20:26:40 +00:00
..
__init__.py Hello, there! 2017-05-26 22:08:45 +02:00
cli.py Fix #242: Validate input in pmb.helpers.cli 2017-07-26 19:05:06 +02:00
devices.py Close #194: Aports subfolders! See migration guide in the wiki (#227) 2017-07-28 22:34:40 +00:00
file.py Add possibility to export Odin flashable tar (#297) 2017-07-30 21:15:59 +00:00
frontend.py Close #226: Launch postmarketOS in a qemu virtual machine (#350) 2017-08-09 20:26:40 +00:00
git.py Hello, there! 2017-05-26 22:08:45 +02:00
http.py Changed sha512 to sha256 to avoid "file name too long" error (issue #51) 2017-06-04 17:00:02 +02:00
logging.py Close #314: Add --details-to-stdout parameter (#317) 2017-08-02 19:38:42 +00:00
mount.py Fix #166: pmbootstrap shutdown: umount deep folder levels first (#274) 2017-07-27 18:14:02 +00:00
other.py Update runtime error message thrown for grsec/hardened kernels (#236) 2017-07-23 12:29:13 +00:00
repo.py Fix various build issues (fix #189, fix #341) (#345) 2017-08-09 17:59:21 +00:00
run.py Close #226: Launch postmarketOS in a qemu virtual machine (#350) 2017-08-09 20:26:40 +00:00
ui.py Minor fixes (#316) 2017-08-06 12:50:38 +00:00