After the Android source code has been compiled, we can run it. 1. Configure environment variables:/data/data/android$ export path= $PATH: $ (PWD)/out/host/linux-x86/bin/data/data/android$ export android_ product_out=$ (PWD)/out/target/product/generic 2, through the emulator to start the simulator, with the corresponding parameters:/data/data/android$ Emulator-kernel. Prebuilts/qemu-kernel/arm/kernel-qemu-armv7-sysdir./out/target/product/generic/-system $ANDROID _product_out/ System.img-data $ANDROID _product_out/userdata.img-ramdisk $ANDROID _product_out/ramdisk.img 3, use your own compiled kernel:/data/ data/android$ Emulator-kernel./kernel/goldfish/arch/arm/boot/zimage-sysdir./out/target/product/generic/-system $ Android_product_out/system.img-data $ANDROID _product_out/userdata.img-ramdisk $ANDROID _product_out/ramdisk.img 4, View kernel version:/data/data/android$ adb shell[email protected]:/# CD Proc/[email Protected]:/proc # cat version
Linux version 3.4.67-gea97df6 ([email protected]) (GCC version 4.6.x-google 20120106 (prerelease) (GCC)) #2 PREEMPT Sat F EB 7 17:48:18 CST 2015
[Original] Run the compiled Android emulator