[guide] LUBUNTU UPDATE 4.2BL

noahvt

Senior Member
Jan 27, 2013
1,673
662
0
Antwerpen
4.2 (works on 10.6.1.15.3 -- 10.6.1.27.1 and 10.6.1.27.5)

Disclaimer: Before you start please read the bugs list down below as always i'm not responsible for a bricked device!

Hi everyone today I found some interesting things in the tf700 general forum they updated their version of dualboot(android linux) to be compatible with 4.2BL so it's time for me to update this guide a bit because: I confirmed that it works on TF300 (T G??) But there are some bugs with it do iI'll talk about that later! I NEED A SOMEONE WHO CAN INCLUDE THE CORRECT WI-FI AND BLUETOOTH DRIVERS INTO THE KERNEL!!!!

Let's get started:

requirements:
-A TF300T or TF300TG(don't know if it works on TG)
-This linux ROOTFS file: http://www.lugotfl.org/tf700t/rootfs-lubuntu-tf700t-8-22-2013.tar.lzma
-This installer script: http://www.lugotfl.org/tf700t/installerV6.7.zip
-CromiX (it might work on cm10.2 but it isn't tested)


And now for the guide itself:

1: wipe everything system,data,... from recovery and install cromix(or try it with another ROM)

2: boot up you device after the installation is complete

3: ADB shell into your device and type su

4: While still in ADB shell type: mkdir /data/media/linux

5: Now for the installation: copy the installer and the ROOTFS packages to /data/media

6: Reboot your device into TWRP and load up the installer

7: Select your language and click next

8: Click next again

9: It will prompt that your device isn't a TF700 just click OK

10: Check I agree with this terms and conditions and click Next

11: Select your ROM (in this case Android CleanRom v4.x)

12: Scroll down and select the default OS to boot (your choice) and click Next

13: Select the second option (/sdcard/linux/rootfs.img) You can try using MicroSD but the installation failed for me!

14: Click Next

15: Just click Next in the following screen

16: Choose your prefered installation size and click next

17: It will prompt that it found a rootfs archive (if it didn't make sure you placed the rootfs file in the right directory)

18: Click on install now (it will go normal speed till 89.99 and then it will take about a half an hour to complete

19: reboot your tablet and it should be done!

20: At the multiboot screen press volume down for android (or wait for linux)

21: if you waited for linux a new screen will popup asking wich rootfs you want to boot just wait 5 seconds

22: in the next screen also wait!

23: Voila linux should boot up! (BTW: the password is ubuntu)

BUGS:

-Android: No wi-fi or bluetooth

-Linux: No sound, no wi-fi and no bluetooth



4.1 BOOTLOADER (bootloaders before 10.6.1.15.3)

Hello TF300 users today i am going to show you how to install ubuntu 12.10 on our beloved transformers :) (works on TF300T, probably TF300TG as well)



we will be using the rabits 0.8.1 install script and rootfs package from the TF700 and the xubuntu kernel from TF300


requirements:


- 4.1 BOOTLOADER (4.2 bootloader will probably work but wi-fi and other stuff will NOT work try at your own risk!)

- the ubuntu files listed below:

-ROOTFS: https://mega.co.nz/#!wIw1nLiI!MJWBfh4wd95kisQaGyjnWkm_uXEKN9_DCyn5PzZz-M4

-RABITS 0.8.1 INSTALLER: http://goo.im/devs/rabits/tf700/linux-install-0.8.1.zip

-XUBUNTU KERNEL (FOR TF300T AND TG): http://d-h.st/UAy

- FRESH ROM: you have to have the complete stock rom (works the best)

Installation:


1: After downloading ROOTFS, the INSTALLER and the XUBUNTU kernel: place them on your MicroSD

2: Boot your device into recovery and wipe (not neccesary!) DATA, CACHE, DALVIK CACHE

3: Stay in recovery and press the install button then navigate to your microsd and look for the INSTALLER and install it

4: When in the installer choose your prefered language and press "next"

5: Now it will show the installer info and your device info press next again

6: An error message will popup saying your device isn't the TF700 press "OK"

7: Check "I agree with this terms and conditions" and press "next"

8: select the your kernel configuration you want to choose 1.3 - 1.5GHz GPU 650MHz (you can choose a higher value but since this is for the tf700 1.8GHz might run rather unstable and/or might cause bootloops at startup)

9: Select the basic initrd configuration: choose clean rom wich is for stock and cleanrom! and press next

10: Select the place where the installer will prepare the linux root file system you can choose between the second and the third but warning: the third will wipe your MicroSD press next

11: Leave these options checked and press next

12: Now you will be brought to a screen where you can choose how big your home folder is pick one and click next!

13: Install!

14: After installation is completed reboot your device.

15: You would see the asus logo and the normaly 4 penguins with come text beneath it just wait untill it's done

16: At the main menu you have a couple opitons you can wait 10 seconds for linux to boot or press volume down for android to boot PRESS VOLUME DOWN because right now we need android to do one last thing before we can use linux

17: Download motochopper and root your device, motochopper will prompt you to reboot no worries just reboot and you will see these 4 penguins again and you will be brough back to the main menu!

18: Update your su binary

19: Download terminal emulator from the play store.

20: Open up terminal emulator and request su permissions by typing su and then granting the request!

21: Navigate to the directory where the xubuntu kernel is (microsd) so you wanna type " cd /Removable/MicroSD "

22: Flash the xubuntu kernel by typing:" dd if=nameofblob of=/dev/block/mmcblk0p4 " (where nameofblob is replace it with the name and extension of the kernel)

23: Reboot your device and you should see the device is flashing a blob (blue progressbar)

24: After the blob has been flashed the device will reboot back into the main menu, then wait 10 seconds for linux to start up!

Congratulations you now have ubuntu and android running on your tf300t

Fixes and bugs will be in the next posts as well as how to log in and get the desktop workin so you have to check that out before continuing!


CREDITS: JoinTheRealms for guiding me through installation and setup

rabits for the rootfs and installer

schrdlu for the xubuntu kernel

pm me if you have any questions and or compains!
 
Last edited:

noahvt

Senior Member
Jan 27, 2013
1,673
662
0
Antwerpen
FIXES

when first booting it will ask for a passcode right?

1: enter "ubuntu" as a password and login but, wait? it loops back into the login screen??

2: by pressing one of the top keys start at the 5 and 6 key wich are the brightness up and down key you will be brought to the command prompt (lightdm) type these codes one by one:

- sudo adduser username (replace username with your name)

- sudo adduser username sudo (again replace username with the exact name you typed in the previous command)

now hard reboot your device (holding power button untill restart and boot linux up again)

Now you have arrived at the next bug :\ you only see a wallpaper and a cursor (this will also include the fix for wi-fi)

1: open up terminal by pressing ctrl, alt and t keys on your keyboard

2: type these codes to get unity working (warning there is a chance you need to enter this code for more then 10 times!)

- sudo unity

3: now we want to get wi-fi working because we need to download something

type these codes to start wi-fi

- rmmod bcmdhd

- sudo modprobe bcm4329 (if you get an error try "su" first)

-(not in terminal) setup your wi-fi network by going to "system settings" > network > go to "wireless" and in the drop down menu select other and add your wi-fi network and security key

4: now for the download:

type this : sudo apt-get install gnome-panel and press the Y key when it asks you!

5: reboot and boot linux again

6: press the litlle ubuntu icon next to your username and press "Gnome" and then press ok

7: login and you are set! enjoy ubuntu
 
Last edited:

noahvt

Senior Member
Jan 27, 2013
1,673
662
0
Antwerpen
BUGS IN LINUX:

- audio doesn't work at all (something wrong with alsa-restore)

- bluetooth doesn't work

- chromium ofter corrupts the screen and requires a reboot

- you need to enter the code to start wi-fi at every reboot :(

- it might boot straight into lightdm instead of ubuntu just restart

- sometimes if you close the lid and open it again it might not wake up anymore!

these are the bugs so far


BUGS IN ANDROID:

none (didn't do a full test so please someone test)
 
Last edited:

noahvt

Senior Member
Jan 27, 2013
1,673
662
0
Antwerpen
Nice guide, Im still in the process of learning a few things, but ill try compile a new 4.2 dualboot kernel for the tf300t soon, we got some cool things cooking on the tf700, and they need to be on the tf300t also;)

Yeah, i'm running this ubuntu as my DD right now it would be great if we could get everything to work!
 

bads3ctor

Senior Member
Dec 23, 2011
100
51
0
Loading WIFI module at startup

You might want to try this to get WIFI module loading at startup:

Open a terminal. Type this: sudo echo -e "bcm4329\n" >> /etc/modules
Reboot.

You might also have to blacklist any WIFI modules that load up automatically by Ubuntu by adding the offending module to:
/etc/modprobe.d/blacklist.conf
 
Last edited:

JoinTheRealms

Senior Member
Apr 7, 2012
1,940
1,303
143
You might want to try this to get WIFI module loading at startup:

Open a terminal. Type this: sudo echo -e "bcm4329\n" >> /etc/modules
Reboot.

You might also have to blacklist any WIFI modules that load up automatically by Ubuntu by adding the offending module to:
/etc/modprobe.d/blacklist.conf
Thanks, if anyone wants to test this: https://www.dropbox.com/s/mqtpydpr11eef81/installerV4-test.zip its built with kexec support thanks to moreD_cn so it looks in /boot of your rootfs for a zImage and initrd.img, but this will fail and fall back to the regular to using the hybrid kernel unless the zImage and initrd.img are found.

Its built with stock tf700 sources so if something goes wrong youve been warned, although it seemed to funtion correctly on my tf300t other than wifi
 
  • Like
Reactions: tailormoon

pancakefox

New member
Aug 19, 2013
3
0
0
Perth
I actually finally made an XDA account just to thank you for compiling this guide. I'd been looking around and trying to work out exactly what I'd need to do, snipping bits from various other guides, when I found that you'd already done that! Yayy.

I half-arsedly tried this out last night (full-well knowing that doing a half-arsed job could leave me with an unusable tablet for a little while) and I can confirm that following your instructions to the letter except for having cm10.1 and using a 4.2 bootloader will in fact result in nothing booting.
Hoping I can fix this tonight with a 4.1 bootloader and CleanRom, and then maybe have 2 booting OSes rather than none.
 

noahvt

Senior Member
Jan 27, 2013
1,673
662
0
Antwerpen
I actually finally made an XDA account just to thank you for compiling this guide. I'd been looking around and trying to work out exactly what I'd need to do, snipping bits from various other guides, when I found that you'd already done that! Yayy.

I half-arsedly tried this out last night (full-well knowing that doing a half-arsed job could leave me with an unusable tablet for a little while) and I can confirm that following your instructions to the letter except for having cm10.1 and using a 4.2 bootloader will in fact result in nothing booting.
Hoping I can fix this tonight with a 4.1 bootloader and CleanRom, and then maybe have 2 booting OSes rather than none.
yeah you need 4.1 BL

tips:


1: use rabit's installer v0.8.1 make sure you don't confuse with 0.8.3 because then nothing will work :\ (brick i think)

2: i would first try with stock rom and then flash cleanrom

3: make sure you read the second post because else ubuntu is worthless :p

i am running this from the moment i compiled this guide and haven't had ANY issues yet (no SOD's sometimes i did have a reboot do )
 

pancakefox

New member
Aug 19, 2013
3
0
0
Perth
Okay, thanks. I was mostly just really not wanting to use the stock rom because I had a bad experience with it (awful performance in general). Cm10.1 just made the device about five times more pleasant to use.

But, if I get this working then flashing a different rom afterwards shouldn't be a problem?
 

noahvt

Senior Member
Jan 27, 2013
1,673
662
0
Antwerpen
Okay, thanks. I was mostly just really not wanting to use the stock rom because I had a bad experience with it (awful performance in general). Cm10.1 just made the device about five times more pleasant to use.

But, if I get this working then flashing a different rom afterwards shouldn't be a problem?

Nope, I just completly restored stock rom and when everything was working i just flashed cleanrom BUT you need to reflash rabits installer in the installer you wanna select don't install rootfs and after that boot into android and reflash xubuntu kernel!
 
  • Like
Reactions: pancakefox

pancakefox

New member
Aug 19, 2013
3
0
0
Perth
Thanks! If and when I get tired of stock I'll do that. It's behaving itself for now, though.

Got everything working seamlessly! Your guide's great.
Ubuntu is running fine, but doesn't seem to want to open libreoffice or the software centre at this point. Still! I'm super happy.