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

Features
- external data.img support.
- update kernel and system files without adb.
- easily update build with update.zip, 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 data.zip 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 update.zip
- create an update.sh and compress it with update files to update.zip.
- put update.zip under 'sdcard/update'.

- Try ClockworkMod Recovery for HD2

Downloads
- leo-initrd-0.1.1.zip
- 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 LEO-CM6.1.1-NAND-3.zip, 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

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

About config.txt
Code:
data_img=0
 - 0, default, use nand userdata, about 250 MB for cm builds
 - 1, enable external data.img support (/sdcard/.data/data.img)
data_size=512
 - size of data.img, only work when data.img support enabled and first install
data_sync=1
 - 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
lcd_density=240
 - size of icons
gps_zone=us
 - 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