yashsingh1/xdaforums huggingface dataset:
[Transformer TF300T Android Development] Spark1223:
It'd be cool if someone could help me get firefox running on this too. I know chromium is better, but this trick to get flash working only works on firefox: http://www.linuxforu.com/2012/03/linux-desktop-experience-arm-mips/
[Transformer TF300T Android Development] afzalarsalan:
Does "sudo pacman -S firefox" not work?
[Transformer TF300T Android Development] unfnknblvbl:
Does this need a particular version of Android installed (IE: only stock?), or will it work with CM/AOKP/PA, et al?
[Transformer TF300T Android Development] Spark1223:
nop. it says not found
[Transformer TF300T Android Development] afzalarsalan:
Does "sudo pacman -Syy" work?
[Transformer TF300T Android Development] zaki0saad:
Would the Ubuntu Phone OS help in the development of linux on our device at all?
[Transformer TF300T Android Development] afzalarsalan:
From what I saw, it said that it just uses android drivers and the framework seems completely different from most Linux distros. But then again, I don't really know.
[Transformer TF300T Android Development] secosan:
The downloads expired. I can help with mirrors, if someone refreshes them. I would also like to give it a try. I would love to run Arch on my Transformer.
[Transformer TF300T Android Development] -angel*:
would be really interesting *refresh*
[Transformer TF300T Android Development] Spark1223:
Mirrors were posted in this thread. RS will timeout when too much traffic is used up per day. Wait a few hours, or look in this thread for those mirrors. I'd post them here, but I forgot what page they are on, so I'd have to search the same as you. Just do a thread search for "Mirror"
[Transformer TF300T Android Development] secosan:
got them, thank you, not sure how I missed them thou'

those are really slow, I would sacrifice my dropbox, but I know there is a quota there also.
[Transformer TF300T Android Development] Spark1223:
It works, but does not change the fact that firefox is not found as a package. Its also not in the package list for Arch Linux on arm. However, someone (in the arch linux forums) does have it on git. If you (or someone else) could tell me how to use git to install it, I could probably get flash working. Apparently, the .so file for flash that was made for android works on firefox as a plugin (for Linux Arm) and has worked on version of Ubuntu made for other tablets.
[Transformer TF300T Android Development] Valantur:
Try with sudo pacman -Ss firefox. That will look for any package which has the word firefox in its name or description, then take note of the package name and run sudo pacman -S packagename.

Valantur
[Transformer TF300T Android Development] Spark1223:
Nop. This a list of all arm arch linux packages: http://archlinuxarm.org/packages Not in there either.
[Transformer TF300T Android Development] University of Pi:
BUMP

Bringing

Up

My Question in someone else's

Post

[F5]
[Transformer TF300T Android Development] Spark1223:
If your question was quoted, no. You don't need to worry about having a certain ROM. I've haven't heard from anyone using anything but the stock kernel, so idk as far as the kernel goes. I don't see any reason it wouldn't work. I'd suggest you to take the jump and try it. It's very neat. The only downside is no flash.
[Transformer TF300T Android Development] afzalarsalan:
Doesn't this flash its own kernel on staging or something?
[Transformer TF300T Android Development] unfnknblvbl:
That's exactly what I'm worried about - I run CM as a matter of course, and the CM/Stock kernels aren't compatible with each other, IIRC
[Transformer TF300T Android Development] unfnknblvbl:
CONFIRMED: does not work with non-Asus ROM (or at least, not with CM10.1) - even recovery won't boot now. Heh.
[Transformer TF300T Android Development] unfnknblvbl:
OK, so here's what happened after I followed the instructions in the OP:

1) Tablet got stuck at the initial "Asus" screen

2) TWRP wouldn't start up when I hard-reset it and selected recovery

3) I flashed the latest TWRP via fastboot and rebooted. The tablet went into the initial 'optimising apps' thing that happens when you install a new ROM. It got stuck at the 'starting applications' bit though.

4) I "adb reboot recovery" and flashed CM10.1 and the tablet booted properly again

Conclusion: This is not compatible with CM10.1. My thought is that that this is for two reasons.

Firstly, purely because CM10.1 is Android 4.2, and Asus have yet to release that for this device - so the kernel sources are all 4.1

Secondly, because of the way Android 4.2 rejigs the storage (as /sdcard/0/.....), having the .boot_linux file at the root of the sdcard as far as the provided kernel is concerned is impossible and ArchLinux will never boot. I imagine though, that it's probably a trivial task to patch the CM10.1 kernel to support the dual boot thing.

TL;DR:

Only works with Android 4.1 for now.
[Transformer TF300T Android Development] University of Pi:
I got mine pre-loaded with JB so I'm leaving that sort of stuff to the (hopefully) NVFlash-ed and brickproof

just to be safe

How about plain CM10?

There's still a lot of kernel differences though

we would probably need a build optimized for that kernel
[Transformer TF300T Android Development] isaacgaretmia:
I'm about to try this on a tablet loaded with CM10. Wish me luck.

I'm going to make a backup of everything first, i have NVFlash as well, so i'll be fine, but i'm going back to school tomorrow and would like to have something useful in my hands. :)

Edit::

Flashing the hybrid kernel blob allows you to boot CM10, but upon finishing boot every app known to man crashes. Can't unlock the tablet. Seems to me that a kernel could be created that will let CM10 boot passably, but right now it's not working.

Going to flash stock and keep the CM10 files as a backup.

Edit2::

Managed to get Arch Linux to boot. For anyone having problems, I ended up having to use the reboot-bootloader command in fastboot after flashing the hybrid kernel for some reason. After that step, everything worked perfectly.

No Wifi at present - i can sometimes see my access points, but I keep getting the "password required" screen.

Looking forward to the next rootfs!

Going back to CM10 for the time being, in order that I might have some entertainment for my 12 hour commute tomorrow. Cheers!
[Transformer TF300T Android Development] cb22:
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

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.
[Transformer TF300T Android Development] dragonnn:
cb22 Can you say me watch are the most important changes in kernel config? I know I can use you kernel config, but this causes lower performance on Android (I think some debug options made this problem), so I wont only the most important changes to get it boot. And I have a idea for a dual boot menu based on AROMA - I will post it tomorrow.
[Transformer TF300T Android Development] isaacgaretmia:
Wow! So lucky for me. :D

I'll flash this sometime tonight, and post any problems i see tomorrow. Thanks for the upload, cb!
[Transformer TF300T Android Development] cb22:
Sure, so my (very minor) changes to the kernel source are at https://bitbucket.org/cb22/tf300tg-kernel-source - the only really important one is the wifi-activator, which allows us to use the wireless drivers from compat-wireless (brcmfmac).

To the best of my knowledge the only changes I made to the stock tf300tg config (obtained from /proc/config.gz on a tf300tg)

CONFIG_NAMESPACES=y

CONFIG_UTS_NS=y

CONFIG_IPC_NS=y

CONFIG_USER_NS=y

CONFIG_PID_NS=y

CONFIG_NET_NS=y

CONFIG_DEVTMPFS=y

CONFIG_DEVTMPFS_MOUNT=n

CONFIG_DEVKMEM=y

CONFIG_VT=y

CONFIG_UNIX98_PTYS=y

CONFIG_SYSVIPC=y

CONFIG_ANDROID_PARANOID_NETWORK=n
[Transformer TF300T Android Development] afzalarsalan:
Is there anyway to login with a virtual keyboard?
[Transformer TF300T Android Development] unfnknblvbl:
...and I've put a mirror here just in case people have issues with Dropbox for whatever reason:

http://unfnknblvbl.cinnamon.feralhosting.com/update.zip
[Transformer TF300T Android Development] echohack:
Downloading. Gonna test this, hopefully it'lll be awesome.
[Transformer TF300T Android Development] unfnknblvbl:
I got this trick PM'd to me from a newbie - markusg90 - who says it works for him with CM10.1 using the build in the OP:

I haven't tried it myself as I'm currently waiting for my tablet to finish charging so I can try the new build... and besides, I'm going to flash back to CM10 anyway - the lack of TabletUI is really aggravating me in Android 4.2 :(

---------- Post added at 10:26 PM ---------- Previous post was at 09:32 PM ----------

Success!

...although now I have no idea what I'm going to do with Linux on my TF300T. Oh well!

If I may make a suggestion though, it would be nice to have a wireless configurator thingummy. My router has its own ideas as to what channel to broadcast on, so every now & then when I've bought a new device or flashed a fresh build of Android on one phone or another, the wireless refuses to work unless I enable some obscure setting in the 'advanced' section so the device can see more channels. Something like setting what region you're in or something.

If such an applet is already in there, sorry! I couldn't find it anywhere.
[Transformer TF300T Android Development] dragonnn:
cb22 just thanks, I will try it as soon it is possible, small question where is the file .boot_linux when you boot into Arch placed? I need this info because I am making boot menu for TF300T - already most done, only need make .service file for Arch-s systemd the deletes every boot the .boot_linux. I don't have at this moment Arch on my tablet so I can not test it, but the boot menu works fine (only problem - breaks the Android bootanimation - will need a hack in init.rc files to run run-parts before bootanimation service.

---------- Post added at 01:45 PM ---------- Previous post was at 12:56 PM ----------

Only for dev's now, doesn't full work

Ok, here is the first test zip https://dl.dropbox.com/u/1664131/boot_menus.zip just flash it from recovery, after you boot into the boot menu - when you choose Android it will continue to boot android (note they is no bootanimation for now, the boot menu will stay on the screen before Android boots), when you choose Arch it will creat the .boot_linux file and reboot you device, so it should boot into Arch, when you choose recovery it will reboot into recovery. Unfortunately, when you don't choose anything it will continue boot into Android and you will get screen flicker - just choose Android then, and it will gone. I think we need to hack the android init.rc that running run-parts freezers the boot process of Android (or put the AROMA launcher direct into init.rc) unfortunate I am not Android init.rc expert). And I didn't test the reboot out of arch, I have create a systemd service for it, but I can not test it for now if it works. Run on Arch:

systemctl enable reboot-android.service

EDIT

For now the boot menu doesn't work, because cb22 kernel don't have init.d support. So it is only for dev now.
[Transformer TF300T Android Development] polomalkin:
ёЖЪ

so you forced to work ArchLin + Cyan 10?

that would be fantastic!
[Transformer TF300T Android Development] unfnknblvbl:
No, I just meant success at booting the most recent rootfs.
[Transformer TF300T Android Development] dragonnn:
cb22 you kernel don't have init.d support for Android? As far I see no, this is unfortunately need for the reboot menu, the simplest way will be using untermensch ramdisk for the Android boot.
[Transformer TF300T Android Development] secosan:
Please bear patience, i'm a noob. :))

The reboot menu doesn't show up after flashing the zip with no errors. And when I try to run as root:

systemctl enable reboot-android.service

I get:

Failed to issue method call: No such file or directory

So now I'm stuck in Arch, as I dont have access to the Android File System to delete .boot_linux
[Transformer TF300T Android Development] dragonnn:
Boot into recovery and delete this file, or check /home/your_user/Media, but if you have flashed the latest rootfs, you need to flash back Android kernel manual. The boot menu will not work for now, because cb22 kernel don't have init.d support, I will made a kernel for it in next days.
[Transformer TF300T Android Development] secosan:
I don't want to get back to Android and stop using it, I'll wait for a dual boot solution.

I want to help as much as I can.

Edit: And Yes, I'm on the latest.
[Transformer TF300T Android Development] dragonnn:
For now the dual boot only works by deleting or creating this file - and only if you use the kernel from first post.

EDIT

So read, this is now only single boot into Arch, no dual boot in the latest rootfs (you need to manual flash the kernel from first post).
[Transformer TF300T Android Development] teufelschultz:
If I use the hybrid kernel from first post, then the old Linux starts with the WIFI problems.

I think dualboot is not possible with the newest archlinux from cb22. Only a kernel with init.d support can help, unfortunately I can not help. :(
[Transformer TF300T Android Development] dragonnn:
Kernel with init.d still need by hybrid (dualboot), and about problem with wifi, flash the kernel from first post, use rootfs from the latest, and you need to replace all files .ko in arch /lib/module/ by using it from Android /system/lib/module/, not sure, but this should fix wifi.
[Transformer TF300T Android Development] secosan:
Ok, from my understanding I can get both versions installed at the same time, at a cost of drive, but i'm ok with that, with the old version and android dual booting, and with some flashing work always can get back to this version.

Am I right?

Also, when I flash the second version of arch, the zip one in Recovery, its not like in Android, and I will always have a fresh install, no data and settings kept, they get rewritten, right?
[Transformer TF300T Android Development] cb22:
Yes, I've asked for people to test this image (this is a dev thread, right ;) ), mainly to see if it fixes their wifi problems. I decided that it would be better to first push out this image, so that those who know what they're doing can give it a spin and give suggestions, and that others can help with getting a much better dualbooting solution sorted like (thanks dragonnn)

Hope this clarifies things. That's the reason I haven't updated the first post or why there's not dual boot. Not some evil conspiracy to get everyone to stop using Android :P
[Transformer TF300T Android Development] cb22:
You can indeed both have them side by side, and simply flash kernel blobs to change between them.

Actually, if you already have the update.zip version installed, and you install it again, it will overwrite the files, but not delete anything. Once I'm happy with things, there won't be any more rootfs's or update.zip's - you'll be able to run a simple pacman -Syu which will pull in all your updates - tf300 specific ones included :)
[Transformer TF300T Android Development] isaacgaretmia:
I can confirm that flashing this update.zip worked on the first try, and booted spectacularly into a new and better arch. Thank you to CB for his dedication and support.

So far, I've tested the wifi, and it worked for me (on the second try... gave me a weird error when I tried to connect the first time.)

That's all i've tested so far, i'll update this post with edits as I go along.

Edit:

Okay, did some more testing. This version is obviously more stable than the last release, but there are still some problems.

There seems to be some problem when the tablet is "closed" i.e. the tablet closes in on the dock. Strange behavior seems to occur when this happens. Graphical corruption and softlocks seem to be the most likely occurrences, although in one instance the screen did not lock, but the left click button stopped working and double tapping would not act as a left click.

Other than that, i haven't been able to find Firefox, but that issue has already been reported and it's not a problem with cb. I'm working on finding a build that we can install. In addition, apps which are designed to work on gnome (such as alsamixer and audio mixer) do not seem to boot in xfce. We'll need to wait for a release which supports gnome for these to work.

I don't believe the shutdown option fully shuts down the tablet, either, as in the previous release. I'll look into the last fix for that problem and see if it still holds.

CB, if you have any questions as to any of these issues, feel free to reply to this post or send me a PM, i'm watching the forum.
[Transformer TF300T Android Development] droidgirl74:
Thanks for the great update. I've only one problem: how does one log in to gdm without the keyboard dock? I just returned mine to Amazon because of a hardware bug :(
[Transformer TF300T Android Development] ahbvrh:
Request .

Can I make a request ?

I think it would be good idea to have support for wifi cards modules included in the next release . this way it will allow people using external wifi card in the usb host.

personally I would like to ask for rtl818x and the ath9k module.

better yet, I would really appreciate if someone (cb22?) would be able to probide instruction on how to compile your own kernel module on the device.

Thanks in advance
[Transformer TF300T Android Development] secosan:
To be honest, this is a great release. The only thing I miss is native touchscreen support, like touch scroll in web and apps and onscreen keyboard. Except that, this is awesome.
[Transformer TF300T Android Development] cb22:
I wish I had a touch screen so I could test those things :( I'm planning to take it in soon, but I'm worried as to what Asus are going to say. I'll try argue that it's clearly a hardware defect and in no way caused by unlocking, but you never know. Then again, I've heard stories from people who have had no issues getting their unlocked tablets repaired under warranty.

The graphical corruption is, I believe, unrelated to the closing of the screen. It happens randomly, and there are two types - one, when your screen goes a bit funky, but still works (you'll see errors corresponding to MCBUF or something in dmesg) and the second where it appears completely locked up except for the mouse moving, but you can still SSH in and such (this is due to a DMA transfer stalling. Before, the screen would just become completely corrupted, but still "active". I removed the code that reset the controller, in the hopes that something along the lines of the reset was messing it up, but alas). This doesn't happen on Android, and I haven't heard reports of it happening on the Nexus 7, so it must be something in our kernel. Maybe.

Other than that, there is strange behavior when the dock is closed. I need to get it to be treated like a lid actually being closed, so the screen and input get disabled.

As for alsamixer not working, that's extremely odd. Try alsamixer -c1 to get at the actual hardware controls, and not the Pulseaudio ones. (all you should need to do is unmute int spk / headphones)

For Firefox - I'd very much like to compile a package. Firefox is my preferred browser too, and it has gstreamer support - meaning we can get fast HTML5 video playback via hardware acceleration!

I haven't tested shutdown, but reboot should be working - could you confirm that?

Thanks for the feedback :)

Unfortunately at the moment there isn't a way... I'm sure it is possible, I'll see what I can do for the next release.

Sure, it's a simple matter of enabling them in the kernel config. Here's a quick howto for compiling your own modules:

Grab the kernel source from Git

git clone https://bitbucket.org/cb22/tf300tg-kernel-source.git

Move the defconfig to .config

cd tf300tg-kernel-soruce
cp arch/arm/configs/cb22_defconfig .config

Run make ARCH=arm menuconfig and select the modules you'd like.

Install the Linaro GCC toolchain from here. If you use this one, you won't need to recompile the kernel

Compile your modules, making sure the CROSS_COMPILE path is correct, and adjusting -j9 for your CPU (#cores + 1)

make ARCH=arm CROSS_COMPILE=/opt/gcc-linaro-arm-linux-gnueabihf-4.7-2012.12-20121214_linux/bin/arm-linux-gnueabihf- -j9 modules

Your modules will now be compiled and sitting somewhere in the tree :) a quick

find -name "*.ko"

will locate them for you easily.
[Transformer TF300T Android Development] cicamargoba:
Thanks OP

Thanks OP for your work, I'm testing the last file and works very well.

A little issue with the backlight, when the backlight turns off I can't turn on again.

I'm working with some arm boards (linuxencaja.com) running linux with buildroot or openwrt based file systems,

I want to test arch on these boards, can you share with use the scripts for build the arch file system?

Best regards
[Transformer TF300T Android Development] Spark1223:
Have you yet released the hybrid kernel for the new release?
[Transformer TF300T Android Development] realaxed:
Use the chrometouch extension for the Chrome browser. Works great. Sometimes scrolling will not work until the page has completely loaded, but this happens on Android too. Also note the three different "modes" for chrome touch. I usually switch back and forth from auto to full.
[Transformer TF300T Android Development] ahbvrh:
Thanks.

CB2, Thank you for the detailed instructions. I'll give it a go later today .

stupid question , I assumed the USB host driver is working in the current release , and it is simply a matter of compiling the modules for external USB wifi cards. I wasn't wrong was I ?
[Transformer TF300T Android Development] isaacgaretmia:
Just a quick note before I get around to my next round of testing, alsamixer wasn't installed for me initially - I had to go find it using pacman. This is my first time using an Arch distro - my laptops use Ubuntu and my server uses Gentoo, so i'm a little bit new to the Arch experience.

As for the softlocks, my brand of softlocking exactly matches your second description, the screen softlocked and I could only move my mouse. The disabling of the left click was extremely strange, and could have had something to do with input being recorded while the screen was closed.

I cannot confirm whether or not shutdown actually completes because I can't fully tell... but most of the time when I try to reboot it works. I think once or twice the reboot hung at a black screen... I'll do some more testing later and get back to you.

Is there anything else you want me to test?