[Transformer TF300T Android Development] tux-friend:
Missing kernel headers and kernel sources for kernel v2.2.9

First of all, I would like to say thank you very much to all developers and contributors who made the idea real to run xubuntu on the tf300 as productive and responsive operating system!!! This is a shining proof of what can be achieved by a cooperative community with open source on the mind! Amazing. :good:

Personally, I mainly followed the updated guide presented by webdoctors to install xubuntu on my internal eMMC:

xdaforums.com/showpost.php?p=48947306&postcount=342

In general, I am quite satisfied with the new system and the dual boot option and most functions are working well under xubuntu (apart from suspend to ram which is obviously not working). However, I would like to use external hardware equipment under xubuntu, for example an usb to ethernet adapter which I have recently bought for my tab. Fortunately, the company offers an installation script for Linux users which I appreciate. During the installation process new kernel modules are supposed to be created. And that is exactly the point were I am stuck now because I have received error messages due to missing kernel-headers. I am still no perfect expert about Linux but I used some ubuntu based distributions for longer time. Therefore, I know that kernel-headers are sometimes needed to build kernel modules against your running kernel. The neccessary files should be normally found under /usr/src/linux-${kernelver}. However, this directory was empty ( I guess the headers were not provided because the files will use quite much of your valuable storage capacity).

Under x86 microprocessor architecture and ubuntu based systems it's rather easy to install the headers if they are still missing. One possible solution is to use synaptic package manager, then type your kernel version (the version I use is 3.1.10) in the search box and look for appropriate kernel-headers (often it's just the generic version). But under arm architecture this seems to be completely different due to more specific hardware constellations. In fact, I found some available packages by this procedure. However, they were compiled for the nexus 7 and ac100 device. For this reason, I think it makes little sense to install either of these packages.

Therefore, I tried to build the needed kernel headers by myself mainly following these useful guides:

www.howtoforge.com/kernel_compilation_ubuntu

www.howtoforge.com/kernel_compilation_ubuntu_p2

But at this point, the first difficulty occured: For compilation I need the corresponding kernel source. Since I used the latest kernel provided by tailormoon (V2.2.9), I was looking for the source used for this special kernel. However, I wasn't successful because it was not provided in this post:

http://xdaforums.com/showpost.php?p=48413781&postcount=327

Therefore, I would appreciate very much if tailormoon could offer a download link for the kernel source. Maybe some other users would be happy as well to be able to build an kernel or just the missing headers.

Alternatively, I also tried to compile headers for the slightly older kernel version V2.2.6 from Graiden05 because firstly the kernel source was provided in this case and secondly tailormoon's versions seems to be based on this kernel source so that the possible differences might be not so big. The kernel source for V2.2.6 can be found here:

http://xdaforums.com/showpost.php?p=48025643&postcount=313

At first, it looked like compilation seems to work but at the end I received error mesages so that the process couldn't be successfully finished :(. I have add the output to the attachment. Unfortunately, I really don't know, how to continue from here and I would be thankful if somebody could help. Many thanks in advance!

P.S.: That was a rather long post but my intention was to document the whole process so that also other users can benefit from this experience. I guess I will be not the only one who has to face this kind of problems. :D