[HD2 Android NAND Development] qaliza:
My idea of the new thread

​

Features:

All my new builds have the following features:

1. All in one package, can be flashed to Nand or boot from SD or Load from Magldr.

2. All the build is squashed, once set the swap_mode=2, can delete the squashed.sqsh file from /system to release 160M space from system, but you must keep the swap_mode=2 untouched.

3. All the build can use Update_DL to update or change anything you want.

4. All locations and languages.(DesireZ v4.0)

5. Equipped with DL Data2SD/Ext4 v3.0 developed by freak and me, with following features:

auto detect and make use of your 2nd and 3rd partitions with high performance

auto convert the system.img to system.ext2 for SD/MAGLDR

auto partitioning your SD Card once set the format_ext4=9 (need test).

format 2nd partition with proper block size of ext4 with format_ext4=1, which is used for data partition

change ppp/rmnet with ppp_mode=0 or 1.

set you gps zone with gps_zone="your country code"

can use Update_DL to update system incrementally, all the Update_DL plugin I previous published(backup/restore, secue) is still applicable

the backup/restore can backup and then restore your whole system including: settings, sms, email, etc, you even can use this to migrate your data.img to ext4(set data_img=1 to use data.img and do the backup, and then set the data_img=0 to use the ext4 and do the restore.)

once you encounter the boot loop and FC, you can use the rescue plugin to rescue your system.

New features for Init v4.0: (developed by freak, modified by me)

auto detect the mobile modal(EU/TMOUS) for optimization.

auto detect where is loaded from (SD/MAGLDR/NAND), thus no need the boot_mode anymore.

rescue_nand command for SD/Magldr in order to add/remove/modify nand system in case of bad manipulation.

All the plugins (backup/restore/rescue) are integrated.

In next version will add Format_ext4=8, in order to simulate the format_ext4=9 option, then you can see in logs what are the size (in cylinders for now) of future partition.

Actually, many builds in this forum adopt part or full of our initrd to provide the high performance ext4 support.

Current Versions

DL DesireHD ARA v1.1 download

DL DesireHD v1.2

DL DesireHD v1.2s (stock version) download

DL DesireHD v1.2t (themed version) download

DL DesireHD v2.0 download

DL DesireZ v3.5 download

DL DesireZ v4.0 download

Changlog

v3.5
1. update all the drivers, now, the driver for my DHDv1.1, DesireZv3.5 and DHDv2.0 are same version, next time, I may provide only one update package to update all versions.
2. Change the kernel to rafpigna 1.7
3. Upgrade my Initrd to v3.0

update
add 2 plugins for backup/restore
add 1 plugin for
rescuing your system once you encounter the boot loop or many FC.
Patch for TMOUS MMS

btw, am developing the auto-partition function now, will update soon.

v3.4 final
- this is considered as the bugfix for v3.3, but due to some fundamental changes, cannot use update mechanism to upgrade it, sorry.
- fix the problem of market download(again)
- fix the problem of HTC sync(should be able to work without install the apk)
- fix the problem of button savior(all button functions)
- fix the potential problem of ppp/rmnet stability
- fix the potential problem of pc to mobile transfler.
- Recreate the squashed file which contains the full stock apps, nothing removed, with the cost of only 3M increase of system space. (power of squashFS :D )
- v3.3 users using ext4 or data.img can just flash it without losing anything.
- Kernel gpc#215

v3.3 final
- huge performance improvement.
- fix the problem of market download.
- fix the problem of 3rd partition
- fix the problem of HTC sync.
- recreate the squashed file.
- change the auto mounting logic, now is, 2nd partition ext4-> 3rd partition -> data.img -> nand data. (remove auto-create a blanket data.img since it has problem.)
- change the kernel to gpc.
- everything changed. :D

v3.2 final
- System will now auto detect the 2nd and 3rd partition and use it accordingly.
- add swap_mode=2 to copy the squashed file to data partition to free about 160M space from system partition, and if you have a fast SD card, it should improve the performance.
- update all the drivers, e.g, stream media, acdb, sqlite, etc.
- tweak many configurations once again to improve the performance
- Reorganized the squashed file.
- fixed the possible market download problem.
- many many many changes. :D

v2.6
- System will now automatically change the format_ext4 to 0 after formating, no need to manually change it back anymore.
- Copy the sqlite data into nand to improve the data2sd/ext4 performance.
- Change noop scheduler for both SD and Nand to improve performance.
- Optional package for fully support Arabic on 2nd post.

v2.5
- finally solve the ext4 performance issue, can use the format_ext4=1 in config.txt to autoformat the 2nd partition with block size of 4096 .
- add another parameter nand_data in config.txt for choosing whether make use of the nand data portion. if set to 1, nand data partition will also be mounted, and some files in nand will be moved to ext4 to save space, some files will be moved from ext4 to nand to improve the performance. if set to 0, ext4 will simply mount to data.
- fix the wifi mac address issue.
- change the ppp_modal to ppp_mode
- a lot of other changes also. :D

v2.4
- Optimize the code for Ext4 support, now, set SD_boost=0, the ext4 performance should improve a lot, sd_boost=1 is more suitable for data to image file.
- add ppp/rmnet switch, using ppp_modal in config.txt, set it to 0 will use rmnet, 1 will be ppp.
- add format_ext4=1 to re-format your 2nd partition to ext4, but due to some reason, system will stop after format, you should remove your battery after about 15min and change format_ext4 to 0, this function is for testing only.

v2.3
- Data2SD and Ext4 support
- Recreated the symbol link for each font.
- Some other changes in order to enable the data2sd/ext.

v2.2
- fix the boot problem and revert the kernel back to 8.6 for SD build.
- fix the data2sd, and add the data2ext4(need test).

v2.1
- fixed the boot time too long for v2.0
- add rmnet support, can change easily by: touch /system/ppp to change to ppp, or just rm it for rmnet.
- fix the bug (can not process the update correctly) in initrd.gz for nand.
- add feature in initrd.gz for SD to automatically create 1g data.img.
- some other changes.

v2.0
- Major release.
- Use same base with my nand version, which Squashed as many files as possible.
- Even for squashed file, it still can be replaced as the separated symbol link is kept in original place.
- New Kernel of MDJ 9.2 in order to support SquashFS and Ext4.
- System.ext2 is hence recreated with about 290M + 30M spare space, which is about 100M less than the unsquashed version.

v1.0
- Major release

How to install

For Nand:

extract the Desire_DL and Update_DL(for upgrade) folder from the package to the root of your SDCard and flash.

change the config.txt.nand to config.txt and modify the config in it.

For SD/MAGLDR:

extract the Desire_DL and Update_DL(for upgrade) folder from the package to the root of your SDCard, answer yes when ask for overwrite.

change the config.txt.sd to config.txt and modify the config in it. (Nand)

or change the config.txt.magldr to config.txt and modify the config in it. (Magldr)

If you encounter mobile data issue, please check here

The first boot will take a very long time, especially for SD/MAGLDR due to system will convert the system.img to system.ext2, need 10-20 mins depends on the speed of your SDCard.

After the install, please reboot your system at lease twice to let the system settle down.

How to upgrade or change kernel or customize the system

1. more kernel can be found here

For Nand, just extract the Update_DL folder to the root of your sdcard, boot twice.

For SD, extract the Update_DL folder to the root of your sdcard, and copy the zImage file from /Update_DL/update/kernel_files to Desire_DL, boot.

You can also use the same kernel package, but replace the kernel file with your own under /Update_DL/update/kernel_files. (for SD/Magldr version, the zImage file should be put under Desire_DL)

2. for system upgrade or bugfix, extract the Update_DL folder from a update package to the root of your sdcard, reboot.

3. if you intend to replace any file from the system, use rootexplorer to delete the target file first, then put the file to /Update_DL/root/system..., e.g, if you want to change the framework.res, just delete the origin file from /system/framework, then, put your own file under /Update_DL/root/system/framework, boot.

How to load from MAGLDR

Press the power button during reboot

Select "Services" from MAGLDR menu

Select BootSettings

Select AD SD Dir

Choose the Desire~1

Back to the Boot from AD SD.

Useful info and plugin :

1.backup/restore

2.Rescuing your system from boot loop or FC.

3.Patch for TMOUS MMS

4. Q&A

5. How to install and config

6. Step by step.

7. Another step by step

Tips & Trics:

Bugfix & Enhancement (here )

How to install config the v3 based builds. (here )

How to play with V3.3 final. (here )

Prefer you mail to me directly once you have any question, cause I may visit the forum less and less.

Special thanks to

wingmann, E Lin, D69K, McNiceGuy, vlad48, RicarduZonta, akshan, Alexei, Kam,

adeeb, Shane Grosser, Kenneth Davis, Muhammad, Joe, parzifal, F-bone,

TruePlaya, Eric, kajos, b0nni....

Thanks to

Cedesmith, Cotulla, ownhere, melethron, ocm, Rajko, LeTama, Hastarin, NetRipper, Markinus, gauner1986, Takaaki, GPC and others I may forgot.