yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] chinabull:
Like I said, I just randomly picked one OMAP3 CWM (For Motorola Defy, I believe)

No, I have not figured out the whole file SHA1 checksum yet. But to be honest, based on my experience here, only probably the INNOCOMM recovery program called idownloader cares about it. I can assure you that neither the MLO nor the u-boot cares about it.

So for your packer, you can put random numbers in or just zeros for now.

The boot up sequence for recovery is(Press and hold Volume- and Power):

- x-loader boots from NAND

- x-loader opens griffin.ifw

- x-loader load u-boot(iboot.ism) from griffin.ifw and verify the checksum.

- u-boot boots, loads recovery image from griffin.ifw and verify the checksum of recovery(ramfs).

- u-boot loads linux kernel image from griffin.ifw and boots up the kernel with rootfs on recovery ramfs.

- init.rc runs idownloader
[Android Software/Hacking General [Developers Only]] chinabull:
Update: It looks like not all the images in the griffin.ifw are needed for running CWM.

So I have cut the fat and redone the signature.

Now the CWM package griffin.ifw is only 5.3M as oppose to the original 94M.

So much easier and lighter now! :)

==================================================================

I am happy to present a working version of CWM Recovery for our beloved LePan TC970.

You don't have to flash the CWM Recovery. It runs from external SD card directly.

I built it from the source so it's pretty much the latest version. 5.0.2.7

So far what is working:

- Keys, Volume -/+ to navigate the menu, Power key to select. The power key doesn't work right after boot. You would have to first scroll down the cursor to the bottom and you will see a message saying "Back menu button enabled". Then it works.

- Display is still up side down, well, what the hell!

- External SD card works and will be default place to be used for update/backup/restore.

- mounting /data, /system works. Mounting USB Storage works.

- Backup works.Assuming restore should work, too.

- Install from zip should work, though I have not tried it. I can browse the SD card contents.

- Power off/Reboot works.

Not working:

- /emmc mounting failed. That partition is not even there. So don't care.

- Display is up side down. :)

When kernel boot in recovery mode, it exposes all the mtd partitions including all the bootloaders, etc.

cat /proc/mtd

dev: size erasesize name

mtd0: 00080000 00020000 "iload"

mtd1: 00180000 00020000 "iboot"

mtd2: 00120000 00020000 "boardenv"

mtd3: 00280000 00020000 "innocomm"

mtd4: 00380000 00020000 "splash"

mtd5: 00180000 00020000 "chargesplash"

mtd6: 00180000 00020000 "badifw_logo"

mtd7: 003c0000 00020000 "recovery"

mtd8: 00200000 00020000 "rootfs"

mtd9: 003c0000 00020000 "kernel"

mtd10: 00080000 00020000 "misc"

mtd11: 000c0000 00020000 "kpanic"

mtd12: 10000000 00020000 "system"

mtd13: 003c0000 00020000 "cache"

mtd14: 0e560000 00020000 "userdata"

WARNING HERE: Please be super careful using the CWM "Mounts and Storage" menu - format options.

If you format the wrong partition like iload, iboot, your lepan could be totally dead.

Download the update package from here .

MD5SUM of the griffin.ifw (5,540,092 bytes):

872579029b22e05db1abdccfd2a9119e *griffin.ifw

Installation steps:

1. Please make sure you have enough battery left.

2. Copy the griffin.ifw to the external SD card and put it into Lepan.

3. Press and Hold both Volume - and Power key, Keep on holding it for at least 5 seconds after you see the LePan logo.

4. Release both buttons and wait. CWM should start automatically.

Have fun and good luck.
[Android Software/Hacking General [Developers Only]] DerKoch:
You are a f@&?"&g champ!!!!!! Just opened the lepan community to the joys of custom rom development!!

I'd buy you a beer or three at the neighborhood bar if I could!

DerKoch
[Android Software/Hacking General [Developers Only]] QkSi1ver:
Wow awesome!

upside down, right side up... who cares .. im sure a lot of ppl here will stand on there head to use it to flash a new rom :P... I think we better get starting on a FAQ and this is the first question i'm sure ppl will be asking :D
[Android Software/Hacking General [Developers Only]] dbaybay:
Great work ChinaBull! You are quickly making me regret selling my TC970 for a Le Pan II. I hope you can bring the same type of brilliance to the Le Pan II.

Thanks again man, high five :D
[Android Software/Hacking General [Developers Only]] adamvan2000:
Brilliant, dude.

Absolutely brilliant! Good on ya, dude! Thanks for the hard work, even though I, like dbaybay, went with the newer model.
[Android Software/Hacking General [Developers Only]] squirreltech:
Well done! Much thanks. Now we need our own forum
[Android Software/Hacking General [Developers Only]] touche112:
Awesome job getting CWM working!!!

Hopefully we can get some ROMs soon.
[Android Software/Hacking General [Developers Only]] squirreltech:
Just tried it. It said firmware file is bad. I had to reboot normally. Didnt break anything. Can you provide a checksum.
[Android Software/Hacking General [Developers Only]] cas_xp:
BE CAREFUL with CWM

I booted with this image and CWM works as Chinabull said. Then I mount SD and backup my ROM, it works. After that, I did some more like mount system and userdata partition, it is also OK. But I also mounted Envsetting, rootfs and recovery partition but I did not find anything. Then I reboot machine then I found the tablet is bricked, it is keeping restart with blank screen and vibrated.

I am keeping trying...
[Android Software/Hacking General [Developers Only]] dbaybay:
Yeah that probably wasn't the smartest idea. China stated to be careful with the mounts & storage section of CWM since it's still in very, very beta testing.

Try removing the custom firmware (CWM) from your memory card with a microSD reader and putting back the three files from the official firmware (http://lepantab.com/) and try to boot from recovery. If you are caught in a boot loop, you either need to let the tablet die and then charge for a few minutes before trying to boot to recovery, or take the back off and disconnect the battery for a moment and plug it back in.

Hopefully once it powers off and you have the correct firmware files on there it will allow you to recover! I'll keep my fingers crossed for you :)
[Android Software/Hacking General [Developers Only]] squirreltech:
I just noticed the download link is around 5 or 6 MB. The first time i downloaded it, it was 95MB. Did you put up the proper link now?
[Android Software/Hacking General [Developers Only]] chinabull:
Well, like i warned you guys, the whole nand mtd partitions are all fully exposed in recovery. Mounting a raw partition with a file system could be very dangerous, because even an "ls" command might write some thing on the partition depending on what fs you have mounted.

At this moment, you should not play with too much partition mounting other than the system,data,cache,sdcard.

I agree with dbaybay , try using the stock firmware update to revive your unit. As long as you did not mess up the iload partition, you should be fine, i think.

BTW, the reason the file has been smaller is that i have cut its size. It should work the same since CWM recovery does not need the system image from the griffin.ifw package(Almost 90M).

I have generated an md5sum for the image for you guy to verify the download.

---------- Post added at 06:02 PM ---------- Previous post was at 05:54 PM ----------

MD5SUM is provided in the original post and here (griffin.ifw is 5,540,092 bytes):

872579029b22e05db1abdccfd2a9119e *griffin.ifw
[Android Software/Hacking General [Developers Only]] squirreltech:
MD5 matches and still come up with firmware file is bad.

any thoughts?
[Android Software/Hacking General [Developers Only]] cas_xp:
Finally, I got it back. Also, the restore works too.
[Android Software/Hacking General [Developers Only]] GnatGoSplat:
Are you using the original MicroSD card? I saw in the rooting thread some people had trouble with the tablet reading firmware images off the MicroSD if it wasn't the original.
[Android Software/Hacking General [Developers Only]] csands76:
double post

---------- Post added at 09:57 PM ---------- Previous post was at 09:54 PM ----------

@ squirreltech:

I can somewhat confirm this. I was attempting to upgrade the firmware to the latest version and kept getting a "Firmware is Bad" error message. I tried several different thing, like formatting the 16 MB SD card I was using and nothing worked until I put the files on the original card that came with the Le Pan.

Try putting the files on the original card and let us know if that worked, so that others can learn from your experience.
[Android Software/Hacking General [Developers Only]] cas_xp:
No. I just use a random sd i found.
[Android Software/Hacking General [Developers Only]] sburns90:
Working CWM features

So far I can confirm working

zip flashing

(attempted to flash ICS extracted launcher *launcher didn't work*)

back up and restore

(only tested restore on system and cache - that's all I needed)

....

Lets keep this going I would love to have ICS or something better than Froyo on my awesome LePan.
[Android Software/Hacking General [Developers Only]] chinabull:
I just realized I was ever told by my colleague that the x-loader and u-boot's FAT handling library can only fat partition less than 2GB, if I remembered correctly.

So, I think SD card size is the key. 2GB ones should be ok.

If you have to use a 2G+ card, use linux Disk Utility to make 2 FAT partitons like first 2G, then the rest. That would probably work. But the problem is the second partition would not be automatically mounted.
[Android Software/Hacking General [Developers Only]] secretmachine:
i used to do tech support for matsunichi and still have access to their ftp site which contains the software images. let me know if you want them.
[Android Software/Hacking General [Developers Only]] dbaybay:
If you are talking about the trebuchet launcher, that won't work unless ICS is installed. It relies on the APIs. But really good to know that zip flashing and RECOVERY works. That is frickin' AWESOME :D

Maybe try flashing CM7 for the Nook? That is the closest tablet to ours and though I doubt it would work out of the flash, it may produce some interesting results. :D
[Android Software/Hacking General [Developers Only]] QkSi1ver:
First welcome to the site and thanks for the offer to help us in the quest to get a better ROM on this table...

if you manage to get those files especially drivers, I'm sure chinabull and the others will be able to do something with them...
[Android Software/Hacking General [Developers Only]] squirreltech:
That makes sense! I replace the original card with an 8 gig class 6. I'll try the original card. Thanks.
[Android Software/Hacking General [Developers Only]] secretmachine:
for every developer with a le pan, the adb usb drivers are now in your hands. let's see what you can do!
[Android Software/Hacking General [Developers Only]] dbaybay:
GUYS! BREAKING NEWS :D

Our anonymous friend has leaked the ADB Drivers for the Le Pan II, as well as a complete system image, a firmware file (either for the LP1 or 2, still exploring it) and some extra goodies!

If someone doesn't get this rooted by the 24th, I will that day when I get mine! Please join the Le Pan Group to read the post @ http://xdaforums.com/group.php?groupid=526
[Android Software/Hacking General [Developers Only]] rocketero:
I already have a LePan 2 Tablet so it would be great if you could get drivers and other stuff ahead of time for when some developers start to work on a ROM for this tablet. It comes with Android 3.21, HDMI, GPS and Bluetooth support, the build version it's LePanIIMv114, but for some reason some tech guy uploaded a system update (now I have built LePanIIMv116) to the server without testing it and many of us end-up updating this tablet and the HDMI feature was completely wiped out from the menu and at present time we got not idea how to downgrade or fix it as there are not firmwares posted yet on LePantab site.
[Android Software/Hacking General [Developers Only]] dbaybay:
A wee bit disappointed, I used CWM to do a Backup (NANDROID) and then rebooted. I touched nothing else, and for some reason it completely axed my wifi. Just gave me error, error, error. Fixed permissions, but to no avail.

Not a big deal, because I just flashed the leaked firmware and it's back to working fine, but something to keep an eye on.
[Android Software/Hacking General [Developers Only]] squirreltech:
That's awesome news but I know you guys with piles of money bought the le pan 2 but for us poor folk with the le pan 1 did he manage to get the drivers and firmware and other stuff for the lepan 1? that would be EPIC!
[Android Software/Hacking General [Developers Only]] dbaybay:
The ADB Drivers for the Le Pan TC970 have been available for quite a long time. You can find them in the OP of the Le Pan TC970 Root Thread. However, there was a brand spanking new firmware for the Le Pan TC970 which I flashed early this morning and it's pretty nice. Addressed some wifi issues with connectivity and speed and seemed to fix my wake lock issues.

You can find more info out in the Le Pan Group :)
[Android Software/Hacking General [Developers Only]] squirreltech:
UPDATE: for all the idiots out there like me. it goes on the root of the card not in a folder called Lepan! it works fine even on my 8 gig card!

SIGH!!

Just tried the original card and still get a bad firmware message.

I tried renaming the folder from "Lepan" to "lepan" thinking maybe it was something like that. Still no go. Verified the MD5 on the tablet with an app and it comes up correct.

Any more ideas?

Would it have something to do with transfering files from a mac? can't see any difference in that. it's worked fine for all my other android devices.

also, when I hit vol down and power with no memory card in at all, it brings up the same message.
[Android Software/Hacking General [Developers Only]] MrMad_Cat:
You don't need to put firmware in folder. Just put it directly on the SD card.
[Android Software/Hacking General [Developers Only]] dbaybay:
Deleted

10chars
[Android Software/Hacking General [Developers Only]] chinabull:
At this point, please DO NOT try ROMs for other devices yet because those ROMs usually include a specific kernel update, too.

On TC970, the Kernel partition is double checksumed, I can almost guarantee you that the device will not boot after a kernel update from the rom.

Of course you will have chance to recover using the stock firmware update package.

I am in the process of rebuilding a CM7 ROM for TC970 just to get the process going. Then I'll definitely get to CM9/ICS when I get chance.

In the mean time, I can try to remove the kernel image from one of the ROMs and give it a try for sure.

Will let you guys know.

Just had a quick look at the NOOK ICS rom. That includes MLO, u-boot and kernel update, also formatting some partitions on the SD card.

That would be very dangerous to try. Might totally brick your device if no modifications has been done on the ROM.

There seems to be a nook device check at the beginning of the update script, so on the TC970, it will probably not even proceed to flash the rom.
[Android Software/Hacking General [Developers Only]] dbaybay:
Yeah it didn't let it proceed. Build.prop error. Then we read your post. I'll edit mine so no one tries :P
[Android Software/Hacking General [Developers Only]] squirreltech:
I can confirm the device check

assert failed: getprop("ro.product.device") == "encore" || getprop("ro.build.device") == "encore"
[Android Software/Hacking General [Developers Only]] gfinockio:
Just a quick reminder of my offer - $30 US (via PayPal) for the first fully functional CM7-based custom ROM for this tablet. All of the above is certainly good news!
[Android Software/Hacking General [Developers Only]] fv+:
The Innocomm 'packer' (and the latest version of the 'unpacker') are finally done and you can find the source code attached to this post.

You can compile them as follows:

gcc -O -Wall -o packer packer.c -lz -lcrypto

gcc -O -Wall -o unpacker unpacker.c -lz -lcrypto

Some notes on how to use them:

- First the 'unpacker'

unpacker [-v] [-c] <firmware file>

where the new command line options are as follows:

-v verbose; prints a bunch of debugging information to stderr

-c print configuration; prints the configuration file for the 'packer' to stdout

so a possible use of the 'unpacker' would be:

unpacker -c griffin.ifw > griffin.conf

The configuration file is a simple text file and, if you want to start 'packing' your own firmware for the TC970/griffin, you may want to take a look at it (and possibly edit it to your liking before 'packing')

- The 'packer' does pretty much the reverse of the 'unpacker'; you just run it in a directory with all the images you want to pack and the configuration file (either the 'griffin.conf' from the previous step or an edited version of it to suit your needs).

The packer can be run from the command line as follows:

packer mygriffin.ifw < griffin.conf

(of course you have to rename 'mygriffin.ifw' to 'griffin.ifw' before you copy it to the SD card).

Please note that the only missing part from the unpacker/packer is the whole file checksum; I haven't figure out (yet) how to compute it, but chinabull found out the Innocomm xloader (MLO) and u-boot don't check it (while 'idownload' probably does), so firmwares created with the 'packer' should be loaded without any problem by the TC970/griffin.

I think that's it.

Let me know if you have any problems or questions.

Franco
[Android Software/Hacking General [Developers Only]] whatid:
awesome!! thx
[Android Software/Hacking General [Developers Only]] chinabull:
Great job, franco!

Thank you so much!

I can skip manual calculation now! :)
[Android Software/Hacking General [Developers Only]] infamouskid:
so how far along in progress is this project now?
[Android Software/Hacking General [Developers Only]] chinabull:
Just checked out the CM9 tree and rebuilt the CM9 ICS flashable package for Nook color.

I had a quick look at the structure of nook support and our TC970, it's pretty similar in term of the proprietary files. The kernel is also the same version 2.6.32.9.

I'll copy the nook support code over tc970 directory and start hacking!
[Android Software/Hacking General [Developers Only]] costak:
Make us Ottawa people proud chinabull :)
[Android Software/Hacking General [Developers Only]] whatid:
:)

Make us Canadian Proud!
[Android Software/Hacking General [Developers Only]] Sandmonkee:
Whoa, are ALL of us here from Ottawa? :cool:

Time for a LePan geek-out session at D'Arcy McGee's!
[Android Software/Hacking General [Developers Only]] squirreltech:
Go Halifax! ? anyone?
[Android Software/Hacking General [Developers Only]] MadHarryRackham:
Awesome work chinabull! You are le man of the le pan
[Android Software/Hacking General [Developers Only]] gsgorveatt:
hey chinabull. just curious as to how your getting along with the ics build. I'm sure its not an easy task. looking forward to progress report.
[Android Software/Hacking General [Developers Only]] fv+:
UART3 console via USB

I was going through the Innocomm firmware of the griffin/TC970 tonight and, using the 'strings' command, I found in the 2nd stage boot loader 'iboot' several lines like these:

Console: USB UART3

Enable USB UART3

<< UART3 via USB is enabled >>

<< UART3 console via USB >>

and what it looks like a kernel boot option: uart3=usb

If my instinct is correct, that means that there's a way somehow to bring in the serial console (UART3) of the griffin through the USB port (and therefore without any special cables or other tricks).

I tried to boot both in normal mode and in recovery mode (with the standard Innocomm recovery, not CWM), ran 'lsusb -v' and I see only two interfaces (the storage and the ADB ones, I guess).

I also see the following entry in the OS:

/sys/devices/platform/i2c_omap.1/i2c-1/1-0048/twl4030_usb/uart3_via_usb

'cat' on that file returns 0, which makes me think it is disabled.

Is anyone here aware of this option 'UART3 console via USB'?

Did anyone (probably chinabull :-)) figure out how to enable it?

Is there any other boot mode beside normal and recovery that enables it? If so, what kind of key combination do you need to use to trigger it?

Thanks in advance for any useful info.

Franco
[Android Software/Hacking General [Developers Only]] cas_xp:
UART3 is in 17,18 pins of 30 pin connector. Boot from UART3 is also enabled, you just need a cable like chinabull did. Of course you will some software program to support boot from UART, you can get it from TI.

But the point is that we should focus on Android(gingerbread,ICS) now not boot or recovery, since we have this packer tool(BTW, it is great). Now I can flash my own rootfs and recovery image but my USB cable is killing me, it always is disconnected in anytime. I have to hold it in a proper position to get it work. I should fire a RMA for it. Or I will DIY one cable with UART supported.
[Android Software/Hacking General [Developers Only]] cas_xp:
GingerBread on TC970
[Android Software/Hacking General [Developers Only]] QkSi1ver:
Get OUT!!! :eek: Stop pulling our legs....

Where?! When??! How ?!

I'm not sure what i'm looking at though.. its so blurry... but i'm taking your word for it! :)
[Android Software/Hacking General [Developers Only]] fv+:
WOW!!!!!!

This is amazing!!!!!
[Android Software/Hacking General [Developers Only]] GnatGoSplat:
WHOAH, fantastic!!! I see you also got the onscreen buttons too, my wife always wanted that because she can't see the capacitive buttons in the dark.

Very exciting!
[Android Software/Hacking General [Developers Only]] whatid:
More juicy details please ;)
[Android Software/Hacking General [Developers Only]] MadHarryRackham:
Come on Cas_XP, you can't hold out on us!

Share please.

Outfreakingstanding work!
[Android Software/Hacking General [Developers Only]] yann2:
Yeah, what a tease, eh. :p

Good to see casxp and chinabull are making progress, thanks guys.
[Android Software/Hacking General [Developers Only]] cas_xp:
It is just the first step to CM9.

well, I just enabled OpenGL, otherwise the display is very very slow. But now the screen is rotated 90 degree.

And, I am too lazy and I just grab the nook color image and modify to flash it. Maybe I should build it our own TC970 from scratch.

And, the USB cable, I hate this design, why don't they use standard micro-USB port.
[Android Software/Hacking General [Developers Only]] d0nald01:
keep up the good work!
[Android Software/Hacking General [Developers Only]] sockbot:
Do you think ics will be at a usable speed in the future?
[Android Software/Hacking General [Developers Only]] GnatGoSplat:
It appears to perform okay on the videos I've seen of the Nook Color which has the same processor, but clocked slower. There is a very slight lag, but nothing worse than we already get with Froyo. I believe they do NOT have UI acceleration working on ICS for Nook Color, and that's probably the explanation for the slight lag.

Once UI acceleration is working, that lag should go away and ICS should be much faster than Froyo. ICS on my HP Touchpad responds instantaneously and is significantly faster and more responsive than Gingerbread was.
[Android Software/Hacking General [Developers Only]] sockbot:
What needs to happen in order to get UI acceleration? Is the hardware documentation open so that drivers can be written? I know a lot of open source software has trouble with accelerated video when the designer doesn't release hardware documentation.
[Android Software/Hacking General [Developers Only]] GnatGoSplat:
I have no idea. I don't know where kernel drivers for Linux/Android come from in the first place. If they come from the manufacturer, then it could be that TI doesn't have any ICS kernel drivers for the OMAP3 because it's probably an obsolete platform (TI wants to sell OMAP4 now).

From the Nook Color ICS thread (http://xdaforums.com/showthread.php?t=1370873):

It would sure be nice if they get it figured out. My HP Touchpad with ICS now has UI speed and responsiveness I had only previously seen in iOS devices.