[DEV][WIP] xubuntu on tf300tg 0.1.2 (updated 130408)

Search This thread

t3chwizard

Senior Member
Jul 20, 2013
1,657
367
Asus Transformer TF300T
LG Optimus G Pro
I'm trying to install Arch on my laptop this week....I am sick of all the prebuilt distributions

Sent from my LG-E980 using Tapatalk

This may be useful for us in the future https://www.indiegogo.com/projects/linuxonandroid .....in the meantime check out the same developer's current app in the play store https://play.google.com/store/apps/details?id=com.zpwebsites.linuxonandroid it's very cool even if it's not a full Linux installation

Sent from my LG-E980 using Tapatalk
 

JoinTheRealms

Senior Member
Apr 7, 2012
1,931
1,297
This may be useful for us in the future https://www.indiegogo.com/projects/linuxonandroid .....in the meantime check out the same developer's current app in the play store https://play.google.com/store/apps/details?id=com.zpwebsites.linuxonandroid it's very cool even if it's not a full Linux installation

Sent from my LG-E980 using Tapatalk

Actually that app is pretty redundant, have a look at my post here http://xdaforums.com/showpost.php?p=53382537&postcount=982 this will run chroot linux under a proper xserver under android rather the a slow loopback vnc connection
 

JoinTheRealms

Senior Member
Apr 7, 2012
1,931
1,297
Hey @Duckman5, Im wondering what kernel your using for kexecboot? i cant find one thats got kexec enabled, ive only got the tf300t atm, dont wanna re-compile on it :)

Edit: Just found _that v10 works great, _that has also included wifi modules for tf300t, actually it would seem that @workdowgs latest kexecboot installer script for tf700 would work for those interested in kexecboot
 
Last edited:
  • Like
Reactions: workdowg

Duckman5

Senior Member
May 31, 2012
225
52
Hey @Duckman5, Im wondering what kernel your using for kexecboot? i cant find one thats got kexec enabled, ive only got the tf300t atm, dont wanna re-compile on it :)

Edit: Just found _that v10 works great, _that has also included wifi modules for tf300t, actually it would seem that @workdowgs latest kexecboot installer script for tf700 would work for those interested in kexecboot

I've actually been using Graiden's kernel. I'm still running 13.04 so there's been no impetus to change anything since it's all working. God to know about _that's. I'll probably use that if I ever upgrade or decide to give 14.04 another shot.

Sent from my SAMSUNG-SGH-I537 using XDA Premium HD app
 

JoinTheRealms

Senior Member
Apr 7, 2012
1,931
1,297
I've actually been using Graiden's kernel. I'm still running 13.04 so there's been no impetus to change anything since it's all working. God to know about _that's. I'll probably use that if I ever upgrade or decide to give 14.04 another shot.

Sent from my SAMSUNG-SGH-I537 using XDA Premium HD app

Ive came across a couple of 14.04 images the boot and work ok, just no display drivers. Common issue with tegra3 at the moment, just noticed the nexus 7 2013's support has been dropped which is a shame.

By the way, check this for hardware accelerated video using parole, http://xdaforums.com/showpost.php?p=53482952&postcount=991 works great.
 
  • Like
Reactions: Duckman5

Duckman5

Senior Member
May 31, 2012
225
52
Ive came across a couple of 14.04 images the boot and work ok, just no display drivers. Common issue with tegra3 at the moment, just noticed the nexus 7 2013's support has been dropped which is a shame.

By the way, check this for hardware accelerated video using parole, http://xdaforums.com/showpost.php?p=53482952&postcount=991 works great.

Yup...just deleted the image I had put together with the pinned X server. I could boot and start xfce, but for some stupid reason I couldn't get LightDM to start or multitouch to work. I mean WTF?? It's not like I tried that hard, though. I just don't have the time (or a complete understanding). I took snapshots and saved the stage right after installing X, though. I could post it somewhere if you want to give it a shot. You seem to be a lot more proficient than me.

Thanks for the heads up on the video. I'll definitely look into that. It always drives me nuts having to either reboot or pull out my phone if I want to watch a movie or something. Shame we can't get everything accellerated. Would love to be able to use my plex server directly without obnoxious frame skipping.
 

JoinTheRealms

Senior Member
Apr 7, 2012
1,931
1,297
Yup...just deleted the image I had put together with the pinned X server. I could boot and start xfce, but for some stupid reason I couldn't get LightDM to start or multitouch to work. I mean WTF?? It's not like I tried that hard, though. I just don't have the time (or a complete understanding). I took snapshots and saved the stage right after installing X, though. I could post it somewhere if you want to give it a shot. You seem to be a lot more proficient than me.

Thanks for the heads up on the video. I'll definitely look into that. It always drives me nuts having to either reboot or pull out my phone if I want to watch a movie or something. Shame we can't get everything accellerated. Would love to be able to use my plex server directly without obnoxious frame skipping.

Yeah i think as far i as ill push will be 13.10 without updates from nvidia (be it the tf101 guys seem to have 14.04 with full acceleration working somehow, drivers from tegra 2 are quite different might not be such straight forward fix for us ), display drivers are quite important to me. On the 13.10 front ive got some hints that should fix any graphical artifacts we were having issues with.

Never used plex, looks to be similar to xbmc?, the guy who uploaded the *modified version of parole has some omx patches that apparently should get hardware acceleration working in xbmc on the tf300t, no time at the moment to investigate unfortunately.
 

-MightyMouse-

Senior Member
Jun 19, 2013
543
304
Somewhere Between Here and There
I am new here. I was wondering if I could dualboot android and ubuntu on this tablet. I know it can be done but I have yet to see one that has any new realiese of ubuntu. Is it pocible and how would I go about doing it with a new distro of ubuntu.
 

Duckman5

Senior Member
May 31, 2012
225
52
I am new here. I was wondering if I could dualboot android and ubuntu on this tablet. I know it can be done but I have yet to see one that has any new realiese of ubuntu. Is it pocible and how would I go about doing it with a new distro of ubuntu.

Scroll up and read the last three posts immediately before yours and you will have your answer. No need to even use the search function!

(I don't mean to be the "chase off the noob" guy considering I'm not that far off from noob myself, but seriously did you read ANY of discussion? )

Sent from my SAMSUNG-SGH-I537 using XDA Premium HD app
 
  • Like
Reactions: JoinTheRealms

Duckman5

Senior Member
May 31, 2012
225
52
sorry. I know better than that. thanks

It's really not a problem. It's just that that question gets asked like every 0.4 seconds and the answer is always the same.
Unlike a ROM with a central maintainer or something, this has evolved into much more of a community effort with everyone chipping in what they can to make it work. I just wish that the question being asked wasn't "When can we expect 14.04?" but "What can I do to help make 14.04 happen?"
One Transformer has it (with a pinned X server) and I don't see why we shouldn't as well.

Sent from my TF300T using XDA Premium HD app
 
  • Like
Reactions: JoinTheRealms

-MightyMouse-

Senior Member
Jun 19, 2013
543
304
Somewhere Between Here and There
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.

Code:
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?
 

TXKSSnapper

Senior Member
Jan 16, 2012
357
122
Hey @Duckman5, Im wondering what kernel your using for kexecboot? i cant find one thats got kexec enabled, ive only got the tf300t atm, dont wanna re-compile on it :)

Edit: Just found _that v10 works great, _that has also included wifi modules for tf300t, actually it would seem that @workdowgs latest kexecboot installer script for tf700 would work for those interested in kexecboot

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?
 

Duckman5

Senior Member
May 31, 2012
225
52
[QRCODE][/QRCODE]
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?

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?
 

-MightyMouse-

Senior Member
Jun 19, 2013
543
304
Somewhere Between Here and There
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)
 

aurel33

Senior Member
Nov 21, 2009
72
10
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?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 23
    *** ABOUT ***

    This is an attempt to build a completely clean installation of xubuntu for the tf300tg (and probably tf300t). Most notably it does not reuse the ac100 ubuntu package.

    I also want it to be as completely documented as possible starting from an official ubuntu repository and kernel source, until everything is working. Which does not mean it is for a complete beginner to reproduce...

    It's not (yet) packaged : you at least need to be able to install a blob for the kernel, and a rootfs to a dedicated partition.

    It's also not yet as cleaned up and documented as I would for the kernel side of things.

    Everything is done on device on (and for) a tf300tg but as been reported to work on tf300t.

    Most of the hard work was done by others. I mostly started from rabit's tf700 ubuntu, and added some insight from cb22 work on arch to get something working.

    *** STATUS ***

    What works :
    - it boots into a clean xubuntu dm/desktop, with wifi (improved), 3g
    - it also boots into android (stock, didn't try cm)
    - 3g also works under android (new)
    - touchpad / touchscreen
    - 3d acceleration (version 16.3 of nvidia drivers)
    - cpu and gpu overclock (respectively to 1,5 GHz and 446 MHz)

    What I know doesn't work, isn't there yet :
    - sound
    - bluetooth
    - some key remapping (esc, alt, ...)

    Many other things I didn't check (sensors ?).

    *** HOWTO install ***

    0. of course you can break many things doing that ; you should have access to nvflash (never had to use it though) and with a recovery installed (I'm on twrp 2.4.3.0)

    1. unpack xubuntu_tf300tg_rootfs-0.1.2.img.lzma to the internal storage and move / rename to linux/rootfs.img (/data/media/linux/rootfs.img)

    1bis. you can change your keyboard layout in /etc/default/keyboard (replace "us" by whatever is your locale)

    2. install the kernel blob using fastboot or "dd if=xubuntu_tf300tg_kernel-0.1.2oc.blob of=/dev/block/mmcblk0p4"

    You should be able to reboot into xubunfu (or android).

    3. log in as guest, from "user and groups" in the "settings manager", add one user, set password, change account type to administrator, add to sudo group (root password wil be asked : root)

    4. logout, then login into your newly created user

    5. open "language support" from the settings manager, and when it says missing locales, either choose install if you want "en" or "ask me later" if you want something else (in which case you can chose to install your own language, and configure them on the "regional format" page ; don't forget to apply system wide on both pages

    6. change root password

    Your second reboot should be more satisfying

    *** HOWTO improve ***

    1. find out what does not work and tell in the thread

    2. understand what is documented bellow and propose correction / evolutions in the thread

    3. don't hope for frequent updates : I do that alongside a more than full time job and tending to a two years old child. Still I will update.

    *** DOWNLOAD ***

    rootfs : http://d-h.st/vYf
    kernel : http://d-h.st/UAy
    misc config files : http://d-h.st/TEZ
    nvidia drivers : http://d-h.st/pwQ

    md5sum :
    4f572c110c3f06f54699c826fed692f4 src-0.1.2.tar.lzma
    249826271f4fadff4352217467e4ed2e xubuntu_tf300tg_kernel-0.1.2oc.blob
    3263de707c2586d1e2177367f067361a xubuntu_tf300tg_rootfs-0.1.2.img.lzma
    cf20b01281be3ef4b6d4631ae5cea67b R16.3.tar.lzma
    15
    Since the original post hasn't been updated in a long time, I think it would be useful for folks to know what works at the moment.

    I currently have a pretty functional system, by following these steps, hopefully it can save folks time in the future.

    I haven't tested the bluetooth, but I can verify wifi, sound, and stuff in general is working quite well.

    I took the kernel from here:
    http://xdaforums.com/showpost.php?p=48413781&postcount=327
    and flashed it into the system using fastboot.

    The kernel is quite cool, it detects at boot and will allow you to boot from usb, micro sd slot, or local filesystem in that order.
    I prefer to use a micro sd card because it feels faster and this way I dont risk too many writes to internal system.
    Also, on amazon.com you can buy a 16 GB samsung ultra fast micro sd card for $13, with 25 mb/s write, 90 mb/s read. That;s definitely faster than the internal disk.
    I took a 16 GB micro sd card and partitioned it into 8 gb (system), 3 GB (home) and 4 GB swap using the gparted linux tool.

    I took the rootfs from here:
    http://xdaforums.com/showpost.php?p=47791204&postcount=284
    and flashed it to the first partition (8 gb), using the dd command. Unfortunately, because the image is only 3.5 GB, that's all the space that will show in that partition.

    After installing xubuntu kernel, you will lose wifi in android. Download script from here and run it in xubuntu to fix that problem.

    http://xdaforums.com/showpost.php?p=47990253&postcount=311

    Graiden05 has done a lot of stuff regarding cpu governor tweaking, can read through the posts to find out.
    I just max out my governor (set to userspace at highest freq) because I don't care about battery life. Install cpufrequtils from the repository and use cpufreq-set
    to set frequency.

    To get flash, I used the info in this post:
    http://xdaforums.com/showpost.php?p=40813881&postcount=129

    I than used the info here to setup my swap as being the third partition on the micro sd card.

    http://www.thegeekstuff.com/2010/08/how-to-add-swap-space/

    If you don't setup a swap space, programs will randomly get killed when you run out of RAM, which is kinda annoying if you want a stable and fast system.

    I than installed java using Ubuntu Software Centre, installing OpenJDK with the plugin option. Afterwards java worked in firefox.

    Also, if you want to access your android files while in linux do this:
    mkdir myandroid
    sudo mount /dev/mmcblk0p8 myandroid

    Now your files will be mounted under myandroid, specifically your files are here:
    cd myandroid/media/0

    I still need to get the key mappings sorted out, and try to get vnc working with my company's wifi but this feels like a regular laptop now.
    I just want to disable the trackpad when a mouse is plugged in, so I dont hit it accidentally.
    11
    *** HOW is it done / rootfs ***

    I did it from ubuntu (rabits') on my tf300tg. Should be doable from another platform. Definitly doable from self.

    As root.

    # unset languages / locales
    export LANG=C
    unset LC_ADDRESS
    unset LC_IDENTIFICATION
    unset LC_MEASUREMENT
    unset LC_MONETARY
    unset LC_NAME
    unset LC_NUMERIC
    unset LC_PAPER
    unset LC_TELEPHONE
    unset LC_TIME

    # mount a cleanly ext4 formated partition (futur root partition)
    mount /dev/mmcblk1p2 /media/p1

    # install initial minimal system
    apt-get install debootstrap
    debootstrap quantal /media/p1 http://ports.ubuntu.com/

    # prepare to chroot
    mv /media/p1/etc/apt/sources.list /media/p1/etc/apt/sources.list.orig
    cp src/sources.list /media/p1/etc/apt/sources.list
    mv /media/p1/etc/fstab /media/p1/etc/fstab.orig
    cp src/fstab_chroot /media/p1/etc/fstab
    mkdir /media/p1/run/user

    # chroot into the new system and mount all special filesystems
    chroot /media/p1
    mount -a

    # download xubuntu (avoiding unity which is recommended by lightdm)
    apt-get update
    apt-get upgrade
    apt-get install xserver-xorg
    apt-get --no-install-recommends install lightdm
    apt-get install lightdm-gtk-greeter
    apt-get install xubuntu-desktop

    # install nvidia drivers and tuned nv.conf
    tar xf R16.3.tar
    update-alternatives --force \
    --install /etc/ld.so.conf.d/arm-linux-gnueabihf_EGL.conf arm-linux-gnueabihf_egl_conf /usr/lib/nvidia-tegra/ld.so.conf 9000 \
    --slave /usr/lib/xorg/modules/drivers/tegra_drv.so nvidia_drv /usr/lib/nvidia-tegra/xorg/modules/drivers/tegra_drv.abi13.so
    ldconfig -v
    update-rc.d ondemand disable

    # change root password to something of your chosing and exit chroot
    passwd root

    # configure touchscreen and touchpad
    apt-get install xserver-xorg-input-multitouch
    exit
    cp src/mtev.so /media/p1/usr/lib/xorg/modules/input
    mkdir /media/p1/etc/X11/xorg.conf.d
    cp src/50-elan* /media/p1/etc/X11/xorg.conf.d

    # change hostname
    # edit /media/p1/etc/hostname and replace tf300tg with your chosen hostname
    # edit /media/p1/etc/hosts and insert a line (second one) with "127.0.0.1 yourhostname"

    # hide the partitions from mmcblk0 (thanks cb22)
    echo 'ENV{ID_PATH}=="platform-sdhci-tegra.3", ENV{UDISKS_IGNORE}="1"' > /media/p1/etc/udev/rules.d/80-hide_tf300tg_partitions.rules

    # change keyboard defaults
    # edit /media/p1/etc/default/keyboard ; replace "pc105" by "asus_laptop" ; you can also change "us" to your locale

    # create mountpoints for system and data
    mkdir /media/p1/system /media/p1/data

    # configure for loading wifi module
    echo bcm4329 >> /media/p1/etc/modules

    #
    cp /media/p1/etc/fstab.orig /media/p1/etc/fstab

    *** HOW is it done / kernel ***

    The kernel source is default asus 10.4.3.9 from asus' website download section. Patched to add cpu overclock from faux's kernel and gpu overclock from motley's kernel (diff file in src.tar.lzma).

    Initial kernel config file is taken from stock 10.4.3.9 android, with options added to support ubuntu and oc. path to the nvram for bcm4329 modified.

    Ramdisk is mostly that from rabbits 0.8.0, with some modificaitons to enable modem support under android.

    *** Todo ****

    - modify config / kernel to use nvidia's R16.3 tool to patch wifi ;
    - build initramfs anew from tf300t/tg stock android initramfs (currently rabbits modified tf700) ;
    - bluetooth and sound ;
    - key remapping.
    8
    Flash in Chromium

    Don't know if anyone already figured this out, but I got full flash working in chromium using the chromebook pepper plugin found here. I placed the file found on that post into /usr/lib/chromium-browser/plugins/ and then added the following to /etc/chromium-browser/default :

    CHROMIUM_FLAGS="--ppapi-flash-path=/usr/lib/chromium-browser/plugins/libpepflashplayer.so --ppapi-flash-version=11.5.31.105 --ppapi-flash-args=enable_hw_video_decode=1,enable_stagevideo_auto=0,enable_trace_to_console=0" ,

    replacing the original CHROMIUM_FLAGS= line. Works fairly well on hulu and youtube, minor stuttering but no too bad. I couldn't seem to get sound working using the method mentioned earlier, so I do not know how sound performs under flash. Hope it is useful!
    8
    V2.2.4 kernel blob, zip and script. Added bluetooth for linux (thanks to schrdlu). Put Your username in "user" file and run setup_bluetooth.sh as root.