用buildroot qemu 运行 Android 系统
准备 qemu, 编译 arm 的运行环境
- $ wget http://wiki.qemu-project.org/download/qemu-2.0.0.tar.bz2
- $ tar xzvf qemu-2.0.0.tar.bz2
- $ mkdir ./qemu-2.0.0/bin
- $ cd ./qemu-2.0.0/bin/
- $ ../configure --target-list=arm-softmmu
- $ make
- $ wget http://buildroot.uclibc.org/downloads/buildroot-2014.05.tar.bz2
- $ tar xjvf buildroot-2014.05.tar.bz2
- $ cd buildroot-2014.05/
- $ make qemu_arm_vexpress_defconfig
- $ make menuconfig
Toolchain -> C library -> eglibc Toolchain -> Enable C++ support System configuration -> Root filesystem overlay directories -> <path to your alien rootfs dir, e.g. /home/payne/qemu/rootfs_my/> Target packages -> Show packages that are also provided by busybox Target packages -> Debugging, profiling and benchmark -> gdb -> full debugger Target packages -> Networking applications -> dhcpcd Target packages -> Shell and utilities -> bash Filesystem images -> cpio the root filesystem Filesystem images -> tar the root filesystem
- $ export BR2_JLEVEL=4
- $ make linux-menuconfig
Device Drivers -> (*) Staging drivers -> (*) Android -> (*) Android Binder IPC Driver File systems -> (*) FUSE (Filesystem in Userspace) support
- $ make
- $ ./qemu-2.0.0/bin/system/arm-softmmu/qemu-system-arm -M vexpress-a9 -m 1G -kernel ./buildroot-2014.05/output/images/zImage -drive file=./buildroot-2014.05/output/images/rootfs.ext2,if=sd -append "console=ttyAMA0,115200 root=/dev/mmcblk0" -serial stdio -net nic,model=lan9118 -net user -redir tcp:5900::5900
- Input "root" when you see the login prompt
- # dhcpcd
- #
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。