yashsingh1/xdaforums huggingface dataset:
[HD2 Android NAND Development] xlanhackerx:
Well this sounds really great.

@Codesmith:

I has the same Idea for a long time... I started own Thread but nobody wont be able to help me... now I see that you done this what I would start :-)

Now I think I would help an work with your Bootloader if I could !!

But we should done some things first...

- Push Code to Public-Git so everybody could work and clone it if necessary !!

- Create Auto-Built like Netripper for Kernel (Could we done this ?? )

I have now some questions:

Could you tell me how you create NBH File with Tinboot Code for booting LK-LDR ?

Could you public TinBoot Code ??
[HD2 Android NAND Development] g30rg10u:
m really looking forward to see the devs cooperating on this OPEN SOURCE solution of bootloader.
[HD2 Android NAND Development] Satyan:
i think i figured out .. u need to install codesourcery toolchain... then was able to compile with the script.. i will flash and check...

Edit:

The resultant file in bin directory does not work after flashing.. not sure (wont detect the adb interface)
[HD2 Android NAND Development] g30rg10u:
any updates? :)
[HD2 Android NAND Development] jpyper:
My dream is to be able to install radio, boot and recovery images by copying it to the root of SD as LEOIMG.nbh and do everything else from Linux with fastboot or adb. If we can make a partition on the NAND for recovery, it's game on from there. It would just be a matter of getting the bootloader and recovery to cooperate with each other. Once that happens, everything else would be just like a normal rooted Android device. Question is, is this possible with the tools we have available to us now?

-=[Sent from my HTC HD2 running NexusHD2 NAND using XDA App]=-
[HD2 Android NAND Development] dfvn:
Let think about hboot spl for hd2!

Thanks codesmith, need to fixed reboot problem.
[HD2 Android NAND Development] letama:
Well, you're not far with this bootloader, you can flash roms with fastboot from pc, or use recovery to install rom packaged as update zips from sdcard exactly like a native android device. The only not so native part is radio, but I'm afraid it will remain like this. Not a big issue though, we have to stick to wince radio anyway.

LeTama
[HD2 Android NAND Development] digao100nocao:
I remember long time ago in IRC Logs Cotulla said something about flashing other phones radio on HD2.. He said that it is possible, but it is very dangerous.. Correct me if I'm wrong.

A "hboot-like" for hd2 would be awesome.. But I'm sure it is not safe for the final users..

And Codesmith: YOU ARE THE MAN!!!

Keep the hard work..

I hope that it will be the standard bootloader for HD2 if you/the community keep adding functions and showing the advantages over magldr.

It is an awesome opensource project that oppen many doors for our HD2 and many other phones..

Thanks!!
[HD2 Android NAND Development] s14tam:
First, congrats to you cedesmith. I think we all look forward to the possibilities of this project with open source.

In regards to g.lewarne's comments: It's been some time since i've taken any programming classes but i'm pretty sure it didn't take any time to add tetris code and, sure, while we don't need it, I happen to think it's a fun addition that reminds me of the "easter eggs" in various other software. Same goes with the usb features; the code was already available so i doubt they spent any significant time on adding it to magldlr. I also doubt that those codes would cause any problems with boot loading as they are completely different processes but i suppose anything is possible.

As far as wp7 being the main hold up for release, thats seems like pure speculation. With all the people constantly whining for nand boot, i doubt there was any misunderstanding. If it was, then so what? It's their work (which they are doing for free) and they have the right to say when its ready and when its not, not us. Also, I happen to be very excited and interested in wp7 development as we have been running Android for quite some time now and have yet to seen one WP7 rom.

Anyways, thanks and keep up the good work Cedesmith! I look forward to further developments.
[HD2 Android NAND Development] M..N:
Have you tried a 2.2 rom
[HD2 Android NAND Development] erestor6:
I tried a 2.2 rom and the ppp always disconnects mobile data..
[HD2 Android NAND Development] piipo4:
yes I've tried two ones in third post :

Froyo_Sense_Revolution_2.5.1_CWM_LK

Revolution HD v2.6

which is your telephone company? I'm with wind
[HD2 Android NAND Development] stirkac:
i have updated cLK for dummies manual for installing to v2, with some needed changes&corrections :)

check link in my sig!
[HD2 Android NAND Development] mattfmartin:
Can somebody make rafpinga1.9ocGB clk compatible? Rafpinga said I needed to edit some stuff in the 01 modules folder to make it work and add a ppp folder to it... I have no clue what he's talking about editing in the 01 modules folder.
[HD2 Android NAND Development] stirkac:
dl my tutorial you will find a way to do Raf's 1.9OC via fastboot in Addendum part(at the end). takes like 30secs to do :D
[HD2 Android NAND Development] mattfmartin:
Ok thanks bro
[HD2 Android NAND Development] wolfpack612:
this is the one i put together using one of cedesmith's cmw kernel zips: clk raf1.9 ppp
[HD2 Android NAND Development] erestor6:
Yeah, also my tel co. is wind. Are we thinking the same thing?
[HD2 Android NAND Development] tytung:
tytung_r9_beta

Supported unique Bluetooth MAC address.

Supported Bluetooth auto-reconnect.

cLK_ppp_tytung_r9_beta_update.zip for cLK.

You can flash my NexusHD2-Gingerbread v2.5 and then flash cLK_ppp_tytung_r9_beta_update.zip

Please give feedback.

Thanks.
[HD2 Android NAND Development] xlanhackerx:
Does anybody know something about if Cotulla would help to get RMNET working with CLK ?

What exactly the different between RMNET and PPP ?

Is it right that if we use PPP and we have a talk or writing SMS we have Data-Dropps because the Interface turn off data connection for having another Connection-Typ and after than we get back Data Connection ?

Couldn´t we get PPP working like RMNET ? Windows Mobile use PPP and there the Connection seems to be really stable right ??

Why there are so big changes between Windows Mobile Radio Rom and Android Radio Rom ? Could it be that we have to write so Values into the Radio Controller to configurate these like Connection Typ Switch between misc Configs ?

Does anybody know what typ of Radio Controller the HD2 use so we could readout Informations and writing own "Wrapper" ??
[HD2 Android NAND Development] letama:
I highly doubt it. As I stated already, Cotulla doesn't want to open source the way to interact with radio for security reason, but he's the only one who can answer this.

One difference is that rmnet is implemented completely kernel side, ppp is implemented with kernel+userspace. One problem of ppp in linux is that it doubles the memory allocation to manage it as it's using tty, and it uses some specific memory kind that is quite scarce. It induces some out of memory condition sometime that is quite difficult to get rid of.

But this is not the problem we have now. If I'm right, the main problem now with Gingerbread is that pppd is working better. Previously, pppd would die on its own if data connection drops and wrapper is designed to re-issue the connection when pppd dies. With Gingerbread, pppd seems to keep the link to the modem and therefore wrapper doesn't re-issue the data call when needed (i.e., when android asks ril to verify connection).

No, this only happens with 2G, and it's handled properly with wrapper.

Well, we can be close, and we had quite good results before Gingerbread. The main difficulty here is that we don't discuss directly with radio because we are placing us between ril and android. All the rils we have now are designed to work with rmnet, and we are intercepting some calls to make ppp work. The wrapper is only a "dirty hack" that worked well up to now, but it remains a hack. I believe it can be improved, but I'm out of time to do it. Another option is to write our own ril using android generic one as a base, but it will be difficult to be as stable as a proprietary one without radio documentation.

Unfortunately, it's not a config issue. Rmnet is embedded in our hd2 radio, but the implementation is buggy and has not been fixed because it's not used in windows mobile. Android radio have a bug free rmnet because that's what's used natively.

And if anyone comes with the bad idea of flashing an android radio to an HD2, DON'T, you'd brick it.
[HD2 Android NAND Development] stirkac:
now post this to sticky&OP... lots of people asking this!
[HD2 Android NAND Development] Unconn:
Could you post the process you would go through to compile libhtc_ril_wrapper.so? I can't imagine that you would have to compile the whole Android tree to get just the libhtc_ril_wrapper.c compioled (he hopes). This way we might get some other people working on a hack for Gingerbread on cLK.
[HD2 Android NAND Development] clio94:
sorry for the offtopic butmy personal opinion is that i dont care if a custom bootloader is closed or open source.before clk or magldr is also hspl.is this open source or we dont care if it is or not;personally i know that i have a device 2 years old with a dead os and thanks to dft team and cotulla (because before clk or magldr,we have hspl--->do you think possibillity that maybe noboby couldnt unlock bootloader,so we couldnt run android;)

and without any money i can run 2 newer os systems.i am grateful for cotulla and dft team because they give new life in my hd2.i dont blame him for the closed source magldr but i thank him,because he published it for free.and also i am grateful for all the chefs who make roms for hd2.
[HD2 Android NAND Development] piipo4:
YES it could be....we should ask on some italian forum...
[HD2 Android NAND Development] karendar:
I don't think anyone's denying that DFT did wonders for the HD2 community... I don't think anyone is really denying that. But cLK is a really nice open source solution. We'd just want the rmnet portion to make the HD2 as native as can be. :) Two different development lines I think. To each his own!
[HD2 Android NAND Development] stirkac:
cLK installer 0.2

Okay i made a little vbscript to help everyone around with installation(fully automated)

please try and comment :)

EDIT:

Version 0.2, now in EXE :) done some cleanup all should work now!

http://www.multiupload.com/B8WGOLQSLS
[HD2 Android NAND Development] arif-ali:
nice work mate.

But I think you forgot the recovery image inside the zip file :p
[HD2 Android NAND Development] letama:
I don't know if you can build it alone, I always built at least once android, then recompile a single library is possible.

You need to do a:

. build/envsetup.sh

then in the library directory:

mm

to build a single library.

I don't know if it works without a full build before.

A full build is not a big deal, you need disk space (around 10 Gig for CM7) and a little patience.
[HD2 Android NAND Development] stirkac:
wooops:P

i was shure i will foreget sth at end xD

EDIT: fixed original post with version 0.2 now all files are in separate folder, exe flasher.
[HD2 Android NAND Development] dabigchina:
noob question: is ppp implemented better in certain roms (ie froyo roms)? I saw someone mention that froyo roms held a more stable connection in his case but I was't sure if it was a fluke.
[HD2 Android NAND Development] j45p41:
Hi cedesmith I am posed with a bit of an unusual problem. I would like to install a nand based rom but my usb port is not working (use external charger). I already have hspl 2.08. There is a thread on this issue but it seems that after installing magldr i would need a usb connection to install the actual ROM.

Any ideas? :)
[HD2 Android NAND Development] j45p41:
My usb is not working. Can you flash the nand rom via sd card also?
[HD2 Android NAND Development] arif-ali:
You can only, once you have recovery. But you need to somehow get that flashed to the phone.

cedesmith is working out a way to incorporate the recovery with the flashing of cLK, so there is the potential to do it afterwards, if you want to use this method

But, as cedesmith has mentioned flashing cLK in this way can potentially brick your phone, so it is not a recommended way to do it.
[HD2 Android NAND Development] evo1rs:
Hi guys, I don't use clk or have hspl on my hd2 but I have been experiencing data freezes with PPP on my cm7 based rom American android. After checking logs and observing the battery stats I noticed (for me at least) that the data freezes only happened if the signal was lost when the screen was off or asleep. If the signal dropped when awake or browsing it quickly reconnected. I thought I'd mentionthis to leTama:

He suggested mentioning it here:

Anyone have any thoughts on this? Can anyone confirm sleep drop? Maybe its just me!
[HD2 Android NAND Development] j45p41:
Wow that would be great to have cwm included in the nbh. This will then become the only way for all those people like me who's usb has been damaged through wear and tear - I am sure we are a minority but would really appreciate the help!!
[HD2 Android NAND Development] Unconn:
Most Froyo builds have Letama's modified ril_wrapper. It brought PPP to a stable state in the SD days. This ril_wrapper has survived and is also useful in NAND based PPP Froyo ROMs. It seems that Gingerbread has a different problem as the ril_wrapper is there and operating, but the PPP connection goes live again, but never reconnects. This morning I was checking this and after losing connection ppp0 still have the same IP address from before the disconnection. It thinks it is still connected, but in reality it has never re-tried.

If you just want to install a NAND based MAGLDR rom then just pop out your SD card and copy the Rom you want onto it and them put it back in and go into ClockworkMod and flash your ROM. If you want to switch to a different bootloader (cLK) then I would try to find a way to do it through USB (new cable, get phone repaired, etc.).

This is not what I am experiencing. I can get it to lockup with the screen on by either going into an elevator, or making a call while on 2G. I have watched both happen multiple times with teh screen on.
[HD2 Android NAND Development] j45p41:
Hi Unconn the issue is that I think you need to a usb port to flash cwm. I know I can install magldr from sd and install the rom from sd after I have added cwm via usb. So I am still stuck without a working usb port. This is why i was seeing some hope with clk including cwm in nbh file.

Thanks! :) :)
[HD2 Android NAND Development] Unconn:
Sorry, that is what I get for skimming. I understand now and will let you know if I think of anything.

EDIT: Ok. I have done it.

- Copy the recovery.img to the root of your SD card somehow

- download ConnectBot from the market and chose to connect local.

- type:

SU

- type:

FLASH_IMAGE RECOVERY /SDCARD/RECOVERY.IMG

- Try to boot into it. For some reason it will hang at least once when going into the new recovery. Pop battery and try it again. Give it about a minute it should go in, otherwise try booting into CWM again, but I have only had to do it twice. Never had to reflash.

Note: replace recovery.img with what ever the file name is. I have tested this with MAGLDR just now and flashed from S.ClockworkMod v3.0.2.4 to S.ClockworkMod v3.0.1.4. This should also work just fine on cLK as the Recovery partition is labeled and mounted the same in most ROMs AFAIK.

Unconnected
[HD2 Android NAND Development] shagratt:
-deleted , sorry posted in the wrong thread -
[HD2 Android NAND Development] arif-ali:
are you sure you are in the right thread???
[HD2 Android NAND Development] JDM Civic EG8:
Sorry to sound like a complete noob but would I use this to patch kernels to work with cLK?
[HD2 Android NAND Development] arif-ali:
No, this is only to compile cLK, and only cLK. So once you have done the howto in compiling cLK

To compile a kernel, this is just an example

mkdir $HOME/kernel-cLK
cd $HOME/kernel-cLK
git clone git://gitorious.org/~arif-ali/linux-on-wince-htc/aa-mdj-s.git
patch -p1 < $HOME/clk/cLK/patches/kernel_clk_power_collapse.patch
patch -p1 < $HOME/clk/cLK/patches/kernel_off_mode_charging_panel_init_crash.patch
patch -p1 < $HOME/clk/cLK/patches/kernel_reboot_reason.patch

now compile the kernel in the normal way.

I use the following script

build.sh
[HD2 Android NAND Development] Satyan:
Crash with CLK

here is the Screens requested for the CLk.
[HD2 Android NAND Development] Nevod:
I have always thought that Radio is agnostic to connection type and it's the OS that defines connection type, seems that I wasn't right.

If MAGLDR really does upload part of Desire's radio instead of HD2's original radio, then, I guess, making PPP stable by whatever means would be much less of a hack. After all, as far as I get it, it's not that RMNET is native for Android, it's just that HTC decided to use it on Qualcomm devices, and RMNET itself is Qualcomm's development, so non-Qualcomm based Android devices use other forms of connection.
[HD2 Android NAND Development] j45p41:
Hello mate. This looks great. You may have seen a post from me earlier where I have a broken USB port but have already flashed hspl 2.08. Does this version include CWM in the nbh? if so (and I know it carries risks) I can just install clk via sd and then install a rom from a zip file from the SD.

Funny thing is that most people who have a HD2 and have put it through normal use will probably get a faulty micro USB (bad design by HTC, I feel - on an otherwise amazing and timeless device) and will have to resort to this method. :))

Again thanks in advance for the great work you are doing (you can see that I am really keen to get a NAND ROM in my handicapped state!)
[HD2 Android NAND Development] Satyan:
133 error

this is what i get for 133 from the 1st post.
[HD2 Android NAND Development] wiQbold:
I like that bootloader, I think a little bit more than magldr.

Q: Can i use last 24MB of nand with this?

A: NO, SPL will erase them. When i have some time i may try to fix it.

Does that mean the last 24mb of my 250mb data partition is garbage after reboot?

I like the direct flow bootanimations and the integration of Bootloader&Recovery reboot.

I have to go in airplane made, after I ve used wifi, to have mobile data connection.

But it s a powerfull alternative to magldr

keep it up
[HD2 Android NAND Development] mago988:
how do I install the patch to charge off the phone ? I did not understand!!!! Pleaseeeee
[HD2 Android NAND Development] stirkac:
no need to do it, it's old info..

check my sig ;)
[HD2 Android NAND Development] mago988:
thanks I will try to load by turning off the phone
[HD2 Android NAND Development] lorezz:
so,after reading everywhere about this argument,i still not understand the difference between clk and magldr....apart from direct reboot from android to recovery and the ability to charge while phone is off....

can someone help me^^....I would like to switch to this loader....

thanks in advance....
[HD2 Android NAND Development] arif-ali:
The other thing is that it is Open-Source. so it is likely that more people can get involved if anyone else knew how to get things working.

There's nothing more to understand. other than the points you raised and the one above. personally, I use it because of the off charging, and the fact it is open-source, and the fact that between boot flashes it is faster.

I like the fastboot facility as well as the reboot to recovery, it makes using my phone so much easier. Not to worry after reboot that you have to keep button pressed to get into recovery or fastboot
[HD2 Android NAND Development] lorezz:
so,i have to flash clk and then cwm in fastboot mode....?
[HD2 Android NAND Development] arif-ali:
yeah, that's right, check out the great howto by stirkac in my signature.
[HD2 Android NAND Development] pHOBIAZ7:
How to remove it? Please reply asap !
[HD2 Android NAND Development] arif-ali:
You can remove it by either loading MAGLDR, which will replace cLK

or you can load the stock rom from your service provider, which will remove everything and go back to WM6.5
[HD2 Android NAND Development] seadersn:
no way for removing... it's burnt in forever :)

the usual way: flash winmo, or simply flash magldr over.
[HD2 Android NAND Development] `SBR`:
Hi Arif, in your Sig it's mentioned as cLK 1.4, is it offically released, any changelog from 1.3.3?
[HD2 Android NAND Development] karendar:
cLK 1.4 has nbgen support... I know it was explained a while back by Cedesmith as to what nbgen is, but... Yeah.

Found it! http://xdaforums.com/showpost.php?p=12498709&postcount=949
[HD2 Android NAND Development] lorezz:
edit: wrong topic....
[HD2 Android NAND Development] T-Macgnolia:
Ok I am currently reading through this interior thread I am on page 21 right now and maybe I should just keep reading as I know the answer is in the thread some where. But I can get clK to flash to my HD2 without any problem but I have no idea of how to flash CWM to it. I will keep reading through the thread though.

I am currently running Hyperdriod on my HD2 and had no problems with installing .MAGLDR and then CWM then the ROm via SD card. I have flashed clK like four times now and just can not figure out how to flash CWM so I can flash my ROM. Also I am wanting to add a complete how to install and hoe to use clK to my guide I wrote that is in my sig.

Any help here would be really appreciated. Thanks!
[HD2 Android NAND Development] arif-ali:
First of all you will find a guide created by stirkac on post 3, If you can't find it there, there is a link to it in my signature, if you still have problems, then let me know
[HD2 Android NAND Development] T-Macgnolia:
Thanks arif-ali not only for the tip but for all the work ypou have done on clK cause I have been seeing all your post in the thread.

Also the guide you directed me to is great I will have to link to it in my guide, have you checked my guide out?. But just so you know my guide is not just a how to install guide but a educational tool also that I hope will help users understand why the thing the have to flash are reacquired to be installed, how they function on the HD2, and what each function of each separate program does like what each option of CWM, MAGLDR, and clK which I have not gotten to test much yet but seems to me to be better for the average user for Android on the HD2. PM me if you have any suggestions please, and thanks again I hit the thanks button for you.
[HD2 Android NAND Development] T-Macgnolia:
Ok I tried for like 3 hours to get cLK to work. I did get CWM installed using stirkac's clK.zip installer. Although his method is more automatic, I had to reboot my device manually while it said waiting on device for it to work. I don't think I was suppose to have to do that cause his pop up box instructions said the phone would reboot and to hold down the home button. I did this like five times and all five times I had to reboot my HD2 using the reset button on the back. Also I tried to install by following stirkac's cLK for dummies and cLK for dummies V2. I got cLK flashed fine and finally got recovery flashed using this method and flashed my Hyperdroid ROM via CWM, but when I rebooted no joy it did not boot the ROM. the default partition is 150mb and that is the same size portition I used to install it with MAGLDR. I have no idea what I am doing wrong here.
[HD2 Android NAND Development] arif-ali:
Did you download the cLK version of the Hyperdroid, as you cannot flash the magldr verison, as that will not work?
[HD2 Android NAND Development] T-Macgnolia:
Ahhh this may be my problem. I only have the first .zip file that is linked in the thread. I will have to download the cLK version. I feel like a complete dumb ass now, I guess that is what staying up all night will do for you I will download the cLK version and report back here later as I will have to travel to a WiFi location to download it thanks arif-ali.