Native Linux for Asus tf701t

dape16

Senior Member
Jun 20, 2006
487
109
63
It should be in /media/data/linuxroot. Using filemanager can be buggy, so recommended way is use terminal:
(go to root mode)
$ su
(go to linux root directory)
$ cd /data/media/linuxroot
(extract archive)
$ tar -xf {path to rootfs}

For example you can put archive to internal storage from your PC, and then use /sdcard/tf701t-xubuntu-14.04-rootfs.tar.gz as a path.
Thanks! I didn't think of using an terminal emulator in Android. It worked perfect! Just one thing to notice if someone else is trying the same thing, since it is a .tar.gz-file it has to be extracted with 'gunzip' which gives a .tar-file that then can be extracted with 'tar'.

Great work with getting Linux on the TF701, both of you!
 

Trel725

Senior Member
Jan 30, 2014
117
101
0
Stable multiboot image with choice menu! It works great for me. It based on bind init by Geometry, and if you do nothing, just load linux from default bind directory. If you press volume down while booting (when see message on screen, you have just one second!), the menu will be opened and you'll be able choose device to boot from, or enter your own.
 

Attachments

  • Like
Reactions: pelago

Trel725

Senior Member
Jan 30, 2014
117
101
0
Today I've ported kexec-hardboot for our device! It wasn't really hard, almost everything work from Nexus 7 patch. So, it is a demo version of multiboot menu. It looking for initrd.img and zImage in /sdcard/Boot/linux or /sdcard/Boot/android. You should just create appropriate directories and copy zImage and initrd.img (extract from android or linux boot images by abootimg -x). Attached boot.img must be flashed instead of android kernel by command
Code:
sudo fastboot flash boot boot.img
Also I need help to port multirom to our device. It need huge complete CM source and I can't get it with my slow internet.
 

Attachments

ariadnejro

Senior Member
Apr 3, 2008
243
55
58
The latest boot image works like a charm. Now I can boot Android/Linux and also boot to recovery. Congratulations.
Another thing. Is there a way to run Xubuntu in 1920x1200?
 

@[email protected]

Senior Member
Jul 4, 2012
165
212
0
ArchLinux is the best option. :good:
I have been using Arch on my device for two months and everything is running fine (wifi, bluetooth, keyboard, touch-pad, touchscreen, audio, video). Sadly, the touch screen requires android lib to works. The IRQ function in the touchscreen driver has to be modified to work independently. Also, Linux is missing HiDPI screens support. I have tried XFCE,Mate,LXDE & Enlightenment (lightweight desktops). Enlightenment is the best so far but its efl engine is not working on my device.
could someone try Enlightenment in Ubuntu or Debian? (dont forget libgles2-mesa-dev)
 

royredman

Senior Member
Jun 30, 2011
560
41
0
I guess I should read the first post again. My bad. Is the multiboot option included in the information on the first post, or is that just alpha testing right now?

Sent from my SCH-I545 using Tapatalk 2
 
Last edited:

UbuntuBhoy

Senior Member
Apr 28, 2010
206
22
0
Glasgow
ubuntubhoy.blogspot.com
Spent the night trying to get something booting but having no luck at all. I have tried Debian & Xubuntu but get the same error on both. I am trying to boot from a micro SD and get the following :-

Gave up waiting for root device. Common problems:
- Boot args (cat /proc/cmdline)
- Check rootdelay=
- Check root=
- Missing modules
ALERT /dev/sd1 does not exist

I then drop to a Busybox shell. I have the SD formated to ext4 and am using the boot_ext.img from the first post.

Does anyone have any pointers on resolving this?
 

Geometry

Senior Member
Nov 5, 2014
56
62
0
experimental: kubuntu 14.04 rootfs

Download here. To install extract to "/data/media/linuxroot". Boot using fastboot and the attached boot image "boot-media-linuxroot-17.img".
The standard user is "ubuntu" with password "ubuntu", real name "Test User".

what works:
- almost everything including wifi, bluetooth, suspend, touch screen

what does not work:
- left mouse click does not work on some windows: this includes the network settings and activites
This is a very strange error that has been noticed before. This is the reason this post is marked "experimental".
Please experiment, and if anybody finds the reason for this problem or a way to solve it, please post!
To connect via wifi you might call "kde-nm-connection-editor" from the command line.

Kwin seems to work better with the tegra graphics drivers than xfwm4. In particular, graphics corruption after wake up from suspend does not occur, so a workaround as for Xubuntu is not needed. Also, KDE is much more customizable than XFCE. So it allows to better deal with the large DPI of the tf701t screen. In many ways kubuntu seems to be better suited to the tf701t than xubuntu. So, I hope we can get the mouse click issue sorted out!

This rootfs was prepared in a similar way to the Xubuntu 14.04 rootfs, see this post and the repository. The main difference is to install "kubuntu-desktop" instead of "xubuntu-desktop". The kernel used is "3.4.107-cmaalxhb-17" from the repository.

UPDATE: To get OpenGL acceleration to work with KDE you need to replace kwin with kwin_gles. Instructions for doing this can be found here. The instructions are slightly outdated. You do not need the extra step of installing "kde-window-manager-gles" as kwin_gles is already included in standard Kubuntu 14.04. The system settings for switching window manager are at "Default Applications" -> "Window Manager".
 

Attachments

Last edited:

Geometry

Senior Member
Nov 5, 2014
56
62
0
highly experimental: KDE framework 5 (Kubuntu 15.04) rootfs

So it turns out that even the latest KDE framework 5 can be made to work on our tf701t, although with quite some effort.
Download the rootfs here. To install extract to "/data/media/linuxroot". Boot using fastboot and the boot image "boot-media-linuxroot-17.img" from the previous post. After booting, the GUI does not start, but you are greeted with a console login prompt. As usual, the standard user is "ubuntu" with password "ubuntu", real name "Test User". After logging into the console start the GUI as follows:
Code:
$ sudo service sddm start
what works:
Compared to Kubuntu 14.04, the good news is that there is no left click bug.
Also, wifi, bluetooth, touch screen seem to work. I have not properly tested suspend.

what does not work:
OpenGL with kwin does not work. Switching it on in Settings for "Display and Monitor" - "Compositor" - "Rendering backend" crashes kwin. This will happen the first time you start the system. because OpenGL is the default. Try to switch to "XRender" so at least some desktop effects work.
Also the system is generally less stable, including kwin and kdeinit5 crashing occasionaly.

Preparing this rootfs was a bit more work than that for Kubuntu 14.04. In the following I only describe the differences to the procedure for Kubuntu 14.04. Everything esle, including the kernel, is the same. Firstly, starting with 15.05 Ubuntu is using systemd instead of upstart. Unfortunately, systemd does not seem to work for us. Maybe it is a simple configuration issue or maybe a more serious problem of incompatbility with the old 3.4 kernel we are using. Fortunately, Canonical has provided a simple way to switch back to upstart for 15.04, by installing the package "upstart-sysv". With that problem sorted, the main challenge was to make Kubuntu 15.04 work with the old 13.04 xserver that we have to use because the tegra driver supports only abi up to version 13 (and 14, but that is buggy). So in addition to the special xserver packages that have to be installed for Xubuntu/Kubuntu 14.04, there are a number of additional packages, mostly from Ubuntu 14.04. To see what these are, have a look at the "/install" directory in the rootfs. A related problem was that the "kubuntu-desktop" package depends on a recent version of the "xorg" package that we cannot use. But "kubuntu-desktop" is only a metapackage and not really required. To get all the other dependencies and recommended packaes anyway I simply put the long list of these in a little shell script "kubuntu-15.04-inst.sh" in the "/install" directoy. So starting this script does the same as installing "kubuntu-desktop", except it does not require the recent "xorg" package. There is one more difference to Xubuntu/Kubuntu 14.04: Kubuntu 15.04 uses sddm as dispaly manager and not lightdm. This means that we need a fix for the display brightness issue for sddm. Fortunately, this turns out to be as easy as for lightdm. Just create a file "/etc/sddm.conf" with the following content:
Code:
[Users]
MaximumUid=8999
MinimumUid=5000

[XDisplay]
DisplayCommand=/usr/bin/restore_brightness
This also makes sure that the Android system users are not shown. This file is already included in the rootfs.

In any case and despite of the problems, Kubuntu 15.04, including sddm, looks really good on the tf701t, adapting well to the high DPI. However, the GUI seems to be not as configurable as Kubuntu 14.04.
 

ariadnejro

Senior Member
Apr 3, 2008
243
55
58
Thank you for the new rootfs. I will try them when I have the time.
I've been using Xubuntu 14.04 for some weeks and it's working like a charm. Do you reccomend one of the new Kubuntu rootfs you just posted?
 

Geometry

Senior Member
Nov 5, 2014
56
62
0
Thank you for the new rootfs. I will try them when I have the time.
I've been using Xubuntu 14.04 for some weeks and it's working like a charm. Do you reccomend one of the new Kubuntu rootfs you just posted?
If you want something solid and reliable, stay with Xubuntu. Both of the Kubuntus are experimental. If you are ready to experiment and perhaps interested in helping to try fix some problems, give the Kubuntus a try. The 14.04 is basically quite stable as well, and I would recommend it for production over Xubuntu if the annoying left click bug could be fixed. The 15.04 is less stable, and possibly needs more work, but KDE 5 looks awesome...
 

dape16

Senior Member
Jun 20, 2006
487
109
63
Boot boot image from Android

A simple way to boot Linux would be to boot the boot image from within Android. With apps like Flashify it is possible to flash boot and recovery images but I haven't found any solutions for temporary boot an image. Any ideas regarding this?
 

Geometry

Senior Member
Nov 5, 2014
56
62
0
Spent the night trying to get something booting but having no luck at all. I have tried Debian & Xubuntu but get the same error on both. I am trying to boot from a micro SD and get the following :-

Gave up waiting for root device. Common problems:
- Boot args (cat /proc/cmdline)
- Check rootdelay=
- Check root=
- Missing modules
ALERT /dev/sd1 does not exist

I then drop to a Busybox shell. I have the SD formated to ext4 and am using the boot_ext.img from the first post.

Does anyone have any pointers on resolving this?
You must make sure that the kernel version of the boot image matches the kernel version of the rootfs. The recommended boot images are here in the repository. This Xubuntu rootfs comes with kernel version 3.4.105-cmaalx-15. Use the boot image from the same post or the ones ending in -15 from the repository. Some information in the first post might be outdated. The most up to date information should be the repository.
 
  • Like
Reactions: UbuntuBhoy

UbuntuBhoy

Senior Member
Apr 28, 2010
206
22
0
Glasgow
ubuntubhoy.blogspot.com
You must make sure that the kernel version of the boot image matches the kernel version of the rootfs. The recommended boot images are here in the repository. This Xubuntu rootfs comes with kernel version 3.4.105-cmaalx-15. Use the boot image from the same post or the ones ending in -15 from the repository. Some information in the first post might be outdated. The most up to date information should be the repository.
Thanks for that, now all booting and running fine.

I wonder is there a note of an account with sudo access at all?

EDIT : Standard user has sudo access, my bad.
 
Last edited:

UbuntuBhoy

Senior Member
Apr 28, 2010
206
22
0
Glasgow
ubuntubhoy.blogspot.com
Bodhi Linux

I wonder if anyone has considered porting Bodhi Linux. The distro is built on E17 and they have a Nexus 7 build (although I am not sure how up to date it is). Because it is built on E17 it uses the enlightenment profiles such as tablet, netbook, laptop etc and they can be event switched, so if you disconnect the keyboard dock it will go into tablet mode for example.
 

Geometry

Senior Member
Nov 5, 2014
56
62
0
HDMI output

Surprisingly, connecting an external monitor via HDMI seems to work quite well with the Xubuntu 14.04 rootfs. (But beware of the graphics corruption bug when switching video modes, see the workaround described in the repository.) However, HDMI audio does not seem to work out of the box. Has anybody tried to experiment with that? Perhaps a configuration file is needed?