yashsingh1/xdaforums huggingface dataset:
[Eee Pad Transformer Android Development] x3maniac:
[Step 1]

if you are not dealing with a raw image you can skip this step.

first we need to find out what type of raw image we are dealing with and how the partitions are laid out. since we can't just mount a raw image we would have to find which partition can be mounted.\]

as per request the raw image i am going to use is Plasma-Active http://share.basyskom.com/plasma-active/nvidia_tegra2.html

in this case i renamed the file to plasma.raw

[B]parted plasma.raw[/B]
GNU Parted 2.3
Using /home/don/android/images/plasma.raw
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted)

we need to tell parted to print values out in ytes

(parted) [B]unit[/B]
Unit? [compact]? [B]b[/B]

then we are going to print the partition tables

(parted) [B]print [/B]
Model: (file)
Disk /home/don/android/images/plasma.raw: 1954545664B
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number Start End Size Type File system Flags
1 512B 67108351B 67107840B primary fat16 lba
2 [COLOR="Red"]67108864B[/COLOR] 1954545663B 1887436800B primary ext3

(parted) [B]quit[/B]

now with the partition layed out. we see that our "ext3" image acutally starts at 67108864. with that we can "offset" the mount command

lets make a temp directory to mount our image

sudo mkdir /tmp/plasma/

now we mount our image

sudo mount -o loop,offset=[COLOR="red"]67108864[/COLOR] plasma.raw /tmp/plasma

now that we figured out the how to mount the raw image. what do we do with it?

[Step 2]

Lets create a blank image. (i know from step 1 the image is about 2gb.)

qemu-img create plasma.img 2G
Formatting 'plasma.img', fmt=raw size=2147483648

now we can format the image to what we want/need. in my case ext4

[B]mkfs.ext4 plasma.img[/B]
mke2fs 1.42 (29-Nov-2011)
test.img is not a block special device.
Proceed anyway? (y,n) [B]y[/B]

now we have our blank image formated to ext4

we are going to have to mount that too

sudo mkdir /tmp/disk/

sudo mount -o loop plasma.img /tmp/disk/

woot woot now we done with that. what next you say?

[step 3]

lets load our image with stuff!!

if you downloaded a rootfs tar you can simply extract to /tmp/disk/

sudo tar xvf rootfs.tar /tmp/disk/

now if your going to copy from one image to another(like from plasma active)

(p)reserve attributes (r)ecursive

sudo cp -pr /tmp/plasma/ /tmp/disk

yay now the new image is loaded with our new os.. are we done yet?

[step 4]

copy the kernel suppliments over.

.... there is more but baby needs me. i will finish this soon... to be continued....
[Eee Pad Transformer Android Development] jairuncaloth:
Hey x3maniac, I just found your stuff the other night when I decided I wanted JB on my TF101. I didn't use your flashing tool since I'm in linux, but I am using your ubuntu image and kernels. I've been fiddling around with building a kernel from your git hub but I'm a little stuck. I can't seem to get my kernel/initrd image down below 10mb or so. I think I'm not building the initrd.img correctly. What are you using to build your initrd images?

Thanks for your hard work on this. Once I get my bearings I'm hoping I can be of some help getting everything working properly.

Also, I'm thinking about building something like your tool in python. the OLiFE scripts are nice and all, but are a bit of PITA if you are constantly changing kernels and whatnot.

edit: testing your latest kernel build. Don't have modules and adb isn't working so not much I can really do with it. Also, I get kernel panics during boot sometimes. I think it's related to either writing to the ubuntu filesystem from android, or from having the USB cable hoooked up to my desktop, might not be either. I'll try to test more and see if I can consistently replicate it.
[Eee Pad Transformer Android Development] Kingzak34:
What a usefull post ! Thanks a lot and a lot ! :D Exactly what I was looking for !

I'll play with this as soon as I got back home :) I absolutly didnt know how to play with raw image, that's cool, Thanks again for taking your free time for this
[Eee Pad Transformer Android Development] x3maniac:
i have a initrd image on my github. i just pull that and use a lzma compression. try to recompile your kernel with lzma compression and not gzip. you might be able to squeeze everything in.

your welcome. there's more to come.. when i get a chance i'll finish the write up

btw: it's confirmed that we can't use r16.2 drivers with our r15 kernel. so acceleration does not work until we/i patch the kernel to the most recent patch to get it to work. what this means is plasma active will be running slowwww..(confirmed by lilstevie via irc)
[Eee Pad Transformer Android Development] Kingzak34:
Ok ! Thanks for the informations ! I'll try to get it booting properly and report back ;)
[Eee Pad Transformer Android Development] Mn5612:
x3maniac what was the patch to overclock the kernel?
[Eee Pad Transformer Android Development] x3maniac:
sorry i don't understand the question. if you look at my latest commit on git hub you should see which files i modified to get 1.2ghz
[Eee Pad Transformer Android Development] Kingzak34:
Ho, BTW, you make a typing error in your post,

It's 67108864 not 617108864 ;) Just to not search long time why mount doesnt want to do his job :D
[Eee Pad Transformer Android Development] x3maniac:
fixed sorry about that.. big numbers scare me :silly:
[Eee Pad Transformer Android Development] Kingzak34:
Hahaha :)

Soooooooooooo , it absolutely ..... Doesnt boot !

First boot => Kernel Panic

Next boots => System starting and bootloop (See screenshot) ( Dont know how to catch the log )

This screen appear in loop with some more lines but cant catch it, move too fast for my SGS camera :P¨

If you got an idea (Dont want to busy you if you dont want to ;) )

And you can see that it talks about mmcblk0p1, what I said some time ago
[Eee Pad Transformer Android Development] x3maniac:
try fdisk plasma.img

then w

this will fix the partition table.

mount img to a folder and copy

the 3.1.10+ modules to lib/modules/ on the image.

should fix the modules loading.

reflash image
[Eee Pad Transformer Android Development] Kingzak34:
Thanks ! I'll check this out !

Do you know where can I find 3.1.10+ modules ? I surely missed it.

And what do you mean by

EDIT : I got it shame on me

anyway, thanks a lot for all your knowledge, your work and your time spent on this :)
[Eee Pad Transformer Android Development] x3maniac:
yup no problem. everyone's gotta start somewhere. i don't mind sharing knowledge!

http://xdaforums.com/showpost.php?p=35741442&postcount=346 kernel suppliments
[Eee Pad Transformer Android Development] Kingzak34:
I still got a bootloop almost same thing, I'll try to catch a photo

Thanks for the link and thanks for all once again !
[Eee Pad Transformer Android Development] kenshin1388:
You need to do a datawipe I believe.
[Eee Pad Transformer Android Development] Mn5612:
of course, can't believe I didnt think of that.
[Eee Pad Transformer Android Development] Kingzak34:
Is it normal that fdisk return

Cause in fact after done

When booting almost same thing than before.

I post screen
[Eee Pad Transformer Android Development] x3maniac:
i'll have a answer for you later tonight... have a party to head to..
[Eee Pad Transformer Android Development] Speedier:
Does this work with HDMI hook up to TV (video and sound)? Either way it allows dual boot, so I'm down! I'm installing this tonight, seems straight forward, I hope all goes well.

Thank you very much for all your work!
[Eee Pad Transformer Android Development] x3maniac:
i havn't tried the hdmi hook up but according to the kernel code. it should work
[Eee Pad Transformer Android Development] Speedier:
Cool, I can only try it out in a few hours.

So I have Ubuntu installed and working, now I don't have the dock, and using "Onboard" keyboard isn't perfect.

I'm trying to open the CPU-Governor program however it requires you to enter the root password. The popup dialog is appears above the "Onboard" keyboard even when set in preferences to always be on top. How can I enter the password?

On a side note, what's your paypal? I'd like to give you a small donation for your hard work.
[Eee Pad Transformer Android Development] Kingzak34:
I was thinking about it too :)
[Eee Pad Transformer Android Development] x3maniac:
use lxterminal and type

sudo cpufreq-govern.sh

my new release will fix that issue. also have a lot of bug fixes like conky not staying on desktop. and adding more support for peeps without dock

under my username there is a "donate button" =) thanks!!

p.s. i looked into the plasma-active... it's a lot harder then i thought. judging from the screen shots it requires the ms-dos partition from the "raw" file to boot. i'm working on a work around for it.
[Eee Pad Transformer Android Development] fserve:
i had 2 problems.

chromium does not display any content and tubuntu 0.4.6 / 0.4.2 couldn't install TWRP or CWR.

So i'm stuck with Android 3 and i've installed firefox.

Any ideas about custom rom install?
[Eee Pad Transformer Android Development] natostanco:
You gotta use lilstevie tools until xman fixes the issue
[Eee Pad Transformer Android Development] Kingzak34:
BTW, working with rootfs file ( directly extracted rootfs present on the site ) will be easier ? Wause it booted and said at final " Reaching graphical session interface " ( Something like this ) but didint do anything, and console tty1 was accessible but return to default screen after some second. I'll take another look at it. ( Here's the link http://share.basyskom.com/plasma-active/archos_gen9.html ) ( But dont know if it's compatible )

Anyway, Dont take all you free time for this, it can wait, maybe a fully fonctionnal tubuntu before is better ? We'll see then :)

Thanks !
[Eee Pad Transformer Android Development] DjDill:
I have just flashed up my TF101 tonight, and since I installed the:: *updated kernel 12/10/2012*

kernel image - 3.1.10-g6e2783c .. I can't get the touchpad / trackpad to work.. It fixed the problems with Chome however so that it nice.. Any way of getting it working.. I tired your two posts.. still no love..

Thanks again for your had work.. :)

---------- Post added at 12:59 AM ---------- Previous post was at 12:30 AM ----------

Oh now its getting worse, I failed at editing xorg.conf

I added one called Xorg.conf and addded the required lines to it.. however that didn't work

Just edited xorg.conf and restarted.. now it will not post was looping before now a black line after ubuntu loads..(If I don't have the dock plugged in).. I am going to reflash I think.. anyway way too late here I will try tomorrow
[Eee Pad Transformer Android Development] x3maniac:
did you install mtrack drivers 1st?
[Eee Pad Transformer Android Development] stonerhino28:
Installed Lubuntu and it works good. Except i am unable to access any of the drives or partitions through file manager. I get an Error message that states "Adding read ACL for uid 1000 to '/media/user' failed: Operation not supported. How do I fix this?

Also I just tried to download and install the kernel support pack and when i try to un tar it, it says that there is no such file or directory. even though i type dir and hit enter it is listed.

Thanks in advance.
[Eee Pad Transformer Android Development] DjDill:
Well.. yes but I am confused about what I did now, going to reflash and start the checklist for the start

---

Ok reflashed .. touch pad not working still... no more loops.. however it worked a little better (the system it self) before I installed the drivers and things from here:

http://xdaforums.com/showthread.php?p=35186322#post35186322

What else is worth trying? Would love to get the touch pad working :)
[Eee Pad Transformer Android Development] DjDill:
WOW!.. working now.. just undocked and redocked and the touch pad started working! wooo hoooo!

Thanks :)

Thanks for building ! :)

Still after all my stuffing around it just kept stopping.. I have moved to .6 net build for now, will test again on the next release
[Eee Pad Transformer Android Development] fserve:
B6O, SBKv1, tubuntu 0.46, windows 8 64bits.

only the flash dual boot option work every time for me.

advanced -> flash kernel:

reading config file ./boot/purelinux.cfg

Writing Boot Image ./images/xlinux.img

Nvflash started

unknown command: nvflash

Trying reboot device does not help.
[Eee Pad Transformer Android Development] TomTcom:
Please see the instructions in the op by me for sbk1 devices. I recently updated them.
[Eee Pad Transformer Android Development] fserve:
Very thank you!

Now i am with Android 4.2.1 (eos preview 98) + lilstevie 1.2a ubuntu:D (and compiling jhinta kernel).

now i know the basics of nvflash :)
[Eee Pad Transformer Android Development] TomTcom:
I have updated the SBK1 instructions again. It now details how a user should flash a custom ROM and reflash the kernel back again to restore dual boot like normal.
[Eee Pad Transformer Android Development] x3maniac:
sorry i havn't been around much, been really bz with the holidays... but i did manage to get alot done with tubuntu.

***updates

i will be updating the tubuntu program to 0.4.7 which fixes the sbk1 issues.

***kernel updates

i have been patching up the kernel from nvidia and making some good progress. but still freezing issue exist. i believe it has to do with memory allocation and i have been working on that.

since 3.1.10 is not stable i have been working on the 2.6.36 kernel to provide rock hard stability. i will be release that kernel soon. what works - almost everything including sound, ADB, and hotpluging. what does not work. hardware acceleration.(honestly we don't use hardware acceleration much) my latest patch will be fixing the chromium browser displaying blank pages due to config_shmem & CONFIG_SYSVIPC not being set(cross fingers yup that fixed it chromium works). it's also clocked at 1.2ghz and due to the available source codes out there for 2.6.x kernel i should be able to get the clock up pretty high.:laugh:

***lubuntu Image updates

i have added newer versions forked from 13.04 (pcmanfm, etc..) compiled MULTI-TOUCH!!! seriouslly 3 finger down to minimize, 2 finger scroll, 2 finger tap(for right click), and more... added mac style shadows for windows, and bunches of bug fixes and typo fixes.

within these few days i'll be uploading the images and kernel..

-don

Thank you for all those whom have donated. inspires me to make this even better!

kernel 2.6.36.4

http://novaspirit.com/tubuntu/2.6.36.4.img.zip

kernel suppliments(extract & copy to /lib/modules/)

http://novaspirit.com/tubuntu/2.6.36.4-1210.zip
[Eee Pad Transformer Android Development] Kingzak34:
What good news, You're awesome !

Thanks !
[Eee Pad Transformer Android Development] TomTcom:
Sweet....I also see the new Tubuntu app. Thanks x3! So what was wrong from the other apps you had for installing the kernels for SBK1 devices?
[Eee Pad Transformer Android Development] Protocol 7:
Thinking on installing this later tonight. Can Tubuntu playback basic YouTube videos and such? I remember installing Ubuntu on my Transformer about a year ago and that was laggy to all hell. This looks promising, however.
[Eee Pad Transformer Android Development] TomTcom:
I think X3 fixed a lot of sound and Chromium issues so it may work. We are waiting for a new image he is producing. I haven't tried it on FireFox yet for YouTube but if you can get the flash install for one of the browsers on the next build that has sound it should work..X3 will have to weigh in on that though.
[Eee Pad Transformer Android Development] x3maniac:
i followed your guide and fixed the app according to information you have like "wheelie 1".

isn't much different per say. ubuntu was a large image with a large memory foot print. i simply used a different ubuntu image(lubuntu) which is a smaller memory foot print, much more light weight thus making it work smoother for the transformer. yes music play back works, so does watching movies off usb(xvid, divx, and stuff). flash is a bit slow using lightspark & gnash. since adobe flash is no longer supporting linux. we can not get a working HF version working. not that i know of. i'm hoping overclocking will fix this flash laggie issue.

i'm still working on the new image. it's almost done. i'm trying to make it as clean as possible compiling program from the image currently installing in my tf101 then transfering the files over to the image and making sure stuff works :laugh:
[Eee Pad Transformer Android Development] thantos:
Yes it is wonderful when credit is given where it is due.
[Eee Pad Transformer Android Development] x3maniac:
I present OC 2.6.36.4 kernels! USE WITH CARE!!!

i have performed cpu bench marks on each version using blowfish and glxgears

[extreme]

2.6.36 - [cpu 1.6 ghz] [gpu 400mhz] - download

benchmarks - blowfish score 30

glxgear - 70 fps

[good]

2.6.36 - [cpu 1.4 ghz] [gpu 300mhz] - download

benchmarks - blowfish score 36

glxgear - 59 fps

[stock]

2.6.36 - [cpu 1.2 ghz] [gpu 300mhz] - download

benchmarks - blowfish score 40

glxgear - 50 fps
[Eee Pad Transformer Android Development] DjDill:
Is it stable? That was my biggest issue, looking forwarding to testing :)
[Eee Pad Transformer Android Development] x3maniac:
super stable! i've been on the 1.6ghz kernel and been running on "performance" governor for the past 9 hrs. installed anything i can throw at it even xbmc on software rendering. and still wouldn't freeze...

it's the kernel causing the freezing. so if you just flash the kernel it's going to be stable. the new rootfs image is aimed to help people without dock like multi touch, right click and stuff. and fix some little bugs like volumn buttons not working..
[Eee Pad Transformer Android Development] TomTcom:
Hey X3, do you have any ideas for upgrading the new images instead of having to reflash each time? The kernel isn't an issue but the main lubuntu image would be.
[Eee Pad Transformer Android Development] x3maniac:
i'm working on it..

wget http://novaspirit.com/tubuntu/touchegg.sh
sudo sh ./touchegg.sh

try that... i should install mutlitouch.. this is the 1st time i'm trying to patch with update. let me know if that works or not
[Eee Pad Transformer Android Development] DjDill:
Just reflashed from the netinstall image, and can book with 2.6 base.. I put the kernel supplement in the lib/modules .. restart and flash the kernel 1.6.. works for a few mins.. then the mouse stops and I plug the base back in again.. starts working again.. then system locks up..

Restart again.. and load lubuntu, keeps stopping .. if I load openbox, it appears stable..

EDIT: .. Openbox is stable until I do too much with chrome, then the same thing happens again.. Splat! :(

tired the other two kernels same thing.. 1.4 .. works for a little bit longer.. loads web pages and then splat.

The no oc'ed kernel does not post ..

Am I doing something wrong?..

Thanks

DjDill
[Eee Pad Transformer Android Development] DjDill:
Another problem I have is with the tubuntu flashing program.. if I try just to flash rootfs image.. and pick the image to flash recovery, it always crashes (app, dies in windows).. after picking all files and selecting flash..

I get around it by always flashing dual boot, but that always clears my Android settings.. not a big problem however, if I can get Ubuntu stable I will not have to reflash the image so not a issue.. :)

I am running XP, SP3.. if required
[Eee Pad Transformer Android Development] x3maniac:
pm send
[Eee Pad Transformer Android Development] sainthout:
Tried installing this with Tubuntu 0.4.7, Prime ROM, Lubuntu V1.1-rc1 (12.10) and the *updated kernel 12/10/2012* (still without supplements)

But after Android initial boot, I reboot (holding vol down to go to 'recovery'), then it starts booting Ubuntu, but it doesn't finish. It stops here:

http://i50.tinypic.com/2zswdw3.jpg

Anything I can do to fix this? Android does boot properly, but Lubuntu doesn't

If anyone knows how to fix this with only Ubuntu (and without Android) then that is fine too..
[Eee Pad Transformer Android Development] Kingzak34:
I think your ubuntu.img is bad or something went wrong during flash ( Be sure upload is terminated when rebooting cause Android boot ~ 300Mo before upload is completed when you flash Ubuntu.img

Anyway, am I the only one facing problems with mounted folders ?( I mean Android partitions, sd card etc ) Cause with Jintha Kernel all is fine, with last 2.3.xxxx ( 1.4Ghz ), in normal explorer, it says " Invalid folder location" ( Something like that ) But with sudo pcmanfm, I can open it and it's all Android partition ( recovery, system data etc ) but there is none of the SD cards

Did I miss something ?
[Eee Pad Transformer Android Development] sainthout:
@Kingzak34, thanks for the suggestion :)

The ubuntu.img file was ok, but the tool didn't flash the right kernel as I renamed the new kernel file wrong

Now another problem: it freezes quite often with the *updated kernel 12/10/2012* I found at the lower part of the first post :(

Is it really the latest version of all kernels?
[Eee Pad Transformer Android Development] Kingzak34:
I suggest you to use last stables kernel, if it works for you ;)
[Eee Pad Transformer Android Development] x3maniac:
sudo mkdir /media/user/

that should fix the sdcard problem

check your kenrnel version

uname -a
[Eee Pad Transformer Android Development] Kingzak34:
File allready exists, ( I can access it with rooted pcmanfm )

And command return " Cannot create folder, /media/user : File exists "

I tried to change permission too, without success.

( Thanks for suggestion )

I'll try to fresh install again ;)
[Eee Pad Transformer Android Development] x3maniac:
wait a few hours. i should have a new image up... i just got a account to goo.im so download should be faster... did you try chmod 0777 /media/user/ ??
[Eee Pad Transformer Android Development] Kingzak34:
Ho great ! I was waiting for new img :D

Yeah i tested

Just FYI : Fresh install again didnt help

( I did =

Flash Jintha Kernel ( To access SD card )

Flash Tubuntu.img

Boot into it, copy 2.6.38 + modules

Flash 2.6.38 Kernel)

And now it only boot to ubuntu I dont know why and

sudo echo boot | dd of=/dev/block/mmcblk0p3 bs=1 seek=0

return opening mmcblk0p3 : permission denied ( even with sudo )
[Eee Pad Transformer Android Development] TomTcom:
Add the account username to the /media/user folder such as root or tomtcom as an example. The second to last kernel didn't have this issue.

You can also go into disks in preferences to mount the cards and they should be accessible.

If not Google the error, I found a workaround with media/user on an Ubuntu forum.
[Eee Pad Transformer Android Development] Kingzak34:
Thanks for answer, I'll just wait for new img for now :D

After 5 try command to disable Only ubuntu worked.EDIT : It still booting only Ubuntu...

---------- Post added at 11:43 PM ---------- Previous post was at 11:29 PM ----------

If Someone got an idea ? If not I'll fully reflash ( I can still access /system /data of android from Ubuntu )
[Eee Pad Transformer Android Development] x3maniac:
uploading... 38 min left http://goo.im/devs/x3maniac
[Eee Pad Transformer Android Development] Kingzak34:
Downloading ! Thanks a lot ! :D
[Eee Pad Transformer Android Development] Kingzak34:
Can't open/extract it, ( 2 times downloaded )

Maybe upload not complete ? Or corrupted ?

Is there a MD5 check ?
[Eee Pad Transformer Android Development] kennyMC:
got the same problem here :crying:
[Eee Pad Transformer Android Development] x3maniac:
i have to re-up... it's suppose to be 550mb.. and somehow it's 880mb?
[Eee Pad Transformer Android Development] Kingzak34:
Yes, it's 854MB

So, ... Have fun ! :D
[Eee Pad Transformer Android Development] x3maniac:
re-up is done! combine it with 2.6.36 kernel and your all good
[Eee Pad Transformer Android Development] Kingzak34:
I'll try ASAP ! :D Thanks !

---------- Post added at 05:02 PM ---------- Previous post was at 04:12 PM ----------

Did anyone try to print something from Ubuntu with the TF101 ? Cause I've to.

Anyway, I'll try it and report back :P
[Eee Pad Transformer Android Development] x3maniac:
i believe it should. i left cups in there.. i believe.. =) i wanna know too lols