[DEV] ArchLinux on the TF300T(G)

realaxed

Senior Member
Oct 21, 2007
91
14
0
Chicago
I actually just tried this, and it works! A bit more digging will be needed to get this working with a dualboot solution - but it should definitely be doable.
You guys are awesome! Please keep up the good work on this. I am still holding out for a dualboot arch with the F1-F10 keys mapped to function+number, but I'm sure that will show up some day. Also, although this is really extra would there be a way to bundle arch with a compatible custom rom in a TWRP/clockwork zip? That would great once more of the kinks are worked out.
 

droidgirl74

Senior Member
Sep 9, 2011
112
15
0
Kernel...

After unsuccessfully having tried to compile the kernel without wakelocks the whole day (it builds, but I can't find any bzImage or modules anywhere), I would like to ask cb22 if it is possible to get your successfully compiled kernel (see post http://forum.xda-developers.com/showpost.php?p=38347663&postcount=419), even though it breaks Android. I don't care for Android, I just want to be able to suspend Arch Linux :)
 
Last edited:

realaxed

Senior Member
Oct 21, 2007
91
14
0
Chicago
Hi guys,

It seems like there is a pretty significant update required for Archlinux with qt4 replacing qt. Can someone shed some light on how to do this update tf300? For example, I tried to install keepassx by doing pacman -Syu keepassx, but one of the updates wants to replace nvidia-tegra with mesa. I would assume nvidia-tegra is required and can't be replaced, right?

Also, I just updated to cb22's new rootfs and dragonn's dual boot and I am blown away. Almost everything works except GDM. If I enable gdm I get a weird error message that only lets me shutdown the computer. However starting xfce manually with $ startxfce4 it works fine. Is there anyway to start xfce automaticly without gdm? I edited the xinitrc file but it didn't seem to work.

Thanks
 

dragonnn

Senior Member
Oct 16, 2011
1,135
861
0
Edit .bashrc file (You can find an example on Arch wiki). I am working on new version of the dual boot menu https://www.youtube.com/watch?v=l5Kbg4kuZfQ it uses the framebuffer directly so we don't need to enable console for it. It is still not ready, but if you will help me - I am searching for a better icon for fsck option (checking internal memory for errors), so if you have an idea, PM me ;).
 

realaxed

Senior Member
Oct 21, 2007
91
14
0
Chicago
Edit .bashrc file (You can find an example on Arch wiki). I am working on new version of the dual boot menu https://www.youtube.com/watch?v=l5Kbg4kuZfQ it uses the framebuffer directly so we don't need to enable console for it. It is still not ready, but if you will help me - I am searching for a better icon for fsck option (checking internal memory for errors), so if you have an idea, PM me ;).
@Dragonnn: sent you a PM with an icon to try.
 

-angel*

Senior Member
Sep 10, 2012
561
199
0
Does anybody remember where the hybridkernel mirror was posted? Searched here and in the supported thread but didn't find it :( want to try it together with rabit's TF700 package (smb said it should be working) but without this dualboot kernel it may be difficult lol

I know this is a Dev thread - but I think there's an invalid download in the OP for 2 months now so maybe time to upload to a mirror and put in OP :confused:
 

realaxed

Senior Member
Oct 21, 2007
91
14
0
Chicago
Hi everyone

I've uploaded a new rootfs + kernel in an upload.zip for testing.

This is a testing release, as such, dual boot is disabled, and it will only boot into Arch. Flash back your Android kernel blob of choice to get back into Android, or my original hybrid kernel to boot into your old Arch install. (They can co-exist)

Changes:
  • The building of this rootfs has been completely automated with a little set of scripts I wrote. Busy cleaning them up and I'll pop them on Bitbucket - so anyone can build a customized rootfs.
  • The brcmfmac drivers are now in use instead of the bcm4329 ones - this should fix all the wifi issues (hopefully)
  • Some tweaks to what mode the CPU gets set in and such, feels faster to me.
  • Compositing is done by xcompmgr
  • Unfortunately no Bluetooth / Suspend working just yet.
  • All the upstream goodness and updates.
  • Changed to gdm as the login manager
  • Two finger scrolling works, and the mouse feels nicer.
  • I've made a bit of a dodgy hack to the nvidia gpu kernel driver to try and sort out the graphics corruption that occurs sometimes. It might work, it might make things worse. Please let me know.
  • Keyboard remap is still TODO. The folks over at the TF700 Ubuntu porting effort seem to have a nice one that we should be able to use.

Errata:
  • Please run
    Code:
    systemctl enable tf300-cpu.service
    and reboot, after first boot.
  • GDM selects GNOME session by default, you'll want to select XFCE

The default usernames are root and initial, with the corresponding passwords being root and initial.

I've only tested flashing this update.zip with CWM. TWRP should work, but since my touchscreen is broken, I can't test it out.

I've uploaded it to my Dropbox: https://www.dropbox.com/sh/x4ot84wu462c1aq/ow7mzRu5ob

Hopefully this will work a bit better than all the other file hosting sites.
As I promised - I have found some free time to do cleanup in my sources and prepare the zip for flashing.

So here you go https://dl.dropbox.com/u/1664131/firekernel-TF300T.zip

How to install -
1. First flash the latest rootfs from cb22 (the one without dual boot). http://forum.xda-developers.com/showpost.php?p=36362624&postcount=217
2. Flash my zip - ready!

How to dual boot:
1. Reboot you device
2. When you device boots and the charging led goes green press volume up - you tablet will boot into Arch - if you don't press it you tablet will continue boot into Android after 5s.
Note! Do not press the volume up before the led goes green - this won't work.

Know bugs:
The dual boot works only when you tablet is docked to the docking station, a fix will come.
Sometimes the led won't turn off, reboot you device again should fix it

Futures of this kernel:
- full based on untermensch kernel
- UKSM patchset
- Entropy patch
- Basic compiling optimization (like O3, mtune=cortex-a9, hard-float etc.)
- OC to 1,7Ghz (note it is disabled on Arch - on it the tablets run in the "balanced mode" like this on Android (if you enable the tf300-cpu.service)

Thats all for now. Note this is first version, so pleas note this as beta. For now only for stock, I will try to made CM10/10.1 version later, but I don't promise that I will can do this.
Hello angel. The above should be the latest files for Archlinux @ dual boot.
 

transformador

Senior Member
Feb 17, 2012
189
43
0
I am thinking about upgrading from tf101 to tf300t, and linux is very important for me( use the tab daily for school). Is 3d hwa working?
Did anyone test gnome( not gnome classic)?
Thanks in advance, me :)
 

zaki0saad

Senior Member
Dec 13, 2011
122
17
0
Sydney
Would anyone be able to comment on the stability of this build? How is the battery life, can it be used as a daily driver, etc? using the dual-boot kernel, is anything broken in stock android? Does wifi work? Sound?

Just not too easy to keep track of what's working/not working.. the original post hasnt been updated in a while.
 

realaxed

Senior Member
Oct 21, 2007
91
14
0
Chicago
Would anyone be able to comment on the stability of this build? How is the battery life, can it be used as a daily driver, etc? using the dual-boot kernel, is anything broken in stock android? Does wifi work? Sound?

Just not too easy to keep track of what's working/not working.. the original post hasnt been updated in a while.
It's pretty stable, but if you don't know much about linux then archlinux may not be for you. Wifi works. Haven't tested the sound, but I know someone has already posted sound & mic fixes in this thread. Also, it requires a stock kernel for your android rom so I don't think it's CM 10 compatible. I have had a lot of success with CleanRom though since it lets you use the stock kernel.

For example, archlinux has recently updated and replaced qt with qt4. https://www.archlinux.org/news/qt4-replaces-qt/
There are a lot of packages I can't install now, because I don't know how to do the upgrade. There is an update command, but I think the tf300 version of arch has conflict issues with this update and no one has commented on it here.
 
Last edited:
  • Like
Reactions: zaki0saad

gavekort

Member
Jun 17, 2010
16
1
0
I'm having trouble when I flash the update.zip from cb22, it is freezing at ~50%. Do I need to factory reset my tablet or clear any caches?

I'm using CWM to flash the update.zip and the archive is correct checksum.
 

gavekort

Member
Jun 17, 2010
16
1
0
Not sure. I've had a lot of success with TWRP tough.
I've tried downloading the update.zip multiple times, tripplechecked the checksum, tried installing from the SD-card and from the MMC, cleared dalvik cache and /cache. This is my fifth attempt and it still freezes at the same spot, which is around 45-50%

I'm using CWM v6.0.2.3 and DEODEX CleanROM with the default kernel. When I'm flashing I choose "update from SD card" and select the update.zip I got from cb22's dropbox-link.
 

dragonnn

Senior Member
Oct 16, 2011
1,135
861
0
Odp: [DEV] ArchLinux on the TF300T(G)

Use TWRP instand, CWM have sometimes strange problems on TF

Wysyłane z mojego ASUS Transformer Pad TF300T za pomocą Tapatalk 2
 

zaki0saad

Senior Member
Dec 13, 2011
122
17
0
Sydney
It's pretty stable, but if you don't know much about linux then archlinux may not be for you. Wifi works. Haven't tested the sound, but I know someone has already posted sound & mic fixes in this thread. Also, it requires a stock kernel for your android rom so I don't think it's CM 10 compatible. I have had a lot of success with CleanRom though since it lets you use the stock kernel.

For example, archlinux has recently updated and replaced qt with qt4. https://www.archlinux.org/news/qt4-replaces-qt/
There are a lot of packages I can't install now, because I don't know how to do the upgrade. There is an update command, but I think the tf300 version of arch has conflict issues with this update and no one has commented on it here.
I use linux on my main PC for java development and I'm confident when it comes to linux. Also as a student, I find linux would suit my needs better than android.. Just wanted to see what other people saw with this build.

Yeah I'll have to keep flashing kernels to switch from cm10 to this right? Or ill just revert to CleanROM and use the hybrid kernel.. Thanks! :)


Sent from my TF300T using XDA Premium HD app
 

realaxed

Senior Member
Oct 21, 2007
91
14
0
Chicago
Wifi aint working, is there a workaround?
wifi definately works. I am pretty sure both TF300T and TF300G users have confirmed that. What custom rom on the android side are you using? I think cb22 has only commented on the stock rom, but I know cleanrom works. I am currently using CleanRom 2.7 with archlinux & dragonnn's dual boot.

EDIT: Make sure you have the latest files from cb22! I made a comment a few posts back that quote all the latest files from cb22 and dragonnn's dual boot.

Also, I am not a developer. Just trying to help the project.
 
Last edited:
  • Like
Reactions: zaki0saad

zaki0saad

Senior Member
Dec 13, 2011
122
17
0
Sydney
wifi definately works. I am pretty sure both TF300T and TF300G users have confirmed that. What custom rom on the android side are you using? I think cb22 has only commented on the stock rom, but I know cleanrom works. I am currently using CleanRom 2.7 with archlinux & dragonnn's dual boot.

EDIT: Make sure you have the latest files from cb22! I made a comment a few posts back that quote all the latest files from cb22 and dragonnn's dual boot.

Also, I am not a developer. Just trying to help the project.
Have a TF300T, I'm using cm10.1 and just switching between the latest dualboot kernel by dragonnn and a cm10.1 kernel - will switch back to stock based rom soon but I don't think it will make any difference. So wifi networks just pop up on Network Manager fine for you? It's just blank on mine, wifi working fine on android :eek: