yashsingh1/xdaforums huggingface dataset:
[Asus Transformer TF701] Trel725:
I think this problem associated with Windows. Try re-flash under your linux mint. Also, try do not flash, just boot.

Today I finally have done enabling 3d acceleration! Linux use mesa drivers which, in fact just software accelerated. I exchanged some libraries and got it! For example, glmark2-es2 show result in about 70-80. That is good, like most intel-gpu-based laptops. Unfortunately there is not much apps that can use OpenGLES/EGL
[Asus Transformer TF701] Trel725:
I am going to release Linux build v 0.2

Changelog:

Video. It needed a lot of work, but I have done it! Video up to 4K works great .

OpenGL ES. It is great feature, but very little apps can use it.

Glshim. A great thing, partially solution for previous problem. It is wrapper between OpenGL and OpenGLES system calls. So even OpenGL only games can works on tablet. But not every game works. E.g. I can't run Minecraft nevertheless that is possible http://boards.openpandora.org/topic/16707-minecraft-launcher/

Some games: eduke32, prboom (clone of doom), gnome-games, etc.
[Asus Transformer TF701] royredman:
First, I want to bring up how awesome this is and your awesome accomplishments towards this!! Thank you for all your work!!!!! Seriously. Second, do you this distro would be ready for a regular daily usage, or just for messing around with right now?

Finally, How difficult would it be to go back to android from there? YOU ARE THE MAN!!! Thanks for bringing more life to this tablet!!
[Asus Transformer TF701] Trel725:
Linux is really ready for daily usage. Once I used it (Libreoffice on it) in about 6 hours, and it was stable. Also, if you install linux on SD or loop file and flash kernel instead of recovery, your android will not change. You can boot it as usual.

Some more changes:

Video through Totem (instead of command-line nvgstplayer)

Controllable headphone volume

Suspend + autosuspend if lid (:) lid is complete computer) is close and wake up if open. (a little buggy)
[Asus Transformer TF701] zaelin:
If I flash the kernel over my recovery, and then reflash the recovery later to update/reflash android, will I be able to simply reflash the linux kernel and still have the configured linux install?
[Asus Transformer TF701] Trel725:
You can reflash recovery as many time as you want (in about 10 000 times, that is limit for flash memory)

_____________

Debian v 0.2 released!
[Asus Transformer TF701] skyleecm:
Great job! Trel725, thanks for your effort!

I have 2 minor issues (with v 0.1), that I have fixed:

1. need to triple tap to simulate a double-click. This is fixed by replacing the package xserver-xorg-input-multitouch with xserver-xorg-input-mtrack, and change the driver to mtrack in xorg.conf

2. I am using a normal user instead of root. And normal user cannot access internet, unless the Android internet group (3003) is added and the user has to be in this group.

The greatest problem I have is if the device is left idle for some time, the screen goes blank, & there is no way to continue other than reboot. I am hoping that we can just press the power button like in Android to on the screen.

Does opening the computer lid solves this problem in your new version?

The other feature I would love to have is bluetooth,

I try the included brcm_patchram_plus with the firmware bcm43341.hcd without success, always has the error, "cannot set line discipline".

Would it be possible for you to also package the new version with just the updated packages/binaries , so that I can just merged it into my existinng root fs? :D

Cheers!
[Asus Transformer TF701] Trel725:
Did you try press button "more bright"? Or just disable turn off screen in settings. I don't like use power button to enable-disable screen, if you want you can use two button on keyboard.

Suspending in 0.2 version is pretty buggy, so use it like experimental feature.

I'm afraid bluetooth is impossible.

And same problem with touchscreen.

Unfortunately I can't give a "patch" because this rootfs was created "from scratch" (through debootstrap)
[Asus Transformer TF701] royredman:
Ok, sorry if I am wasting your time with this question, but I am unsure how to unpack the archive onto the SD card/usb stick. Is there a link online on how to do it? Also, how do I input the fastboot command without having to plug the tablet into the computer to get the .img to boot?

Also, What size should the SD card/usb be? Would everything be saved properly on the SD card if I wanted to save a document typed onto the Linux OS, or would everything be wiped at a restart of the OS?

Finally, is this the Debian distro or another distro? Thanks again for your time!!
[Asus Transformer TF701] skyleecm:
ok, have disabled dpms & screensaver.

will this kernel works with a usb bluetooth dongle ? thks.

its all right without the patch, I try to upgrade less.

---------- Post added at 06:43 PM ---------- Previous post was at 06:26 PM ----------

You need to connect from a computer (with the fastboot command) to the tf701 with the asus cable.

enter the following command in the computer (if using SD card/usb stick):

fastboot boot linux_ext.img

or enter the following command in the computer (if using the loop file):

fastboot boot linux.img

The linux_ext.img or linux.img should be in your computer.

everything will be saved properly.

It is Debian!

cheers.
[Asus Transformer TF701] sudoaptget:
Hello royredman, I will record on how to unpack archive onto usb stick and upload onto youtube for your benefit so Trel725 doesn't have to explain the process all over again. Hopefully, this will help other people who are new to this thread as well. http://youtu.be/ZAe2eCHxKtQ

sd card/usb can be any size above 4gb to comfortably work. I think the SD card/ usb works like a normal storage system so you'll be able to save your documents or other stuff. Confirm with Trel725 on that one.

This is a debian distro, I think.
[Asus Transformer TF701] Trel725:
OK, skyleecm you are completely right.

2 sudoaptget

Thank you for video. Release versions of Linux is not packed by squashfs, just by tar.gz and tar.bz2, so you don't need use unsqushfs, maybe even you can unpack it in Windows. But Linux is highly preferable anyway because Windows driver can break permissions. Also you don't need console tools if you'd rather GUI, it can be unpacked just by gui archive managers. Be careful: in version 0.2 there is dir in archive, and rootfs in this dir.

Minimal size of SD or USB is 4 gb; it should be formatted in ext4 or ext3.

Distro is Debian Wheezy.
[Asus Transformer TF701] Trel725:
Yes! Touch works! Great thank for Bogdacutu, his project rm-wrapper make it possible.
[Asus Transformer TF701] zaelin:
Nice, good job to all of you crazy bastards getting this to work.
[Asus Transformer TF701] zaelin:
I had a random thought, since I primarily use android and would only use Linux situationally.

I would prefer if my recovery were to remain CWM, so I was wondering if it's possible to use terminal to run a command similar to adb boot recovery *.img but from within android off the tab?

Then I'd be able to still boot into recovery from the tab as needed to reflash/update roms, and on the occassion I need Linux, not need ADB on a PC to run the boot recovery command to load the linux kernel instead.

Anyone done this?
[Asus Transformer TF701] Geometry:
kernel source?

Great project!

@Trel725

One question: What kernel source are you using for Linux? Just the source from Asus or some patched version?
[Asus Transformer TF701] Trel725:
I'm using CyanogenMode source without any improvements. Just some configs were changed. You can find config in /proc/config.gz
[Asus Transformer TF701] Geometry:
Thanks!

I have just got a brand new tf701t and am quite excited about it. I bought it with the specific intention to use it both for Android and Linux. I have had a tf300t for some time and with that one both systems work very well. In particular, I have some experience with Linux on the tf300t that might be useful for this device as well. So I hope to be able to contribute something to this project.

So far I have been able to boot your rootfs with GUI. However, starting the GUI with "startx" as indicated in the first post did not work for me. The screen stayed black even after pressing the "more bright" key or even any other key. But then I found mention of "myx" later in the thread and that worked. Perhaps it would be useful to update the first post. (Or maybe I am the only one with that problem?)
[Asus Transformer TF701] Trel725:
Hmm, strange. Try write "brite" instead of "myx".
[Asus Transformer TF701] Geometry:
bind mount for rootfs

Instead of putting the Linux rootfs in an image file or on an external sd card it is also possible to run it directly in a subdirectory of the Android /data partition (mmcblk0p14). This has several advantages:

- better performance (faster file i/o compared to image file and to external sd)

- size of rootfs not limited by image file size

- rootfs only takes as much space as needed, not the fixed amout of an image file

How to set this up?

1. Create the directory "/data/media/debian-root-dir" (in Android) and put Trel725's rootfs from the first post inside. Step by Step:

Suppose you put the rootfs file "debian.tar.bz2" in the directory <downloaddirectory> under Android. In an Android terminal you type "su" and then

cd <downloaddirectory>
tar -xf debian.tar.bz2
mv 4856f746-b62a-494c-a0da-ffdcab915ef2 /data/media/debian-root-dir

NOTE: For the "tar" command to work under Android you might need to install a version of busybox.

2. Create a symlink from "mnt/data" to "host" in the rootfs. Steps: Still in the Android terminal type

cd /data/media/debian-root-dir
ln -s mnt/data host

That's it.

Now to boot the rootfs installed in this way you need a modified boot image. This is the attached file "linux_bind.img". It is used similarly as "linux.img" and "linux_ext.img". See the instructions in the first post. Using fastboot from a Linux PC:

sudo fastboot boot linux_bind.img

How was this done?

First, I installed the rootfs as described in the first post. Indside debian I installed the package "initramfs-tools". Usually the initramfs-tools are capable of generating an initrd.img only for root mounts to a partition or to an image file (loop mount). But here I provided a script to extend this capability to allow root mount also to a subdirectory (via bind mount). This is what I used to generate the corresponding "initrd.img" and then the "linux_bind.img" file.
[Asus Transformer TF701] Geometry:
"brite" does not seem to do anything, but "myx" works...
[Asus Transformer TF701] Trel725:
It is a great idea, bind mounting FS! I thought that is impossible.

What's about display:

It is pretty strange. Which release you're using? In 0.2 everything should working just by startx. As you can see, myx and brite are just simple scripts in /bin.

I have a little modified FS, with support touchscreen, player buttons, PulseAudio instead of Alsa and a little more advantages. I will release 0.3 soon.
[Asus Transformer TF701] aydink:
Big thanks for your contributions for getting linux natively on android devices (at least on tf701t).

I think it makes sense if a Wiki is created for this project where several developers can contribute their knowhow or create some step-by-step howto-pages including screenshots for beginners, what do you think? For instance the proposal of Geometry should be listed in the howto. Also you should give a sexy name for this project :)
[Asus Transformer TF701] Geometry:
I have been running full xubuntu (first 13.10, then 14.04) on my tf300t in a bind mount for about one year now. :)

I am using 0.2. But I haven't had time to experiment more with this....

I would like to understand better how you constructed the rootfs. Did you use the Linux for Tegra project from Nvidia?

For the moment I will make an attempt to recreate things from scratch, similarly to how I did this for the tf300t here and here....

Great! Looking forward to that!
[Asus Transformer TF701] Trel725:
First, I need basic rootfs. I use debootstrap to make it, plus install wifi tools. It is enough to run complete textmode linux with Internet access (if android partitions are mounted and necessary symlinks are created). Then I install simple GUI, copy libs from Linux4Tegra archive, and it is possible to start GUI. So, that is all advices I can give. Then just trial-n-error.

Also, unfortunately that is impossible to use newest version of Ubuntu due to Tegra Xorg modules available only for Xorg ABI 14 and older.
[Asus Transformer TF701] skyleecm:
"brite" can turn on the screen, if the screen is turn off after some idle time.

This can be tested if you run the ssh server, wait until the screen is off, then ssh from another computer and then run the brite command to turn on the screen.
[Asus Transformer TF701] Trel725:
Version 0.3 relesed!
[Asus Transformer TF701] aydink:
Great!

To be honest I'm not brave enough yet to install it, because of missing dual-boot.

Is it easy to implement dual-boot in the future?

Can you update the initial post with step-by-step instructions for newbies?

Maybe you can share also some pictures or some videos so we can see for instance, if libreOffice is usable or games

run at acceptable speed :)

Also I'm missing entries in the "Does not work" section: Does really everything run smoothly? This is too perfect to believe :D
[Asus Transformer TF701] SEFlasher:
What version of BusyBox is needed to extract archive on Android? 1.23.0-Stericson doesn't work correctly, too many errors on extracting (Function not implemented).

Tried to boot linux_bind.img, but kernel crashed with error ...35 panic not found :crying:
[Asus Transformer TF701] Graiden05:
Hi all! I'd like to try to get involved in this project too. Could some one test if this kernel can boot cm11? It based on Geometry's linux_bind.img but after some basic preparation it reverts them and trying to start cm11 init. Keep in mind that I dont have tf701, so I can't test it by my self.

----------------------

Added version with cm12 init.
[Asus Transformer TF701] ariadnejro:
I've tried the cm12 version with the command fastboot boot blob12.img and the tablet doesn't boot.
[Asus Transformer TF701] Graiden05:
Does it print any message like "panic" or "reboot in 10 seconds"? Or screen goes blank and then freezes?
[Asus Transformer TF701] ariadnejro:
Screen goes blank and freezes.
[Asus Transformer TF701] Graiden05:
Another try.
[Asus Transformer TF701] ariadnejro:
I'll try tomorrow
[Asus Transformer TF701] SEFlasher:
"Kernel panic - not syncing: No init found" on cm-11-20150209-NIGHTLY.
[Asus Transformer TF701] Graiden05:
Hopefully it was caused by missing permissions.
[Asus Transformer TF701] ariadnejro:
Kernel panic - rebooting in 10 seconds with cm12 version
[Asus Transformer TF701] skyleecm:
To make the text readable on the initial console, can setup using the Terminus font in /etc/default/console-setup

by changing the 2 variables:

FONTFACE="Terminus"

FONTSIZE="16x32"

To apply the changes immediately on the console, type

/etc/init.d/console-setup start
[Asus Transformer TF701] royredman:
Not to sound rude to the OP, but is there still support going on for having Linux running on this tablet? Or is it pretty much running perfectly?

If so, can someone do a video tutorial on how to get linux running on this tablet and also how to boot back into android from linux. It would be extremely helpful for me. Thanks for your time and hard work.
[Asus Transformer TF701] skyleecm:
Yes, Linux (Debian) is running well on my tablet. It is stable.

Depends on what apps I suppose? but, then it has nothing to do with the tablet.

For chromium browser, certain sites may not be viewable, I cannot view youtube videos from the browser.

There is 1 boot partition you will reserve for your android, if the other boot (recovery) partition, you do not want to touch it, then you will have to fastboot from another computer.

If you dun mind using recovery partition to boot Linux, then you can flash the boot.img into the recovery partition, in that case, when you boot into recovery, you simply boot into Linux. It does not affect your Android boot.
[Asus Transformer TF701] YayYouFixedIt:
I tried this without a dock. Got quite far.

Used a usb hub and vivo adapter. Had root filesystem on a usb thumb drive.

I had also tried putting the root filesystem on a microsd card. I was hoping to make a dock free solution. It would not pick up the microsd card. Not sure what happened or if that should work?

Anyway I just ended up putting it on a usb thumb drive.

It booted into X after typing startx. But for some reason it was too slow.

Things in X would not load. The desktop environment would not load. It just flashed a bit. So it could not be used for me.

Its a bit complicated setup without a dock but I gave it a go anyway.

Not sure Ill try it again right now but why was it too slow to be usable.

I may have another go at it again. Thanks.
[Asus Transformer TF701] YayYouFixedIt:
For the youtube videos. I dont know if this is the problem. Could you use the chromium pepper flash package? Is that there? would that make the you tube vids work I wonder. Its a package that seems to allow you to use flash in arm linux afaik. But then again they did say they switched to all html5 for youtube so I dont know about that but maybe give that a try if debian arm has that package
[Asus Transformer TF701] Trel725:
I am really not sure about problems with X. Yes, sometimes it loads really slow (that seems like bug with touchscreen input driver), but usually it works properly.

Also Flash is included yet. It uses flash library from Chromebook (thanks to guy, who share it here odroidxu.leeharris.me.uk ). Now I don't have that tablet, so I can't offer proofs, but flash is really works well.
[Asus Transformer TF701] skyleecm:
Flash does work, using the chromium pepper flash package.

but youtube videos doesn't work for me.

I install chromium from ubuntu repository though. :)

version 39.0.2171.65-0ubuntu0.14.04.1.1064
[Asus Transformer TF701] Geometry:
I would like to understand this a little better as I would like to port this to other distros.

@Trel 725

I have a few questions about the v0.3 rootfs:

- The files in /lib/firmware/*.bin are different from the ones in the linux for tegra (L4T) nvidia project version 17.1. Are these from a different release? Do the nvidia 17.1 ones also work?

- Also compared to L4T 17.1 two libraries in /usr/lib/arm-linux-gnueabihf/tegra-egl/ are slightly renamed (adding .0 or .0.0 at the end). What is the significance?

- There are additional libraries in /root/lib. What are they for?

- I have tried to create a normal user and start X for this user, but failed. I noticed you modified a line in /usr/bin/startx for X to run in vt1, but "startx" or "startxfce4 -- vt1" for the normal user also fails. (Screen stays blank). Any idea what is the problem?

I would greatly appreciate if you could offer some insight to any of these questions!
[Asus Transformer TF701] skyleecm:
I am using a normal user to startx as well, it should work.

Did u have

export DISPLAY=:0
[Asus Transformer TF701] Trel725:
@ Geometry:

Firmware in /lib/firmware is really strange things. I tried a lot of different ways, and now it works. I have no idea why, but surely would be better do not change it.

Some libraries names were changed because I cannot make rules for ld, so it is to make GLES working.

Libraries in /root/lib are necessary for touchscreen support and GL - GLES wrapper.
[Asus Transformer TF701] Geometry:
It definitely does not work for me. Steps to reproduce:

1. Extract rootfs to sd card.

2. Insert sd card in dock card reader and boot via fastboot with "linux_ext.img".

3. System comes up as expected. Log in as root and type "startx". Xfce works as expected. Log out of xfce.

4. add user "ubuntu" via

adduser ubuntu
addgroup ubuntu adm
addgroup ubuntu sudo

5. Log out of root.

6. Log in as "ubuntu". Type "startx". Screen is blanked (as expected when X comes up) but then it stays blank.

Entering "export DISPLAY=:0" before "startx" in step 6 does not change anything.

Any clue what might go wrong?
[Asus Transformer TF701] skyleecm:
then, it might be the brightness issue.

this can be solved by either running a program that allows using a keystroke to adjust the brightness.

or

using Trel725 provided brite

the script writes a brightness value to

/sys/class/backlight/pwm-backlight/brightness

but that file can only be written by root.

if using brite to adjust the brightness, (like in myx)

then the permission of the /sys/class/backlight/pwm-backlight/brightness

has to be changed to allow a normal user to write

or require the normal user to sudo write.
[Asus Transformer TF701] Geometry:
Yes, that was the issue! So it seems the brightness value needs to be rewritten after X has started. Thanks!
[Asus Transformer TF701] aydink:
unfortunately when doing the fastboot I get lots of following errors:

modprobe: chdir(3.4.104-cyanogenmod): No such file or directory

and /sbin/init and other files are also missing (although extracted..)

:confused:
[Asus Transformer TF701] Trel725:
Today I've seen Plasma 5 on my desktop and it looks really nice. Also it support Gl ES, so it is possible to run it on tablet. I'll try do it later, when it become more stable.
[Asus Transformer TF701] dmwm:
Hi! I had the exact same problem. It seems this is due to incorrect unpacking/copying symbolic links. Following steps worked for me:

1) Uncompress the archive to *.tar (I used ZArchiver);

2) go to terminal;

3) su

4) cd <path-to-your-tar>;

5) cp ./debian_tf701_0.3.tar /data/media

6) cd /data/media/

7) tar -xf ./debian_tf701_0.3.tar .

8) mv ./4856f746-b62a-494c-a0da-ffdcab915ef2 ./debian-root-dir

9) cd ./debian-root-dir

10) ln -s mnt/data host

11) fastboot boot linux_bind.img
[Asus Transformer TF701] aydink:
thank you so much mate!! It works :) I just had to update my busybox version due to tar failing at step 7 (seek failure ..).

Now I booted to debian and will think the next days about replacing the recovery with linux :) but am not sure yet. a dual boot menu would be cool
[Asus Transformer TF701] aydink:
Trying to fix wifi took me about 1 hour until I saw the shortcut on the desktop for killing wpa_supplicant :D

I recommend the guake terminal.

By the way, is it safe do dist-upgrade to jessie? or is there a special reason for wheezy
[Asus Transformer TF701] Trel725:
There is a problem with X server. The newest available version is abi 12, so maybe you can upgrade if hold it's package.
[Asus Transformer TF701] aydink:
ok I did an upgrade to jessie by holding xserver*

thanks
[Asus Transformer TF701] evodev:
So from what I read if I use this it'll work with the dock, mouse, keyboard, and USB 3? And plug my 2 tb USB 3 external HDD? Also how stable has it been? Looking at laptop replacement possibly. And lastly does this flash like a normal ROM or possible to easily flip between android and Linux?
[Asus Transformer TF701] aydink:
I'd say: try it out. As long as you just boot into linux and don't use the flash command, you can't break/brick anything
[Asus Transformer TF701] Trel725:
Some news:

I tried to port KDE5, it is too heavy. Enlightenment also support Gl ES acceleration, and looks great, but anyway it is slower than XFCE.

Instead of using Wicd it is possible to install connman. It works perfectly.

Lightdm work correctly. If you want, just install it via apt-get and replace /etc/lightdm/lightdm.conf with that file:
[Asus Transformer TF701] aydink:
ok my next dist-upgrade with jessie broke something.

the initial login prompt dont ask for password anymore. its an endless loop and I can not proceed.

before resetting everything to 0.3, maybe you have a proposal:

It seems that it is related to a mount issue somewhere during boot.

Does anybody have a clue where to check / change something? etc/fstab is empty (and was it also before in v0.3)

dmesg-log:

[ 9.884942] last_kmsg_work_function:open /dev/block/platform/sdhci-tegra.3/by-name/UDA fail!

[ 10.885913] last_kmsg_work_function:open /dev/block/platform/sdhci-tegra.3/by-name/UDA fail!

[ 11.887054] last_kmsg_work_function:open /dev/block/platform/sdhci-tegra.3/by-name/UDA fail!