yashsingh1/xdaforums huggingface dataset:
[Transformer TF300T Q&A, Help & Troubleshooting] Geometry:
test kernel

I provide here a test kernel, compiled as described in this post. There is one small difference compared to the description in the post. It turns out that instead of the "arm-linux-androideabi-" toolchain, the "arm-linux-gnueabihf-" toolchain works as well and I have used that. Note that the kernel is a

linux only

kernel that will not work with Android. The attached file can be decompressed directly into the rootfs, automatically providing all essential files (modules, config etc.) in the right place. The (compressed) kernel itself is the file "/boot/vmlinuz-3.1.10". This is the file that is often named "zImage". The kernel config file is "/boot/config-3.1.10".

The other news is that I have also built a working xubuntu 14.04 rootfs as described in his post. As soon as I find a suitable file hosting service I will make this available here.
[Transformer TF300T Q&A, Help & Troubleshooting] Geometry:
xubuntu 14.04 rootfs

So, here is the rootfs as prepared according to this post and this post. There is one small difference in the preparation as compared to those posts. I have used a modified and updated version of the package "nvidia-tegra3", see attached file.

So the rootfs file is called "tf300t-xubuntu-rootfs.tar.gz" and can be found here. Expand this into the partition you want to use for xubuntu 14.04. It is recommendable that you replace the file "/lib/firmware/nvram.txt" with you own version from your own machine at "/data/misc/wifi/nvram.txt" in Android.

This associated kernel is also in the rootfs at "/boot/vmlinuz-3.1.10". The initial ramfs is the file "/boot/initrd.img-3.1.10". This assumes linux is in first partition "mmcblk1p1" of the external micro sd card. The username is "ubuntu" with password "ubuntu".

If you want to use a different kernel (I hope other kernels will work too, please report!) then replace the module files under "/lib/modules" and possibly some firmware files under "/lib/firmware" as necessary. Also (!) put the kernel config file in "/boot/config-3.1.10". Then enter the rootfs via chroot and generate a new initrd.img via "update-initramfs -c -k 3.1.10". It will be replace the provided one.

Also, if you want to put this on a different partition edit "/etc/initramfs-tools/conf.d/specify_root_device" accordingly and generate a new initrd.img as described above.

As before I assume here that you know what to do with the kernel and the initrd.img...

Happy testing!

---

md5sum for "tf300t-xubuntu-rootfs.tar.gz" is: 46639d3af438e9c856d5951a321e203b

---

UPDATE: Here is an alternative download link for the rootfs which might provide faster download speed. Thanks to Graiden05!
[Transformer TF300T Q&A, Help & Troubleshooting] mentosso:
[MENTION=6136418]Geometry[/MENTION]

Thank you a lot for your effort! I have a question tho, is it possible to run your rootfs and have dualboot? The best way would be to use dualboot kernel posted somewhere in the topic. If it's possible, can you briefly write how to do it?
[Transformer TF300T Q&A, Help & Troubleshooting] -MightyMouse-:
thanks

actualy converting it all to a blob file really is what I want to do. what is this program blobpack? I have googled it and didn't get much.
[Transformer TF300T Q&A, Help & Troubleshooting] Geometry:
OK, so I assume you know how to use "abootimg" to create a boot image. "blobpack" converts this into a blob file that you can flash to the staging partition. For the blob tools see this thread. However, I had problems with the version of "blobpack" from that thread. Instead, a different version of "blobpack" worked for me. I got this by going to the cyanogenmod web site and following the instructions to built cyanogenmod for the tf300t. In the build process not only cyanogenmod is built, but various tools as well. This includes a version of blobpack, called "blobpack_tfp". This worked for me. Note that I did this almost a year ago. So I am not sure an up to date version of cyanogenmod yields the same. If you are just after the blobpack tool, downloading the complete source and building cyanogenmod is a huge overkill of course. But I guess you could browse through their sources online and find exactly what you need. Hope this info helps!
[Transformer TF300T Q&A, Help & Troubleshooting] Geometry:
I don't know of the rootfs works with this dualboot kernel. Actually, it would be great if somebody could test this! How to adapt the rootfs to another kernel is sketched in the post. However, some of the patches described here and not included in that kernel might be necessary for xubuntu 14.04 to work. But I'm not sure...

Another possibility would be to modify the kernel I described here for dualboot (or multiboot). This would require an additional kexec-hardboot patch and a modification of the initrd.img to include the kexec binary and a script that offers the boot menu.

---------- Post added at 17:01 ---------- Previous post was at 16:18 ----------

I have now announced the xubuntu 14.04 rootfs described in previous posts on the main thread here. I would like to encourage people to continue discussion there as I think that is the more appropriate place.
[Transformer TF300T Q&A, Help & Troubleshooting] Feazzu:
Hi

i would like to install xubuntu on my tablet.

I have not yet figured out what the starting point.

I currently have installed a cm11 official rom.

what i can do now? which are the steps to make dualboot working?

I can install android on the internal memory and xubuntu in sd card?

How can i make this work? I've to many doubts to start flashing and install stuffs right now.

Thanks in advance.
[Transformer TF300T Q&A, Help & Troubleshooting] ch3mn3y:
+1 however i dont mind getting rid of android, as having dock, mouse and touchscreen would be better used by desktop linux than mobile one

Is there any chance that u (@Geometry) could share ur kernel with as, little ones? It should work on any tf300 device

EDIT: I have question. how is ur ubuntu build working? Like original one by schrdlu made it - i mean it a single file in internal memory? If yes, woudn it be better to change mount point from that file/folder to sdcard? Most of us use one and it should be a lot faster than internal memory, which sucks. That way we could use whole memory card (16, 23 or 64gb) for /home

That way swap will be useless as it will be to slow on internal memory and will make system slow if on dx card

Sent using tf300t - PAC-man/GRIMLOCK (Linaro)
[Transformer TF300T Q&A, Help & Troubleshooting] Daredevil76:
Nice for xubuntu 14.04, but they have a dualboot kernel that work with lollipop rom ? (katKiss for example)
[Transformer TF300T Q&A, Help & Troubleshooting] ch3mn3y:
For now there is only 4.2 dualboot kernel amd katkiss kitkat dualboot kernel

Sent using C6833 - AICP/GreatDevs
[Transformer TF300T Q&A, Help & Troubleshooting] Daredevil76:
A 4.4 compatible kernel here thanks tailormoon (I have katkiss version kitkat working with dualboot) why not a lollipop version ?
[Transformer TF300T Q&A, Help & Troubleshooting] ch3mn3y:
Coz noone made it? We have lollipop for few weeks and there are not so many people using it as kitkat users

Sent using C6833 - AICP/GreatDevs
[Transformer TF300T Q&A, Help & Troubleshooting] Daredevil76:
good reason ;) but i just ask because they not has topic for recent dual boot kernel and i can miss if a kernel exist already ^^
[Transformer TF300T Q&A, Help & Troubleshooting] niemand_23:
XUbuntu on Tf300t

Hello there,

Theese are my specs: OS:Android 5.02, Rom: Cyanogenmod 12, Kernel: 3.1.10-gfafe48e, SELinux: Enforcing.

I am very interested in installing XUbuntu alongside Android. However I haven't found a clear tutorial whatsoever on how to do this. Could you pleese tell me the plain steps that I need to take to install XUbuntu alongside Android and the rquired tools?

And a question: Is is hard to swap between Andoid and Linux/ Linux and Android?

Thank you. You are the best!
[Transformer TF300T Q&A, Help & Troubleshooting] ch3mn3y:
In last 2-3 pages of development thread everything is explained

Somewhere there is katkernel for lollipop (before flash u need to delete both pohone apps from /system/app aand /priv-app

Than u need geometry's rootfs. Copy them to /data/media/linux or unpack to second partition of sdcard (ext4 ot f2fs).

Than when u start thetablet u will get multiboot menu. Vol-/2 boots android, 1 boots linux (or autoboot after 10 seconds)

There is also someones else kernel which autoboots android.

In the end u need additionaly add user to internet and audio groups and delete some unused stuff to make it faster and smaller

Sent using C6833 - AICP/GreatDevs
[Transformer TF300T Q&A, Help & Troubleshooting] niemand_23:
Ok so this is what I am going to to. First of all I have following files DB_katkern18_50.zip (it includes META-INF and boot.blob) and tf300t-xubuntu-rootfs.tar (it has 745 mb). I will extract the tf300t-xubuntu-rootfs.tar folder to Device/data/media/linux. and then I will flash the DB_katkern18_50.zip using TWRP 2.8. Now I have a few questions: why do I have to remove those apps? Is this really going to work if I'm on CM 12? and I really don't understand how the partitions are organised. So I have Device and Storage. Storage has sdcard0, sdcard1, sdcard2.. and Device has all the main system files. How much memory does the Device have? That's because I noticed that /data/media is inside the Device and not on the Storage. I know theese are newbee questions but I really don't like to take chances :) Thank you by the way for your answer!

Update: I did as you said, it boots into XUbuntu but the problem is the Android. It becomes unusable. I get constantly fc's like process.system stopped working or Launcher3 stopped working. What seems to cause this?
[Transformer TF300T Q&A, Help & Troubleshooting] Napoleon_First:
sbin/init

I've used different variaties of [MENTION=4872519]Graiden05[/MENTION] kernel and it works fine with .img files of rootfs in the main post and xubuntu13.04 rootfs.img. that I found somewhere in main thread. But when I try to boot [MENTION=6136418]Geometry[/MENTION] xubuntu14.04, kernel always says that there is no /sbin/init file, but really it exists. What should I do to solve this problem?
[Transformer TF300T Q&A, Help & Troubleshooting] Napoleon_First:
WiFi problem again

So, to deal with my previous problem I created a 10Gb rootfs.img image from [MENTION=6136418]Geometry[/MENTION] rootfs and put it into /data/media/linux. And it works! But there are some more issues... After logging in there is an error "Failed to apply network settings" It's something wrong with DBus. I tried to to reinstall it but installation went wrong... Then, WiFi doesn't work. I tried to use methods from the main threads but when I tried to open "users and groups" from settings there were an error says about "configuration could not be loaded". I copied nessesary files from android, added user to groups through terminal but nothing happened. Any ideas?
[Transformer TF300T Q&A, Help & Troubleshooting] T10NAZ:
alright, I got it working for the most part but im having some issues,

I used Geometry's rootfs and suspend isnt working as good as i thought, the backlight turns on and off then boots up again to where it was unusable until a restart happened.

next, how do I get a onscreen keyboard to come on in the login screen
[Transformer TF300T Q&A, Help & Troubleshooting] ch3mn3y:
I think u cant use onscreen keyboard on login screen, i tried to use it too, but nothing let me to do it

Sent using tf300t - PAC-man/KatKernel (DualBoot)
[Transformer TF300T Q&A, Help & Troubleshooting] T10NAZ:
Is there a way to make it boot without logging in? I thought I found the option, auto login without password, doesn't work though.

I don't want to use my keyboard every time I want to use Ubuntu :P
[Transformer TF300T Q&A, Help & Troubleshooting] ch3mn3y:
Open /etc/lightdm/lightdm.conf.d/10-xubuntu.conf using text editor

Add new line autologin-user=<name>

Than it will auto boot that user without pass
[Transformer TF300T Q&A, Help & Troubleshooting] T10NAZ:
sweet! thanks!

now one more question, would it be better to hold the rootfs in the sd card or to keep it on nand?
[Transformer TF300T Q&A, Help & Troubleshooting] ch3mn3y:
Im using second partition on sdcard formatted as f2fs with unpacked rootfs on it, not single file, so i dont know
[Transformer TF300T Q&A, Help & Troubleshooting] ch3mn3y:
Always forget to ask - is it safe to update everything using Software Updater? I know updating Firefox i safe, but what about system features - Xubuntu base, multitouch driver or xorg server? Our build is not completely normal, so wont updating wrong things break it?
[Transformer TF300T Q&A, Help & Troubleshooting] danek731:
WIFI doesnt work

Guys I have installed Xubuntu succesfully from Geometry's file into my internal memory, but I cant get wifi to work. I have replaced those files he mentioned after the installation. It shows me "device not ready" under connections icon.
[Transformer TF300T Q&A, Help & Troubleshooting] T10NAZ:
I was a tard and updated everything that updator listed, its still usable so far

---------- Post added at 09:09 AM ---------- Previous post was at 08:57 AM ----------

You need to do this http://xdaforums.com/showthread.php?p=57994857&highlight=wifi#post57994857

and this http://xdaforums.com/showpost.php?p=58977221&postcount=11
[Transformer TF300T Q&A, Help & Troubleshooting] T10NAZ:
Has anyone figured out how to make suspend work?
[Transformer TF300T Q&A, Help & Troubleshooting] danek731:
So I got WiFi running, but I have a serious issue. I don't care about bluetooth or sound right now, even though I would like to have suspend working. What I care about is swap. I tried using GParted, but when a bit harder task comes, the GParted crashes. And I don't know how much memory I have left, because task manager does not run as well. I assume I don't have enough RAM, so I would really appreciate a way to move the system to my sdcard, and use nand as swap.
[Transformer TF300T Q&A, Help & Troubleshooting] T10NAZ:
Format the sd card on pc to ext4 or whatever its called and push it just like you did to that partition, and use /data/media/linux for swap or just make 2 partitions on sd card for both
[Transformer TF300T Q&A, Help & Troubleshooting] danek731:
Is there no way to move the media/linux? I don't want to lose anything, I already setup my keyboard correctly.
[Transformer TF300T Q&A, Help & Troubleshooting] T10NAZ:
I think theres a move command
[Transformer TF300T Q&A, Help & Troubleshooting] ch3mn3y:
Isnt better to copy so if something happens there still be backup of original files?

I mean mount both directories (rootfs and sdcard partitiong) and use cp to copy the rootfs files to sdcard. Than rename them so they will exist, but wont be seen by kernel and it will boot from sdcard. If everything will be fine just delete files from /media

And i dont think using internal memory as swap will be good. Its so slow...

Sent using C6833 - AICP/GreatDevs
[Transformer TF300T Q&A, Help & Troubleshooting] danek731:
I want to copy Xubuntu from data/media/linux to my sdcard, but my system can not detect the sdcard, as I changed the partition to ext4. What do I do? F2FS was not available. I have 32 GB class 10 sdcard, and I want to use swap and Xubuntu on it.
[Transformer TF300T Q&A, Help & Troubleshooting] ch3mn3y:
Even if not seen by system it should be possible to mount it using terminal

Normally my tab doesnt see f2fs partition on my sdcard, but when mounted to a folder in internal memory i can access it (however i didnt try any coping, deleting etc)

Sent using C6833 - AICP/GreatDevs
[Transformer TF300T Q&A, Help & Troubleshooting] danek731:
But how do I mount it?
[Transformer TF300T Q&A, Help & Troubleshooting] ryanclose:
How to Install Dual Boot?

Hello all! I would like to know which is the best linux distribution to install on my TF300T that has both working sound and wifi. Being able to dualboot android whether custom or not would also be great! Thanks guys!
[Transformer TF300T Q&A, Help & Troubleshooting] Napoleon_First:
Sound

So, after many attemts, I've finally installed xubuntu properly. The only issue now is sound absence. Adding myself in audio group doesn't help. Any ideas?
[Transformer TF300T Q&A, Help & Troubleshooting] ch3mn3y:
Strange. For me it works fine. Did u try to use vlc? I think probleme here is that u dont have codecs, which vlc has built in

Sent using C6833 - AICP/GreatDevs
[Transformer TF300T Q&A, Help & Troubleshooting] danek731:
My sound is not working either. There is only "Dummy Output" in Volume Control => Output Devices. VLC did not help.
[Transformer TF300T Q&A, Help & Troubleshooting] Napoleon_First:
Nah, it desn't work with vlc too...
[Transformer TF300T Q&A, Help & Troubleshooting] supernova0:
Hello there... I'm really new to booting linux and I don't have any knowledge in this. I just know that I have to extract Geometry's rootfs to /data/media/linux/ and then I need to flash a certain kernel to dualboot between android and xubuntu. In my case, i used Graiden's katkiss kernel for android 4.4.4, and i extracted the rootfs using terminal to /data/media/linux. When tried to boot it there was a screen of Ok's

and fails, and eventually stayed up at this point.

What should i do next? This screen doesnt change nor boots to xubuntu.
[Transformer TF300T Q&A, Help & Troubleshooting] tux-friend:
Solution for sound problem

Dear Napoleon_First and danek731,

if you are already in the audio group maybe this could solve your problem:

In terminal Emulator type

alsamixer

Then press "s" on your keyboard and change to "1 tegra-codec" and hit "ENTER". You will see that the content of the window will change. Plugin an earphone, start some audio play and in alsamixer go to <Headphon>. It is probably muted (indicated by tle letters "MM"). Change it by pressing "m" on your keyboard. The letters should change to "00". Et voila, you should hear some sound.

If you want to hear the sound from internal speakers of the tablet you can use the same alsamixer menu. I have forgotten the exact settings I have made but probably the only thing what you have to do is to go to the right side in the alsamixer menu and stop muting of <Int Spk> by pressing "m" on the keyboard.

I hope this can be a help

--

tux-friend
[Transformer TF300T Q&A, Help & Troubleshooting] T10NAZ:
can anyone help me get linux onto my sd card?

I tried all my myself once, and that resulted in a broken 32gb class 10 sd card lol
[Transformer TF300T Q&A, Help & Troubleshooting] tux-friend:
Well, as the output of the sreen suggests difficulties occur while trying to start a daemon in /usr/sbin/kernelloops because permission are denied. There could be many reasons for this error. Therefore, following questions seems important:

- How have you extracted the rootfs file on your tablet and could it be possible that permissions have been changed during the extraction process?

- Have you added other users or modified the system (for example in a chroot environment)?

For the extraction of the rootfs, I recommend to use a native Linux system as host, use an external SD card and after formating it (for example with ext4 file format, f2fs would be also possible but needs more knowledge) extract the rootfs on the first partition on the card. For this purpose, you use the cd command to navigate to the first partition of the SD card and then you extract the rootfs with following command:

tar xzpf /path to your/rootfs.tar.gz

The p option is for preserving the permissions. Maybe this could be the critical point. Furthermore, I made some bad experiences by trying to do the extraction under Android. Therefore I have recommended to use a native Linux system.

Second point, I would also recommend to add no other user to your xubuntu system before you have successfully booted the system at least for 1 time. You can add other users later, too. There is already the standard user called "ubuntu" with the password "ubuntu".

Try again and let's see what happens. Good luck!

---------- Post added at 11:19 AM ---------- Previous post was at 10:32 AM ----------

I suppose you have already formated your sdcard and its first partition is formated with ext4. Furthermore I suppose that you are running your tablet and have inserted the card to the micro SD card slot. You could try to mount it manually:

sudo mount -t ext4 -o rw /dev/mmcblk1p1 /mnt

(I have choosen /mnt as mounting point because often it's available but you could also create another dierectory and use this as mount point as well)

Then you have to copy the files by the command

cp -a SOURCE TARGET

TARGET would be the path to your SD card which is mounted under /mnt in the example above. But please make sure that you don't just copy the entire linux directory of your internal eMMC to /mnt because then more modifications would be necessary. What I want to say is that at the end the files and directories of your rootfs on your external sdcard must be not included in a subdirectory like /mnt/linux/bin etc. but the files and directories like /bin /boot /dev etc. must be accessible directly under /mnt

Before you start I really recommend to read following posts:

http://xdaforums.com/showpost.php?p=58062539&postcount=589

http://xdaforums.com/showpost.php?p=58124830&postcount=611

Trying to understand all of this information will be very important to be successful in the end!

--

Good luck

tux-friend
[Transformer TF300T Q&A, Help & Troubleshooting] tux-friend:
compiling kernel sources

Dear Geometry,

thanks for sharing of all this valuable information! I really appreciate that you have published all these details so that the single steps get reproducable.

At the moment I try to compile a kernel by myself. Unfortunately, I have not been successful. During compilation some errors always occured and I am not sure what was the mistake and why the failures happen.

Basically, I tried two different approaches: on the one hand, I tried to compile the kernel directly under xubuntu on my tablet. In this case cross-compiling should be not necessary, of course. On the other hand, I tried to compile the kernel on a Linux system of my laptop (i386 architecture) using a toolchain for cross-compiling.

In general, I followed you instructions and advices in your post. In detail, I have done following steps:

Download the latest ASUS kernel source for the TF300t: JB_kernel_10_4_2_20.zip

Extract the kernel sources on a local directory on my usb memory stick (ext4 formated partition)

Apply the patches

Unforunately, following patches couldn't be applied in my case and were rejected: toolchain.patch, compressed_makefile.patch, bcm.patch, mored.patch

I tried to apply all the patches in the directory of the kernel source with following command:

cat /path to patch/subreaper.patch | patch -p1

Copy your .config file to the root dir of the kernel source

set the export variables

export KBUILD_OUTPUT=/my path/outdir/
export INSTALL_MOD_PATH=/my path/libdir
export INSTALL_PATH=/my path/bootdir

start the compilation

in xubuntu natively on the tablet:

make ARCH=arm DEB_HOST_ARCH=armhf oldconfig

make -j3 ARCH=arm DEB_HOST_ARCH=armhf

make -j3 ARCH=arm DEB_HOST_ARCH=armhf zImage

or alternatively by cross-compiling on my notebook

make ARCH=arm DEB_HOST_ARCH=armhf CROSS_COMPILE=arm-linux-gnueabihf- oldconfig

make -j3 ARCH=arm DEB_HOST_ARCH=armhf CROSS_COMPILE=arm-linux-gnueabihf-

make -j3 ARCH=arm DEB_HOST_ARCH=armhf CROSS_COMPILE=arm-linux-gnueabihf- zImage

Unfortunately, the building process gets stoped with error notes. I am not sure, if I made any mistakes. Have you used the same sources and is it necessary to use just a certain toolchain for a specific kernel source? If this is correct, where can I get the corresponding information?

--

Best regards

tux-friend