yashsingh1/xdaforums huggingface dataset:
[Transformer TF300T Android Development] ColMustard:
Not sure how you got yours to boot, but mine complains about low graphic and fails to load.

---------- Post added at 07:26 PM ---------- Previous post was at 07:22 PM ----------

Honestly I haven't noticed any difference in performance, however I didn't think it was all that bad to begin with. I did however install perload which loads apps quicker now
[Transformer TF300T Android Development] JoinTheRealms:
Similar issue here, i can get into the login screen (i had to make a new admin user, as ubuntu user didnt work) but unity refuses to load(no error messages just stuck at wallpaper). I did get it to work a while ago with the tf700 kernel it came with(it was amazingly smooth even with cube desktop), but the kernel has since been changed and doesnt work either.
[Transformer TF300T Android Development] dragonnn:
I have tried it, but now I am geting:

[BCM29] wl_iw_ioctl: error in cmd=8b03 : not supported
[BCM29] wl_iw_ioctl: error in cmd=8b09 : not supported

When trying to search for networks, and wifi doesn't work on Android now too.. :/.
[Transformer TF300T Android Development] Keshukas:
delited
[Transformer TF300T Android Development] schrdlu:
I have uploaded a new rootfs and updated posts #1 and #2 accordingly (and to reference the oc kernel uploaded a few days ago).

What's changed :

- overclocked cpu and gpu (respectively at 1,5 GHz and 446 MHz) ; still there ; no change from the one from a few days ago ;

- the rootfs includes properly working nvidia drivers (r16.3) so that 3d hwa works : es2gears should run at more than 600 fps ; glxgears will continue running at 60-70 fps since it's software only ; you can also check glmark2-es2 vs glmark2 ;

Those with an already working installation can update to working nvidia drivers with the following commands (as root) :

apt-get purge nvidia-tegra3
cd /
tar xf R16.3.tar.lzma
update-alternatives --force \
--install /etc/ld.so.conf.d/arm-linux-gnueabihf_EGL.conf arm-linux-gnueabihf_egl_conf /usr/lib/nvidia-tegra/ld.so.conf 9000 \
--slave /usr/lib/xorg/modules/drivers/tegra_drv.so nvidia_drv /usr/lib/nvidia-tegra/xorg/modules/drivers/tegra_drv.abi13.so
ldconfig -v
update-rc.d ondemand disable

There is one bad news for those who want to use unity : while the rootfs keeps at ubuntu 12.10, unity will not work (unity's version in 12.10 does not support some limits of the nvidia gl-es drivers ; this has been corrected in 13.04 but I didn't found a clean backport to 12.10 ; probably because of that that rabbit as been running a mix of 12.10 and 13.04 ; I quickly checked if I could migrate to 13.04 but this breaks the boot process and I don't wan't to invest into it until final 13.04 is out).
[Transformer TF300T Android Development] JoinTheRealms:
Hey schrdlu, do you know if compiz is working with the new version? cant wait to try it out!
[Transformer TF300T Android Development] zaki0saad:
Any way to change the default boot choice of linux? I would rather my tab to boot into android instead by default.. is it similar to changing GRUB boot variables? Didnt want to break anything so I thought id ask :p

Thanks for the builds btw! Great progress!
[Transformer TF300T Android Development] schrdlu:
Probably not perfectly : it seems compiz is part of what's not working correctly on 12.10.

Well, not completly trivial. But should be good training :D. You will have to :

- blobunpack the boot img (using androidroot blobtools)

- abootimg -x the img into zImage and initrd (apt-get install abootimg if it's not there yet)

- lzcat initrd |*cpio -i to extract the initrd

- modify lib/multi/01-main_screen.sh

- and do it backward (rebuild initrd with cpio -H newc -o, pack with lzma, assemble with kernel using abootimg, then blobpack)

(sorry not on the good system to get the script I use ; i'll try to post it later)
[Transformer TF300T Android Development] ColMustard:
Great Job, I'm very impressive performance of this right now.

On a different note, I've installed hardinfo and found that both media adapters are listed in the system summary. So it looks like they are exposed through the kernel. I know this isn't high on your priority list, just thought I'd share this information. Keep up the good work.
[Transformer TF300T Android Development] ColMustard:
I Have the sound working, sort of!

After looking into the /var/log/syslog I found the following errors being throw every 5 seconds:

Timeout: killing 'usr/sbin/alsactl restore 1.

Apparently it's failing to restore the sound setting on boot and hanging the sound system.

To temporarily fix this just run 'sudo rm /var/lib/alsa/asound.state, then reboot.This will prevent the restore from happening since their is no state file. Once you've re-booted you'll need to un-mute and enable the following with sudo alsamixer -c1:

Un-mute

1. Int Speaker

2. Head Phone

Enable

1. Left Output Mixer DACL

2. Left Speaker Mixer DACL

3. Right Output Mixer DACL

4. Right Speaker Mixer DACL

3. Head Phone Jack

Edit: To prevent the "alsactl restore" from occurring on boot, comment out the last line (exec /usr/sbin/alsactl restore) in /etc/init/alsa-restore.conf. Unfortunately you'll have to re-enable the previous after each boot, until I or someone else can figure out what is hanging the restore process.
[Transformer TF300T Android Development] JoinTheRealms:
After a week of use, im highly impressed with the performance of xubuntu on the tf300t, Ive set min cpu freq to 1ghz on interactive(ondemand seemed to give me lock ups) and everything is smooth as silk(i noticed scrolling in chromium would jitter as the clock speed jumped down to around 300mhz).

Occasionally i get screen artifacts with the tegra drivers(This happened on my tf101 while on tegra drivers also) restarting xserver seems to fix it

Would it possible to have a kernel overclocked to 1.7- 1.8ghz ? I feel like we would have laptop levels of performance:fingers-crossed:
[Transformer TF300T Android Development] ColMustard:
Just out of curiosity what utility are you using to govern the CPU?
[Transformer TF300T Android Development] schrdlu:
Thanks ! that's great !

I'm a bit overbooked and have not been able to use this information to push the diagnostic further, but I'm sure you have found the key.

Well, not sure I'm enough of an oc artist for that.. Pushing further would need playing with voltage and I'm much less confident with that (in fact I tried, and it somewhat worked when running monocore, but always crashed after about ten minutes running on all four cores). I may look into that when everything else is stable.

As for min 1GHz on interactive I'll try that. Have not been completely satisfied with performances, mostly because of stutterrings with firefox and thunderbird.

Don't know how JoinTheRealms does it. I personnaly do things like 'echo interactive > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor' or 'echo 1000000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq'. If you wan't to do that on all four cores and that it sticks, do it in /etc/init/nv.conf, before auto_hotplug and lp2_in_idle.
[Transformer TF300T Android Development] schrdlu:
Oh, also, to have working bluetooth : edit /etc/init/nvwifibt.conf which was added in the last rootfs or by installing R16.3.tar and change all occurences of /lib/firmware/... to /system/etc/firmware/... (pointing to the firmware files from android's side).

Works for me with bluetooth mouse. Could not yet bt tether to my iphone...
[Transformer TF300T Android Development] JoinTheRealms:
Im using cpufrequtils , with it to set min clock speed use sudo cpufreq-set -d 1ghz (or cpufreq-set -u 1.5ghz for max clock speed)
[Transformer TF300T Android Development] ColMustard:
Well unfortunately there is no way to set the governor on 1-3 because the cpufreq directory does not exist or am I missing something not so obvious?.
[Transformer TF300T Android Development] schrdlu:
Well, it's because /etc/init/nv.conf enables auto_hotplug : the cores which are not used are offline.

You can either comment the line in /etc/init/nv.conf and reboot or on a live system, disable auto_hotplug and put all cores online :

echo 0 > /sys/modules/cpu_tegra3/parameters/auto_hotplug
echo 1 > /sys/devices/system/cpu/cpu0/online
echo 1 > /sys/devices/system/cpu/cpu1/online
echo 1 > /sys/devices/system/cpu/cpu2/online
echo 1 > /sys/devices/system/cpu/cpu3/online

Then you can modify the governor and min / max frequencies. Since yesterday, I have been using the performance governor without highering the min frequency with good results :

echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo performance > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
echo performance > /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor
echo performance > /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor
[Transformer TF300T Android Development] ColMustard:
Awesome, thanks for the info.

I've got bluetooth audio working now that we're using the android firmware. Just had to install 'sudo apt-get install pulseaudio-module-bluetooth'. Once installed I connected my Ericson MW600 and enabled 'Headset Service' in the BT Device settings. This makes the device as an available output in Pulse Audio. In pavucontrol change your device profile to 'High Fidelity Playback (A2DP)' , voila.
[Transformer TF300T Android Development] keeganmccallum:
Flash in Chromium

Don't know if anyone already figured this out, but I got full flash working in chromium using the chromebook pepper plugin found here. I placed the file found on that post into /usr/lib/chromium-browser/plugins/ and then added the following to /etc/chromium-browser/default :

CHROMIUM_FLAGS="--ppapi-flash-path=/usr/lib/chromium-browser/plugins/libpepflashplayer.so --ppapi-flash-version=11.5.31.105 --ppapi-flash-args=enable_hw_video_decode=1,enable_stagevideo_auto=0,enable_trace_to_console=0" ,

replacing the original CHROMIUM_FLAGS= line. Works fairly well on hulu and youtube, minor stuttering but no too bad. I couldn't seem to get sound working using the method mentioned earlier, so I do not know how sound performs under flash. Hope it is useful!
[Transformer TF300T Android Development] koiulpoi:
Before I get started...

Does this work on the JB 4.2 Bootloader? Or does it require the JB 4.1 one?

Edit: Welp, the kernel flashes okay, but it won't boot. I get

ntfs-3g: Failed to access volume 'dev/mmcblk0p8' : No such file or directory

And then

Linux mount failed. Fallback to Android...

Which never boots. Flashing back to a 4.2 kernel restores Android. Any ideas? :D
[Transformer TF300T Android Development] Keshukas:
Can't boot on 4.2 boot loader :(

you need downgrade to 4.1 :( or wait for new kernel

ʞןɐʇɐdɐʇ on tf300t
[Transformer TF300T Android Development] koiulpoi:
I see... This may not be the right place to ask, but is there a reliable/safe way to downgrade back to the 4.1 Bootloader? I was under the impression this was impossible, but that might have been back to ICS from JB...
[Transformer TF300T Android Development] f69m:
No, not the right place to ask! :)

But anyhow, yes, there is a way to downgrade from 4.2 to 4.1. Just a little search might turn up this thread:

[HOW-TO] Upgrade or Downgrade to any stock JB Firmware

And yes, that was the downgrade from JB to ICS that is not possible.
[Transformer TF300T Android Development] Insane PPC:
i'm just starting to learn the basics and since i have a tf300 (also an epci 4g touch) i really want to start working on stuff for these devices to learn...

on xubuntu is it using its own kernel or is it based off the tf300 kernel? is it just a modification to the stock kernel or is it how xubuntu interaction with said kernel?

thanks all!
[Transformer TF300T Android Development] JoinTheRealms:
Hey ive been trying to fingure this all out also, the kernel is based on stock asus kernel. Heres a image created by Rabits(tf700 ubuntu dev) showing the boot process.
[Transformer TF300T Android Development] JoinTheRealms:
Also would like to share, if you want android like scrolling in chromium download the add on "chromeTouch" theres also the "Grab and Drag" addon for firefox.
[Transformer TF300T Android Development] Insane PPC:
thanks JoinTheRealms! right now i'm battling my own stupid flashing reckless behavior...my tf300 boots to the rom, but i'm getting the unrecoverable bootloader error if i try to do anything with recovery.

so i'm building my main ubuntu laptop for dev purpose now to hopefully help me fix this and learn a few things along the way.

thanks for the diagram, i've been trying to read through some of rabits post and also checking out the progress on the nexus 7, i know different chips but figured there is bound to be help from there as well.
[Transformer TF300T Android Development] savio84:
there are some screenshots?!?! Thanks!
[Transformer TF300T Android Development] JoinTheRealms:
not sure what you need screen shots for? its running xfce window manager, but you can install anyone you want (excluding gnome3 and unity)
[Transformer TF300T Android Development] savio84:
How can i install it in dual boot with jelly bean???
[Transformer TF300T Android Development] JoinTheRealms:
Download the xubuntu image, extract it and place it in /data/media/linux then download the kernel, place it in /data/media. Open up terminal emulator and type

su

cd /data/media

dd if="name of the kernel" of=/dev/block/mmcblk0p4

you must be on a stock 4.1 or 4.1 stock based rom

obviously be unlocked and rooted
[Transformer TF300T Android Development] savio84:
Thanks!!! Only one question: for the emulator, which one i must download from the play store? And when i turn on the tablet, will i find a menu for choice the operative system!?!?

Sorry for my bad english! ;)
[Transformer TF300T Android Development] JoinTheRealms:
Yes and yes, i suggest you have a quick read through the thread. Some stuff isnt working, majors being sound(there is a fix, havnt tried it tho) and suspend to ram (sleep) but very useable other than that.
[Transformer TF300T Android Development] savio84:
i've a problem:

Uploaded with ImageShack.us

now i can't return to android or go to xubuntu.............why?
[Transformer TF300T Android Development] JoinTheRealms:
not sure about keyboard and just use the commands in my post above to flash the kernel

---------- Post added at 02:19 AM ---------- Previous post was at 02:13 AM ----------

You should still be able to access recovery just reflash a kernel or a rom containing a kernel to remove the dualboot, not sure what went wrong for you. Will help more tomorrow 2am here lol
[Transformer TF300T Android Development] savio84:
i've try to reflash recovery but nothing!!!!!!!! only the same screen! HELP!!!!
[Transformer TF300T Android Development] koiulpoi:
Okay, so, awesome job! I'm really liking this so far! WiFi works for me.

Just a note, I had to run the "Software Updater" to get the latest versions of all the apps (not the 13.04 update) for this to work properly, otherwise it kept giving me 404 errors for Firefox and Thunderbird, and wouldn't install.

How so?

Has anyone had any luck with Compiz with the new RootFS? It doesn't seem to throw any errors to the console, it just doesn't work. Similar to you, JoinTheRealms, it just removes window borders and then stops.

Are es2gears and glxgears part of some other package? I've tried apt-get'ing both, and it says the package is not found. glmark2-es2 gives me an overall "score" of 160, while glmark2 simply tells me it can't create X window canvas.
[Transformer TF300T Android Development] JoinTheRealms:
Send me a pm and ill help get it sorted out.

---------- Post added at 08:33 AM ---------- Previous post was at 08:31 AM ----------

Not on xubuntu, im sure its possible. im currently using Rabits ubuntu 12.10 rootfs, among its issues (unity doesn't load automatically, have to spam "sudo unity" until it works lol) compiz works fine when using unity, and is really smooth (wobbly windows and cube desktop) but under gnome or xfce compiz refuses to work, still trying to figure it out.
[Transformer TF300T Android Development] Liptus:
Do our professors work with running minecraft / java?
[Transformer TF300T Android Development] EndlessDissent:
Have you tried any other compositors? Maybe try Compton. It works well in Openbox on my laptop, and I've heard good things about it with Xfce.
[Transformer TF300T Android Development] JoinTheRealms:
Possibly, on tf101 someone got it working. Not sure if that means it will work with the tegra 3

Havnt tried, metacity is really fast with gnome. Not sure what the default for xfce is but it also works really well.
[Transformer TF300T Android Development] keeganmccallum:
PA/CM Dualboot

I have been working on a dualboot kernel for xubuntu and my rom AOSPA. I assume it will also work with other AOSP based ROMs too! At this point everything is working perfectly on the android side, and the xubuntu side is working well too, I just cannot for the life of me get wifi to work for the linux side! I will attach my boot.blob, as well as a zip containing my ramdisk. I followed Rabits' guide with modifications to my ramdisk to get it working properly. I used the Cyanogenmod kernel source here to compile my zimage and modules. Finally, I have tried changing the BCM4329 firmware and nvramm paths in the .config file to attempt to use the boot_linux script to copy over the files to the rootfs like Rabits' does , but to no avail. It is sooo close and I appreciate any help.

Links:

Ramdisk and .config file

AOSP-xubuntu-20130506.blob
[Transformer TF300T Android Development] f69m:
That kernel has a bug with the FW path. The code is using something like BCM*FW_PATH, but the config sets BCM*FW_DIR. So the FW is never found and never flashed.

Easy fix is to rename the config in drivers/net/wireless/bcmdhd_29/Kconfig to *_PATH.

You also need to add the filename of the *.bin file to the value then.

Sorry for all the *, this is quick from memory; have been working on that exact code for a while for my port of CM for the new bootloader 4.2.

Filling in the * and fixing any other errors is left as an easy exercise for the reader... hehehe

But in essence it is correct! ;)

EDIT: Possibly Kconfig is correct, and you need only change tf300t_cm10_defconfig. It is sure wrong there.
[Transformer TF300T Android Development] JoinTheRealms:
If anyone's having issues with screen tearing and artifacts when using chromium, using the mutter window manager seems to stop it.
[Transformer TF300T Android Development] secosan:
No issues on Chromium.

A have an mp4 video i tested on Parole, and I got sound, with no modifications or enables on the default downloaded image. Is this normal. Wasn't like sound supposed to not work? No video though, i guess I have no drivers.

Let me know if you want me to do any tests.

I am very satisfied with this version. 3g and wi-fi work great.
[Transformer TF300T Android Development] keeganmccallum:
Thanks for the help! I tried your changes, and they helped a bit, device is now showing up in Ubuntu but is network manager states that the device is not ready! Also, I found that compiling bcmdhd as a module breaks android, but it needs to be a module to show up in Ubuntu! Just a status update Lol , I'll keep playing around with it
[Transformer TF300T Android Development] f69m:
Not sure, if you were just sloppy, or if you picked the wrong module: for TF300T we need bcmdhd_29; bcmdhd is a different driver.
[Transformer TF300T Android Development] JoinTheRealms:
Yeah afaik the tf300tg uses a different sound device to the tf300t and it works fine. if anyones using gnome and wants compositing on metacity, you can enable it with dconf editor it under org/gnome/metacity ? (ill double check that path)

Amazing work on the kernel can't wait to give it a try!
[Transformer TF300T Android Development] keeganmccallum:
Probably a bit of both :P I am actually kinda confused on that and maybe that's where I am going wrong. I am really new to kernel modification so please forgive my dumb mistakes. Looking at the cm10 source as well as your modified source in your thread, you both seem to be using the bcmdhd folder to do alot of configuration changes, not bcmdhd_29. I have been trying to follow what the cm10 kernel has used by default because deviations from that drivers keep breaking wifi on android side. I looked at your deconfig and applied most of the wifi configs to mine and will see how it works but, i think the issue is in my deconfig(and probably a tiny mistake) so if you know what is wrong(other than the "PATH" variable because I have fixed it) I would appreciate any input because I am pretty stuck rn.
[Transformer TF300T Android Development] zaki0saad:
I've been trying to get the mouse cursor to stop flickering when it is moved, but I've had no luck. Is there a workaround for this issue currently?
[Transformer TF300T Android Development] JoinTheRealms:
Ahh is there anywhere specific that it happens? i know ive seen it happen but i changed anythings and one of them has fixed it, on mine i get a solid mouse cursor when using the trackpad but it disappears when using the touchscreen.

Maybe try activating compositing under window manager tweaks
[Transformer TF300T Android Development] zaki0saad:
It seems fine just after logging in, then about 2 mins after use the cursor starts flashing and flickering when moved around (mainly when performing actions like moving windows, hovering over buttons, etc..)

Just check compositor settings, it has been enabled already. Worth to mention that it flickers when using either the trackpad or even a USB mouse :confused:
[Transformer TF300T Android Development] secosan:
Is someone still working on this?
[Transformer TF300T Android Development] JoinTheRealms:
Ive been trying to get this to work for too long now lol, ive yet too hear sound come out of the speaker while on xubuntu:( (i did get sound first boot of the tf700 ubuntu/ kernel)

just wondering if you done anything additional to get sound to work? i think the issue i have now is under sound settings and pulse audio all i get as an output device is "dummy output" im guessing it needs to see "tegra-codec" before im gonna get any sound.
[Transformer TF300T Android Development] JoinTheRealms:
Hey guys, ive found using rabits 0.8.1 ubuntu install script and choosing the option for cyanogenmod allows us to dualboot linux with cm10 based roms (im usings pacman atm) but the main issue is no wifi on either android or linux (im using ubuntu atm) does anyone have the skills/knowledge to get us a working module for wifi. I lack the necessary knowledge to get this working (still trying to get a cross-compiling toolchain to work...... god id love just to be able to compiling something without being drowned in errors:silly: )

Is anyone still interested in this project? both the tf300t and tf700 seemed to suddenly lose interest in linux ports, im determined to get us an awsome dualboot working but it may take me a few years to catch up to you linux gurus :)
[Transformer TF300T Android Development] Keshukas:
With bootloader you on ? 4.1 or 4.2 ? Sims you success wit rabit 0.8.1 you on 4.1 boot loader.

I use rabit 0.8.0 blob on 4.2 boot loader with link from /data/media/0/linux/rootfs.img to /data/media/linux/rootfs.img I manage boot to xubuntu only - no android.

Restore boot I got to android

Some sucked with boot loader 4.2 ;)

ʞןɐʇɐdɐʇ on tf300t
[Transformer TF300T Android Development] JoinTheRealms:
Are you really stuck on 4.2? ive downgraded from 4.2 with a couple diffrent methods, didnt have to use nvflash. Good that its working for you on 4.2 though, Im not even worried about dualbooting with android once we have some proper graphics drivers and sound ........one day :)

Do you have any idea what module we need for wifi? im pretty much brand new to this but im guessing ill need to re-compile the bcmdhd_29 module or can i just pull one from another kernel..... im so confused lol