0

나는 android lollipop에서 수정 된 Android 커널을 실행하려고합니다.Android goldfish 커널 컴파일

$ git clone https://android.googlesource.com/kernel/goldfish.git 
$ cd goldfish/ 
$ git checkout -t origin/android-goldfish-3.4 -b goldfish3.4 
$ git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/x86/i686-linux-android-4.6 
$ export PATH=$(pwd)/x86_64-linux-android-4.7/bin:$PATH 
$ export CROSS_COMPILE=x86_64-linux-android- 
$ make ARCH=x86 CC="${CROSS_COMPILE}gcc -mno-android" goldfish_defconfig 
$ make ARCH=x86 CC="${CROSS_COMPILE}gcc -mno-android" bzImage 

arch/x86/boot/bzImage를 생성했고 컴파일이 성공적으로 완료 위의 명령을 사용하여 : 나는이 명령을 사용하여 안드로이드 SDK의 API-22 x86 및 컴파일 금붕어를 다운로드했습니다. 내가

$ ./tools/emulator -debug init -kernel ~/Android_Project/goldfish/arch/x86/boot/bzImage -system ./system-images/android-22/google_apis/x86/system.img -ramdisk ./system-images/android-22/google_apis/x86/ramdisk.img -avd Nexus_S_API_22 -wipe-data -qemu -enable-kvm -show-kernel 
emulator:Found AVD name 'Nexus_S_API_22' 
emulator:Found AVD target architecture: x86 
emulator: Found directory: /home/umer/Android/Sdk/system-images/android-22/google_apis/x86/ 

emulator:Probing for /home/umer/Android/Sdk/system-images/android-22/google_apis/x86//kernel-ranchu: file exists 
emulator:Auto-config: -engine qemu2 (based on configuration) 
emulator: Found directory: /home/umer/Android/Sdk/system-images/android-22/google_apis/x86/ 

emulator:Found target-specific 64-bit emulator binary: /home/umer/Android/Sdk/tools/qemu/linux-x86_64/qemu-system-i386 
emulator:Adding library search path: '/home/umer/Android/Sdk/tools/lib64' 
emulator:Adding library search path: '/home/umer/Android/Sdk/tools/lib64/libstdc++' 
emulator: Found directory: /home/umer/Android/Sdk/system-images/android-22/google_apis/x86/ 

emulator: Found directory: /home/umer/Android/Sdk/system-images/android-22/google_apis/x86/ 

sh: 1: glxinfo: not found 
emulator:GPU emulation enabled using 'host' mode 
emulator: Adding library search path for Qt: '/home/umer/Android/Sdk/tools/lib64/qt/lib' 
emulator: Setting Qt plugin search path: QT_QPA_PLATFORM_PLUGIN_PATH=/home/umer/Android/Sdk/tools/lib64/qt/plugins 
emulator: Running :/home/umer/Android/Sdk/tools/qemu/linux-x86_64/qemu-system-i386 
emulator: qemu backend: argv[00] = "/home/umer/Android/Sdk/tools/qemu/linux-x86_64/qemu-system-i386" 
emulator: qemu backend: argv[01] = "-debug" 
emulator: qemu backend: argv[02] = "init" 
emulator: qemu backend: argv[03] = "-kernel" 
emulator: qemu backend: argv[04] = "/home/umer/Android_Project/goldfish/arch/x86/boot/bzImage" 
emulator: qemu backend: argv[05] = "-system" 
emulator: qemu backend: argv[06] = "./system-images/android-22/google_apis/x86/system.img" 
emulator: qemu backend: argv[07] = "-ramdisk" 
emulator: qemu backend: argv[08] = "./system-images/android-22/google_apis/x86/ramdisk.img" 
emulator: qemu backend: argv[09] = "-avd" 
emulator: qemu backend: argv[10] = "Nexus_S_API_22" 
emulator: qemu backend: argv[11] = "-wipe-data" 
emulator: qemu backend: argv[12] = "-qemu" 
emulator: qemu backend: argv[13] = "-enable-kvm" 
emulator: qemu backend: argv[14] = "-show-kernel" 
emulator: Concatenated backend parameters: 
/home/umer/Android/Sdk/tools/qemu/linux-x86_64/qemu-system-i386 -debug init -kernel /home/umer/Android_Project/goldfish/arch/x86/boot/bzImage -system ./system-images/android-22/google_apis/x86/system.img -ramdisk ./system-images/android-22/google_apis/x86/ramdisk.img -avd Nexus_S_API_22 -wipe-data -qemu -enable-kvm -show-kernel 
emulator: Android virtual device file at: /home/umer/.android/avd/Nexus_S_API_22.ini 
emulator: virtual device content at /home/umer/.android/avd/Nexus_S_API_22.avd 
emulator: virtual device config file: /home/umer/.android/avd/Nexus_S_API_22.avd/config.ini 
emulator: using core hw config path: /home/umer/.android/avd/Nexus_S_API_22.avd/hardware-qemu.ini 
emulator: Found AVD target API level: 22 
emulator: Read property file at /home/umer/Android/Sdk/system-images/android-22/google_apis/x86//build.prop 
emulator: No boot.prop property file found. 
emulator: found skin 'nexus_5' in directory: /home/umer/Android/Sdk/skins/ 
emulator: autoconfig: -skin nexus_5 
emulator: autoconfig: -skindir /home/umer/Android/Sdk/skins/ 
emulator: Target arch = 'x86' 
emulator: Auto-config: -qemu -cpu qemu32 
emulator: ERROR: New emulator backend requires minimum kernel version 3.10+ (currently got lower) 
Please make sure you've got updated system images and do not force the specific kernel image together with the engine version 

답변

2

이 금붕어 V3.10 또는 3.18 컴파일을 시도하여 사용자 정의 컴파일 된 커널 에뮬레이터를 실행하려고

이 가능한 위치 - 당신이 출력에서 ​​볼 수 있듯이 https://android.googlesource.com/kernel/goldfish/ , 당신은 3.4 커널을 컴파일 에뮬레이터가 3.10 이상 필요합니다.