yashsingh1/xdaforums huggingface dataset:
[Transformer TF300T Android Development] atom83:
did not help.

I made a diff on /system/etc/nvram_4329.txt and /data/linux/opt/nvram_4329.txt. there is no difference.

This is so wierd, just know I managed it to connect for some minutes. now its not working again.

so strange :rolleyes:

will try a fresh install

thanks for trying to help
[Transformer TF300T Android Development] dragonnn:
Maybe you should put this file into /etc/ of Arch.

Wysyłane z mojego ASUS Transformer Pad TF300T za pomocą Tapatalk 2
[Transformer TF300T Android Development] teufelschultz:
First thank you!! Very very nice feature!!!

My Wlan doesnt't working, like other people have problems too.

I see a lot of networks, but not my network. My WLAN Hotspot from Smartphone can I see, only when Security are WPA and not WPA2. The Asus Tab Connect them, but i have no Internet Connection.

3G doesn't connecting too. I configure my apn, but the connection could not be established.

Any other have same problems?
[Transformer TF300T Android Development] koiulpoi:
First off - WiFi works for me, at my main two locations.

I also have no sound at all. Trying to play Youtube via HTML5 never plays, Exaile hangs on startup, alsamixer -c0 works (but is useless), alsamixer -c1 hangs... No idea what to do from here!
[Transformer TF300T Android Development] aachour:
Ok, this looks awsome!

I'm able to boot, install some stuff... it's not the most stable linux I've experienced but looks promising

I also have problems with sound though, alsamixer -c1 doesn't help much, I'm able to change some settings but not "Int Spk", this setting stays blocked at "00"

I guess the way we handle the display manager is not the same as in a standard x86 archlinux distrib, I installed gnome but was unable to get to a login screen and ask for a session with it

tried to use GDM but no way to reach it

Impossible to logoff from the session

Besides I need to make sure I'm using the 4 cores, it sometimes slows down and becomes unusable, far worse than with a eepc from way back when...

Thanks a lot!

edit:

Now that I've played with it quite a bit, I can see much unstability

There is much graphic jam, most of time it's ok but after some time it gets impossible to manage.

Sometimes only the text is replaced by small cubes, sometimes it's the whole windows

I was quite disapointed to see how poor are the repos and that I was not able to compile from sources tat much

I guess we are on the vanguard with the arm distributions, that's a shame given all the quality arm devices now on the market

Canonical just released a tool to install ubuntu on the nexus 7, like automatically!

It seems to work quite ok from what we can see here and there, unity is working and not on LVMpipe

Given how close the Nexus' hardware is to our tablet, there's most certainly something to do with this

Would it be possible to ask you, cb22, if you've documented all the steps to get there?

How did you first create the image from which sources and what did you change from that

That would be sweet and we could start helping you

What about going to the forum archlinux arm?
[Transformer TF300T Android Development] Itege:
I too was getting some of those graphical issues, dunno what I did but I stopped getting the squares. I was having some issues with X crashing in chrome which I fixed by changing the settings to allow chrome to use the system borders(beforehand if I had more than 3 tabs open X would crash within about a minute).
[Transformer TF300T Android Development] aachour:
Tegra 3 video / linux for tegra

Hello,

I just took notice of the support thread but I think this is more a dev question.

I'm loving what you did cb22, it changed my tablet!

I've installed the gnome desktop to see how it could run, but as for now we can only have access to the fallback session

Have you see this:

http://www.nvidia.com/content/devzone/linux-for-tegra.html

The very last link is for the armhf platform. How should we use it? Would it be sufficient to replace some files from our file system to these ones?

Would we need to do something else?

Thanks a lot!
[Transformer TF300T Android Development] PsymonDK:
I know this is development for Arch, and i'm not a developer, but as ubuntu has been ported to the Nexus 7 (with almost similar hardware and also built by Asus) perhaps some of it could be usefull?

https://wiki.ubuntu.com/Nexus7/Installation

Besides that, freaking amazing work! Haven't taken the plunge yet, but this looks really promising, been hoping for linux on my tablet ever since i bought it.
[Transformer TF300T Android Development] TimidRat:
I second this, woud love too see debain or ubuntu, really any other distro...
[Transformer TF300T Android Development] bige914:
kernel compatibility

hi this project since the umm CM10 has support for JB kernel now, will this work or will it be incompatible due to some slight difference? i just dont wanna blow up my tablet lol XD any answer would be appreciated :D
[Transformer TF300T Android Development] mrxdst:
I've seen that a official ubuntu version has been released for the Nexus 7. Does that mean that it could be done on the tf300 too? I love ArchLinux but it feels a bit advanced to me. Ubuntu seems as a better linux distro to start out with.. Just asking..
[Transformer TF300T Android Development] angelo.sharpe:
Hi guys! I have been trying to install arch on my tf300tg whole weekend but with no luck. I tried to install it with both asus stock rom and hydro 4.1 but with no luck I always end up in bootloop. I have red this whole thread and i think tried everything ( including chmod 775 on /data/linux directory and /sdcard/.boot_linux but nothing helped..)

These are exact steps i followed:

1) fastboot -i 0x0b05 flash system asus_stock.blob

2) fastboot -i 0x0b05 flash recovery twrp.blob

3) fastboot -i 0x0b05 flash staging hybridkernel.blob

4) install root via twrp

5) boot to rom

6) install busybox (for tar) and terminal app

in android terminal app:

7) su

8) mkdir /data/linux

9) tar -zxvf /sdcard/Downloads/linux.tar.gz -C /data/linux

10) chmod 775 /data/linux

11) cd /data/linux

12) find . -exec chmod 775 {} \; (for some reason chmod -R 755 /data/linux fails on symlinks .. this should be equivalent)

13) touch /sdcard/.boot_linux

14) chmod 775 /sdcard/.boot_linux

15) reboot => bootloop

I really dont know where the problem might be.. any ideas? Thanks so much! :)
[Transformer TF300T Android Development] shenk:
Looks like you're installing on ICS or maybe i'm wrong.
[Transformer TF300T Android Development] angelo.sharpe:
Nope, i have JB bootloader and rom as well. I have tried to do this on both hydro 4.1 and asus stock WW firmware from asus tf300tg support site.
[Transformer TF300T Android Development] shenk:
as for me, mine is on CleanROM 2.5 and it works well with it.
[Transformer TF300T Android Development] Valantur:
control screen brightness

For those of you who have ASUS's keyboard, or any USB keyboard attached to the transformer you may want to take a look at this scripts I'm using. It's far from ideal but it's better than not being able to control the screen brightness at all.

Installation instructions:

1) Copy both files to wherever you want (I put mine in /opt)

2) As root (if files were placed in /opt or where root access is needed), make them executable by typing: chmod +x ./backlight_inc and chmod +x ./backlight_dec

3) Go to Settings>Keyboard in XFCE and assign a hotkey.

So far so good? Now comes the not so easy part:

In order to run this scripts as regular users, we need to grant permissions to do so. This is what I did, however, it's totally up to you how you want to do this as there are several ways to achieve the same results.

4) As root:

#nano /etc/udev/rules.d/99-tegra-devices.rules

5) Insert the following lines (look at entries already there...become familiar with the format and most importantly don' t screw up):

KERNEL=="pwm-backlight" SUBSYSTEM=="backlight" RUN+="/bin/chmod 664 /sys/class/backlight/pwm-backlight/brightness"

KERNEL=="pwm-backlight" SUBSYSTEM=="backlight" RUN+="/bin/chgrp wheel /sys/class/backlight/pwm-backlight/brightness"

6) Press CTRL+X then Y then ENTER (if you need help, google for NANO commands).

7) As root:

#sudo usermod -G wheel user (this makes your user "user" part of the group "wheel", which we set permissions to before. See step 5.

8) Reboot (make sure you run "sync" first if you are force rebooting)

Enjoy!

Google before asking and feel free to customize/improve the scripts as you see fit.
[Transformer TF300T Android Development] mihalas:
to many steps

After installing rom, twrp, root, etc. and successful boot in rom you should act exactly :) like this:

1) fastboot -i 0x0b05 flash staging hybridkernel.blob

2) fastboot reboot (it will be rebooted; kernel and initramfs will be updated)

3) boot to rom

in android terminal app:

4) su

5) mkdir /data/linux

6) cd /data/linux

7) tar -zxvf /sdcard/Downloads/linux.tar.gz

8) chmod 755 /data/linux

9) touch /data/media/.boot_linux

10) chmod 755 /data/media/.boot_linux

11) reboot
[Transformer TF300T Android Development] Valantur:
Enable 720p HDMI-OUT

Alright guys, here's a little trick to enable 720p through the HDMI port of our tf300t(I believe it should also work on the tf300tg).

1) As root:

#nano /opt/tf300t.sh

2) Add the following entry (keep it neat, respect the format)

echo "D:1280x720p-60" > /sys/devices/tegradc.1/graphics/fb1/mode

3) Connect the HDMI port to your TV set

3) Save the file and reboot

4) You'll notice that the screen is all f'ked up, allow it to fall sleep and then move the mouse or press any key

5) Now it shouldn't be so bad, we just need to go to Settings>Display, click on your LCD device and select "1280x720" (I think there's only one refresh rate available)

6) Enjoy! Once you've gone through all this, only steps 4 and/or 5 should be needed.

I just found this, so I'll keep experimenting with the settings and write back if I find a different/easier way of doing this. I highly encourage you to poke around the system and post your findings here.

Let's keep it up and maybe when cb22 gets back at it he'll find some other things already working.

Cheers

UPDATE: For some weird reason, wifi gets disconnected when I connect my LCD to my Transformer. Let me know if this happens to you as well.
[Transformer TF300T Android Development] Gandalf515:
Would flashing the blob mess with the recovery or anything? I don't really understand...
[Transformer TF300T Android Development] Valantur:
No, it won't since you're flashing to staging and then the bootloader takes care of the rest (flashing the blob to the boot partition, not recovery)
[Transformer TF300T Android Development] Gandalf515:
Really :eek: So as long as I keep a recovery image handy I won't be in any danger of bricking the device? I can't use NVFlash since the tab is at 10.4.2.13 already.
[Transformer TF300T Android Development] dragonnn:
Two question, first how to use the debug option? I enebled it in the init, but I don't know how to open it on my laptop (running linux too), it detect, I tired to open it via telnet, but I am getting:

telnet 10.0.0.2
Trying 10.0.0.2...
telnet: Unable to connect to remote host: Connection refused

Second what are the most important changes against the default config in the kernel? Here is my defconfig https://github.com/dragonnn/asus_ke...TF300T/arch/arm/configs/untermensch_defconfig ? I wont really arch on my tablet! But untermensch kernel is much faster.
[Transformer TF300T Android Development] Valantur:
I couldn't get the telnet daemon running, but ssh works out of the box.

As far as I know, cb22's kernel is basically stock with some modifications he needed to make arch run in a dual-boot environment. I guess the best way to know what changes he made is to download both kernel sources and compare directories and files.
[Transformer TF300T Android Development] realaxed:
nevermind. rapidshare finally let me download the blob
[Transformer TF300T Android Development] realaxed:
@cb22: This is awesome, but I think you should give some credit to the guys at http://archlinuxarm.org/. Also, since your port is using a lot of their code maybe you should inform then of what you did to make archlinuxarm work on the TF300. This would be great for everyone because they may become interested and officially support the TF300. Then we could ask them for support as well since you obviously have a busy schedule. Please really consider the above. :)

NOW! While doing this I found out some cool stuff.

1. After getting the hybridkernel.blob on your device by running

fastboot -i 0x0b05 flash staging hybridkernel.blob

You probably want to reboot your bootloader via fastboot with this line:

fastboot reboot-bootloader

I get getting stuck in a bootloop when I disconnected my device without the reboot-bootloader line. I *THINK* (someone please confirm) that this is the proper way to disconnect.

2. You can make it easy to switch between Android/Linux. You don't have to boot into recovery and run terminal like someone suggested earlier.

In ArchLinux

Right click on desktop and select CREATE LAUNCHER

Type: SET ANDROID BOOT in the name field

Type: SWITCH TO ANDROID ON NEXT BOOT in the comment field

Type:

rm /media/data/media/.boot_linux -f

in the command field

Select an icon and check RUN IN TERMINAL. Then click create

To create a reboot to linux shortcut in Arch do nearly the same thing except change the name and use this command

touch /media/data/media/.boot_linux

In Android

Download an app like TERMINAL SHORTCUT

create a new script with this code:

[ -f /data/media/.boot_linux ] && (rm /data/media/.boot_linux && echo "Android on next reboot!") || (touch /data/media/.boot_linux && echo "Linux on next reboot!")

When run in whatever app you decide it will toggle between android and linux for next boot.

3. BESIDES WIFI this is running well on my normal TF300T with the 2.6.2 CleanRom Inheritance and STOCK KERNEL (Don't know about the other kernels). I assume 2.7 will work fine too.

4. I am having the same wifi issues other users pointed out before. I can sometimes (rarely) connect via WPA or No Auth, but I get disconnected sporadically and asked to reauth for WPA. When I reauth for WPA it never works despite entering the correct pass.

That's all I got! Hope I was helpful.
[Transformer TF300T Android Development] polomalkin:
does not work for me. :(

tried Media player, VLC, kaffeine.

just QWGA video works.
[Transformer TF300T Android Development] realaxed:
Hello all,

Not sure if cb22 is going to be able to give anymore support as he hasn't responded in awhile. Since the current build is really close to being usable besides wifi I was wondering if anyone is interested in putting up a bounty to get the wifi issues (and maybe bluetooth) worked out? I've been trying over the last week, but I don't know enough about linux to figure it out myself. In case cb22 comes back I have posted my journal logs in the support thread here: http://xdaforums.com/showpost.php?p=35234856&postcount=40

Let me know if your interested in putting up a bounty.

Use the donate button to the right under my name to add to the bounty. Alternatively you could donate directly to cb22, but I don't know when he'll be available again.

Thanks.
[Transformer TF300T Android Development] pendragon11:
I would pitch five dollars towards this
[Transformer TF300T Android Development] bloodyshyt:
Is there a way to revert if I wish to remove Linux? This involves flashing a new kernel right?
[Transformer TF300T Android Development] grlks:
I was not able to download. RapidShare has dropped it.

---------- Post added at 06:24 PM ---------- Previous post was at 06:20 PM ----------

You can remove Linux with that command:

rm -R /data/linux

The knew kernel still boots android after removing.
[Transformer TF300T Android Development] teufelschultz:
I have the files on my tablet. I upload it for you, but it takes a while.

---

Kernel:

http://www.share-online.biz/dl/ALI0VTEMEK

RootFS:

http://www.share-online.biz/dl/VMG30UEMO9
[Transformer TF300T Android Development] bilange:
For what it's worth, I couldnt even get to APX/nvflash if I did NOT go in fastboot and type 'fastboot reboot-bootloader'. I am not sure if this is the intended way to get APX up, but in my case I couldn't get into APX mode just like this nvflash guide showed with the Volume Up button being pressed on regular device reboot (while holding power, that is). Just a random heads-up for people having that issue (google search results, etc)

Back to the topic: I am one of those TF300 owners who couldnt get the kernel booting. Even last_kmsg is unavailable. I tried the following:

the usual 'fastboot flash staging hybridkernel.blob'

I tried to blobunpack the blob and send it using apx/nvflash using 'nvflash --resume --download 6 unblobedfile.img'

As a sidenote, A) yes I realise I am not flashing at the same locations in both cases, and b) I wasnt 100% sure about the nvflash line (or more specifically, what file format I needed to send through) until I figured out that the unblob'ed file is the same file format than this partition's backup I did when I applied that nvflash kit.

Anyway, In both cases, using cb's image using HIS kernel version didn't even give me a kernel boot (although its hard to say on screen). The best i could do is to reboot in recovery and check is last_kmsg was here. Its actually showing a last_kmsg from one of my earlier reboots using my compiled recovery kernel, but not the reboot on his kernel.

Either way, I'm still stuck at a non-booting state, whether or not I have .boot_linux existing or not . So I'm chiming in as an (power-)user with that non-booting state. I am under the impression that the TF300T needs his own kernel initrd seperate from the TF300TG.

(By the way, to make things clear to those who thinks I need support for a non-booting tablet: I can get my TF300 back to a normal state (thank you rayman for that!) so I am not 'stuck' with a non-booting device per say, I just can't experiment with that linux build, sadly :( Besides, it's the DEV topic right? I'm just pitching in my discoveries so far. )
[Transformer TF300T Android Development] Valantur:
Get the built-in speakers to work

For all of you who for some reason can't listen to music through the internal speakers, do the following:

1) Open alsamixer or your favorite mixer app

2) Make sure all controls in "tegra-codec" are available, if not, add them all.

3) Look for "Left Speaker Mixer DACL" and "Right Speaker Mixer DACR" and unmute both channels.

4) Also unmute "Int Spk" and "Speaker"

5) You can now remove all other controls you don't use.

Do as instructed and you should be golden.

I got rid of pulseaudio in the process of finding this out, not necessary at all and saves space.

One other issue I run into... for some reason systemd fails while restoring asound.state at boot, and the process remains in uninterruptible state in background. You can check if this happens to you by opening xfce's taskmanager and add the column "state". A letter D means the process is hung.

I fixed it temporarily by disabling/masking systemd's alsa-restore.service and alsa-store.service in /usr/lib/systemd/system (also remove both from basics and shutdown.wants dirs) If you need more info google for "mask systemd process"... oh... the beauty of linux :)

EDIT: If you also ran into this problem, and still need to have the internal speaker enabled at boot, just append the following lines to /opt/tf300t.sh:

amixer sset 'Left Speaker Mixer DACL' on

amixer sset 'Right Speaker Mixer DACR' on

Make sure you post your fixes/mods in this forum so we could all benefit from them :)

Cheers

Valantur
[Transformer TF300T Android Development] HaPe000:
HI, I've rooted TF300t with CWM and I've few questions about Arch.

Will it boot from SD card inside dock?

Will it erase a CWM?

Does CWM make a backup of kernel?
[Transformer TF300T Android Development] Valantur:
That's how I have it set up. You just need to modify the ramdisk and have the init look for the rootfs in dev/sda1 instead of /dev/mmcblk0p8. Be warned though that the access speed and overall snappiness of the system will be less than if hosted on the internal flash.

No

I believe you're referring to clockworkmod right? I don't use CWM, I use TWRP instead and it does backup the kernel (named "boot" partition). You should check if cwm makes a backup of the boot partition.
[Transformer TF300T Android Development] HaPe000:
Thank you :)

If I flash a kernel, is i possible to brick my tablet? Will I able to recover tf300 using cwm, twrp or smth else?

Will microsd card class 10 be enough?

Sorry for my English, I'm from Poland.
[Transformer TF300T Android Development] Valantur:
You are welcome :)

There's no way you could brick your tablet by flashing the boot partition. Nevertheless, I would recommend that you have the kernel blob file of your favorite rom at hand, in case you want to go back without reflashing the whole rom.

Remember to flash blobs to "staging". The bootloader then identifies if the blob has a recovery/boot/system img inside and flashes the appropiate partition.

I'm using a class10 and I can tell the difference in speed compared to the internal memory. Since the system is far from perfect, one of the main issues right now is that you can't reboot the tablet gracefully. You need to hold the power button and do a hard-reboot.... or... type the following command in the terminal as root: "reboot -f" to force a reboot. Doing this several times ends up messing with the filesystem journal, leading to errors if not fixed regularly. That's why I placed Arch in my class10 sd, so it doesn't mess with the partition where Android is installed.

Cheers
[Transformer TF300T Android Development] HaPe000:
Ok. But if it's possible to install arch on flash inside tf300, how can I change boot order?
[Transformer TF300T Android Development] Valantur:
It's tricky, if you're not familiar with the process.

Let me give you a quick overview:

Basically you have to unpack the blob file. That will give you a .LNX file which is the img file that bootloader flashes to the boot partition.

Then you have to use bootunpack to split that LNX file into 2 parts, the kernel image and the ramdisk. You don't have to do anything with the kernel, just focus on the ramdisk. Use the tool ramdiskunpack to create a folder with the ramdisk and open the file named "init". You will see that cb22 created two folders, one init for android and one for arch linux. Each init gets called depending on the existance of the file named .boot_linux.

Play around with the init file and suit it to your needs.

If you want to load the rootfs from the sdcard it should look something like this:

mount -t ext4 -o rw,noatime /dev/sda1 /mnt2

mount -o loop /mnt2/Arch /mnt

* That would look for a folder called Arch in the root of the SDCARD (where the tar containing the rootfs was extracted) in the keyboard dock and then move on with the init process.

The partitions are as follows:

/dev/mmcblk0p8 = internal storage

/dev/mmcblk1p1 = microsd slot in the tablet body (double check that, I'm not 100% sure)

/dev/sda1 = standard sd slot in the keyboard

Then you need to repack the remdisk, pack the kernel and new ramdisk into a img with mkbootimg and..... finally... recreate the blob with blobpack.

Google for "blobtools" and "ramdiskunpack / ramdiskrepack".... xda-developers has tons of info on those tools. Word of advise, there are 2 versions of blobpack on the internet, make sure you grab the one that can sign blobs using the -s option in the command line.

Oh, and I'm assuming you're running linux, cause I've no idea how to do this on Windows.