Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,808,502 Members 42,161 Now Online
XDA Developers Android and Mobile Development Forum

[DEV] ArchLinux on the TF300T(G)

Tip us?
 
cb22
Old
(Last edited by cb22; 15th December 2012 at 12:38 PM.) Reason: Update!
#1  
Member - OP
Thanks Meter 149
Posts: 66
Join Date: Dec 2006

 
DONATE TO ME
Default [DEV] ArchLinux on the TF300T(G)

I've always been more of an Arch than Ubuntu person (how do you know if someone uses ArchLinux? Don't worry, they'll tell you)

This requires you to be unlocked and on the JB bootloader. I disclaim all responsibility if it somehow turns your tablet into a pile of ashes...

What works:
  • Dual boot with Android.
  • Internal storage and MicroSD Card
  • X11, with compositing
  • Audio
  • Mouse and keyboard on the dock, as well as dock hotplugging.
  • Touchscreen
  • Playing videos (full 1080P works great.) using Xfce's media player
  • Sensors (Light, compass, accelerometer, gyro). These are all exposed under sysfs.
  • Charging / Dock charging. This appears to be managed by the kernel.
  • USB gadget (as a RNDIS device for network access via USB)
  • CPU frequency scaling / Tegra LP core. The LP core is automatically used you can see its status in /sys/kernel/cluster/active (when that file reads LP) and its use is simply what the current CPU1 use appears to be.
  • WiFi, with NetworkManager
  • 3G, on the TF300TG model, with NetworkManager
  • Battery (and dock) status in Xfce
  • USB port on the dock
  • Some sensible key remapping (Back -> Escape, Search -> Alt, Home -> Super)

What doesn't work:
  • Bluetooth
  • Two finger scrolling with the mouse
  • Rebooting from Linux (have to do a sync then hard power off)
  • Basic framebuffer console - to get dual boot working I had to remove the FB console
  • Using "standard" xv (as in, mplayer -vo xv). Untested really, use gstreamer.
  • Cameras

Current priorities:
  1. Get Bluetooth working
  2. Get two finger scrolling working.
  3. Get rebooting working

Anything else is untested. Currently, I'm using the TF300TG's kernel source at https://github.com/cb22/tf300tg_jb_kernel - which is just the standard source from ASUS with a patch or two.

Dual booting:
At the moment, my "hybrid" initramfs checks for a file ".boot_linux" on the internal SD card (/data/media/.boot_linux or /storage/sdcard0/.boot_linux - same thing). If it exists, it boots Linux, otherwise, Android starts up. It wouldn't be difficult at all to make a simple Android app with a "Reboot into Linux" button, and vice versa one for Linux with "Reboot into Android"

Important note:
Currently, the provided kernel / initramfs is built for the TF300TG. It does seem to work fine on the TF300T however.

Downloads:
Kernel + Initramfs blob: https://rapidshare.com/files/2827313...ridkernel.blob
RootFS with Xfce: https://rapidshare.com/files/201953815/linux.tar.gz

Installation:
Flash the blob to staging using fastboot.
Untar the rootfs to /data/linux/. The easiest way to do this is probably to copy it across to the Transformer via adb or MTP, then run
Code:
$ su
# mkdir /data/linux
# tar -xzvf /storage/sdcard0/linux.tar.gz -C /data/linux
Issues:
Apparently permissions aren't set properly when untar-ing. This can be "fixed" by a chmod 755, apparently. As soon as I can, I'll make a better way of installing this (update.zip style)

Credits:
This work is based off the Arch Linux ARM distribution
The Following 59 Users Say Thank You to cb22 For This Useful Post: [ Click to Expand ]
 
-angel*
Old
#2  
Senior Member
Thanks Meter 199
Posts: 559
Join Date: Sep 2012
Sounds good, I think would be nice together with a dual boot kernel
Press THANKS if I helped!

Devices:
----------------------------------------------------------------
Samsung Galaxy S2
----------------------------------------------------------------
Acer Iconia W700
----------------------------------------------------------------
Asus Nexus 7
 
Valantur
Old
#3  
Member
Thanks Meter 22
Posts: 70
Join Date: Aug 2010
AWESOME! This is what I've been looking for. Thanks for kick starting this, I'm flashing the recovery right away. I suppose I'll start playing around with the .config and see where that takes me.

C'mon people! lets get this done so we can then try out dualboot options and bring some GNU/Linux flavor to the Transformer Pad.
 
Nekromantik
Old
#4  
Senior Member
Thanks Meter 190
Posts: 4,249
Join Date: Apr 2010
Location: Worthing
Good work. Im waiting for a working Ubuntu so I can install Blackbuntu.
Shame Im on ICS bootloader as I would have tried it.

The Prime Ubuntu project aint had any updates recently sadly.
 
-angel*
Old
#5  
Senior Member
Thanks Meter 199
Posts: 559
Join Date: Sep 2012
if you get this working, would you then maybe get the win8 tablet version also working? Loving linux, but Win8 on tablets even a bit better
Press THANKS if I helped!

Devices:
----------------------------------------------------------------
Samsung Galaxy S2
----------------------------------------------------------------
Acer Iconia W700
----------------------------------------------------------------
Asus Nexus 7
 
cb22
Old
#6  
Member - OP
Thanks Meter 149
Posts: 66
Join Date: Dec 2006

 
DONATE TO ME
Quote:
Originally Posted by Valantur View Post
AWESOME! This is what I've been looking for. Thanks for kick starting this, I'm flashing the recovery right away. I suppose I'll start playing around with the .config and see where that takes me.

C'mon people! lets get this done so we can then try out dualboot options and bring some GNU/Linux flavor to the Transformer Pad.
That's the aim! It would be really nice to have Android for tablet mode, and GNU/Linux for dock mode.

Quote:
Originally Posted by Nekromantik View Post
Good work. Im waiting for a working Ubuntu so I can install Blackbuntu.
Shame Im on ICS bootloader as I would have tried it.

The Prime Ubuntu project aint had any updates recently sadly.
You can always use NVflash to backup your bootloader and such, then freely flash away. That's what I did (I'm on the TF300TG, and no one has uploaded their JB dlpkgfile *hint* *hint* and it's not available on ASUS's site yet) so I simply restored using NVflash to get my ICS with 3G back for when I'm not dev'ing.

Also - the ideas port over to any GNU/Linux system fairly easily once figured out - getting Ubuntu running wouldn't be much more effort. I'm using Arch to start since I understand it better (and prefer it)


Quote:
Originally Posted by -angel* View Post
if you get this working, would you then maybe get the win8 tablet version also working? Loving linux, but Win8 on tablets even a bit better
Highly unlikely, sorry, and definitely not my field of expertise!
The Following User Says Thank You to cb22 For This Useful Post: [ Click to Expand ]
 
-angel*
Old
(Last edited by -angel*; 22nd October 2012 at 06:19 PM.) Reason: Schulteree
#7  
Senior Member
Thanks Meter 199
Posts: 559
Join Date: Sep 2012
yeah nP - was just a think if they would have similar kernels...

Video looks very good, but as you say in the first post, nothing for ppl who don't know how to flash it and as I need the tablet for school I'd need dual boot at all... :/

But get on your working, really nice, but unfortunately I don't know anything about developing such things, so I can't help you...
Press THANKS if I helped!

Devices:
----------------------------------------------------------------
Samsung Galaxy S2
----------------------------------------------------------------
Acer Iconia W700
----------------------------------------------------------------
Asus Nexus 7
 
Charle692
Old
#8  
Senior Member
Thanks Meter 19
Posts: 164
Join Date: Jul 2012
Location: Ottawa
This is awesome i'm gonna have to read up on this to see how it works! great work! Always wanted something like this.
Asus transformer tf300t, Hydro 4.3

Google Nexus 4, Stock 4.4, Unlocked
 
Nekromantik
Old
#9  
Senior Member
Thanks Meter 190
Posts: 4,249
Join Date: Apr 2010
Location: Worthing
Quote:
Originally Posted by cb22 View Post
You can always use NVflash to backup your bootloader and such, then freely flash away. That's what I did (I'm on the TF300TG, and no one has uploaded their JB dlpkgfile *hint* *hint* and it's not available on ASUS's site yet) so I simply restored using NVflash to get my ICS with 3G back for when I'm not dev'ing.

Also - the ideas port over to any GNU/Linux system fairly easily once figured out - getting Ubuntu running wouldn't be much more effort. I'm using Arch to start since I understand it better (and prefer it)
Yeah.
Might try when I get some spare time.
 
Citruspers
Old
#10  
Member
Thanks Meter 19
Posts: 96
Join Date: Jan 2012
Great initiative! I'd personally prefer a native debian distro over Arch but I figure once you've laid the groundwork the road's paved for more distro's.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes