yashsingh1/xdaforums huggingface dataset:
[Transformer TF300T Android Development] -MightyMouse-:
Completely understand and after reading more i am trying to make it work
[Transformer TF300T Android Development] -MightyMouse-:
ok so I have run the kernel v2.2.9 and it runs great. so does the xubuntu 13.04 img. I wanted this so that I could run android kitchen. every time I try to run it i get this.

bash: ./menu: Permission denied

This is the first time I have seen this using android kitchen. Does this have anything to do with how this is set up?
[Transformer TF300T Android Development] TXKSSnapper:
I just tried using workdowg's installer script, and I seem to have lost wifi on android. haven't tried booting into ubuntu yet. Do I need a different version than the one included in the script?
[Transformer TF300T Android Development] Duckman5:
[QRCODE][/QRCODE]

I haven't tried the installer script out yet, but from what JoinTheRealms has said, it doesn't sound like you need to do anything special. Do us a favor and post us a screenshot of your settings-->About Tablet screen so we can see what kernel is loaded when you boot into android. If it's the kexec host kernel, that probably means something went wrong in the install and might explain why you have no wifi. Also, did you ever boot into Linux to see if that worked?
[Transformer TF300T Android Development] -MightyMouse-:
ok so there was no post on how to do this in kitkat and so now that kitkat is geting more popular I thought I would post how i did mine.

I have 2 micro sd cards in my tablet my slower samdisk 32 gb and my other 32 gb that I use with an adapter in the sd card slot on the keyboard. I don't know much about it other than its really fast and xubuntu 13.04 runs great on it. here is how its set up.

first use gparted to partition it to 2 gb of swap and 30gb for linux (partitioned as ext4 of course). now use the dd comand to flash the img over to the micro. Now the way it will set up is that the partition will seam to shrink to 3.8 gb in size. to fix open up gparted, go to partition and select check. that will fix it.

page 35 post 2 will have the img I used. page 36 will have the grimlock kernel.

flash the kernel in twrp and then boot to linux. there will be a kernel.tar.gz file you will have to extract into /lib/modules/3.1.10/. then open up terminal and run sudo depmod -a. now open /etc/modules and check for these lines

bluedroid_pm

cfg80211

bcmdhd_29

rfcomm

when I checked mine I only found

cfg80211

bcmdhd_29

so you may need to add the others manualy (using root of course)
[Transformer TF300T Android Development] aurel33:
I am running Xubuntu 13.04 and I just installed the modified version of Parole Tuomas Kulve that works very well. I would like to update the drivers and codecs for linux for tegra to version 16.4. SOMEBODY could tell me the method to be followed to have a clean installation?
[Transformer TF300T Android Development] -MightyMouse-:
I was wondering if I could get a link to ubuntu 13.10 for this device. 13.04 has had the plug pulled on it.
[Transformer TF300T Android Development] aurel33:
Tuomas Kulve blog : Ubuntu 13.10: X.Org Video ABI 14, rendering problems
[Transformer TF300T Android Development] JoinTheRealms:
Apparently it is fixed by disabling xrender in xorg with minimal app breakage, haven't tried yet though.
[Transformer TF300T Android Development] petulinka1:
Hi,

what is the right way to "uninstall" xubuntu from my TF300T? I just don't want to do something wrong. Thaks :)
[Transformer TF300T Android Development] Duckman5:
How did you install it in the first place? Just undo that!

Did you put an image file in /data/media/Linux? Delete it.

Did you flash a new boot image? Flash a regular android one.

Did you replace the kernel modules? That one may require reinstalling your ROM if you don't have a standalone kernel installer or backups. (you did make a nandroid first, right? :))
[Transformer TF300T Android Development] -MightyMouse-:
could someone please tell me where I can find an xubuntu 13.10 img. cant find one anywere
[Transformer TF300T Android Development] tux-friend:
New xubuntu version for f300tg or upgrade possibel?

As far as I know, there is no xubuntu 13.10 img available yet and the offered images are all based on version 13.04. Actually, I would promote if a xubuntu update could be available based on version 14.04 due to ubuntu's long-term support for this version. But I guess that wil be lots of work and you will need some knowledge to get all funtions of your tab working. If you want to do try, indeed, and do this by yourself, a good starting point would be to follow the second post of this thread written by schrdlu.

Just another idea: How about making a version upgrade via the ubuntu update-manager? Would this be generally ok for the TF300 or are there any arguments against this idea? :confused:
[Transformer TF300T Android Development] Graiden05:
Actually I have in plans compile new version of dualboot kernel with f2fs support based on katkiss sources. So I'll try to satisfy Your request in this version.
[Transformer TF300T Android Development] tux-friend:
Oh great! This sounds really cool. Please make this plan come true :good:

It would be also nice, if OC ability would be included in the kernel again :D

Graiden, do you have already any idea when this kernel could be ready for release? Any rough time frame?

For the time in between, I am still willing to compile the kernel headers by myself since I have already downloaded the source files of the old kernel. But I am still not sure why the error occured during compilation. Is there anybody who has an idea?
[Transformer TF300T Android Development] Graiden05:
I hope it will be ready during next week.
[Transformer TF300T Android Development] tux-friend:
Great, this is really nice to hear, Graiden! Then I will be patient and wait a little bit more :o
[Transformer TF300T Android Development] Graiden05:
So here is something to test. Bluetooth require some further research... And about additional modules: it seems like its way easier to build required one from kernel sources (if it there). Anyway later I will try to post sources on github. Also it looks like modules builded from original kitkass kernel works with this one (and link on kitkass kernel source can be found in its thread).

----------------------------------------

So here is sources.
[Transformer TF300T Android Development] jtquen:
Question

Can this work on the 4.2 bootloader and I can I dualboot with Ubuntu and Android 4.4?
[Transformer TF300T Android Development] tux-friend:
Concerning your first question: As far as I know, you must be on the 4.2.1 BOOTLOADER VERSION 10.6.1.27.x

Concerning your second question: Yes, this kernel was intended to make dualboot possible between Ubuntu based OS and Android 4.4

Please also check Graiden's README file from his sources for more info.

---------- Post added at 10:22 PM ---------- Previous post was at 10:07 PM ----------

For a longer time, I was off and didn't reply. Sorry for that. I was playing with your new kernel in the meantime and try to compile it from the provided source as well, Graiden05. Thanks for your efforts! It's very much appreciated. And at least regarding xubuntu, it seems to work well so far. I still need some more time to test it but here is some feedback which could be interesting for some other users as well:

regarding xubuntu (booted as imgage loop mount from the internal eMMC)

as mentioned above I couldn't experience any bugs or issues concerning the OS stability

wlan works without any problems so far

bluetooth adapter is currently not recognized (need to be fixed)

hardware accelaration seems to work nearly perfectly (I get more than 800 fps by running es2gears without opening any other disturbing process in the background)

regarding Android 4.4

no good news so far. I wanted to install KitKat 4.4.4-CROMBi-kk and it's working when I follow exactly the instructions from their website. But after flashing your kernel, I cannot boot CROMBi-kk anymore. During the boot sequence some error occured always displaying the message that “Unfortunately, the process com.android.phone has stopped”. I was checking for possible solutions in the internet to fix this issue but no attempt was successful so far. I tried:

a) to delete the cache folder of “Phone” using the File Manager in TWRP Custom Recovery

b) do a factory reset in TWRP

c) format data in TWRP

d) start from a fresh installation again after a full wipe. Then I tried to install your kernel after another full wipe.

Any other ideas how to fix this? Alternatively, I have also tried to install Slimkat but again, I couldn't get a full dualboot system working on my tablet.

To be honest, after all this trial and error I got a little bit sick due to too frequent flashing :eek: ... ... ... and after all I felt like my brain was flashed as well :silly:. That's maybe some possible explanation why my response has taken some time. But now, I am back again!

---------- Post added at 10:34 PM ---------- Previous post was at 10:22 PM ----------

Graiden could you please do another favour and upload your .config file for compiling the kernel from source? I couldn't find it neither on your website nor on the original katkernel sources.

It would make compilation much easier for me.

--

Many thanks in advance
[Transformer TF300T Android Development] Graiden05:
It is on my github: arch/arm/configs/tegra3_dualboot_defconfig. Also You can extract kernel image from blob with blobtools and then use bash script (scripts/extract-ikconfig) to get config from it (or just boot with this kernel and packed config will be at /proc/config.gz). About CROMBi-kk and others: probably You should combine theirs rootfs with dualboot rootfs to get it work properly (and maybe build dualboot kernel based on their sources).
[Transformer TF300T Android Development] ch3mn3y:
If i remember right, karkiss has different kernel than cm one used as a base for crombikk ones and if u want to make it work with other roms than katkiss u need first to delete phone.apk and teleservice.apk (or similar). Than.it will work fine (i was using karkernel with cm11 and got this fc too)

Sent using C6833 - Carbon KitKat/Pimped Z1 Kernel
[Transformer TF300T Android Development] ch3mn3y:
I was using solod explorer with root rights to delete them, so any root explorer should be good. Than reboot to be sure and everything was fine

It would be grat if someone would make grimlock 4.0 linaro or not, so it will work with all roms.

Sent using C6833 - Carbon KitKat/GreatDevs
[Transformer TF300T Android Development] tux-friend:
Hi Graiden, I would be interested in some details how you have compiled the kernel sources. Have you done the building natively on your ARM tablet or have you cross compiled the source on a different architecture? And do any warnings appeared during your compiltion process? As I mentioned in my previous post, I couldn't succeed:

check point 8 (Compile the kernel-headers from source)

Any idea why this has happened or how to solve this issue?

[MENTION=535343]all[/MENTION]: Is there anyone who tried to compile the sources as well and experienced the same troubles? In this case, some further feedback might be usefull.

---------- Post added at 11:00 PM ---------- Previous post was at 10:39 PM ----------

Thanks for your suggestion. Unfortunately, I don't feel that I am experienced enough to do that by myself. Therefore, I hope that there will be a hero again who could do this so that dualboot between Andoid 4.4 and Linux will work properly :)

And basically I agree with ch3mn3y that a linaro based kernel would be propably a nice option if somebody could do it. :D
[Transformer TF300T Android Development] Graiden05:
I use xubuntu 12.04.3 x86 in VirtualBox on my Desktop PC to crosscompile it. Also I use arm gcc 4.7 and add to any "make" command "ARCH=arm SUBARCH=arm CROSS_COMPILE=/path_to_gcc_directory/gcc-arm-none-eabi-4_7-2013q3/bin/arm-none-eabi-".

e.g.:

make ARCH=arm SUBARCH=arm CROSS_COMPILE=/path_to_gcc_directory/gcc-arm-none-eabi-4_7-2013q3/bin/arm-none-eabi- zImage

There are one problem: for compile something there should be "target" for it in makefile. And in sources for tf300 kernel no such target as "kernel_headers".
[Transformer TF300T Android Development] tux-friend:
Finally, I could succeed in compiling the kernel headers after many trials and errors. Unfortunately, it turned out that the downloaded zip file was corrupt which contained the sources from Graiden's github repository. After cloning the sources directly from the github repository, no error messages were displayed anymore that some files were missing.

However, after installing the kernel headers I got into new difficulties while trying to build some modules for an usb ethernet adapter. Here is the output after using the 'make' command:

make -C /lib/modules/3.1.10-katkernel-015/build SUBDIRS=/home/ubuntu/TMP/AX88179_178A_v1.10.0_src_linux modules
make[1]: Entering directory `/usr/src/linux-headers-3.1.10-katkernel-015'
CC [M] /home/ubuntu/TMP/AX88179_178A_v1.10.0_src_linux/ax88179_178a.o
In file included from /usr/src/linux-headers-3.1.10-katkernel-015/arch/arm/include/asm/page.h:206:0,
from include/linux/mmzone.h:20,
from include/linux/gfp.h:4,
from include/linux/kmod.h:22,
from include/linux/module.h:13,
from /home/ubuntu/TMP/AX88179_178A_v1.10.0_src_linux/ax88179_178a.c:30:
/usr/src/linux-headers-3.1.10-katkernel-015/arch/arm/include/asm/memory.h:19:25: fatal error: mach/memory.h: No such file or directory
compilation terminated.
make[2]: *** [/home/ubuntu/TMP/AX88179_178A_v1.10.0_src_linux/ax88179_178a.o] Error 1
make[1]: *** [_module_/home/ubuntu/TMP/AX88179_178A_v1.10.0_src_linux] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.1.10-katkernel-015'
make: *** [default] Error 2

The output showes that mach/memory.h is obviously missing somewhere in the linux-headers folder under /usr/src/. I don't know exactly but maybe this is a bug which should be fixed in the sources directly. But I was also looking for a possible workaround. I found that the missing file could be probably found in the sources under /tf300t-katkernel-dualboot/arch/arm/plat-mxc/include/mach/ . According to this and that link, the problem should be fixable by copying the files from the source package under /tf300t-katkernel-dualboot/arch/arm/plat-mxc/include/mach/ to /usr/src/linux-headers-3.1.10-katkernel-015/mach/ . Unfortunately, this option didn't work for me at the moment because mach/memory.h is still not found. Therefore, I would appreciate to receive some further support.
[Transformer TF300T Android Development] Graiden05:
After "glorious battle" with sources it looks like I manage to make deb package with headers. I didn't test it due laziness so I can only hope that it works. :p
[Transformer TF300T Android Development] tux-friend:
Thanks for your efforts, Graiden! However I have no good news due to following error :crying:

sudo dpkg -i linux-headers-3.1.10-katkernel-015_3.1.10-katkernel-015-10.00.Custom_arm.deb

dpkg: error processing linux-headers-3.1.10-katkernel-015_3.1.10-katkernel-015-10.00.Custom_arm.deb (--install):
package architecture (arm) does not match system (armhf)
Errors were encountered while processing:
linux-headers-3.1.10-katkernel-015_3.1.10-katkernel-015-10.00.Custom_arm.deb

By the way, I use the rootfs from here:

http://xdaforums.com/showpost.php?p=47791204&postcount=284

which is mentioned in the updated installation instructions from webdoctors

And I have flashed your new kernel, of course ;)

Graiden, could you please try to compile the kernel headers again by using these options:

make ARCH=arm DEB_HOST_ARCH=armhf CROSS_COMPILE=arm-linux-gnueabihf- tegra3_dualboot_defconfig
DEB_HOST_ARCH=armhf fakeroot make-kpkg --arch arm --cross-compile arm-linux-gnueabihf- --initrd kernel_image kernel_headers

I think DEB_HOST_ARCH=armhf variable was just missing. And of course you have to modify CROSS_COMPILE variable corresponding to the ARM compiler toolchain which you are using.
[Transformer TF300T Android Development] Graiden05:
Yep, here is another try.
[Transformer TF300T Android Development] tux-friend:
Thanks again Graiden, especially for your quick response! Even though your deb package for the kernel headers was slightly larger than mine (around 2 MB difference) the problem is exactly reproducable. As mentioned in my previous post #539 I get this error again:

/usr/src/linux-headers-3.1.10-katkernel-015/arch/arm/include/asm/memory.h:19:25: fatal error: mach/memory.h: No such file or directory
compilation terminated.

Have you already tried to fix this issue directly in your kernel sources ? And why is mach/memory.h not included in the deb package after compilation, although it should be there in the original sources under /tf300t-katkernel-dualboot/arch/arm/plat-mxc/include/mach/memory.h ?
[Transformer TF300T Android Development] Graiden05:
No... I'm slightly misunderstood problem. I think it depends on some option that is disabled in kernel config. And what actually You like to fix? May be there are module that can be compiled from kernel source to make it work.
[Transformer TF300T Android Development] tux-friend:
Ok then I try to explain a little bit more: I have an usb to ethernet adapter here which I would like to use with my tablet. Fortunately, the company offers a driver as source package on their website for Linux distributions with kernel 3.x/2.6.x. To build a corresponding kernel module I have to compile the driver against the sources of your kernel. Therefore I need the kernel headers. Otherwise there is no chance to use this adapter.

What I have never imagined was the fact that this could be so difficult. I am already trying to find a way for at least 4 weeks. I was quite happy when I succeeded in compiling and installing the kernel headers after my own "glorious battle". But unfortunately this was without a happy end untill now as mentioned in my previous posts. Due to the error I was thinking that it could be due to a possible bug. But according to your reply just a simple option could be probably missing in the kernel config.

Is there anyone who could help or has an idea? As I mentioned before, I googled for a possible workaround but it hasn't worked untill this point. And furthermore I think it would be quite pitty to have the kernel headers now but at the end they can't be used in a proper way.
[Transformer TF300T Android Development] Graiden05:
Can You say what actually model of adapter? There are a chance that drivers already included in kernel source.
[Transformer TF300T Android Development] tux-friend:
Sure! The model is called Asix ax88179 (USB 3.0 to Gigabit Ethernet) and source can be downloaded here.

However, according to my knowledge the original Asix driver is included just in the mainline kernel 3.9 (and above), but not in older kernels.

Furthermore, I found that there is a PPA available for this driver (even under raring and for armhf!) which use dkms for module compilation. Maybe it's my last chance if nobody could solve the mentioned issue with the missing files in the kernel headers.
[Transformer TF300T Android Development] Graiden05:
Here is cross-compiled version. I hope it will work.

P.S.: To cross-compile it I used command:

make ARCH=arm SUBARCH=arm CROSS_COMPILE=$toolchain -C $kernel_source_dir M=$(pwd) modules
[Transformer TF300T Android Development] tux-friend:
Thank you Graiden for your great support! I have the feeling that I am getting very close to the solution but still there are some problems:

At first I had to load another module (usbnet.ko) to use the Axis driver. Yesterday, I succeeded in compiling it by myself! :victory: However, it seems that your current katkernel does not accept to load modules. I used following approaches:

A) Open the terminal and change to the directory where I have saved the module files by cd command. Then I have typed:

insmod usbnet.ko
insmod ax88179_178a.ko

(I tried as root, too)

B) I copied both module files to /lib/modules/3.1.10/kernel/drivers/net/usb/ Then I have run as root:

depmod -a
modprobe usbnet
modprobe ax88179_178a

In both cases the prompt is not responding anymore after trying to load the module and hitting ENTER. Furthermore, I recognized the same behaviour after trying to use just lsmod command (no matter if done as normal user or as root).

Therefore, I have following questions:

@ all users who are testing the new katkernel:

Could you please test and verify if lsmod command is resulting in the same non-responding behaviour?

@ Graiden05

Could it be possible that the function is disabled in the .config file to load external kernel modules ?
[Transformer TF300T Android Development] Graiden05:
It's actually weird. This module is already included in kernel.

Certainly no. Console loads from modules on boot. Try to add modules names to /etc/modules. I'll try to find out reason of freeze.
[Transformer TF300T Android Development] Graiden05:
[MENTION=5983213]tux-friend[/MENTION] , here is rebuilded kernel + ax88179_178a.ko. Probably to use builtin usbnet module You need to replace modules.builtin and modules.order in /lib/modules/3.1.10-katkernel-015. I tried to insmod module in android and ubuntu (without any DE) and it loads fine (lsmod works as well).
[Transformer TF300T Android Development] tux-friend:
Loading and enabling kernel modules

Here the best news for today (and the entire month!): It's working, it's working !!! :fingers-crossed: :victory: :highfive:

I recommend to everybody who want to load kernel modules while using the new katkernel and experiencing the same issue like me to try following approach:

1. Compile the kernel module by yourself if it's not included in the .config file of the kernel or if you want to use a special driver like me (compare previous posts)

2. Copy the compiled modules with the ending *.ko to a subdirectory of /lib/modules/3.1.10/

3. Run:

sudo depmod -a

4. Open following config file with a text editor and add the module name in the list (without the .ko ending) which you want to load, e.g. by using mousepad:

sudo mousepad /etc/modules

(Many thanks to Graiden05 for this valuable clue! ;))

5. Restart your machine (but maybe simple logout and login might be enough)

---------- Post added at 09:42 PM ---------- Previous post was at 09:38 PM ----------

Wow, you were a little bit faster than me in posting and have done already a rebuild in between! You are really the master :cool:

Many thanks, I will try the rebuild as well.
[Transformer TF300T Android Development] -MightyMouse-:
In the middle of throwing together an Ubuntu 14.04 rootfs. Have no idea how it'll work out.

sent from my badass M7
[Transformer TF300T Android Development] Feazzu:
Hello everyone, i want to install xubuntu on my TF300T.

I would ask you if there is a updated guide to install it, or from where i can start to install it.

Is still valid the guide in the first two posts, or there is another guide or updates in the 50 and more pages of the thread?

Thanks in advice.
[Transformer TF300T Android Development] Geometry:
fully working xubuntu 14.04

I would like to announce a fully working xubuntu 14.04 on the tf300t. Please see these posts in the Q&A thread:

http://xdaforums.com/showpost.php?p=56532684&postcount=3

http://xdaforums.com/showpost.php?p=56571174&postcount=6

http://xdaforums.com/showpost.php?p=57227450&postcount=8

http://xdaforums.com/showpost.php?p=57280762&postcount=9

http://xdaforums.com/showpost.php?p=57523937&postcount=14

http://xdaforums.com/showpost.php?p=57529347&postcount=15

As a new member to xda I was not able to post in this thread directly, but only in the associated Q&A thread. However, I think this thread is the more appropriate place to discuss this. So please, reply in this thread.