什么是1337 lifeST1
关注数: 34 粉丝数: 279 发帖数: 2,043 关注贴吧数: 141
安卓KVM内核编译教程(带中文注释) 猎户座百分之百OK,高通碰运气吧,MTK基本8想了 1.This is a short guide to help you compile KVM support for your Android ARM device kernel and share your findings. Keep in mind the example below is specific for Samsung Galaxy S8 your device might need different options. Additionally, you will need to flash the resulting boot image into your device and perhaps you also need to disable the secure boot depending on your Android ARM device. Proceed only if you know what you're doing and at your own risk.(这段话的大意就是拿三星S8举例,还有刷内核教程,没啥好说的) 2.Samsung Galaxy S8(他们拿三星S8举例,实际上多数机型是共通的) You will need an Ubuntu OS and the Android NDK toolchain to compile the kernel with KVM support. The Android NDK toolchain can be found in http://tieba.baidu.com/mo/q/checkurl?url=https%3A%2F%2Fdeveloper.android.com%2Fndk%2Fdownloads.&urlrefer=45f61900d1cb5aa2c38cf32c4ebc0074 If newer NDK versions error during compilation make sure you are using the correct version. To download archived versions go to http://tieba.baidu.com/mo/q/checkurl?url=https%3A%2F%2Fdeveloper.android.com%2Fndk%2Fdownloads%2Folder_releases.&urlrefer=35a7f2edc1c5592d023417e546865ab4 上面这段话讲的是安装依赖(在UBUNTU下),依赖的下载地址就是这段网址 3.Go to Samsung Open Source center: http://tieba.baidu.com/mo/q/checkurl?url=http%3A%2F%2Fopensource.samsung.com%2F+and&urlrefer=b454038cb76aac6fdde7617c613a7337 search for: s8 or g950F There might be multiple archives, make sure you download the correct one for your device. Download the zip file and extract it somewhere in your home directory. 去下载三星内核,如果你是高通设备在GITHUB搜索(这里拿835举例)搜索android_msm8998_kernel,然后再过滤关键词找带KVM字样的内核 4.Open the defconfig file exynos8895-dreamlte_defconfig and add these options with a text editor: 上面这句话的意思是打开内核的配置文件,他举例是猎户座8895,所以文件名是 exynos8895-dreamlte_defconfig,如果是835(举例),文件名就是msm8998_deconfig,然后拿文本编辑器打开 加入以下代码(如果有的部分直接按照以下改) CONFIG_VIRTUALIZATION=y(加入) CONFIG_KVM=y(加入) CONFIG_KVM_MMIO=y(不生效加入) CONFIG_KVM_ARM_HOST=y(不生效加入) 5.编译内核,以下是猎户座8895的编译步骤,不同内核的编译方式不同,内核源码作者会写清楚的 export ARCH=arm64 export CROSS_COMPILE=PATH_TO_NDK/android-ndk-NDK_VERSION/toolchains/aarch64-linux-android-TOOLCHAIN_VERSION/prebuilt/linux-x86_64/bin/aarch64-linux-android- make clean make mrproper make exynos8895-dreamlte_defconfig make menuconfig make、 6.编好了后刷到手机里就行
首页 1 2 下一页