yashsingh1/xdaforums huggingface dataset:
[Transformer TF300T Android Development] jsantiago.antonio:
Make a file ".boot_linux" on the internal SD card, the kernel will look for that file. If the file is present it will boot into linux, if not it will boot normally into Android. Since there's no quick option to boot back to android atm, just power device off go into TWRP and use the file manager to move the file or delete so you can reboot normally into android. :)
[Transformer TF300T Android Development] keeganmccallum:
attempted to boot using old method and untarring to ext4 sd, booted and got to line "setting localhost: user" and then crashed dont know if this is because of me using the old method or if it is because of the tf300t kernel, but figured it could be useful info
[Transformer TF300T Android Development] Charle692:
Hi guys so I was wondering does anybody know it this is safe enough to try without a nvflash because im on the jb bootloader and was never able to get nvflash. So far all i seem to see is that people are getting bootloops. Any bricks?
[Transformer TF300T Android Development] jsantiago.antonio:
I don't have an Nvflash and i successfully got it working, as long as you are comfortable with fastboot & adb, you should feel fine.

If you want a piece of mind, get yourself an micro SD card and put a stock rom on it and in the case that you fail or enter a bootloop, etc just fastboot flash twrp and flash the stock from from the micros SD card. :)
[Transformer TF300T Android Development] cb22:
Actually, the Maliit keyboard is installed, just not activated! If you can SSH into your device (by default it creates a USB network port with IP 10.0.0.2) username "user", password "user") you should be able to run:

$ export DISPLAY=":0"
$ maliit-server &

and now if you tap into any text field there'll be a handy virtual keyboard at the bottom of the screen.

Thanks to everyone with a TF300T who has been testing this out too! It doesn't seem to be working for the majority of you, just resulting in boot loops. I get the feeling that has something to do with module versioning or the initramfs used for Android on custom ROMs. What's strange though, is that if you're getting to the Android boot screen (aka, the ASUS in the centre one) booting Linux _should_ still work.
[Transformer TF300T Android Development] shenk:
Able to load

thanks cb22 on your hard work. At first I also encountered the boot loop but after chmod 775 to .boot_linux (mine located on both /data/media and /storage/sdcard0) and also the /data/linux directory, my problem solved. now, i'm able to load & use the archlinux.

i'm using tf300t
[Transformer TF300T Android Development] keeganmccallum:
Thank you so much for this post! arch working beautifully on my tf300t
[Transformer TF300T Android Development] -angel*:
may you tell us what I did? I'd like to flash it do when I have enough time, but really need a quick guide :D

so what I think: 1.)flash untermenschs zip via TWRP (I'm on 2.2.2)

2.)untar (with winrar?) the tar.gz-file into /data/linux (if not existing just make one)

3.)flash the blob to staging with command "fastboot -i 0x0b05 flash staging [file-name]"

4.)then boot android and run the command in first post?
[Transformer TF300T Android Development] jsantiago.antonio:
I'm more than happy to help!, alright so:

1) Update the recovery to TWRP 2.3.1.0, Micro SD support is a must (in case you accidentally screw up, also recommend you drop a stock rom on the micro SD card before anything)

2) Install Stock Asus JB 4.1.1 Firmware 10.4.2.13 - Rooted & Deodexed & Busybox version ! (The reason you need Busybox is due that you have to untar some files on the tablet, this made the untar process quick.) Also note that i was not successful at installing this using Hydro 4.1 :(

3) The stock kernel worked wonders for me, i did not install a custom kernel. The stock kernel worked perfectly for this, i recommend you skip installing untermenschs's kernel.

4) After the stock rom is working, copy "linux.tar.gz" to the root of your internal storage on the tablet https://rapidshare.com/files/201953815/linux.tar.gz

5) Reboot your tablet into fastboot & "fastboot -i 0x0B05 flash staging hybridkernel.blob" https://rapidshare.com/#!download|15p3|2827313479|hybridkernel.blob|7694|0|0

6)After you reboot back into android, open up ADB on your computer and type

$ su
# mkdir /data/linux
# tar -xzvf /storage/sdcard0/linux.tar.gz -C /data/linux

This will take awhile just patiently wait till it's done extracting.

7)Create a file called ".boot_linux" and drop it on root of your internal storage on the tablet, then reboot. The kernel will then look for the ".boot_linux" file and when it finds it, you boot to arch linux.

8)I haven't played much with Arch Linux, so i have to figure out the location of internal storage is from linux. But what i did to reboot back into android was to reboot into TWRP and go to Advance > File Manager and delete the ".boot_linux" file and reboot tablet. That will then of course reboot into Android.
[Transformer TF300T Android Development] -angel*:
wow, thanks guy! to Step 1: isn't it easier to just flash stock via fastboot and keep backup of stock? because I have both :good:

To step 6: I'm not really a pro at fastboot and adb and I'm on Win7 64bit, so I think I should go to CMD, type cd c:\recovery1 and then type su and then the other commands? (I copied all the platform-tools to recovery1 folder ;) )

Just want to be sure enough before flashing it, because bricking the tablet would be my death :s But no way to get it working with Hydro? Love it's speed :laugh:

btw sorry for dumb question (hope you're not too much enerved of me noob...): doesn't this come with smth. like a file manager?
[Transformer TF300T Android Development] jsantiago.antonio:
Yeah, it's tons eassier to just flash stock back via fastboot, i just like having a piece of mind and be comforted in the case that i screw up i have methods of saving my tablet. lol.

I'm also on Win7 64bit, before you type su make sure you are on ADB shell. Best way is to go to your "recovery1" folder and shift+ right click and open command window there. Then type "Adb devices" make sure it shows your Tf300t and then "adb shell" and then "su" and you should be good from there. I am not so good at giving instructions, let me know if it makes sense i can probably reword it further if so :)
[Transformer TF300T Android Development] -angel*:
Ok, so I don't have to type the $ and the # in front of the commands? :confused:

Just waiting now until it works with Hydro, because stock is damn slow and I don't wanna always do factory resets :(
[Transformer TF300T Android Development] jsantiago.antonio:
Nope you don't need to type the # nor $, also i'm not entirely sure if it doesn't work with Hydro 4.1 some are saying a quick CHMOD allows Linux to properly boot. I'm not sure if they are using Hydro 4.1, would love to know if someone has been able to boot ArchLinux with Hydro 4.1. :)
[Transformer TF300T Android Development] -angel*:
Would be interesting for me too! Because I'd like to get it working until weekend and I'm busy with esams atm :(
[Transformer TF300T Android Development] Razorbacktrack5535:
It works on Tf300T fixing permissions for /data/linux and .boot_linux. How Can I activate the virtual keyboard using a Windows computer or maybe without using it ?
[Transformer TF300T Android Development] jsantiago.antonio:
I also would like to know if we could perhaps make a script for people like me without access to a USB OTG / Keyboard dock to execute virtual keyboard by default. Also realistically what are the odds of perhaps using a different linux distro? I would love to use Ubuntu.
[Transformer TF300T Android Development] Charle692:
I would also like ubuntu that would be awesome! On a side note I got it working on my tf300t as well thanks for the instructions and i'm also having a problem accessing my files it says i need authentication? any help? When i go to access my file system it says i need authentication and everything fails like "root" I need to install network manager that's why i need it
[Transformer TF300T Android Development] Valantur:
Ok guys just so you know, once you manage to run Arch in your tf300 it becomes a linux system, so if you're looking for help or for info on how to improve/customize the system I recommend you search in Arch's forums and/or google for the answer.

A quick-mini-super-ultra basic linux concepts to get you started:

1) Whenever you see # or $ you are not supposed to type those characters. It's a way to let you know if the command has to be run as root (#) or if it can be run as a regular user ($).

2) For this particular installation, user password is "user" and root password is "root".

3) To run commands as Root (#) open a terminal and type "su". Press enter and it will ask you for root password. Type in "root" and it will give you #.

4) Arch's package manager (command line tool similar to add and re)move programs in windows) is pacman. Gain root access as explained in point 3 and then run "pacman". For example, the command "pacman --help" will give you the options accepted by the program. See Arch wiki for more info.

5) There are some GUI applications that work with pacman as backend. Gnome packagekit is one of them. Google.

I hope this helps you on your way to understand how to use a Linux system.

Valantur
[Transformer TF300T Android Development] aachour:
Hello everybody.

Does anybody have an explanation about the bootloop.

I can't get linux or android to boot once I flashed the hybrid kernel.

I've seen the chmod trick, I did it on the .boot_linux files but I quite reluctant to do it to my linux filesystem, some of it yes, wouldn't do it for the whole thing.

Thanks!

TF300T

flashed with fastboot -i 0x0b05 flash staging hybridkernel.blob

untarred the linux file system where desired...
[Transformer TF300T Android Development] atom83:
THIS IS GREAT! THANKS!!!

(btw, it is working for me with hydro 4.1 !!! (with chmod 775 on the .boot file and /data/linux folder))

fast booting, nice :D

BUT

wifi is not working for me:

I see all the wifi APs in NetworkManager but when I pick one and enter the WPA key, it does not authenticate. always keeps asking for the WPA key.

anyone else has problems like this? what can I do? :confused:

other question:

Can I do suspend to ram, or suspend to disk (emmc), or something similar with this?

again, thanks for the great work!
[Transformer TF300T Android Development] dragonnn:
Try to use wicd, instand nm. But wifi I think isnt fixed, we are still waiting for new upload witch fixed wifi.

Wysyłane z mojego ASUS Transformer Pad TF300T za pomocą Tapatalk 2
[Transformer TF300T Android Development] keeganmccallum:
no wifi is working now i can confirm it, working on my tf300t with hydro 4.1
[Transformer TF300T Android Development] -angel*:
can somebody explain how chmod works? :confused:
[Transformer TF300T Android Development] brittan:
chmod is a Linux utility for changing the permissions/ ownership of a file. in the case of "chmod 775", you are giving the group owner of the file full permission, the user owner of the file full permission, and everyone else the permission to only read and execute the file, not edit/write it. Going into more depth than that would take a lot of typing so i will just give you a link to a page that explains everything =).

http://ss64.com/bash/chmod.html
[Transformer TF300T Android Development] qwahchees:
I'd love to try this out sometime, maybe when it's further developed and stable :P.

I don't want a pile of ashes just yet. :)

Great work!
[Transformer TF300T Android Development] -angel*:
ok and what exactly is it used for and how do I apply it in the installation progress?

btw sorry for "spaming" your thread cb22, but I think other noobs can just search for my posts in here and will get the answer to everything, because I want to end in a pile of ashes like qwahchees mentioned before...
[Transformer TF300T Android Development] brittan:
I have not personally installed this ROM myself, i am waiting for it to come further along and have been following it pretty closely and love the work being done. Someone correct me if i am wrong but to me it looks like the reason they are setting the permission on that boot file is so that you are able to dual boot between android and linux. So basically changing the permissions on this file would either allow initramfs to see the file, or keep it from being able to view the file. If initramfs can read the file it boots to linux. And if it cannot read the file, it will boot into android.

So basically if you want to boot to android you change the permissions on the file so that initramfs can read the file, and if you want to boot into android you modify the permissions so that initramfs cannot read the file.
[Transformer TF300T Android Development] -angel*:
lol, no way without this chmod to get it booting on Hydro? Don't really get it with the permissions, how to set them etc...
[Transformer TF300T Android Development] dragonnn:
You want to install Linux on you tablet, without basic knowledge about it? Go away, away :P. Serious use google,

Wysyłane z mojego ASUS Transformer Pad TF300T za pomocą Tapatalk 2
[Transformer TF300T Android Development] brittan:
I also agree if you don't understand how it works, do not install it. You are asking for a paperweight.
[Transformer TF300T Android Development] Razorbacktrack5535:
Can you make a new version with keyboard preactivated? I will abandon Android for it LOL
[Transformer TF300T Android Development] jsantiago.antonio:
I agree that without basic knowledge of the linux operating system is seriously bad idea when going into trying to get this up and running.

I managed to write a sloppy quick script and managed to enable the virtual keyboard on-boot, loving this.

I like the idea of people getting into Linux because of this, and don't think scooting people away is a good idea. I do agree we should perhaps keep this thread for it's intended purpose and that's development. If cb22 doesn't mind could we perhaps create a thread on the general section and help those who are new to the platform on the device get better acquainted with the process and tips to help make the transition better.

Also cb22, do you perhaps have a donation link? This brought new life to my tablet and i feel bad without helping to support it in more ways than testing :)
[Transformer TF300T Android Development] akurpiel:
wifi

I can't connect to encrypted (WPA2) network with wicd !
[Transformer TF300T Android Development] Valantur:
Hey guys, I can't seem to get alsa/pulseaudio working correctly on the tf300t.

All I get is sound from the headphones, but I can't make the built in speaker work. I tried removing both alsa and pulseaudio and reinstalling both of them but no dice.

When I remove pulseaudio, I can't even get the headphones to work, although all alsa devices seem to be properly exposed. I enabled all controls in alsamixer and I also tried with several other music players to no avail.

Any tips you can give me? do you guys have sound on your TF300T (not TG).

Thanks
[Transformer TF300T Android Development] cb22:
I was being a bit excessive when saying it may catch on fire - it's probably a tad less safe than other ROMs, but not by much. Just take care (don't touch your recovery, bootloader, or have NVflash) and you should always be fine. I bricked my tablet by moving a simple file, before I had unlocked it! Sometimes unfortunately you have to learn things the hard way.

See below, and my post a few up. I'm planning a way of figuring out if it's not in the dock / show on screen keyboard.

Indeed! This was meant as a dev thread (hence being in the dev section ;) ) I think creating a thread in the general section for support and such is for the best, I've just done so.

It seems as if BusyBox's tar messes up permissions on the extraction, which is what is causing the chmod issues. Probably not setting the executable bit or something like that.

Thanks! I'm glad it's working for you :) I've added a link to my PayPal account, it should show up as the donate button, I think.

Unfortunately though, I am writing exams until the 13th of November, so I probably won't be able to spend as much time on this as I'd like. After that, it's finally holidays for me.

Why are you using wicd? NetworkManager should be running and working fine?

Apologizes if my reply seems a bit disjointed. Its late here and I've been studying all day :)
[Transformer TF300T Android Development] keeganmccallum:
I feel your pain with the exams:P and good call on the general thread. I was looking to put some work into this project when I have some spare time but I have never really developed mostly just cooked roms and such. I was wondering if you could point me to some documentation that I could read and learn from(dont worry I'm fine with big learning curves) so that I could contribute to this project more than just telling you problems and hoping you fix it, any direction is appreciated!
[Transformer TF300T Android Development] akurpiel:
I cant connect to wireless networks ( using network manager or wicd ). But I can connect to wired with dm9601 module.
[Transformer TF300T Android Development] atom83:
Me too cannot connect. WPA Athorization fails.

Perhaps with WPA_supplicant ?
[Transformer TF300T Android Development] samoukos:
User info

Quick question which it might have already been answered. So there is a user named "user" is there a password for it? P.S. What is root's password? I can't find it or guess it. lol.

P.S. Arch works amazing on my TF300T.

Was able to make an executable to lunch the virtual keyboard and then close it. Also NM works flawlessly. Going on vacation today till Monday. When I come back, i will start uploading some mods so everyone can have a good experience with Arch on their tablet. And almost done with figuring out how to reboot to android.
[Transformer TF300T Android Development] cb22:
Hmmm! Can both of you please post the output of "lsmod" from Android?

Great! Well, the ArchWiki - https://wiki.archlinux.org/index.php is really helpful for all things Arch, and 99% of the stuff applies for us too, even though we are on ARM and not x86.

What would be really useful, and more from an Android side of things, is figuring out the meanings and settings of all the various sysfs entries to do with things like smartdimming and processor control. Knowing those would allow us to improve our power usage quite a bit, as well as other cool things (like using the lightsensor, etc)

user and password user, root and password root... Don't leave this floating with a public IP!
[Transformer TF300T Android Development] dragonnn:
For things like light sensor we can write for example a simple bash/c++ script with runs in background and change the backlight to the value of the sensor, if both values are in /sys it should be pretty easy, unfortunaly I am still locked, maybe next month I will unlock my tablet.

Wysyłane z mojego ASUS Transformer Pad TF300T za pomocą Tapatalk 2
[Transformer TF300T Android Development] -angel*:
So as ppl are telling me I shouldn't flash if no knowledge of Linux I won't do, but I'm really interested in a "Desktop system" for a pad because of apps with more features etc. :good:

Maybe you could improve your dual boot kernel? Because I'm using Siyah on my SGS2 and I think it's working not really different - it searches for 2nd rom (like yours searches for linux boot file) and then you have to press home or volume to boot into 2nd rom, but just an idea because then you wouldn't have to remove the linux boot file everytime if want to switch to Android... :)
[Transformer TF300T Android Development] dragonnn:
Install Linux first PC, learn how to use it - this more secure, if you will have enough knowledge then install Arch on TF300T. Arch isn't for noobs, trust me.

Wysyłane z mojego ASUS Transformer Pad TF300T za pomocą Tapatalk 2
[Transformer TF300T Android Development] keeganmccallum:
Okay sounds good I'm gonna start reading and playing around with my tablet and get back with the results!

edit: I also found this http://www.nvidia.com/content/devzone/linux-for-tegra.html, I dont know if you have seen it, and its supposed to be used with ubuntu but there looks to be alot of kernel modules that we dont have, including ones supporting power management and graphics acceleration! I am still trying to figure out the finer points of kernel modules etc. so i havent been able to try anything but figured I would share this find! The Cardhu package is the one made for tegra 3 devices such as ours!
[Transformer TF300T Android Development] Valantur:
I'm glad to hear you'll be working on bettering the system for everybody! Were you able to play some mp3s and have the sound come out from the internal speaker?

Thanks
[Transformer TF300T Android Development] Citruspers:
Nice find on that last one. It seems NVidia already provides a working T3 kernel, along with a sample filesystem image of Ubuntu Natty (compressed to 100MB so I'm guessing it's pretty basic). I wonder if one could just swap out the linux FS from this thread with NVidia's reference filesystem (after which it becomes pretty easy to install a desktop environment). The biggest hitch is probably getting wifi to work on the command line.
[Transformer TF300T Android Development] samoukos:
no. but headphones won't work for me either. Not sure what is going on. Keep working around to see what is causing that.
[Transformer TF300T Android Development] cb22:
Run alsamixer -c1 and look for the "Int Spk" control. Unmute it and it should work :)
[Transformer TF300T Android Development] -angel*:
so is there a possibility to get Ubuntu working soon on the TF300?
[Transformer TF300T Android Development] Valantur:
Hi cb22, thanks for being here helping us out.

Unfortunately, enabling int spkr yielded no results. I also noticed that after booting up, there are some process that are in "uninterruptible" state, such as "alsactl" (two instances of that one) and "kinteractive_lo". I wonder if it's related to the sound system not working properly.
[Transformer TF300T Android Development] atom83:
first I have tf300t not tf300tg

perhaps wifi is not properly working because of this?

lsmod from arch brings

bcm4329

from android the same like akurpiel

bcm4329 226761 0 - Live 0x00000000

cfg80211 157076 0 - Live 0x00000000

texfat 122570 0 - Live 0x00000000 (P)

tntfs 411258 0 - Live 0x00000000 (P)

tried associating with

"iwconfig wlan0 essid xyz"

but does not work.

in "iwconfig" it stays "not-associated" and ESSID:"" empty string.

and also with networkmanager and no encryption no success:

see the log here:

http://pastebin.com/qLxxamid

thanks!
[Transformer TF300T Android Development] anthraxx90:
Java and DirectX works?
[Transformer TF300T Android Development] gst0098:
Don't know if someone has just posted this, but by adding the line:

DISPLAY=:0 maliit-server &

to the end of .xprofile in the user folder it loads the server automatically when X11 "user" session is initiated.

---------- Post added at 03:28 PM ---------- Previous post was at 03:24 PM ----------

For java to work you have to execute (by the user root)

pacman -S jre7-openjdk

if you plan to develop you have to install the jdk by:

pacman -S jdk7-openjdk

If java exits with the following error:

Error: dl failure on line 875

Error: failed /usr/lib/jvm/java-7-openjdk/jre/lib/arm/server/libjvm.so, because libffi.so.5: cannot open shared object file: No such file or directory

you can symlink the libffi.so.6 to libffi.so.5 with:

ln -s /usr/lib/libffi.so.6.0.0 /usr/lib/libffi.so.5

G.
[Transformer TF300T Android Development] cb22:
OK. I think issues could be caused by the fact that the rootfs is using my nvram config file for the WiFi card.

You can get it to use yours by copying /system/etc/nvram_4329.txt to /data/linux/opt/tf300t (or /opt/tf300t in Linux) then reboot. Please try this and let me know :) if it fixes the issues, I'll include a script to do it automatically in the next rootfs.