Use android as the guest system to run in qemu
1. Compile qemu-system-arm first.
./Configure -- Cross-Prefix = arm-Linux-gnueabi-\ -- enable-KVM \ -- enable-FDT \ -- target-list = arm-softmmu \ -- Static
Of course, you must first make sure that your system has related cross-compilation tools. Zlib. Secondly, the compiled qemu-system-arm cannot display graphical interfaces. The display of the graphical interface depends on the SDL function library.
When you compile configure, qemu will display the relevant options for you -- enable-SDL. However, during compilation, I always show cann' t find SDL. Google, we all say we need a libsdl1.2-Dev. Note that this is a requirement under Debian/ubuntu. But I already have this library... This configuration cannot be enabled.
2. Copy the compiled qemu-system-arm to nfsroot/root.
3. According
Https://wiki.linaro.org/Platform/Android/AndroidOnFastModels
Prepare the required Android kernel and file system. Of course, the last is a ready boot disk MMC. Bin.
This android is optimized by linaro, of course .. You can go to repo on your ownSource codeThen compile
4. Start the host system. Telnet is only used to copy and paste commands ~ =, =
5. In the generated MMC. Bin and decompressed boot folder
Initrd and zimagewithdt CP to/srv/nfsroot/root
6. Start the Guest System
. /Qemu-system-Arm \-enable-KVM \-kernel zimagewithdt \-sd mmc. bin \-initrd boot/initrd \-M 512-M vexpress-a15-CPU cortex-a15-nographic \-APPEND "console = ttyama0 mem = 512 M init =/init"
. It takes a long time. Really long... Then the root @ Android interface appears. But .. Very card, very card, very card.
In this case, the host is a kernel and the guest is Android ~~~~~
Last, some experiences
The-initrd option was not added at the beginning. qemu always reported an error and could not identify the file system type of MMC. Bin.
This is normal. After I mounted MMC. bin, I saw that there are a total of four partitions in it. The boot file system is vfat and the others are ext4. It's strange to recognize them ....
Check the production script of linaro-media-create, and there is no mkfs. In fact, we can use what it makes as a CD.
Problem
Can you tell me how to create the interface. =