Originally Posted by sidneyk
Just flashed a ROM with 126.96.36.199 and all seems good. Thanks for getting this out. Any chance you'd PM me what procedure and sources you use to build this? I'd be interested in seeing if I can get to work on my PC build setup. Thanks.
See third post on first page.
Adjust -j8 to -j4 if you get complaints about kernel missing config or nonsense like that. If that doesn't help, try letting a regular "brunch tf101" fail first.
This will give you a raw recovery-partition image, flashable by nvflash.
Note: You will need a Orcale JVM6
as your default JVM to build this, as you are building on a ICS base, and ICS-builds not supporting JVM7.
Assuming you have the right webupd8 repo's in place in apt.d, this should do it:
sudo apt-get install oracle-java6-installer oracle-java6-set-default
The recovery-image needs to be packed into a "blob" using blobpack. Get it here:
This blob can then be put in as twrp.blob in the CWM/TWRP flashable ZIPs, and is typically applied by dd'ing it onto /dev/block/mmcblk0p4 (staging partition). This is what the CWM/TWRP flashable ZIPs do. They take the blob and DD it into staging. Thats all.
For a "TF101G" build, as far as I've understood, all you need to do is unpack the recovery partition-image (which is just a kernel + ramdisk), and edit the values in default.prop from "tf101" to "tf101g".
Use abootimg to seperate kernel from initrd:
Once you have the initrd available, unpack it:
lzma -dc <../initrd.img | cpio -i
Make the alterations you'd like, and repack it:
find ./ | cpio -H newc -o > ../initrd-tf101g.img.raw
cat initrd-tf101g.img.raw | lzma -z >initrd-tf101g.img.lzma
This updated and LZMA-compressed initrd can then be added to a new kernel/recovery-image, using the same tool as you used to unpack it: abootimg.
You'll probably need to meedle with bootimg.cfg and increase the bootsize until "abootimg" stops complaining about size.
NOW that you have a new raw recovery-partition image, this can be packed into a new TF101G blob using blobtools the same way you did for the TF101.
That should roughly be it and cover all the tools needed. As far as I can remember. If not, I'm sure Google and some trial and error will be able to fill in the blanks.
More information about meddling with kernel-images (and thus recovery images) can be found here, and also by googling the internets:
Give it a go. Give it some time. Worst case scenario: You learn a lot of Linux, besides the Android modding involved