Computer Hope

Hardware => Drivers => Topic started by: marxengels on August 15, 2017, 10:55:54 AM

Title: Help compiling drivers for android device (armhf-kernel-headers)
Post by: marxengels on August 15, 2017, 10:55:54 AM
I'm trying to compile wifi drivers for an android device an LG , which is running on marshmallow and cm13 .
The kernel is 3.4 , i'm not able to get the original one because it's a custom built rom .
I did find on github the kernel aimed at the device and the kernel cm13 is based on. both where used to craete the rom , i presume.

I'm not certain which one of the two i should use for the compilation though.
I have original drivers from realtek and source code aimed at the same kernel version i.e linux-kernel-3.4 (android)

I'm not sure if a linux-kernel3.4 armhf is a universal matching kernel (which means i could use ubuntu backports for Zezty and get a linux-armhf copy of same version ) or do i need to use the specific one aimed at the device or even cm13 ?

Also do i just unpack the kernel source and use make to create headers or do i actually need to install them on my x86_64 Ubuntu laptop ?

Thanks for any feedback ,
i'm stuck on this for days now and it's starting to seriously weigh on me