yashsingh1/xdaforums huggingface dataset:
[HD2 Android NAND Development] arif-ali:
Grab one from one of the ROMS

to unpack

mkdir initrd.tmp
cd initrd.tmp
gunzip -c ../initrd.gz | cpio -i

make your modifications

then to pack it back up again

find .|cpio --quiet -H newc -o|gzip -9 -c - ../initrd.gz

I hope that helps
[HD2 Android NAND Development] stirkac:
cede, could you please rename thread? :P
[HD2 Android NAND Development] g30rg10u:
thanks!!!!
[HD2 Android NAND Development] Yom:
Does this kernel have /cache going to /data/cache? Or do we need the 44MB /cache partition with it?
[HD2 Android NAND Development] tytung:
Having /cache going to /data/cache is done by initrd.gz (see /init.rc) in ROM, not the kernel.
[HD2 Android NAND Development] velayo:
Why are there people with v1.4 in their sigs? Did it come out already on irc?
[HD2 Android NAND Development] Unconn:
...and because the OP is not getting updated, this is the sort of thing that could kill this bootloader (well, that and PPP disonnection). Mis/ or lack of communication. OP needs to be updated or a new thread started. IMHO

Unconnected
[HD2 Android NAND Development] zach.antre:
you can find 1.4 in CWM thread

http://xdaforums.com/showpost.php?p=11983838&postcount=2
[HD2 Android NAND Development] hehuichao:
How to edit the initrd.gz to support the cLK？
[HD2 Android NAND Development] cedesmith:
i updated 1st post with differences between 1.3.3 and 1.4 as ppl seam to skip till the end of this thread.

as for op changed watch your mouth :mad:..... access to cLK and its source code is a privilege not a right, it's my wish to contribute back to this community, i had no obligation to do so.

i kind of got tired of all demand on pm and this kind of attitude.

p.s. thanks to the one who donated 5euro
[HD2 Android NAND Development] pongster:
Thanks for the info... looking forward to see the new developments you have planned... :D
[HD2 Android NAND Development] :
Keep up your good work, clk is working great and Im looking forward to future releases ...hopfully with a bit more stable ppp connection. People here should show you a bit more respect imho and should also thank you for spending your freetime to it...

Coffe is unhealty...anyway:

5M604699UD316942Y

:)
[HD2 Android NAND Development] icsulescu:
One coffee from me too... :P 1CW97420MU173750X

Regards,

Me
[HD2 Android NAND Development] arif-ali:
When I read this, I was surprised. This is the kind of comments that de-motivate devs, I know it would with me.

cedesmith stated in the threads that there was no difference in the code a while ago. why don't people read threads?

The devs contribute, because they enjoy developing in their spare time. they don't have to

"If you can't say something nice, don't say nothing at all."

want to help, and want to give more coverage

help with developing

help the users in this thread

add cLK links into your signature (this will get to more users)

The last point. I have done this with one of the things I use, and has given it more coverage.

@cedesmith, keep up the great work. cLK work is a fantastic.

just my 2 cents
[HD2 Android NAND Development] stirkac:
taken words out of my mouth.

cLK will survive nomather what anyone says. only magldr is going down with HD2 (in 1/2 year imho). clk can(and probably will) be ported to other devices.
[HD2 Android NAND Development] XsceneXhippieX:
the only thing keeping me from using clk over magldr at this point is the necessary fastboot command to flash clockwork, could this step be integrated into the ruu? as in flashing clk+clockwork recovery all without a fastboot command, i have backups compatible with the newest clockwork and a backup kernel to flash if the backups give a kernel error im just too lazy to use fastboot lol i just figured if there are one click rooting methods for native phones the simple to use programs that use one click exploits necessary to flash cwm should be easy to conjur up for the hd2, just a thought to make clk more user friendly for those who are wayyyy too lazy (like me) i will end up flashing clk eventually, but i can always hope that it will become simpler before i do right? lol
[HD2 Android NAND Development] polo735:
It seems a little daunting but if you follow directions well it should be a piece of cake. Clk gives the ability to use rom manager and reboot directly to revovery... plus it's open source. Well worth your effort.

Sent from my HTC HD2
[HD2 Android NAND Development] stirkac:
check my installer:P lol automates cmd, ruu, al into one step..

hmm, i'm in coding mood right now, i may do some work on it and release better version :)
[HD2 Android NAND Development] XsceneXhippieX:
Well thank you! And I know it is simple, but I am just lazy :p if you update your installer I'll be on clk as soon as I know about it, all the perks from this boot loader over magldr make it dumb not to switch lol, rom manager compatibility has been something I wanted since day one of nand on the hd2, and the ability to boot directly into cwm sounds like a dream to me!

Sent from cyanogen mod 7
[HD2 Android NAND Development] Unconn:
EDIT: I see that I used OP an opening post, and you seem to have thought I meant OP opening poster. The opening post can be updated. You do not need to be removed as the OP though. :-/ :END EDIT

I am sorry it cam across so negatively. I appreciate the work that has been put into this, while also realizing that you also have a life outside of this. I have been a supporter from the start.

I hope you do realize that I have seen in a few ROM threads where people are asking where to get 1.4. It was even asked in this thread. I think it may be because of this:

The title of this thread is:

[15MAR][BOOTLOADER]+[RECOVERY] cLK v1.3.3

The first post is entitled:

[15MAR][BOOTLOADER]+[RECOVERY] cLK v1.3.3

And the heading of the first post is:

cedesmith's (L)ittle (K)ernel bootloader v1.3.1

I can see that the first post was edited to show the difference between the two, but when people are running 1.4 others want to know where to find it. I saw a post the other day that asked where to get 1.4 and the responder told him to download it from the Clockwork thread.

Again, I am sorry for "this kind of attitude".

Unconn
[HD2 Android NAND Development] Derek0228:
could someone please make a boot.img with the latest CLK crawling initrd + tytung's r9 zimage? i said please, :D :D
[HD2 Android NAND Development] piipo4:
I've definetely come back to clk... i've solved ppp issue with TASKER... every time my display go off, it turns off data connection,,,every time display is unlocked it turns data connection on... and really cool...my battery go on for 2 days without charging... :D:D:D
[HD2 Android NAND Development] :
the data connection dies every time, when i lost my signal...so it wouldn't happen if my data connection is off!?...but then when you lost the signal while your screen is on it would also die...

And with this solution all background tasks like facebook, twitter, especially push mails wouldn't work anymore...
[HD2 Android NAND Development] osenevp:
Does any one tried to edit build.prop values to find a workaround with ppp?
[HD2 Android NAND Development] stirkac:
it's easy just copy initrd from /boot/ in zip of rom that has it(probably yours) and do same for zImage in tytung update zip to same folder where you have fastboot

then type: "fastboot -c "" -b 0x11800000 flash:raw boot zImage initrd.gz" and youre done. reboot with "fastboot reboot"

i think i know you, are you that guy that got me wp7 key on irc some while back? i was slovenec there:P
[HD2 Android NAND Development] piipo4:
this way I've never had problem with data connection... i not interested in facebook push notification... so for me it's perfect
[HD2 Android NAND Development] Unconn:
I actually quite like this idea. There are battery saving apps that will turn on your network for a few minutes ever hour when the screen is off (help me here, I can't think of one). I may well have to try something like this. I need data when the screen is off, but not constantly. it is not like I am streaming. A couple of minutes ever 15 minutes sounds like a good place to start for me.
[HD2 Android NAND Development] lorezz:
where can i find clk 1.4....?
[HD2 Android NAND Development] arif-ali:
check the OP,

First of it's the same as 1.3.3

Secondly, it was released so that compilation worked in Linux, and that's it

thirdly, it's slightly smaller

functunally, it is exactly the same as 1.3.3

If you are that desperate, follow the links in my sig

BTW, please search the thread. why don't people do that !!!!!!!!
[HD2 Android NAND Development] A11-STAR:
They like to talk to you. ;)
[HD2 Android NAND Development] tyween:
Just download my latest ROM and you will have it ;)
[HD2 Android NAND Development] Derek0228:
Yeah I did that :P
[HD2 Android NAND Development] Derek0228:
Yes, I am, you haven't been on irc in a while. I know its you cuz you told me your XDA nickname :P.

And yeah i know about the fastboot command, I just don't like to rely on a PC.

Btw get on irc sometime (not gonna be there today though), lets catch up. :)
[HD2 Android NAND Development] piipo4:
"TASKER" is that app... you can auto turn on/off data connection, start autosync at certain time and much more ...you can download it from dev web site and you have 7 days free trial (from market you can only buy it) ...so you can find out if it fits to your needs
[HD2 Android NAND Development] MontAlbert:
anyone able to help with this? I have had tasker for ages but never really figured out how to use it to its potential- i suppose you would need tasker to turn data connection off when screen has been off for a certain amount of time (and it would be good if it didnt do it while downloading etc was active...

how would i go about setting this? or you could get it to do the killall rild script somehow....
[HD2 Android NAND Development] Unconn:
LOL.

10char.
[HD2 Android NAND Development] Unconn:
I was thinking Green Power:

https://market.android.com/details?id=org.gpo.greenpower

It can set your network to go off for a few minutes and then on for one more. It will keep it on while the phone is awake or if it is actively using data (like downloading a large e-mail with screen off.

I would switch back to cLK, but I am going on a trip and will need WiFi tethering. I have not run into a kernel CM7 combo that works for PPP - WiFi tethering yet.
[HD2 Android NAND Development] j45p41:
Hello mate, any news on having a version of CLK with integrated CWM in the nbh so that people with a broken usb can flash via sd card and become part of the users of nand based roms?

I bet there are many out there that have this issue as the design of the otherwise untouchable hd2 is flawed with a weak USB connector.

Thanks in advance.

:) :) :) :)
[HD2 Android NAND Development] Beretta93:
Hi, I have GBX installer with cLK 1.3.3. I think it's not better than MAGLDR, just different, with its pro and cons of course. But pros are more interesting for me with cLK.

I think ppp grants bandwith than rmnet. Of course, data drops are unconvenient, but occur not so often so it's ok.

My question is : how can I make rom manager work with cLK's recovery?

When I try to do anything with rom manager, it proposes that I download clockwork recovery before anything, including OTA updates (which are for me the most interesting feature with cLK). So it gives me a list of recoveries to download and install, and of course, HD2 is not in the list...

I have seadersn's cLK_1.3.3_recovery_3.0.2.4 installed.

Thank you for helping with this.
[HD2 Android NAND Development] Unconn:
I assume you mean you just want to add CWM after you have flashed cLK from the SD card? (not recommended BTW)? If so:

NOTE: Do not do this for now. I have missed a step of where you actaully get a NAND based Android ROM onto your device so that you can flash recovery from Connect Bot.

From this link:

http://xdaforums.com/showpost.php?p=12677093&postcount=1011

If that fails with "flash_image not found " then try this link:

http://xdaforums.com/showpost.php?p=12703988&postcount=287

Unconnected
[HD2 Android NAND Development] arif-ali:
You need to create the following file on your sdcard, and reboot the phone. Hopefully after this, ROM Manager should work.

/sdcard/clockworkmod/.settings

with the following contents

{"is_clockworkmod":true,"current_recovery_version":"3.0.2.4","readonly_recovery":false,"recovery_timestamp":1300214577721,"flash_recovery":"flash_image recovery %s ; ","reboot_recovery":"","detected_device":"leo"}
[HD2 Android NAND Development] mezcal9:
Well, I can tell you how I did it.

Select Desire HD and let Rom Manager install it.

Then immediately reboot to bootloader and use fastboot to reflash your recovery back to seadersn's 3.0.2.4.

Rom Manager will show the wrong version of recovery (not sure how to fix this) but will work correctly for everything

EXCEPT

OTA updates which, afaik, do not exist for LEO.

I believe Charnsingh is working on this...

Thanks for the corrections guys.

Time to switch back to Charn's build and attempt arif-ali's more elegant Rom Manager solution.
[HD2 Android NAND Development] seadersn:
they exist already. his final is out, also available through rom manager, of course.
[HD2 Android NAND Development] arif-ali:
+1

just checked rom manager

CM 7.0.0 final, RC4 and RC2 are available from charansingh

Hyperdroid GBX v11 and V12 are also available
[HD2 Android NAND Development] mezcal9:
Hmm. Just tried overwriting the data in my existing .settings file with the code arif-ali posted above.

The copy/paste/save works fine and the modified file will even survive a reboot.

However as soon as I launch Rom Manager the file contents revert back to what they were before I modified them.

Tried again clearing cache and dalvik to no effect.

I have no idea where Rom Manager is getting the data it is using to revert the .settings file contents back to the incorrect values.
[HD2 Android NAND Development] Beretta93:
It worked. Thank you.very much.
[HD2 Android NAND Development] Timp74:
Flashing roms from OSX/mac

So does this make an HD2 more like a native Android phone at the bootloader level?

I have OSX. Without windows, using MAGLDR I can't repartition the NAND or flash roms using CustomRUU. I tried VirtualBox, but there is some weird low level USB stuff going on that doesn't work from the virtual machine.

The Android SDK and fastboot command are available for OSX. So if I install cLK, will I be able to use fastboot to change partitions and flash them?

Thanks,

Tim.
[HD2 Android NAND Development] Dasf77:
Thanks, worked great :D
[HD2 Android NAND Development] seadersn:
nope, you need customruu.exe to flash at least cLK, which is providing the partition layout :( only possibility with mac: try flashing cLK with sdcard method, which is not recommended because it can brick your device! some did it successfully, but pls don't rely on that; i'm not recommending this!

best would be to visit your se*y neighbour and ask her for using her win machine ;)
[HD2 Android NAND Development] icsulescu:
Maybe a PPP workout

For the one that have issue with data connection drop you may try the following (I have had the privilege to have cedesmith on my phone :P ) with Root Explorer on system/etc/ppp ,open in text editor, option file and delete everything from there except defaultroute and usepeerdns then save it (do not worry it will make a backup of your original file) then delete options.smd and options.smd1 (do not worry it will be recreated after reboot) then reboot the phone.

Regards,

Me
[HD2 Android NAND Development] :
Will trying that after work and give a feedback soon.
[HD2 Android NAND Development] AirwolfUK:
Gave this a try and so far it seems much more stable.

I did get the robotic voice and my wifi keys were lost (assume having deleted the .smd files?) but data stays connected during a call and returns after turning of a wifi connection. Before i didn't get the data connection back..

More testing required as still early, but looks promising

Edit: During a long call, dropped the data connection and the call itself. Now after the call has finished, no data
[HD2 Android NAND Development] l0rdsheva:
ok, seems that data after call is running now! wow!
[HD2 Android NAND Development] :
Forget it... noticed, that I was back to magldr.
[HD2 Android NAND Development] Timp74:
Hi Seadersn,

So is that to say:

1. If I get the cLK nbh file flashed via sdcard(or my neighbour), I should be able to use the OSX fastboot command to flash roms when the phone is in the boot loader?

2. The NAND partitioning in cLK is defined by the cLK.nbh file itself? So to repartition I would need to flash another cLK with a different layout? (In MAGLDR you can repartition the NAND using a 'USB tty' connection and the 'ad ***' commands. But I still can't reinstall CWM without a real windows machine. :( )

Thanks for your help.
[HD2 Android NAND Development] arif-ali:
1. yes that's right

2. again yes
[HD2 Android NAND Development] DimICE:
not working for me

connection drops after call
[HD2 Android NAND Development] g30rg10u:
I ve been reading about SD flash might harm the phone. I am not in position to doubt that or say that its BS.. i just want to share my experience.

I ve been flashing cLK since day 1 only via SD card. I use my very OEM SD Card class 2 8GB. I ve never had problem with the flashes, and believe me, i have flashed different versions of cLK for my own build's needs more than 50 times.

For me, >50 successful times = 100% success. Was I just lucky? i dont know.
[HD2 Android NAND Development] j45p41:
Wow that is wonderful news!!! Thanks for taking the time.

So just to understand:

Initial conditions: WM6.5, HSPL2.08, No USB

So if I install CLK first then will it let me boot into windows and then android (on this occasion via SD card) and then I flash the recovery.img. Reboot and the install NAND android via SD card.

Thanks again and sorry if it is a dumb question - your help is very much appreciated sir.
[HD2 Android NAND Development] arif-ali:
I do the same, I have only flashed cLK a few times using windows, and the rest of the time it has been via SD card. The warning is necessary, just in-case it does happen, and then people don't blame us for the phone getting bricked. There may be a chance, even if it is a very tiny chance.
[HD2 Android NAND Development] stirkac:
well i own htc topaz, and people over there flash mostly through sd..and on original diamond too. tg01 is flashed only through sd.. those are all devices i used for quite some time and i flashed rom more than 1000x altogether. only (half)brick i got on PC while tryin to flash Omnia when windoze failed and hanged.

to the point: i bet sd is even safer, in case that power goes down in wrong moment during flash on PC or in case of hang for example...
[HD2 Android NAND Development] giorgio130:
Hi to all! I read in this thread a little about RMNET support and how this is possible in magldr using parts of desire's radio... then I came up with this idea: what about using the Huashan radio on the hd2? Has anyone tried this? If it's compatible, since in newer roms it's running android natively, maybe less hacks would be needed to have stable connections?
[HD2 Android NAND Development] stirkac:
no go man. desires radio is almost identical to leo, but flashing it->brick. we are talking low(-est) level stuff here, no shortcuts...
[HD2 Android NAND Development] cedesmith:
beta libhtc_ril_wrapper

you know what they say: "If you can't take Mohammed to the mountain, take the mountain to Mohammed"

so here it is, a beta version of my libhtc_ril_wrapper with following features:

- super stable ppp connection tested a lot by dropping my signal (lucky me i have low signal@home)

- obey /system/ppp file instead of rmnet_mode in init.rc so 1 boot.img fits all ( magldr supports android boot.img tho everyone uses yaffs boot partition)

keep in mind this is still work in progress and things may not work for everyone.

ohh and not to forget: thanks a lot to letema and everyone who contributed to original wrapper.
[HD2 Android NAND Development] seadersn:
nicenice; let's see how it works etc :)

thank you, maestro :)
[HD2 Android NAND Development] arif-ali:
Your the man!!!!!!!

thanks loads!!!!!

Is this only for Froyo, or will it also work with Gingerbread
[HD2 Android NAND Development] cedesmith:
gingerbread

it is compiled against libs from cm7, i don't know if it works with froyo but it should
[HD2 Android NAND Development] l0rdsheva:
just pushed the library; tried to navigate and make a call. Connection stay on. have to test for some day. Thank you!
[HD2 Android NAND Development] zach.antre:
will test asap
[HD2 Android NAND Development] DimICE:
seems not working for me... connection drop after call...
[HD2 Android NAND Development] Timp74:
I read somewhere that flashing radio nbh files from SD can be an issue with some types of SD cards and I imagine it depends on the currently installed radio version... Rumor? I dunno. But it would make sense that a bad flash of the radio would brick your phone.

I flashed the radio on my HD2 a number of times from SD without issue. I'm now working on the assumption that if flashing from SD works with the installed radio, it should always work... and well, flashing cLK shouldn't effect the radio right? But then don't I don't really have that much experience in these things, so don't take my word for it. :)
[HD2 Android NAND Development] wolfpack612:
testing it on imilkas hd2.0 rom, clk w/ raf1.9. so far everything seems ok. I can browse during a call and didn't drop afterwards will keep testing throughout the day.
[HD2 Android NAND Development] Unconn:
Well, no. I think I may have missed a step in this process since you are in windows and once you flash cLK you will NOT be able to boot into Windows anymore. What we need is a way to flash a ROM or Recovery after (or during) cLK flashing. Let me think and I will edit this post. The problem with my previous steps is that I assumed some things that you will not have.

cedsmith, a way to get around this might be to ask to flash recovery.img from SD card if it was not found? does cLK contain flash_image or something like it?

Sweet. I may actually test this before I get back off my vacation. LOL
[HD2 Android NAND Development] ~~Tito~~:
Awesome, awesome, awesome! I will download as soon as I get the chance, I have a semi-solid data connection(have to reboot to get data sometimes) but the signal fluctuates wildly, I will let you know if this fixes the problem.
[HD2 Android NAND Development] zach.antre:
After testing this with UD 3.2.5 v2, it was acting like i didn't have a sim card after reboot.

Didn't ask for pin

I couldn't toggle Airplane mode and back

No signal...

Just like it is without a sim card.

I have copied the files with root explorer.
[HD2 Android NAND Development] Derek0228:
I can confirm this works because now I have data on latest charansingh cm7, which has rmnet_mode in init.RC :)

Great job cedesmith :)
[HD2 Android NAND Development] shahzads:
how can we make a clk rom
[HD2 Android NAND Development] Ironjer:
Hi can you send me the cLK necessary files for install imilkas hd2.0 rom? thank you!
[HD2 Android NAND Development] wolfpack612:
wifi doesn't work everything else seems ok. you're welcome to try it. install the rom like you normally would and without rebooting install one of the zip files.

raf1.9

http://www.multiupload.com/36s2s3MRRS

tytungr9

http://www.multiupload.com/DI001Y7Q8E
[HD2 Android NAND Development] zach.antre:
Cedesmith, just a question...

with this libhtc_ril_wrapper.so we can have 1 unique build for both? MAGLDR and cLK?

initrd for RMNET + libhtc_ril_wrapper.so for PPP?
[HD2 Android NAND Development] charnsingh_online:
Is it specific to clk cuz i am thinking of making a single rom for both clk and magdlr
[HD2 Android NAND Development] ryohazuki:
adb pushed the new libhtc_ril_wrapper.so to my device, and I have no service what so ever. Toggled on and off airplane mode and I keep trying but nothing. Any idea what I could be doing wrong? I'm using hyperdroid GBX v12. I'm sure it works fine for others, and would love to get it working as data droppage is the only thing that SEMI bothers me about CLK, other than that, CLK is perfect to my eyes.