Arrow [03 JAN][IDEA] Ramdisk for CM6 builds with external data.img [NOT BUILD]

- external data.img support.
- update kernel and system files without adb.
- easily update build with, don't have to re-flash.
- options to set data.img size, lcd density, etc in config file.

To enable external data.img
1. create '.data' folde under sdcard (/sdcard/.data).
2. create 'config.txt' under '.data' directory, add 'data_img=1' into 'config.txt'.
3. copy old data.img to '.data' directory, otherwise a new data.img will be created.
4. boot into Android.
If experiencing issue with 1 and 2, simply copy '.data' from to sdcard.

To disable external data.img
- delete 'data_img=1' in config.txt.
- delete config.txt.

To change kernel and modules
1. create 'update' folder under sdcard (/sdcard/update).
2. create 'boot' folder under 'update' directory, put zImage into 'boot'. (reboot is needed after updating)
3. create 'system/lib/modules' under 'update' directory, put bcm4329.ko, tun.ko, etc into 'modules'.
4. boot into Android.

To replace initrd.gz and system files
- same as change kernel and modules.
- put 'initrd.gz' under '/sdcard/update/boot'. (reboot is needed after updating)
- put system files under '/sdcard/update/system'.

To use
- create an and compress it with update files to
- put under 'sdcard/update'.

- Try ClockworkMod Recovery for HD2

- if you want to test the ramdisk, download this build package. Don't forget to backup your data. (thanks to projection for the kernel)
If you've downloaded, to update to 3.1, please download the new initrd file, then try the update method above.

To do
- add desire builds support
- add squashfs support

0.1.1 - fix a stupid typo, sorry.
0.1 - initial.

About config.txt
Select Code
 - 0, default, use nand userdata, about 250 MB for cm builds
 - 1, enable external data.img support (/sdcard/.data/data.img)
 - size of data.img, only work when data.img support enabled and first install
 - 0, fast, default, disable sync option when mount data.img
 - 1, safe, enable sync option when mount data.img, use this if experiencing data corruption
 - size of icons
 - country code, us, fr, jp, etc
Credit to DarkForces Team and everyone in this thread.
Android: Frozen
WinMo: ChuckyDroidROM 23139
Radio: Leo_RADIO_2.15.50.14