CWM on a SDCard

These are the basic steps to get a SDCard-based ClockworkMod recovery. It can come in handy if your device is unrooted or your recovery and android system are both broken, and you don't want to use LiveSuite or similar.


 * 1) Get an SDCard, and connect it to your PC.
 * 2) Make a new, clean partition table on the card
 * 3) Create a new ext2 partition, covering the full card and starting at 1M. You need this free space on the front for U-Boot
 * 4) Download and/or build U-Boot. You can get a confirmed working prebuilt image made by hno on http://www.hno.se/code/A10/u-boot-mmc-hno-v2011.09-sun4i-20120808.img
 * 5) Install U-Boot on the card. If you downloaded hno's image, do
 * 6) Unpack the CWM image for your device, and copy the contents to the ext2 partition. You can do the unpacking with 'unpackbootimg'. Here is an example CWM unpack for ZaTab http://turl.linux-sunxi.org/zatab-recovery.tar.gz
 * 7) Make a "boot" directory on your card. Copy your device's script.bin there, as well as a kernel uImage. You will also need a boot.scr, download the previously linked example for the boot.cmd used to generate it (as well as the boot.scr itself if you want to just copy it)
 * 8) Copy any files you want to flash to the SDCard
 * 9) Insert card on your device and turn it on. CWM should appear.