[GUIDE] How to install Android on HTC HD2/LEO [aMagldr / Black LK][01/11/2013]

For general discussion and questions specific to Android development for HTC HD2/Leo
Moderator: Forum Moderator

[GUIDE] How to install Android on HTC HD2/LEO [aMagldr / Black LK][01/11/2013]

Postby symbuzzer » Wed Jul 24, 2013 9:20 am

UPDATED: 01/11/2013


INDEX:
- 1ST POST:
NEEDED TOOLS
A) HSPL INSTALLATION
B) RADIO INSTALLATION
C) BOOTLOADER INSTALLATION

-2ND POST:
D) AMAGLDR NAND PARTITIONING AND RECOVERY INSTALLATION

-3RD POST:
D) BLACK LK NAND PARTITIONING AND RECOVERY INSTALLATION

-4TH POST:
E) ANDROID ROM INSTALLATION
F) RUNING ANDROID ROM
G) UNDERSTANDING INSTALLATION METHODS
H) AMAGLDR'S FLASH.CFG STRUCTURE FOR RECOVERY PARTITION
I) MARKING BAD BLOCKS

-5TH POST:
J) CREATING EXT4 PARTITION FOR NATIVESD & DATAONEXT METHODS
K) USING BOTH WINDOWS MOBILE & ANDROID


Image


NEEDED TOOLS:
- HSPL4 by cotulla and bepe from: http://forum.xda-developers.com/attachm ... 1298224028
- Radio 2.15.50.14 from: http://hotfile.com/dl/136377459/0998e73 ... ml?lang=tr
- Advanced ROM Update Utility by Barin from: http://forum.xda-developers.com/attachm ... 1295291861
- aMagldr 1.13 by Cotulla from http://forum.xda-developers.com/showthread.php?t=893618
- aMagldr 1.13.06 by Cotulla but modified by symbuzzer from: new-2-08-hspl-with-gez-exploit-t127.html
- Black LK by Kokotas from: http://www.mediafire.com/?tzg7whl9wwaih
- DFT DAF (DFT Android Flasher) by bepe and cotulla from: http://forum.xda-developers.com/attachm ... 1301130234
- Extented TWRP Recovery by Kokotas (recommended) from: http://forum.xda-developers.com/showthr ... ?t=2120297
- 4EXT Recovery (SD Version) by Xylograph from: http://goo.im/devs/Xylograph/Various/Re ... leo_sd.zip
- WinCE drivers:
* For Windows XP; ActiveSync from: http://www.microsoft.com/en-us/download ... aspx?id=15
* For Windows Vista, 7 and 8; Windows Mobile Device Center from: http://www.microsoft.com/en-us/download ... px?id=3182
- Custom Image Update Utility for cLK by Kokotas from: http://forum.xda-developers.com/showpos ... tcount=866
- Fastboot Drivers by shimp208 from: http://click.xda-developers.com/api/cli ... 4022920696
- sboot & tboot flashers by bojanbl from: http://forum.xda-developers.com/showpos ... tcount=967


A) HSPL INSTALLATION:
1) Download WinCE drivers from Needed Tools section and install it to PC.
2) Download HSPL4 from Needed Tools section and extract it on PC's desktop.
3) Power off HD2 and press Volume Down + Power buttons until see this screen: http://cotulla.pp.ru/imgtmp/hspl208.PNG
4) Connect HD2 to PC via USB cable and Run HSPL.exe
5) Select 2.08.HSPL for aMagldr bootloader, 3.03.HSPL for Black LK bootloader


B) RADIO INSTALLATION:
1) Download Radio 2.15.50.14 from Needed Tools section and extract nbh formatted file on PC's desktop.
2) Download Advanced Rom Update Utility from Needed Tools and extract it on PC's desktop.
3) Power off HD2 and press Volume Down + Power buttons until see this screen: http://cotulla.pp.ru/imgtmp/hspl208.PNG
4) Run LeoAdvancedRUU.exe and select CustomRUU (Task32) and Radio 2.15.50.14.nbh from Select NBH File option. Press Next and contiunue installation.

or

1) Download Radio 2.15.50.14 from Needed Tools section and extract nbh formatted file on PC's desktop.
2) Rename Radio 2.15.50.14.nbh to leoimg.nbh
3) Copy leoimg.nbh to SD card's root directory via a card reader from PC.
4) Power off HD2 and press Volume Down + Power buttons until see this screen: http://cotulla.pp.ru/imgtmp/hspl208.PNG
5) Press Power button for installing.


C) BOOTLOADER INSTALLATION:
1) You need to select a bootloader in this step. There are two alternatives; aMagldr and Black LK. For differences between them, please read this: http://forum.xda-developers.com/showpos ... ostcount=1 There is a third alternative too. It is HaRET. For detailed info about it, please look 5th post.
2) Download aMagldr 1.13 or Black LK 1.5.x from Needed Tools section and extract *.nbh formatted file on PC's desktop. Use TWRP attached and lastest version of Black LK.
3) Power off HD2 and press Volume Down + Power buttons until see this screen: http://cotulla.pp.ru/imgtmp/hspl208.PNG
4) Run LeoAdvancedRUU.exe and select RegularRUU (Task28) and *.nbh from Select NBH File option. Press Next and contiunue installation.

or

1) Download aMagldr 1.13 or Black LK 1.5.x from Needed Tools section and extract nbh formatted file on PC's desktop. Note: Use TWRP attached and lastest version of Black LK.
2) Rename *.nbh to leoimg.nbh
3) Copy leoimg.nbh to SD card's root directory via a card reader from PC.
4) Power off HD2 and press Volume Down + Power buttons until see this screen: http://cotulla.pp.ru/imgtmp/hspl208.PNG
5) Press Power button for installing.
symbuzzer
Forum Moderator
 
Posts: 320
Joined: Mon Jun 24, 2013 7:05 am
Country: Turkey (tr)
Has thanked: 176 times
Been thanked: 168 times

Advertisement
 

AMAGLDR NAND PARTITIONING AND RECOVERY INSTALLATION

Postby symbuzzer » Wed Jul 24, 2013 9:21 am

D) AMAGLDR NAND PARTITIONING AND RECOVERY INSTALLATION:
1) Download DFT DAF (DFT Android Flasher) from Needed Tools section and extract Recovery_250 folder on your desktop.
2) In Recovery_250 folder; open flash.cfg file via a text editor, for example Notepad.
3) You must to change system ya 250M value with needed system value by target rom. For example Tytung's NexusHD2 ICS 4.0.4 CM9 3.0b rom needs 170M system partition. I recommend to change this value like "system size + 10M, so for Tytung's ICS rom use "180M" If you want to use NativeSD or DataOnExt methods, you need a ext4 partition. For detailed information about partitioning sd car, please look 5th post.
4) Edit cache ya 10M to cache ya 2M and recovery rrecov|ro|nospr 5M cwm_recovery_leo.img to recovery rrecov|ro|nospr filesize cwm_recovery_leo.img and save flash.cfg file.
5) Download Extented TWRP Recovery and extract *.img file in Desktop\Recovery_250\ folder. You can use another recoveries too.
6) Delete recovery-raw.img file from Recovery_250 folder and rename extracted *.img file to cwm_recovery_leo.img
7) Power on HD2. In aMagldr menu, select USB Flasher option with volume up, volume down and green (answer) keys.
8) Connect HD2 to PC and run DAF.exe from Recovery_250 folder and continue installation.
symbuzzer
Forum Moderator
 
Posts: 320
Joined: Mon Jun 24, 2013 7:05 am
Country: Turkey (tr)
Has thanked: 176 times
Been thanked: 168 times

BLACK LK NAND PARTITIONING AND RECOVERY INSTALLATION

Postby donblazello » Wed Jul 24, 2013 9:21 am

D) BLACK LK NAND PARTITIONING AND RECOVERY INSTALLATION:

-This guide for TWRP attached Black LK.
1) Power on HD2 holding back button. In Black LK menu, select SETTINGS and than RESIZE PARTITION option with volume up, volume down and green (answer) keys.
2) Select SYSTEM and set size to proper for ROM you choose. Select CACHE and set 2 MB for Tytung's Roms.
3) Go back using back button, select COMMIT CHANGES and APPLY

-This guide for no_rec variant of Black LK. In this variant, you should flash a recovery firstly. (Warning: I never tried this method, it is based on my theory.)
1) Power on HD2 holding back button. In Black LK menu, select SETTINGS and than RESIZE PARTITION option with volume up, volume down and green (answer) keys.
2) Select RECOVERY and set size to proper for *.img file you choose. For example, for ExTWRP 2.5.0.5 you must to set 9MB minimal.
3) Go back using back button, select COMMIT CHANGES and APPLY
4) Download and install Fastboot Drivers from Needed tools.
5) Download Custom Image Update Utility for cLK from Needed tools and extract it on your desktop.
6) Download Extented TWRP Recovery from needed tools and copy *.img file on your desktop too.
7) Reboot your phone and Press and Hold Power Off + Back buttons until you see fastboot screen.
8) Plug your USB cable to both phone and PC and run CustomIUU.exe.
9) Select ExTWRP's *.img file and set it's type recovery and press Next button.
10) Now you have recovery. You need to set proper system partiton size for installing rom. Power off HD2.
11) Power on HD2 holding back button. In Black LK menu, select SETTINGS and than RESIZE PARTITION option with volume up, volume down and green (answer) keys.
12) Select SYSTEM and set size to proper for ROM you choose. Select CACHE and set 2 MB for Tytung's Roms.
13) Go back using back button, select COMMIT CHANGES and APPLY
If I helped please hit "Thanks" button.
[GUIDE] How to install Android on HTC HD2/LEO [aMagldr / Black LK]


HTC HD2 | HSPL4 3.03 | RADIO 2.15.50.14 | BOOTLOADER CLK 1.5.2.1 | RECOVERY TWRP Extended v2.6.1.2 | ROM NexusHD2-JellyBean-4.2.2-CM10/1/2 V2.6 NativeSD
Nokia Lumia 820
User avatar
donblazello
Junior Member
 
Posts: 17
Joined: Wed Jul 10, 2013 9:10 pm
Country: Poland (pl)
Has thanked: 14 times
Been thanked: 12 times

ANDROID ROM INSTALLATION AND ETC

Postby symbuzzer » Wed Jul 24, 2013 9:23 am

E) ANDROID ROM INSTALLATION:
1) Download rom's flashable zip file from our site or XDA.
2) Copy zip file to SD card via a sd adaptor or USB MassStg option in aMagldr or Mount USB option in Extented TWRP.
3) !!! Don't forget to edit system size !!! & !!! Don't forget to create ext4 partition for dataonext and nativesd methods!!!
4) Reboot HD2 in Recovery Mode:
* For aMagldr users, hold Power button when HD2 is starting. And select AD Recovery option.
* For Black LK users, hold Home button when HD2 is starting.
5) In Recovery, select Install option and select roms flashable zip.
6) If your rom supports aroma installer, you should see some options like installation methods (Nand, DataOnExt and NativeSD) and connection method (rmnet, ppp)


F) RUNING ANDROID ROM:
If you installed rom with nand or dataonext methods, there isn't anything to do anymore for both aMagldr and Black LK. Your rom starts automatically when you are powering on your phone. Also, you can run android manually with
-Boot AD Nand option on aMagldr's Boot menu
or
-Boot option from Black LK's Boot menu.

But you installed rom with nativesd method, you need to some setup.
-In aMagldr:
1) You must to select SD directory from Services>Bootsettings>AD SD dir option firstly.
2) After that, you must to set default boot method to SD from Services>Bootsettings>Boot source option. (Select Android from SD)

-In Black LK: (I had no idea about it. So, all credits go to donblazello)
Note: This guide isn't for newbies. So I didn't write how to open Black LK setting menu, how to run recovery etc...

1) If one NativeSD rom installed:
a) Enter Black LK settings menu.
b) Add SBOOT.
c) Apply changes.
d) Enter recovery.
e) Flash rom using aroma installer choosing NativeSD installation type.
f) Don't restart!
g)
* If using ExTWTP Recovery; Enter Advenced -> NativeSD -> Kernel update. Choose sboot and select you ROM from list.
* If not using ExTWRP Recovery; Use flash_sboot_v2.zip file to flash kernel to sboot partition.
h) Reboot.

2) If more than one NativeSD rom installed:
a) Install first rom using guide above.
b) Enter Black LK settings menu.
c) Choose "enable multiboot".
d) Add TBOOT (and more *BOOT partitions - one for any ROM installed).
e) Apply changes.
f) Flash 2nd rom using aroma installer choosing NativeSD installation type.
g) Don't restart!
h)
* If using ExTWRP Recovery; Enter Advenced -> NativeSD -> Kernel update. Choose tboot and select currently installed ROM from list.
* If not using ExTWRP Recovery; Use flash_tboot_v2.zip file to flash kernel to tboot partition.
i) Repeat steps d-h for third, fourth, etc ROMs you want to install.
j) Reboot. Now after every reboot you will see CLK multiboot menu that allows you to choose which installed NATIVESD rom you want to boot. sboot and tboot flashers can be downloaded from Needed Tools section on 1st post.


G) UNDERSTANDING INSTALLATION METHODS:
There are different kind of installation methods for our Leo's; like NAND, SD, NATIVESD, DATAONEXT etc... Our WWE (known as EU) shipped Leo's has only 512 MB NAND Memory. So we need these methods.

- NAND: In this method, all partitions (boot, cache, system, data) partitions are on NAND Memory and share 512 MB between them. (I am using this method too;))
- SD: This is oldest Android installation method for our Leo's. In this method, All partitions in *.ext files on fat32 formatted SD card. This is slowest method too.
- NATIVESD: This is most popular installation method. In this method, boot partition is in FAT32 formatted SD card, all other partitions are in EXT4 partition on SD card. In theory, this is fastest and most stable installation method. You need an EXT4 partition on your SD card to use this method.
- DATAONEXT: In this method, all partitons except data on NAND memory, data partition is on EXT4 partition on SD card. You need an EXT4 partition on your SD card to use this method too.

You can select these methods in new generation android roms. Because most of them based Aroma Installer utility. Please look 5th post for creating ext4 partition.


H) AMAGLDR'S FLASH.CFG STRUCTURE FOR RECOVERY PARTITION:
Please look this post for details: unofficial-twrp-2-6-0-0-for-leo-released-bu-kokotas-t35.html#p481


I) MARKING BAD BLOCKS:
Please look this post for detail: how-to-mark-your-bad-nand-blocks-t48.html
symbuzzer
Forum Moderator
 
Posts: 320
Joined: Mon Jun 24, 2013 7:05 am
Country: Turkey (tr)
Has thanked: 176 times
Been thanked: 168 times

Creating EXT4 partition for NativeSD and DataOnExt methods and etc...

Postby symbuzzer » Wed Jul 24, 2013 11:13 am

J) CREATING EXT4 PARTITION FOR NATIVESD & DATAONEXT METHODS:

Note: You can do that on your device via ExTWRP and 4ext recoveries. There are several PC tools too.
Note 2: This operation will format your SD card. Please back up firstly.

-For ExTWRP:
1) Reboot into recovery and go Advanced>Partition SD Card menu.
2) Select EXT4 and set its size. (I recommend minimal 1024MB)
3) And swipe Swipe to Partition.

-For 4ext Recovery:
1) Reboot into recovery and go advanced>Partition SD Card menu.
2) Select Remove all partitİons ... from options.
3) For 1st sd-ext part; select size. (I recommend minimal 1024MB)
4) For 2sd sd-ext part; select skip.
5) For swap partition; select skip.
6) You can convert its type to ext3<=>ext4 from EXT3 - 4EXT - EXT4 menu.



K) USING BOTH WINDOWS MOBILE & ANDROID:
Note: You cant use nand and dataonext installation methods with this way. You can ony use nativesd method with it. So you need a ext4 partition on your SD card for that.
Note 2: You need 2.08.hspl and 2.15.50.14 radio rom for this. For installing these, please look 1st post.

If you dont want to remove your Windows Mobile Rom but want to use Android with it, you can use a third bootloder (HaRET) for that.

1) Download a Native SD supported rom, copy it on your SD card's directory and open it with winrar.
2) In winrar, go sdcard\nativesd directory and extract clrcad.exe, haret.exe and startup.txt files on your SD card's root directory.
3) Download 4EXT Recovery from needed tool and extract zimage and initrd.gz files on your SD card's root directory too.
4) On Windows Mobile's File Manager, run clrcad.exe firstly and haret.exe secondly, this will run 4EXT Recovery.
5) On recovery, select install from sdcard>chose zip from sd card option and select your rom's zip file.
6) On Aroma installer, you must to select NativeSD for installation method and ppp instead rmnet for connection method.
7) After installation finish, you can run your android rom from sdcard/nativesd/ folder. (run clrcad firstly and haret secondly)
8) Also thera are many gui based android loaders like: http://forum.xda-developers.com/showthread.php?t=733752 You can use them too.
symbuzzer
Forum Moderator
 
Posts: 320
Joined: Mon Jun 24, 2013 7:05 am
Country: Turkey (tr)
Has thanked: 176 times
Been thanked: 168 times

Re: [GUIDE] How to install Android on HTC HD2/LEO [aMagldr / Black LK]

Postby Niels73 » Mon Jul 29, 2013 11:43 am

I use Black LK and for the European 512 DataOnExt with a 32gb mSD.
However I keep "E:Mounting failed" thus /sd-ext remains 0
I tried it earlier more than a several times with a 2gb mSD and one time out of many it worked.... but it has to work with the 32gb card :(

What am I doing wrong?

Niels
Niels73
Junior Member
 
Posts: 4
Joined: Mon Jul 29, 2013 11:32 am
Country: Netherlands (nl)
Has thanked: 0 time
Been thanked: 0 time

Re: [GUIDE] How to install Android on HTC HD2/LEO [aMagldr / Black LK]

Postby symbuzzer » Mon Jul 29, 2013 12:18 pm

Niels73 wrote:I use Black LK and for the European 512 DataOnExt with a 32gb mSD.
However I keep "E:Mounting failed" thus /sd-ext remains 0
I tried it earlier more than a several times with a 2gb mSD and one time out of many it worked.... but it has to work with the 32gb card :(

What am I doing wrong?

Niels


Welcome. Did you try format sd card via PC or "clear sd mbr" option on magldr?
symbuzzer
Forum Moderator
 
Posts: 320
Joined: Mon Jun 24, 2013 7:05 am
Country: Turkey (tr)
Has thanked: 176 times
Been thanked: 168 times

Re: [GUIDE] How to install Android on HTC HD2/LEO [aMagldr / Black LK]

Postby Niels73 » Mon Jul 29, 2013 2:33 pm

symbuzzer wrote:Welcome. Did you try format sd card via PC or "clear sd mbr" option on magldr?


Thanks.

In my attempts I mainly used Black LK but also tried magldr at least ones... and then I did use the _clear sd mbr_ however the one time it did work with the 2gb was using Black LK, however I managed to install it now twice on the 32gb but both times the internal storage shows 0mb free and the sd 30gb free and downloading e.g. Sygic GPS won't download because there's no room.

I just got back buying a new Sandisk class 10 32gb mSD card and play the song "Here we go again on my own" :)

Hope I get lucky, something I realize is weird to say being a programmer...

Niels
Niels73
Junior Member
 
Posts: 4
Joined: Mon Jul 29, 2013 11:32 am
Country: Netherlands (nl)
Has thanked: 0 time
Been thanked: 0 time

Re: [GUIDE] How to install Android on HTC HD2/LEO [aMagldr / Black LK]

Postby Robbie P » Mon Jul 29, 2013 2:44 pm

Hi Niels73, have you tried formatting your card using https://www.sdcard.org/downloads/formatter_4/
It may help.
best of luck
HTC HD2 (EU)
SPL 2.08. HSPL3;
Magldr 1.13 thanks bepe & Cotulla
On NAND - WP7.8 pdaimatejam v8.8 thanks to pdaimatejam, DFT, YukiXDA, xboxmod etc
On SDcards - Numerous Android SD builds & NativeSD ROMs (Thanks boonbing, Xylograph, securecrt & Almighty tytung!)
Radio 2.15.50.14
User avatar
Robbie P
Recognized Contributor
 
Posts: 154
Joined: Tue Jun 25, 2013 12:04 am
Location: London
Country: United Kingdom (uk)
Has thanked: 127 times
Been thanked: 124 times

Re: [GUIDE] How to install Android on HTC HD2/LEO [aMagldr / Black LK]

Postby Niels73 » Mon Jul 29, 2013 4:48 pm

Robbie P wrote:Hi Niels73, have you tried formatting your card using https://www.sdcard.org/downloads/formatter_4/
It may help.
best of luck


The situation is now that it does get mounted but after the install I get the first HTC, the second HTC from the bootloader but then it should continue with the cyogen(or whatever) but the screen remains black, so it's holding somewhere between the bootloader and the romloader(cyogen? prior to the spinning logo)

Niels
Niels73
Junior Member
 
Posts: 4
Joined: Mon Jul 29, 2013 11:32 am
Country: Netherlands (nl)
Has thanked: 0 time
Been thanked: 0 time

Next

Return to HD2 Android Q&A, Help & Troubleshooting and General

Who is online

Users browsing this forum: No registered users and 0 guests

cron