简体   繁体   English

从源代码构建android内核给我错误! (联想TAB 2 A8-50F)

[英]Building android kernel from source gives me error! (Lenovo TAB 2 A8-50F)

I've successfully flashed a wrong boot.img onto my tablet, and i cannot turn it on now. 我已成功将错误的boot.img刷新到平板电脑上,现在无法打开它。 (yeah, i've got a bootloop) I've already downloaded the SP flash tool and the original source code but somehow i cannot compile the kernel from it...i guess, something is missing. (是的,我有一个bootloop)我已经下载了SP闪存工具和原始源代码,但是不知何故我无法从中编译内核……我想,有些东西丢失了。 Here is what i did so far: 这是我到目前为止所做的:

git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9
cd android
tar xvf lenovo_tab_2_a8-50_osc_201505.tar.gz 
export ARCH=arm64
export CROSS_COMPILE=~/aarch64-linux-android-4.9/bin/aarch64-linux-android-
make lcsh8735_6tb_a8_l_defconfig
make -j2

And I've got this output: 我得到了以下输出:

drivers/misc/mediatek/gpio/mt6735/mt_gpio_debug.c:21:23: fatal error: gpio_init.h: No such file or directory
 #include <gpio_init.h>
                       ^
compilation terminated.
make[5]: *** [drivers/misc/mediatek/gpio/mt6735/mt_gpio_debug.o] Error 1
make[4]: *** [drivers/misc/mediatek/gpio/mt6735] Error 2
make[3]: *** [drivers/misc/mediatek/gpio] Error 2
make[2]: *** [drivers/misc/mediatek] Error 2
make[1]: *** [drivers/misc] Error 2
make: *** [drivers] Error 2
make: Leaving directory `/home/hunwalk/android/Lenovo_A8/alps/kernel-3.10'
hunwalk@hunwalk-K73SV:~/android/Lenovo_A8/alps/kernel-3.10$ 

Could somebody help me? 有人可以帮我吗?

Error 错误

fatal error: linux/netfilter/xt_mark.h: No such file or directory

normally arises when you build kernel on shared folders or other filesystem which doesn't support links. 通常是在共享文件夹或不支持链接的其他文件系统上构建内核时出现的。

Build kernel on local Linux filesystem (ext4, xfs, etc.). 在本地Linux文件系统(ext4,xfs等)上构建内核。

Edit the mt_gpio_debug.c file and replace this line #include <gpio_init.h> with ' #include "gpio_init.h" ' It's seems like a typo in most mt6735/mt6753 kernel source codes. 编辑mt_gpio_debug.c文件,并将此行#include <gpio_init.h>替换为' #include "gpio_init.h" '在大多数mt6735 / mt6753内核源代码中,这似乎是一个错字。

Source: Github 资料来源: Github

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM