[HD2 Android NAND Development] walter79:
CM 11.0 for HD2 (unofficial)

Status: testing

CWM-Recovery 6.0.4.4: Download

Download: 2013-12-08 (2.6.32 tytung kernel) compiled by chautruongthinh: http://d-h.st/yoY

fixed: sdcard and nativeSD, directSD

source updated to Android 4.4.1

2013-12-03 (2.6.35 kernel) http://d-h.st/e9c

For magdlr: View attachment 2432541

Download: 2013-12-04 (3.0.101 kernel) http://d-h.st/xAm

View attachment 2431327View attachment 2433342

2.6.32 kernel source:

2.6.35 kernel source:

3.0.101 kernel source:

THANKS to:

CyanogenMod - Team for CM-11

EVERVOLV TEAM for the legacy codes.

TYTUNG for his contribution Kernel, Aroma Installer, libgps with AGPS

MARC1706 for contribution to developing new kernels.

Sportsstar89, Securecrt, Xylograph, Pixelfreak, ph03n!x, datagr, chautruongthinh, Rick_1995, Daekin, BSDgeek_Jake

texasice, marco.palumbi, Robbie-P, zeppelinrox, zexmunze, zain0300 for all HD2 kernels, libs, mods, corrections

And all those individual/teams who I might have missed.

What is working 2.6.32 kernel;

- lights

- calling

- mobile data 2g/3g

- camera

- sound

- display + touch

not working

- adb

- wifi

- camcorder

What is working 2.6.35 kernel:

- adb

- lights

- LED

- Display + Touchscreen

- mobile data 2g/3g

- no need for xattr on yaffs2

What is working 3.0.101 kernel:

- Lights

- LED

- Display + Touchscreen

- Sound

- 2g/3g

- calling

OLD !!

Android 4.4 for HTC - LEO

[COLOR=Blue]What work:[/COLOR]
- rom boots but display did not work. (black screen only backlight on)
- Sound
- Touchscreen
- adb

For Android 4.4 we need a new recovery and new kernel with some security options enabled.

Leo NAND use yaffs2 file system. --> We need to port xattr support for yaffs2.

Leo NativSD use ext4 file system. --> I compiled a recovery and a kernel with enabled xattr and security for ext4.

Recovery for EXT4 only support: http://d-h.st/wa4

Kernel: http://d-h.st/368

Kernel source: https://github.com/walter79/android_kernel_htc_leo_2.6.35-mark1706-based

(cm-10.2 branch)

UPDATE 2013-11-21:

Recovery for yaffs2 and ext3/4 support (only for 3.x kernel yet)

Download: http://d-h.st/QtF

Kernel source: https://github.com/walter79/android_kernel_htc_leo (cm-11.0 branch)

2.6.35 - Local.xml: https://github.com/walter79/android_htc_leo_local_xml

With the recovery and a custom installer script we can install Android 4.4 on sdcard ext4 partitions.

(files need to install to mmcblk0p2)

Installer:

mount("ext4", "EMMC", "/dev/block/mmcblk0p2", "/system");
.
.
ui_print("Mounting System...");
mount("ext4", "EMMC", "/dev/block/mmcblk0p2", "/system");
ui_print("delete old System...");
delete_recursive("/system");
ui_print("Installing System...");
package_extract_dir("system", "/system");

Local.xml: https://github.com/walter79/android_htc_leo_local_xml

init.htcleo.rc

on fs
# Mount all partitions
# mount_all ./fstab.htcleo

# mount mtd partitions
# Mount /system rw first to give the filesystem a chance to save a checkpoint
#mount yaffs2 mtd@system /system noatime nodiratime
#mount yaffs2 mtd@system /system ro remount

# move cache to data -TYT
#mount yaffs2 mtd@userdata /data nosuid nodev noatime nodiratime
#mount yaffs2 mtd@cache /mnt/cache nosuid nodev

# wait for sdcard
# wait has a timeot of 5 seconds.
# calling it 4 times allows 20 seconds for the mmcblk0p2 partition to show up
wait /dev/block/mmcblk0p2
wait /dev/block/mmcblk0p2
wait /dev/block/mmcblk0p2
wait /dev/block/mmcblk0p2
wait /dev/block/mmcblk0p3
wait /dev/block/mmcblk0p3
wait /dev/block/mmcblk0p3
wait /dev/block/mmcblk0p3
# SD Card Speed Fix
write /sys/devices/virtual/bdi/179:0/read_ahead_kb 2048
# File system check
exec /bin/busybox sh -c "/bin/e2fsck -p /dev/block/mmcblk0p2 > /fscksystem.log"
exec /bin/busybox sh -c "/bin/e2fsck -p /dev/block/mmcblk0p3 > /fsckdata.log"
# mount the 1st (NativeSD) SD-EXT partition
mount ext4 /dev/block/mmcblk0p2 /system wait noatime nodiratime barrier=0
# mount the 2nd (NativeSD) SD-EXT partition
mount ext4 /dev/block/mmcblk0p3 /data wait noatime nodiratime barrier=0
# cleanup
# delete /bin to free ram
rm /bin/busybox
rm /bin/e2fsck
rmdir /bin

I will uploading my compiled Android 4.4 rom. Installer works it use 2 ext4 partitions. mmcblk0p2 for /system and mmcblk0p3 for /data.

Boot.img will installed to NAND /boot.

!!! You will need 2 ext4 primary partitions on your sdcard !!!

!!!This rom will delete all data from your ext4 partition !!!!

ROM: http://d-h.st/0at