yashsingh1/xdaforums huggingface dataset:
[Eee Pad Transformer Q&A, Help & Troubleshooting] jpeg725:
Idea: CWM flashing from inside Ubuntu

Wouldn't it be cool to be able to apply a Prime update from inside Ubuntu? No more flashing CWM just to do it!

I downloaded Prime v2.1.0 cwm zip, the 2.1.1 patch and took a look inside them.

Prime v2.1.0 contains a system directory, a file called blob, and a directory called META-INF. Prime v2.1.1 just contains a nearly empty system directory and a META-INF directory. Inside META-INF several directories down, there are two files: update-binary and updater-script.

Here is an extract from the updater script for 2.1.0

ui_print("PRIME! v2.1.0 for the Asus Eee Pad Transformer TF101 by Roach2010");
show_progress(0.100000, 0);
ui_print("Mounting filesystems...");
run_program("/sbin/busybox", "mount", "/system");
run_program("/sbin/busybox", "mount", "/data");
run_program("/sbin/busybox", "mount", "/cache");
show_progress(0.200000, 0);
ui_print("Removing unneeded files...");
delete_recursive ("/system");
delete("/data/.battery-calibrated");
show_progress(0.300000, 0);
ui_print("Installing system files...");
package_extract_dir("system", "/system");

Does anyone know enough about how CWM works? Does it run update-binary which parses the script? Does it run the script itself?

Would I have to reimplement all those functions, or could I save myself some time?

I tried googling but I didn't find anything.
[Eee Pad Transformer Q&A, Help & Troubleshooting] rickatnight11:
CWM is just a slim Linux OS. The update ZIPs contain all the commands. They just mount various partitions and extract and copy files to them.
[Eee Pad Transformer Q&A, Help & Troubleshooting] rdnetto:
IIRC, update-binary is usually just a copy of dd. The functions look pretty trivial - you'd probably only need to map them to the equivalent ones in whatever language you use. You could take a look at the CWM source to see a comprehensive list of them.

I personally wouldn't bother though. There are usually nvflash versions of ROMs which can be flashed directly, and the current setup is temporary - once uboot is working properly, we'll have a proper boot manager. Alternatively, you can just make blobs for the bootloaders and use CWM to load them.
[Eee Pad Transformer Q&A, Help & Troubleshooting] jpeg725:
Thankyou. I found two pages on the Edify scripting language which is what is used for the update zips. Here and here. The first page suggests that update-binary is an edify parser which would make sense. That way the script developer doesn't have to deal with syntax differences and so on.

Even once we have uboot booting CWM we will still need a custom CWM because the blobs are gone. CWM currently installs kernels by using a blob and that won't work with uboot.
[Eee Pad Transformer Q&A, Help & Troubleshooting] lilstevie:
Not exactly, to retain as much compatibility as possible handling the blobs in u-boot is the best idea, that would retain compatibility with the entire OS sitting on top of it, without having to modify anything.
[Eee Pad Transformer Q&A, Help & Troubleshooting] Danzano:
K.I.S.S

A prime example ^^^^^^^^^^^^^
[Eee Pad Transformer Q&A, Help & Troubleshooting] DanielT3235:
Please help =[

Ive followed the guide and have new updated Ubuntu up and running, but i have one issue, WHY OH WHY DOES MY WIFI STILL NOT WORK =[ Its driving me nutty, any ideas people? Pleeaaseee
[Eee Pad Transformer Q&A, Help & Troubleshooting] Danzano:
What kind of network WPA/WPA2 AES TKIP AES+TKIP Open etc etc

And it could be your modem to check all the setting of the actual modem/router before the tf or ubuntu

On the old ubuntu mine only worked on open and i have terrible neighbours that steal wifi so that wasnt an option for me on the new one with WPA2 AES+TKIP it works fine :)
[Eee Pad Transformer Q&A, Help & Troubleshooting] DanielT3235:
Hey, thanks for the reply, i should have been a bit more specific,i dont think my Ubuntu reconises my wireless card on the transformer, it doesnt scan or anything.=S Nor the touch-pad, its like it lacks the firmware, i ave used the latest roofts from the first post. Thanks
[Eee Pad Transformer Q&A, Help & Troubleshooting] bruuuno:
Have you used the OLiFE version?..

I've installed OLiFE-Prime-Edition (that has all preinstalled in) and I've wifi and touchpad working from the beginning..no additional setup or anything..

I had the same issues only in the previous version of Ubuntu..
[Eee Pad Transformer Q&A, Help & Troubleshooting] DanielT3235:
Yep, Wierd isnt it, i did definatly use the OLiFE Prime edition. Sighh. Took ages had a million issues with permissions, guess that still could have been an issue, any idea how to sort out the permission issues with Ubuntu so i can install again? Must be that. =)
[Eee Pad Transformer Q&A, Help & Troubleshooting] lilstevie:
there should not be any issues with permissions, and something clearly went wrong, you clearly dont have the kernel from OLiFE because the touchpad isn't working either
[Eee Pad Transformer Q&A, Help & Troubleshooting] DanielT3235:
Okaii, thanks lilstevie, how do i go about updating just the kernel?

[Edit] Look what ive foud, i'll give that a go and report back xD http://xdaforums.com/showpost.php?p=18709367&postcount=1022
[Eee Pad Transformer Q&A, Help & Troubleshooting] lilstevie:
In OLiFE:

Update -> Ubuntu/Linux kernel

grab the standalone one just in case
[Eee Pad Transformer Q&A, Help & Troubleshooting] thompson5545:
Just used the OLiFE kit. Does the libflashplayer.so still work for this? I've had no such luck on it. Any other things I can try?
[Eee Pad Transformer Q&A, Help & Troubleshooting] pepsidrinker_:
B80 (sbkv2 rooted with RazorClaw) and ubuntu

Hi guys,

Is it possible (or near-to) install native ubuntu on a b80 (sbkv2) device ?

Thanks a lot !
[Eee Pad Transformer Q&A, Help & Troubleshooting] Danzano:
NvFlash dont work on the sbkv2 i thought they only had root and if they only have root and you wipe out the recovery for ubuntu wouldnt you end up stuck not to mention running a much higher risk of having a very expensive paper wieght?

So no i dont think native but maybe you could do what people where doing and flash the boot loader zips through cwm or chroot either or?
[Eee Pad Transformer Q&A, Help & Troubleshooting] Danzano:
Ive tried 4 different versions and nothing :(
[Eee Pad Transformer Q&A, Help & Troubleshooting] lilstevie:
ok 1) blob flashing works from anywhere not just recovery, the requirement is root access to push it into staging. while the brick risk is there, you wouldn't get stuck.

second of all, wtf are these "bootloader zips" everyone keeps saying to use, flashing bootloaders constantly would literally get you nowhere. Do I have to define what a bootloader is, and is not... AGAIN. Use correct terminology people. I am of course assuming you mean the method in which jhinta proposed that uses update zips to reflash the kernel to switch between boot methods. which again brings the definition of "NATIVE" into question, because swapping the kernel and booting without loading an android system first is what people? NATIVE BOOT?

on a more serious note:

I am experimenting with some things to possibly bring this to those devices rooted with razorclaw, no promises though because I want to make sure it is safe, and not going to brick devices first. Given the order of nasty the hacks used to do it are I can't guarantee success
[Eee Pad Transformer Q&A, Help & Troubleshooting] Danzano:
Yes thats what i meant sorry stevie ill remember that

One question tho i was always told when i first started rooting phones and learning that you should not use the android terminal emulater for anything serious and always use the pc because it was safer? Or is that some stupid rumour?

Also the guy that asked the question said this or close to so i thought of jhintas method or chroot as i didnt know you where working on something for them sorry.
[Eee Pad Transformer Q&A, Help & Troubleshooting] mitchelln:
Hi.

I'm trying to get apache to run, but it fails to start because it can't create locks. I get the error:

[emerg] (38)Function not implemented: Couldn't create accept lock (/var/lock/apache2/accept.lock}

On digging a bit I find that this is most likely because the kernel does not have message queues or semaphore support.

Are these kernel options just not available on armel? It would be really cool to have such a portable LAMP device :)

Also, would it possible to compile in CIFS and NFS support or are there modules somewhere?

Thanks!
[Eee Pad Transformer Q&A, Help & Troubleshooting] blk_jack:
I got around it by using nginx and uwsgi.. after reading up on nginx benchmarks it seems that apache, while sometimes the easiest solution, definitely isn't the lightest or fastest..
[Eee Pad Transformer Q&A, Help & Troubleshooting] mitchelln:
Thanks for that. I'll give it a go!
[Eee Pad Transformer Q&A, Help & Troubleshooting] pepsidrinker_:
Tks to you and @Danzano for the answer...

Just in case, if running some test code on my device (b80, 'razorclawed' ) remotly could help you in your project, i'm offering my help.

Pretty good job btw!
[Eee Pad Transformer Q&A, Help & Troubleshooting] lilstevie:
There is no way that I would test on a SBKv2 device, not having nvflash, bricking your device is something I don't want to be responsible for
[Eee Pad Transformer Q&A, Help & Troubleshooting] ryngds:
Hey, I want to try this out but would like to do a full backup first. I'm using Ubuntu 10 but everytime i try to backup or try to flash cwm from your tool i get nverror. when backing up it doesn't create any files just errors and sits on the nvflash screen saying [Resuming in terminal. Any help would be appreciated.

Thanks
[Eee Pad Transformer Q&A, Help & Troubleshooting] lilstevie:
what nverror?
[Eee Pad Transformer Q&A, Help & Troubleshooting] ryngds:
This is the last section before it just sits there.

receiving file: ./backups/2011-11-18-encrypted-bct.bct, expected size: 3145728 bytes
file create failed NvError 0x30013
command failure: read failed
PT.bin
Nvflash started
[resume mode]
[Eee Pad Transformer Q&A, Help & Troubleshooting] lilstevie:
make the folder backups
[Eee Pad Transformer Q&A, Help & Troubleshooting] mitchelln:
Hi.

I installed v1.2a OLiFE Prime edition by carefully following the instructions.

I'm seeing some really weird behaviour when booted into Prime 2.1.

The screen Home button has stopped working. It changes colour when touched, but you don't get taken to the home screen. I've tried it both docked and undocked. Also Dock function keys (wifi, bluetooth etc) aren't working and most worrying, the Mobile Dock firmware version is showing as "Not available".

The other odd thing was that I chose Android to be the default OS in the dual boot menu, but Ubuntu is booting by default. The only way to boot Prime is to hold volume down, let the 5 seconds pass and then I get taken to a wipe data screen. Pressing volume down to cancel the wipe then booted Prime.

I've tried temp cwm and re-flashing Prime from Roach's zip, but it made no difference. Tried wiping caches manually as well. Home and dock issues persist.

Has anyone else seen these weird issues?

I really don't want to have to remove this as I've just got KDE working nicely. Netbook mode is really usable :)
[Eee Pad Transformer Q&A, Help & Troubleshooting] ryngds:
Thanks lilstevie I'm not home right now,I'll look when i get home but i'm 99% sure I have a backups folder already there in the OLiFE folder. Like I said I'll look when I get home. Thanks again.
[Eee Pad Transformer Q&A, Help & Troubleshooting] rdnetto:
If you're having permissions issues, make sure you're extracting to a Linux filesystem, not a Windows one.

I haven't heard of this, but I can guess why. Android has a habit of closing programs when they're minimized whether you want it to or not. This could end rather badly if that program is a terminal emulator in the middle of cloning a partition, etc., whereas adb doesn't have that problem.

I have CIFS working on mine. You need to compile them as modules to go with the kernel, which means you need a custom kernel (to make absolutely certain that the kernel matches the modules). See my earlier post (linked to by the wiki) for info on compiling the kernel.

Try enabling message queues / semaphore support in the config and see if it works. If it does, please add this as a known issue to the wiki. As to why it's disabled, you'd have to ask lilstevie.
[Eee Pad Transformer Q&A, Help & Troubleshooting] Digitaldreamer7:
I'm not having the home button problem, but I am having the issue where android has become the secondary OS. I flashed android boot with ubuntu booted secondary, and now i'm not able to boot android without holding vol down and power to boot, then pressing vol down to not wipe everything..

Also another question, has anyone used ADB on this? I'm thinking I will rewrite the ubuntu partition back to 3-4gb since I have a 16gb tab and mainly use android. but i'd like the option to be able to flash or use adb on my phone on the run.
[Eee Pad Transformer Q&A, Help & Troubleshooting] jpeg725:
Those of you who can't get into android except by holding volume down and power and the waiting 5 secs and pressing vol down again, would do well to read the annoyances section of the wiki page.

Or just the last few pages of posts, the same fix has been mentioned several times recently.
[Eee Pad Transformer Q&A, Help & Troubleshooting] Digitaldreamer7:
I failed to mention I already tried that. I get the same error as this guy

I even tried it logged in at root and got:

cat: write error: no space left on device

He never got a response and hasn't replied saying he fixed it. I assumed that it was probably something written for the previous version of the kit. Sorry for not mentioning that earlier.
[Eee Pad Transformer Q&A, Help & Troubleshooting] ryngds:
Thanks lilstevie, I was able to get it all installed after adding that folder. My current problem is I have a wireless network with a hidden ssid and I'm unable to connect. Any ideas?

Thanks
[Eee Pad Transformer Q&A, Help & Troubleshooting] JVlasy:
hello I need help I just installed dual boot with android as primary but how on theearth do I boot in to linux? Thanks for help
[Eee Pad Transformer Q&A, Help & Troubleshooting] Danzano:
You should read the first ten pages and the wiki or use search you would of found it.

To boot into linux turn on the tf while holding vol-down then when prompted press vol-up same as if you where going into recovery

If you did it the other way round then same thing again

Also from android dont press reboot into recovery or you will get more problems and be back here before searching :P
[Eee Pad Transformer Q&A, Help & Troubleshooting] rdnetto:
adb should still work. IIRC, it's used to perform the firmware injection.

That's supposed to happen. That command overwrites the partition with zeros, and returns an error when it reaches the end because you didn't specify a size.
[Eee Pad Transformer Q&A, Help & Troubleshooting] nailmind:
when ever i select dual-boot, or try to backup i get

./scripts/menu.sh: 195: source: not found

any clue on what i'm doing wrong guys?
[Eee Pad Transformer Q&A, Help & Troubleshooting] lilstevie:
make sure you extract on to an ext based filesystem, FAT/NTFS do not store permissions
[Eee Pad Transformer Q&A, Help & Troubleshooting] lilstevie:
This issue would be something that has to be related to something you have done post install, over 1000 people have used OLiFE v1.2a (just under half of them prime edition) and you are the only person to report this as an issue (that is about 1:400 for the prime edition) unless someone else can reproduce it, or even verify it, I am sorry to say but I have to mark this as user error.

This one has been covered a few times, on what to do, I will post an update later tonight that automatically clears the MSC tag on boot, and hopefully supply a deb to do it as well.
[Eee Pad Transformer Q&A, Help & Troubleshooting] mrmrmrmr:
I still couldn't find how to activate flash on Mozilla.

Previous suggestions on this thread and the wiki do NOT work.

I could use some advice from anybody who succeeded.
[Eee Pad Transformer Q&A, Help & Troubleshooting] :
Ok so let me see if i got this right. I can't flash this on my sbkv2 b80 device even though its rooted with recovery because the nvflash driver only supports communications with sbkv1 device (e.g. some B60's and below) ? thanks in advance
[Eee Pad Transformer Q&A, Help & Troubleshooting] wareagleben:
I too have had the homescreen button problem occur. In the last few weeks it has happened twice, but it is always resolved by turning the screen off and back on. It's so random and rare for me that I don't really care.

I used OLiFE Prime Edition to flash my TF. I either get the permission error, even as root, or I get no message at all. By now I'm used to the 5-second cold-booting dance.
[Eee Pad Transformer Q&A, Help & Troubleshooting] Danzano:
Same boat
[Eee Pad Transformer Q&A, Help & Troubleshooting] lilstevie:
try

sudo dd if=/dev/zero of=/dev/mmcblk0p3

while in ubuntu, I get the feeling people are doing

sudo cat /dev/zero > /dev/mmcblk0p3

which wont work because that only gives superuser access to the cat /dev/zero and not to the piping it into /dev/mmcblk0p3. to do it with the originally proposed method it must be

sudo -s
cat /dev/zero > /dev/mmcblk0p3

as for the homescreen thing, if there is not something common between you it has to be a prime bug as nothing I do will affect the prime install at all
[Eee Pad Transformer Q&A, Help & Troubleshooting] mrmrmrmr:
but we are the minority I assume ?
[Eee Pad Transformer Q&A, Help & Troubleshooting] Danzano:
No theres a few people so wouldnt say minority its just not on the top of the to do list and i dont think anyone has a fix that works for everyone either that or the previous one was for the previous rootfs and kernel and thats why it dont work now
[Eee Pad Transformer Q&A, Help & Troubleshooting] tay200k:
still no uboot to try?
[Eee Pad Transformer Q&A, Help & Troubleshooting] jrohwer:
I'd be interested as well to know if there is ANY way to get this running on the newer TFs (TF101G with B90 serial) that can only be rooted with razorclaw. I'd REALLY like to get Ubuntu on my TF to be able to do some real work... Are there plans to get nvflash for the sbkv2 devices?
[Eee Pad Transformer Q&A, Help & Troubleshooting] Danzano:
Lilstevie is already working on this look a few posts back !!!!!!!!!!! some people!!!!!!! lmao

He said it will take awhile and he wants to make sure its safe as he doesnt want to be reasponsible for bricks

Also he mentioned the use of nasty hacks so im guessing its not using nvflash which makes sense because we dont have the key for the new sbk

Hope that clears it up for ya :)
[Eee Pad Transformer Q&A, Help & Troubleshooting] Danzano:
Yes there is

but not for common folk like us
[Eee Pad Transformer Q&A, Help & Troubleshooting] JVlasy:
I know this is little off topic but danzano I just wanted to apologize for my question about booting to ubuntu because I had installed the windows dual boot and there the combination did not work but now I did it via oracle virtualbox with ubuntu and no problem. I apologize once more.
[Eee Pad Transformer Q&A, Help & Troubleshooting] wareagleben:
A Word of Warning

The CLockworkmod option in OLiFE does not work. It loaded for me and allowed me to use CWM, but left my TF in bootloops afterward. Currently wiping and starting over. Good thing I had everything backed up!
[Eee Pad Transformer Q&A, Help & Troubleshooting] lilstevie:
everything in that Advanced option should be taken as something that may screw up, they are quick hacked up, and may not work properly.

In fact, until this project moves out of alpha releases the whole thing should be taken as something that could screw up.
[Eee Pad Transformer Q&A, Help & Troubleshooting] wareagleben:
With that in mind, I backed up my data. I used regular OLiFE to try to dual boot Revolver and Ubuntu, but every time it crashed to the OLiFE main menu.

Back to OLiFE-Prime :rolleyes:

Sometimes I wish I could keep myself from attempting these things, but they are usually fun and productive like this project :)
[Eee Pad Transformer Q&A, Help & Troubleshooting] frankc123:
Hey i got a issue with one of my installs. This only happens when doing dualboot with linux as default. I managed to snap a screenshot of it. I dont really know how to explain it.
[Eee Pad Transformer Q&A, Help & Troubleshooting] bizshop:
Had same thing happening to me and had to reinstall twice, now works fine
[Eee Pad Transformer Q&A, Help & Troubleshooting] trialsrider1:
Worked for me :) flashed CWM, updated to Krakd to try it out, reflashed the linux kernel, up and running ftw! Still trying to do initial config, it's going a bit slow.

---------- Post added at 04:20 AM ---------- Previous post was at 04:17 AM ----------

Also, the people posting right above me, I believe your problem lies in the way you did the flash pack, install using android as default and it should solve your problems. Pretty sure it has been discussed once or twice already.

Honestly i'm not much of a dev, but if I can get this to work everyone should be able to, it's as simple as reading the readme, and reading the threads posted here with peoples issues. Makes things so much easier. This time was painless cause the whole wifi was made easy, before it was a pain to get working.
[Eee Pad Transformer Q&A, Help & Troubleshooting] bibifuk:
How to restore your Android USERDATA.

Hi all,

First I want to thank everyone involved in this project, you guys rock !

Anyways, after installing my dual boot setup and enjoying ubutu (finally a real terminal with real binaires ....) I decided it was time for a little angry birds chill out session... But of course, all my user data was erased by the setup. Here's how I did to restore my user data and keep ubuntu.

Note: If you didn't do a backup of you user data from the OLiFE.sh script you're f*cked...

Note2: THIS IS AN "HARDCORE" METHOD. ALSO USING THE SAME ROM (AND ROM VERSION) MIGHT BE CRITICAL I DON'T KNOW... THERE IS OBVIOUSLY A PROPER METHOD TO DO IT BUT I COULDN'T FIND IT ANYWHERE.

Note3: It worked for me but you're following these steps at your own risks.

So here we go:

- get a nice usb harddrive (or any USB mass storage) able to handle your 30GB backup

- copy your 2011-xx-xx-userdata.img on it

- boot your TF on ubuntu and then plug in your USB storage device.

- open a terminal and become root :

sudo su -

- then check who is mounted where:

mount
[...]
/dev/mmcblk0p7 on /media/YOUR_USERDATA_PARTITION blablabla
[...]
/dev/sda1 on /media/YOUR_USB_DEVICE blablabla

- create a temp dir:

mkdir /tmp/temp

- mount your user data backup image:

mount -o loop /media/YOUR_USB_DEVICE/2011-xx-xx-userdata.img /tmp/temp

(you can see that "ls -l /tmp/test" will show you all the content of your backed up partition)

-Finally overwrite your current user data with the backup:

cp -prv /tmp/test/* /media/YOUR_USERDATA_PARTITION/.

Depending on how much data you had on your android userdata partition this can take a few minutes.

Now reboot onto your ROM (I personally use Prime 2.1.0) and Voila !

Enjoy.

Thanks again to lilstevie for keepin' it real !

Also thanks to rdnetto for his tutorial on how to build your custom kernel for your ubuntu on TF101. (http://xdaforums.com/showpost.php?p=18709367&postcount=1022)