yashsingh1/xdaforums huggingface dataset:
[HD2 Android NAND Development] Lint6:
Got this after trying to do seadersn's CWR..but I was also trying to do clk 1.3 over magldr at the same time, so I dunno if its an error with cwr or clk..it lists the sizes of the partitions, then gets to

[750] fastboot: processing commands

and just stops...anyone can help?
[HD2 Android NAND Development] arif-ali:
That's not an error, you are in fastboot mode. You need to press the home button if you want to go into CWR

fastboot mode is is used to flash the recovery, system, ... etc
[HD2 Android NAND Development] dbshane:
It is good. Everything works.
[HD2 Android NAND Development] Dasf77:
Hi Pongster,

Could you provide support to clk with a patched kernel?

I have tried the ones in post #3 but wifi get's stuck, wont turn on.

I havent tried this one that seems to work but i really would like your work.
[HD2 Android NAND Development] pongster:
I use tytungs source, so until it works properly with his kernels, it will trickle down to all that use his kernel and his sources....

Sent from my HD2 powered by HyperDroidGBX
[HD2 Android NAND Development] Unconn:
I understand that you do not need this,and I understand that you started this for yourself, but what I am hoping that is if we can get the disconnections fixed (or get RMNET driver) that this will get more support from the community. It may reverse though and you may get more support,and because of this have help fixing the dropped connections one way or the other. Also, I DO want the dropped connections fixed even if it is not a problem for you, but I do not expect you to have to put in the effort to fix it necessarily. (You want some logs? :-))

What is happening as far as I can tell is that the mobile data connection drops to nothing or near nothing and the phone resorts to trying the lowest speed (but highest distance) connection it has. Call it Edge or 2G. It sends connection packets until it decides to give up. At this point it notifies the OS it has been disconnected. For some reason at this point PPP either hangs or never tries to connect try again. I think it is the later. If it was a driver hang or some sort there would be errors and telling the phone to try reconnecting by using Airplane mode would not work. this is just my theory from almost 2 decades in computers and troubleshooting. i am not a kernel nor driver dev though...

Every time I go into the underground parking to or from work I am disconnected until i catch it and "reset the network driver". I am not sure the PPP can/will be fixed though as this has been a problem for a long time.
[HD2 Android NAND Development] Lint6:
Yea..dumb me. I've been using a mt4g lately, which has the home button where the send button is on the hd2. Basically...thought I was holding down home :rolleyes:
[HD2 Android NAND Development] karendar:
See that's what's great about cLK, you're doing it for all the right reasons. cLK helps the HD2 feel like a native Android device... And to complete this circle, I feel rmnet is needed. ppp might be an alternative, but Android is rmnet based. If you want your code to be properly used for other devices as you say, wouldn't rmnet be a plus value for those people?

Also, it seems you made cLK for your own curiosity, but us non-programmers don't understand what goes behind coding. If I could, I'd help you get rmnet support, I'd help with rom manager integration, etc. I just don't get why there's so much issues sharing code with some (See cotulla, iamgpc, etc.), Charansingh, pongster, tytung and yourself are the most selfless people I've seen on these forums, they share their experience with everyone.

Love your work cedesmith, you made my HD2 a really nice phone for me. ;) I just wish cLK was supported by more ROMs and kernels!
[HD2 Android NAND Development] 2000impreza:
This is fairly good observation. I've came to similar conclusion on PPP. In addition I also noticed PPP hangs frequently jumping across cell towers. I guess that leaves two options of stablizing PPP or rmnet (if it's possible). I believe Letama did make the code available for his ril wrapper. Not sure if anyone has time to look at it?

I agree, the resistance from some users for sharing code is just ridicilous. I've run into the similar issues with a few things I tried to work on for the HD2. Never had this issue in the Desire community.
[HD2 Android NAND Development] cedesmith:
I think you get it wrong, i said I don't need it not that i don't want it. Read post again and see that i am willing to change the name of this or whatever it takes for the help with rmnet.

Maybe it is worth mentioning for proper understanding that that part was a vent @dan1j3l who said on 7mar in irc "cLK is nice, but we DON'T NEED Just Another Bootloader... :)"

So what i intended to say was: i like clk, i need clk and i am going to use it without rmnet.

As for making rmnet work: i tired but i don't know how to. My knowledge is ~0 in that area. Besides i have little time for phone (have to work too :D) and i proffer to do something that i know how to (see list on post #2).
[HD2 Android NAND Development] hazse:
Hello.

I want 400M system, but doesnt make. Everyone help me make the file?

Thx.
[HD2 Android NAND Development] MrT69:
I know where to do the settings for 400MB or other settings but I'm not able to compile it.

DAMN!!! :(
[HD2 Android NAND Development] arif-ali:
clk 1.3.2 by arif-ali

Here are some that I made earlier

See attachements for the files

Partitioning as below

misc 1M

recovery 5M

boot 5M

system <system size>

cache 5M

userdata remaining

use at your own risk, these are untested by me.
[HD2 Android NAND Development] letama:
Hi guys,

Yes, I did make the code available and there is a quite extensive thread about the wrapper and ppp there:

http://xdaforums.com/showthread.php?t=824413

I spent quite a long time trying to stabilize ppp, last wrapper was working quite nicely for most, and flawlessly for me. There are also some tweaks that helped few specific cases there. Take a look at first topic and 10/15 last pages...

The last remaining main problem is a kernel memory issue that can't be really solved as it's too fundamental in the way tty works. It doesn't appear with all roms, and it can be toned down for the others with a patch and few configs.

Regarding rmnet, well, this is a different animal. Rmnet is mostly implemented in radio, and Cotulla said that our hd2 radio implementation of rmnet is buggy. As it's not used by wince, I'm not surprised.

As I said previously (and if I understood correctly), Cotulla fixed it by hot patching rmnet implementation in radio. This is mostly why he keeps magldr closed source, as he doesn't want to make public the way to patch radio for security reason.

Back on ppp topic, if you can get me some logs (see ppp topic on the log I need) and post it there or on the ppp thread, I'll take a look to see if this is something that I know.

LeTama
[HD2 Android NAND Development] MrT69:
Thanks a lot m8!!! Great :)
[HD2 Android NAND Development] seadersn:
@ arif: i've made more :p

here they are: 100mb to 400mb, in 20mb steps. also untested by me, but they should work all.

€dith 14.03.2011: they're working and containing following layout btw:

boot:	5 MB
recovery:	5 MB
misc:	2MB
cache:	2MB (you will need for example pongsters se*y initrd.gz, which links /cache to /data/cache)
system:	as stated in filename
userdata:	rest of NAND
[HD2 Android NAND Development] clio94:
if we flash any of these,we have to use pc to flash clockwork recovery or it is inside;
[HD2 Android NAND Development] seadersn:
clockworkmod is provided in first and second post, you have to flash it after you've installed the layout. how to do this? it's described in first or second post (fastboot) :)
[HD2 Android NAND Development] stirkac:
hi cedesmith i've gotta make feedback since i've been following this thread for quite a while :)

i always wished to try clk but never got time..so i installed it couple of days ago :)

i must say this thing is bangin' :D:D :cool: boot process is so much more "native" and i couldn't possibly find any bugs while using it(magldr has few easily noticable-usb storage not workin, charging..)

i'm only asking you if there is any way to change white splash to black(diamond style) without recompiling? i'm really only discovering all beauties of CLK.. :)

and what i've been thinking about, since most of work is being done out of CMD, maybe you(or anyone) could make Batch script that would install all things with minimal effort to newbs. also a tool for converting daf->android images would be nice. just tryin to spread clk love, leave magldr to wp7 loosers :P

thanks
[HD2 Android NAND Development] pongster:
@cedesmith

Quick question: I'm trying to add support on my ROM for CLK so I downloaded the tytung_r6 attached on the first page so I could use the ppp specific stuff. I wanted to test the stability of PPP with my ROM and kernel first before letting some of my testers try CLK out. That's where I ran into small challenge. When enabling data checking the connection still says rmnet even if the system has not loaded the rmnet.ko module (based on the 01modules and 97ppp in init.d) and I have no data at all. Removing the "ppp" file from the /system enables my rmnet.ko to load and I get data but that's not what I was planning to do. :)

How do I ensure ppp will be used by the data connection? Is there a kernel config I should enable? (ppp is already "=y" so I figured it would work)

I'm still on Magldr and testing PPP, unless its impossible to get PPP connection when on Magldr.

Thanks. I've added ppp as a tethered interface on my ROM as well so as soon as I can get PPP working while in MAGLDR, I can test if Native tethering will work (via PPP of course) :)
[HD2 Android NAND Development] Unconn:
No problem. We are good. I thought the rant was for everyone. LOL.

I am still using cLK and hope to continue. Automatic PPP reconnection would keep me for sure.

I will try and post some logs. I can repeat the PPP lockup easily.
[HD2 Android NAND Development] letama:
ppp/rmnet choice is done by lib_wrapper depending on rmnet_mode parameter. Check your init.rc, you should see "rmnet_mode" in ril-daemon line, just remove that to switch to ppp.

ppp is possible with magldr, no problem. Tethering, I'm not sure, I think some did make it work with it, never tried myself though
[HD2 Android NAND Development] pongster:
Will do that... can it be a choice between rmnet and ppp though?
[HD2 Android NAND Development] pongster:
I have this in my init.rc ril line:

service ril-daemon /system/bin/rild -l /system/lib/libhtc_ril_wrapper.so -- -d /dev/smd0 nand_init rmnet_mode

so i just remove rmnet_mode to make it:

service ril-daemon /system/bin/rild -l /system/lib/libhtc_ril_wrapper.so -- -d /dev/smd0 nand_init

and it should use PPP? Thanks!
[HD2 Android NAND Development] arif-ali:
that's right
[HD2 Android NAND Development] pongster:
Is there a way to allow the user to choose between rmnet and ppp?
[HD2 Android NAND Development] letama:
If you want "hot switch", not directly as it is.

Without reboot, init process doesn't reload init.rc afaik. You could change wrapper to support a getprop variable instead of parsing command line, then you would have to kill rild to switch on the fly.

If hot switch is not required, you could do a script that copy the right init.rc to have the desired mode.

And you need to have rmnet as module to be able to unload it to make rmnet0 disappear. Else, activity arrows won't work in ppp mode.
[HD2 Android NAND Development] MrT69:
Ok... Can someone help pls?? I'm not able to get this running... :(

Let's start from scratch:

1. BOOT & VOL DOWN - Install HSLP 2.08

2. BOOT & VOL DOWN - Task29

3. BOOT & VOL DOWN - cLK 1.3.1

4. COMMAND LINE

fastboot flash recovery recovery.img

...waiting for device...

& nothing happens anymore

What the f..k I'm doing wrong?????
[HD2 Android NAND Development] arif-ali:
For MAGLDR, that is easily possible by using a init shell script which modifies the init.rc, and then starts the real init. I do it for the room I am working on, checkout this URL, and take out what you need from this.

This at the moment doesn't work for cLK (but then rmnet doesn't work with cLK), I still need to figure out what the problem is using the cLK dmesg utility

i hope that helps
[HD2 Android NAND Development] af974:
From second post you need to download "adb,fastboot and drivers" then connect your phone to pc, inside the folder there are Android drivers.
[HD2 Android NAND Development] pongster:
the hotswitch idea sounds cool (pun intended)... On the fly via a getprop sounds like a plan. :) How would that happen? Don't know much about making that happen but at least its an option for those that can make it work...

my rmnet is already loaded as a module... nice :)
[HD2 Android NAND Development] pongster:
perfect! will try that out. Thanks! (out of Thanks for the day... 5 Thanks limit) :D
[HD2 Android NAND Development] Unconn:
[Edit] was I that slow? LOL

You may be missing a step:

3.5. Boot holding the Back button.

This will load a command line/shell looking screen. This is fastboot and this is where you run your step 4.

step 5. reboot holding Home key to get into CWM.
[HD2 Android NAND Development] MrT69:
Thanks m8! But strange things happens here...

I have had currently the default O2 WinMo (1.72.x) installed on the device. After doing all steps nothing happens when I press the back key.

Now I was trying to install MAGLDR on the device just to double check if it's working at all. But nothing happens. Even MagLDR 1.3 is not running.

...hmmmm... at the moment I'm flashing the WinMo 3.something WWE software to the device and try it again.

...that's funny... :)
[HD2 Android NAND Development] MrT69:
O.K. - now the back key is working!

This will mean that you are not able to flash the device without pre-flashing the 3.14.40x software on the device.

Good to know... :)
[HD2 Android NAND Development] af974:
Hello guys,

what to do if the kernel is CLK patched but there is not a boot.img?

This project is very interesting but, IMHO, it needs a clear guide "How to" for having more people interested.
[HD2 Android NAND Development] Novembre5:
I believe you need to flash the kernel using fastboot. Look at this post Here
[HD2 Android NAND Development] af974:
Wow, that was fast...thanks, i didnt see that post, i'm going to try tomorrow.

EDIT: Thanks, it works fine :)
[HD2 Android NAND Development] mattfmartin:
Anybody using typhoons build on clk? I can't d/l any apps from the market. Does anybody know why that could be?

Sent from my HTC HD2
[HD2 Android NAND Development] seadersn:
it's the same for me here, too :( some apps aren't installable. there are some more people who say that this is the same for them. same build on magldr = no problem.
[HD2 Android NAND Development] pongster:
Update on PPP on my ROM (for CLK support):

PPP works after arif and letama's inputs... Thanks guys! Its proving to be quite stable and fast...

However, everytime I enter the ROM, the Native WiFi Tethering icon is there even if I've disable Native WiFi Tether... Tethering works though, but I can't seem to remove the icon... on my rmnet only build, the icon only shows up when enabling it and disappears when disabling...

any clues as to which ppp file or something I have done to enable PPP Tethering makes the icon refuse to disappear? :)
[HD2 Android NAND Development] af974:
For me it works fine, though i've changed the kernel.
[HD2 Android NAND Development] seadersn:
which kernel or better initrd.gz do you use? i've found out that in tyweens init.rc build.prop the dns server has been changed to the opendns one. maybe this causes this...? don't know, will test it.
[HD2 Android NAND Development] mattfmartin:
Yea its weird half of them wont d/l. There is still space left because it still d/l others right after. Im using rafpinga_1.8_oc... Used whatever initrd that came with 2.5.5... THen i tryed 2.5.6 which has a modified initrd by Crawling, but i dont think thats the problem, as its doing this in both builds with differnet initrd.

Wonder if it has to do with the layouts? I tyrd with 100,120,150,200 still no d/l from market on some apps
[HD2 Android NAND Development] seadersn:
it isn't the dns settings :( deleted in build.prop and checked resolv.conf (normal).
[HD2 Android NAND Development] seadersn:
Aborting request for download 24: not enough free space in internal download storage, unable to free any more

could the only two mb in size cache partition on my layout be the reason...? i thought, cache then is merged automatically in userdata/cache...

[52] DownloadManagerBroadcastReceiver.startNextDownload(): Found Paused URI null
[52] DownloadManagerBroadcastReceiver.startNextDownload(): No more paused downloads.
[52] DownloadManagerBroadcastReceiver.getDownloadStatus(): Unexpected status from download - 498

let's have a look at this errorcode.
[HD2 Android NAND Development] mattfmartin:
@seadersn

What build are you on?
[HD2 Android NAND Development] pongster:
You may need to bind mount /cache to data/cache or symlink to data/cache to get over that as Market needs a lot more cache than it used to. (if you want to set /cache to 2-5mb to get you more /data space).
[HD2 Android NAND Development] seadersn:
@ matt: tyweens typhoon cm7 2.5.4

@ pongster: you've got pm :)
[HD2 Android NAND Development] af974:
I'm using G.Lewarne kernel but, with my big surprize, i cannot test it now because my 3G connection doesn't work with it.
[HD2 Android NAND Development] kikisp:
can someone patch new r7 kernel? thx
[HD2 Android NAND Development] seadersn:
as it seems it is patched already :)
[HD2 Android NAND Development] Satyan:
i have trying to combine initrd from the patched one in this thread to work with Hyper.. cant get ppp /wifi working.

Can i get a link to your working initrd ?

thanks...
[HD2 Android NAND Development] Dasf77:
I haven't tried it yet but it seem that this one work's.
[HD2 Android NAND Development] kikisp:
Guys i have tried clk and i must say that i am in love...its like native android phones...even ppp work really good..good job..
[HD2 Android NAND Development] 2000impreza:
Kernel: GL core v11

If anyone is interested, I packaged GL core v11 kernel with the latest initrd.gz from Tyween's CM7 rom (v2.6). Only change I made to the initrd is for ppp to work. I've only tested the boot.img booting directly from cLK using fastboot. Haven't tested the zip itself, so proceed with caution and make sure you do a nandroid before flashing.

Edit: This is the standard(non ram) undervolt version with the wifi fix.
[HD2 Android NAND Development] af974:
Thanks mate,

did you check if data connection work?

last time that i used it i had my data not working.

Will test an report. :)
[HD2 Android NAND Development] Novembre5:
Thanks. Do you think if you have time you can do the v11UV kernel? Also maybe if you have even more time you can also do the latest Tytung r7? Also, has anyone been able to get imilka's Gingerbread Sense v0.1 to boot? I tried installing and using a patched kernal, but I guess I did something wrong. The HTC quietly brilliant logo keeps flashing and will not boot into system.
[HD2 Android NAND Development] af974:
It doesn't work with latest Tyween's build as he did change initrd, get always bootloop, with 2.5.5 ram edition i was able to get it working but no data connection.
[HD2 Android NAND Development] 2000impreza:
Yes, I did test the data and can confirm it is working.

The GLcore kernel I posted is infact the uv version with the wifi fix. I actually have Tytung's kernel packaged in a zip file as well. Just need a few mins to boot up the linux virtual box before I post it up. To get the kernel working on imika's rom, you probably need to repack the boot.img with the initrd.gz from his from.
[HD2 Android NAND Development] 2000impreza:
I just tested this zip file and appears to work fine for me on the latest build V2.6. No bootloops and data appears to work.
[HD2 Android NAND Development] 2000impreza:
Kernel: Tytung V7

Edit: Removed, see post #3 for updated tytung patched kernel.
[HD2 Android NAND Development] af974:
Since i dunno WTF is happening today with share servers, maybe i have a bad download and V2.6 is corrupted because 2.5.5 works fine, i'll try again tomorrow when i'll download again it.

Thanks again.

EDIT: it works now, just to be sure i made a : fastboot erase boot
[HD2 Android NAND Development] FrAsErTaG:
I tested this with hyperdroid gbx 8.0 but failed to get data on 2g or 3g. Fresh flash of gbx followed by kernel... Any hints to getting this working with my favorite rom?
[HD2 Android NAND Development] pongster:
When I get home I'll attach a modified ppp initrd and my latest v5 kernel based off of tytungs r7 source... (UV to 925 of course) ;) please test that.

Sent from my HD2 powered by HyperDroidGBX
[HD2 Android NAND Development] FrAsErTaG:
Many thanks to you pongster, im off to bed now (aussie)
[HD2 Android NAND Development] pongster:
PPP initrd mod for CLK support for HyperDroid

Here is the PPP initrd mod for CLK support for HyperDroid (and other ROMs as well... note that this mounts /cache to /data/cache.)

Please Un-zip the file as xda doesn't support .gz files for uploading.

(Use Tytung's R7 first... you can use my kernel when its released) ;)

View attachment initrd.gz.zip
[HD2 Android NAND Development] pongster:
Question for anyone who has experienced it...

Is it possible to flash CLK via sdcard? (I don't have a Windows PC with no plans of using bootcamp, nor do I have access to one with all the admin permissions required to flash)

Like rename it to LEOIMG.nbh? will it mess up my SPL? Specifically, can it be made to be flashed via sdcard if it currently can't do that, or is it technically not possible at the moment? :)
[HD2 Android NAND Development] af974:
Honestly i was tempted to do it but had afraid lol.

Check here if could help http://xdaforums.com/showpost.php?p=10553004&postcount=110
[HD2 Android NAND Development] arif-ali:
I just tried it, and it worked for me

thanks, I didn't know this was possible. This is great, no more windows to flash
[HD2 Android NAND Development] af974:
Thanks....brave-heart :D
[HD2 Android NAND Development] pongster:
cool... so you get CLK immediately and can enter fastboot by pressing the back key?

Sweeeeeettt!

Will try it when I get back from work tom... hope it goes well or that's the end of the HD2 as I know it... :)
[HD2 Android NAND Development] arif-ali:
Well, I didn't read the link that you provided, I guess if I had read that, I would never had tried it. I guess luck was on my side.

I have now tried the same flash about 10 times, and it works. But like cedesmith says in that post you put the link to. Do this at your own risk, it could potentially write to HSPL, and then potentially brick your phone
[HD2 Android NAND Development] mattfmartin:
I would assume its pretty safe then after 10 successful tries.

Sent from my HTC HD2
[HD2 Android NAND Development] drewestate:
wifi tethering

Been following the progress of clk for a while and I decided to give it a shot today. Using Typhoon and the tytung R7 kenel posted a page back everything loaded up fine. One question I can't seem to answer is what the progress on wifi tethering with ppp is there currently. Hotspot starts up fine but when you connect to the phone no data is passed to computer. Anyone figured out how to get this working?

PPP for me is very stable, only thing really not working is tethering.
[HD2 Android NAND Development] M..N:
Thought I'd give this ago again but to no avail I still have horrible problems with ppp :(
[HD2 Android NAND Development] af974:
Honestly i've never understand a crap bout the difference from PPP to rmnet but today i have had a good six hours of data connection i PPP and i've never had a diconnection or whatever, only thing that i noted is that battery drain a lot lol.(not that with rmnet it didnt)
[HD2 Android NAND Development] M..N:
Yeah well I guess its different to others I mean Ive tried all the tweaks in the wrapper thread tried various radios and various the Max I can get is an hour of stable connection
[HD2 Android NAND Development] pongster:
Should be safe... :) You think we can flash MAGLDR via LEOIMG.nbh as well just in case? :D