I have written a linux kernel module for my Pixel2, and compile it under AOSP source: kernel/msm.git android-msm-wahoo-4.4-oreo-dr1
But when I insmod my module, dmesg reports "disagrees about version of symbol module_layout".
Google told me that the kernel source version I used to compile my kernel module is not corresponding to the kernel source version used to building the official Pixel2 kernel.
Where can I find the kernel source version/branch of AOSP used to build the official Pixel2 kernel?
https://android.googlesource.com/device/google/wahoo-kernel/
Thanks, but this link only has some binaries used for pixel device.
I want to have the kernel source location and its branch and version used to build the pixel 2 official kernel.
Related
Hi, I wanted to build a CM12 kernel. I used CM kernel source and built a basic one that booted. Now i want to add features. I referred to guides and understand how to cherrypick using commits but instead of doing git fetch, I git cloned it. Now i have a folder of my kernel and other kernel. How do i cherrypick from that folder into my kernel?
http://consumer.huawei.com/en/support/mobile-phones/p9-en.htm
http://download-c.huawei.com/downlo...oadId=80183&version=318892&siteCode=worldwide
I got the source code form opensource.samsung.com and I compiled the kernel successfully.
I want to know that how do I use the kernel to build AOSP for my phone?
And the samsung kernel is based on Android 6.0.1, can I port the latest Android version to my phone?
I am currently trying to compile the kernel from official source... Worked so far. But what is the audio kernel? How to compile / include in kernel? I am finding zero information on it on Google.
I'm new to the android build system but have been running stripped kernels for years. I'm working on a custom rom for a TCL A30 (MT6762/MT6765).
I've looked at the AOSP code base and TCL source, for a similar device, and it looks like the TCL source generates the needed kernel .config file with scripts. There are multiple scripts for different archs and cellphone carriers. My TCL A30 has a Bangkok_CC (ConsumerCellular) tag and I found arch/arm64/configs/bangkok_TF_defconfig (TracFone). There do not appear to be any patches in the TCL source. The source I found:
TCL-Mobile on sourceforge
Has the Tracfone TCL A3:
Tracfone TCL A3x product link
That source contains Bangkok_TF_defconfig.
I was able to adb pull /proc/config.gz directly from the device and it's running 4.19.126+ released last month.
First question: Can I generate a bangkok_CC_defconfig from /proc/config.gz in the AOSP code base? It is mosttly monolithic
Code:
cat .config | grep =m > kernel_modules.txt
CONFIG_IKHEADERS=m
CONFIG_TCP_CONG_WESTWOOD=m
CONFIG_TCP_CONG_HTCP=m
CONFIG_SERIAL_OF_PLATFORM=m
CONFIG_BATTERY_MT6359=m
CONFIG_SND_SOC_MT6359_ACCDET=m
CONFIG_USB_DUMMY_HCD=m
CONFIG_MMC_SDHCI=m
CONFIG_MMC_SDHCI_PLTFM=m
CONFIG_MMSTAT_TRACER=m
At the time of this post the latest upstream is 4.19.244
Second question: Are most Android projects like Debian/RHEL where they back patch kernel vulnerabilites? Would the most up-to-date kernel result from the latest AOSP source and would building it just be a matter of dropping in my /proc/config.gz and setting the build environment that I found in the TCL source?
I suspect that AOSP is contributing back to kernel.org. Third question: AOSP vs Kernel.org source? Does Google backport like RHEL/Debian? Or would I get a more recent,, secure kernel using upstream kernel.org source?.
Last question Clang vs GCC. I've just setup my Arch Linux build box w/ arm64_gcc. Speed is less important to me than stable builds. What are the arguments for one compiler over another?