[Transformer TF300T Android Development] tux-friend:
Compiling kernel-headers from source (kitkass kernel provided by Graiden05)

Thanks Graiden for the info and the different options to get the .config file! Without your help, I probably couldn't succeed.

Now, I had a good reason to try to compile the kernel-headers again. However, it turned out that this is not as easy as one might think. Maybe it's also related to the fact that I am still no expert with advanced Linux knowledge. But I try to do my best and here is what I have done:

1. Download some neccessary extra packages for kernel compilation

I have done this in synaptic and some further packages are installed as well due to dependencies.

kernel-package

build-essentials

fakeroot

libncurses5-dev

2. FIX warnings during kernel configuration or compilation related to locale settings and perl

I received always this error: "perl: warning: Setting locale failed." Here is how I fixed this. In terminal I have typed:

export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8

locale-gen en_US.UTF-8
dpkg-reconfigure locales

or alternatively create this file with mousepad by typing:

sudo mousepad /etc/default/locale

and add following text:

Save the file and in terminal type:

locale-gen en_US.UTF-8
dpkg-reconfigure locales

After this procedure, the issue with locale settings should be fixed.

3. Extract the source to a folder with full permissions (previously, I have add the user ubuntu_user in my system. If you use another name for user, modify the following paths in a corresponding way. )

mkdir /home/ubuntu_user/src
cd /home/ubuntu_user/src
unzip /path to the downloaded source file/tf300t-katkernel-dualboot-dev.zip

4. Copy the kernel config file to the right location, create a symbolic link to the extracted source files and change directory

cp tf300t-katkernel-dualboot-dev/arch/arm/configs/tegra3_dualboot_defconfig tf300t-katkernel-dualboot-dev/.config
sudo ln -s tf300t-katkernel-dualboot-dev linux
cd ./linux

5. FIX problems resulted from /include/linux/bottom_half.h

Several times during the compilation process I received this error:

Kernel compiling was stopped afterwards. Not sure if this is clearly a bug or if I have made something wrong. But if you have downloaded the sources as zip file like me and you experience the same issues, then download the bottom_half.h file from Graiden's github repository and override the file from the previously extracted zip with it

cp /path to the downloaded source file/bottom_half.h /home/ubuntu_user/src/tf300t-katkernel-dualboot-dev/include/linux/bottom_half.h

6. To use your current kernel settings for the new one type:

yes "" | make oldconfig

7. Clean the kernel source directory:

(Not sure, maybe this is optional and not really neccessary if it's the first time for you to compile a kernel from source)

make-kpkg clean

8. Compile the kernel-headers from source:

fakeroot make-kpkg --initrd kernel_headers

For a long time, the tablet is busy with the compilation process and in general it seems to work. However, I want to mention that several warning messages also occured, for example like:

or

I am not really sure, if this can be just normal or if I made any mistakes. while compiling the sources from my tablet. But in the end, the building process was stopped due to this error:

Can somebody help? For me it's not clear what went wrong at this point because I thought that the correct settings should be managed by the .config file.

I still want to learn how to compile the sources but I would also feel released if somebody could provide the compiled deb package in the meantime to install the kernel headers for the kitkass kernel provided by Graiden, if possible. It would make things much easier to work with my tablet in a more productive way (and maybe other users would be happy as well because then you could avoid to download the huge sources files and compile it by yourself if all what you want is to install the kernel-headers :)). Hopefully, other users can profit from my experiences as well.

--

Many thanks

---------- Post added at 05:40 PM ---------- Previous post was at 05:13 PM ----------

Hi ch3mn3y, thanks for your suggestion! Maybe I should try this possible workaround during my next flashing (ob)session of Crombi-kk ;). Do you have any recommendations which tool to use to uninstall these apps? As far as I know, I need a special system app uninstaller because it's not possible to uninstall them in the normal and simple way.