Build a simulation environment based on Cortex-a15 -- guest android

Source: Internet
Author: User

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. =

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.