yashsingh1/xdaforums huggingface dataset:
[HD2 Android NAND Development] miharkula:
Yes. I've flashed it that way before.
[HD2 Android NAND Development] 2000impreza:
PPP stability

I typically get fairly stable data with PPP. After reading through Letama's ril wrapper thread, I'm currently testing out the following changes:

1. Added init.d script:

echo 8 8 > /proc/sys/vm/lowmem_reserve_ratio
echo 8192 > /proc/sys/vm/min_free_kbytes

2. Changed the following vales in build.prop

ro.ril.hsdpa.category = 4
ro.ril.hsupa.category = 5
ro.ril.hsxpa = 1

Haven't had a chance to test this out in a weak coverage area yet. Seems stable so far after a couple days.
[HD2 Android NAND Development] 2000impreza:
Pongster v4 kernel

Edit: See pongster's thread for updated kernel.

Kernel info/download:

http://xdaforums.com/showthread.php?t=918899
[HD2 Android NAND Development] mattfmartin:
Tested typhoon hyper kernel and it doesn't wake from sleep. Buttons don't even light up. Didn't do it in a clean install. Don't think that really matters with kernels though.

Sent from my HTC HD2
[HD2 Android NAND Development] dertester123:
Hi,

this is my first test to get it running.

flash clk

fastboot flash recovery =>cwm works

No i started cwm and installed Hyperdroidgbx and Tytungv7 kernel.

When i reboot now and hold the phone button i get:

ptn 1-5 misc,boot,system,cache,userdata

flashread mic

flashread boot

ERROR: Error: Invaled Boot image heador...

What did i do wrong??

//Problem solved installed http://xdaforums.com/showpost.php?p=12080167&postcount=478 instead of tytung!
[HD2 Android NAND Development] af974:
Did you get your Kernel from here? http://xdaforums.com/showpost.php?p=12053904&postcount=458
[HD2 Android NAND Development] dertester123:
Me?

No i took the second one from here:http://xdaforums.com/showpost.php?p=12080167&postcount=478

Not sure if it works with other builds than pongsters.

Little summary starting here:http://xdaforums.com/showthread.php?p=12083672#post12083672
[HD2 Android NAND Development] M..N:
I tested this and same thing for me
[HD2 Android NAND Development] seadersn:
in arif-alis "97ppp" init.d script, which is used in all kernel updates for cLK by cedesmith, the echo's are included already. therefore you only need to edit build.prop, if you're using one of this kernels (or kernels based on his zip's).
[HD2 Android NAND Development] 2000impreza:
Not sure if the "echo's" are included in all the packaged zip file kernels. It definitely is not included in the early ones(post 3). This is something I added to the 97ppp init.d script in the zip files I posted. I would probably suggest to double check to make sure that is in there.
[HD2 Android NAND Development] seadersn:
jep, you're right :) better to mention it.
[HD2 Android NAND Development] dertester123:
Is there an easy way to edit the partition sizes?

The cwm from first post seems to be cwm 150 and i only know how to edit the flash.cfg from "old" dft flasher.
[HD2 Android NAND Development] arif-ali:
No, there isn't at the moment (cedesmith will have something, but nothing like that available at the moment), unless You compile it yourself

myself and seadersn have created many files for people to use, below is the link from us

http://xdaforums.com/showpost.php?p=12015289&postcount=408

http://xdaforums.com/showpost.php?p=12016292&postcount=411

I hope that helps
[HD2 Android NAND Development] seadersn:
i've forgotten the layout in this post :eek: updated it with partition-sizes :)
[HD2 Android NAND Development] pongster:
Quick update on PPP on HyperDroid for those who use CLK

Quick update on PPP on HyperDroid for those who use CLK:

PPP is fast and stable with my current PPP Test variant

Native WiFi Tethering works

All CLK specific kernel patches added by tytung are in my v5.0 kernel

All ppp specific fixes (letama, arif, cedesmith, etc.) are included as init.d scripts and build.prop

Only "bug" I can't fix now is the wifi tethering sign shows up when enabling data even if wifi tethering is disabled... (visual bug... but still a bug) :)

Any ideas on the visual bug would be great. ;)

I'll test some more stuff and if I can't knock off that visual bug, I will release a CLK version on my HyperDroid thread for those who want an AOSP CLK experience. :)

Great job and Congratulations to those who want to see CLK succeed! We're one step closer yet again... :)
[HD2 Android NAND Development] mattfmartin:
Sounds very promising, looking forward to it;p

Sent from my HTC HD2
[HD2 Android NAND Development] stirkac:
would you consider posting update.zip with v5 kernel&modules required for clk..haven't seen it anywhere.. thanks mate :)
[HD2 Android NAND Development] drewestate:
Question....where did you make your changes to enable native tethering, were they in initrd.gz or in kernel?
[HD2 Android NAND Development] pongster:
In the HyperDroid sourcecode... :)

Sent from my HD2 powered by HyperDroidGBX
[HD2 Android NAND Development] Novembre5:
Will you also be releasing a cLK HyperDroid CM7 rom?
[HD2 Android NAND Development] pongster:
If i find the time to test and get it working, maybe...
[HD2 Android NAND Development] af974:
Damn, i wanna try your kernel now.
[HD2 Android NAND Development] M..N:
So does this improve ppp if so i shall give it a go hopefully it may solve my problems.
[HD2 Android NAND Development] mattfmartin:
Try it out. It varies to different people.

Sent from my HTC HD2
[HD2 Android NAND Development] 2000impreza:
ppp reset

As a work around to reset the PPP data connection I added "killall pppd" as a script under gscript running as su. It seems to reset the data connection and pick up right away. Data drops occurs once every 2 to 5 days so this is fine for me. I wouldn't suggest doing this if you get frequent data drops. Might get annoying constantly having to run the script. The killall pppd was suggested by letama in the ril wrapper thread to test if the data connection comes back.
[HD2 Android NAND Development] diesburg:
I moved, I'm finally in tmobile service area! lol.... so now I finally got to test out PPP...... I get disconnected in less than 3 minutes everytime and will not reconnect unless I reboot, but only for another couple minutes......
[HD2 Android NAND Development] Satyan:
i have a wierd issue with installing build with cwm recovery it, always misses out on halfway through writing /system from the zip file and some files/folders/symlinks are missing and then then zip goes corrupt (found this by adb shell in recovery and unzipping the file before and after applying from the recovery)

so basically i cannot flash from recovery. (have tested many times...seems consistent)

i have to convert to img and then flash from fastboot.

Any body else having similar problem .. or any ideas ?
[HD2 Android NAND Development] arif-ali:
Which ROM, and recovery are you using? and what partition size are you using for system
[HD2 Android NAND Development] Satyan:
I have tried all the roms supported for clk and also the clk (150M) on the 1st page.. and i am using the 3.0.1.4 recovery image.
[HD2 Android NAND Development] arif-ali:
Ok, you can't just use 150M clk, as that will not work with all roms, for example from the 3rd post 3 roms you can't

Revolution HD 2.6 requires 288M - 300M clk

Revolution HD SL 1.4 requires 233M - 250M clk

Froyo Sense Revolution requires 205M - 250M clk - or use th 210 from my post

The 2 roms below, you can

typhoon CM7 135M - not directly from the the ROM page, use the links on post 3

UD ~ 150M - this can be used directly from the rom page.

So you need to use the right partitions, or just use the 300M, so that you can use most of the ROMs There is a post in this thread with all the variations of clk with different partitions.
[HD2 Android NAND Development] Satyan:
i am really sorry for the unclarity.. but i am sure of that part....i tried the Revolution ROMs with the attached clk on the posts..

the last i tried was UD 150M... definitely they behave the same way.... any logs that i can collect..
[HD2 Android NAND Development] arif-ali:
attach or pastebin your /tmp/recovery.log

hopefully that should have some info
[HD2 Android NAND Development] 2000impreza:
Download files here: http://xdaforums.com/showpost.php?p=12080167&postcount=478

Updated to Hyper v5 kernel. Pongster, thanks for including the patches in the kernel.
[HD2 Android NAND Development] pongster:
Does it work with CLK properly? When I have the time, I will post a PPP version of HyperDroid with working native wifi tether with one visual bug... (wifi tether icon will show as soon as data is enabled... haven't figured out a way to fix it without disabling native wifi tether)
[HD2 Android NAND Development] 2000impreza:
The updated v5 kernel works well with cLK. I tested the kernel with both your ppp modified initrd and Tyween's initrd which I modified for PPP. Both seems to work on Typhoon CM7 rom. I downloaded your rom, but haven't had a chance to test it yet on cLK.

Edit: I'll definitely give your HyperDroid a try once you post it up. Native tether is nice to have :)
[HD2 Android NAND Development] cedesmith:
1.3.2 release

Hi.

I just uploaded a compiled clk1.3.2 along with 3.0.1.4 recovery and kernel update for typhoon 2.3.6 build. Kernel is patched to support reboot reason save so (if you have a patched kernel) reboot to recovery/bootloader works as should work ROM Manager.

Other futures include custom oem commands to bootloader to help development (more on post #4).

Source code coming in couple minutes.

Have fun
[HD2 Android NAND Development] seadersn:
yeah... maestro, add a donate button pls :-)
[HD2 Android NAND Development] pongster:
v5.0 bonus info... the init.d custom UV script you made several months back should work nicely as vdd_levels as patched by Hastarin is enabled ;)
[HD2 Android NAND Development] Derek0228:
Wow this is exciting! Thanks a lot!
[HD2 Android NAND Development] pongster:
Hi cede... now I'm gonna have to test CLK myself with the reboot to recovery option :D

btw, I've enabled native wifi tether to work with PPP in my source for my ROM but have a final "visual" bug you may know how to solve... everytime data is enabled the wifi tether icon shows up in the status bar notification even if its not enabled... I tested wifi tethering and it works but the icon should only be there when tethering is enabled.

I have this in my config.xml (device/htc/leo/overlay/frameworks/base/core/res/res/values)

<!-- Regex array of allowable upstream ifaces for tethering - for example if you want

tethering on a new interface called "foo2" add <item>"foo\\d"</item> to the array -->

<string-array translatable="false" name="config_tether_upstream_regexs">

<item>"rmnet\\d"</item>

<item>"ppp\\d"</item>

<item>"eth\\d"</item>

</string-array>

<!-- List of regexpressions describing the interface (if any) that represent tetherable

Wifi interfaces. If the device doesn't want to support tethering over Wifi this

should be empty. An example would be "softap.*" -->

<string-array translatable="false" name="config_tether_wifi_regexs">

<item>"rmnet\\d"</item>

<item>"eth\\d"</item>

<item>"wl0.1"</item>

</string-array>

All ideas appreciated. :D
[HD2 Android NAND Development] pongster:
btw, do you recommend me flashing CLK via leoimg.nbh sdcard method as I have no windows machine to work with at all? ;)
[HD2 Android NAND Development] pongster:
seaders, did you try the initrd yet?

can you whip up a 100mb flash.cfg version of CLK for me again? :)
[HD2 Android NAND Development] mattfmartin:
Might be farfetched and only a workaround, but did you try air plane mode to see if that would get rid of it?

Sent from my HTC HD2
[HD2 Android NAND Development] pongster:
It will get rid of it while in Airplane mode... and pop up once airplane mode is disabled... its gotta be one of the regexes I posted earlier... that's what I used to make native wifi tethering work... at the cost of a visual bug... :D
[HD2 Android NAND Development] mattfmartin:
That's very weird. Definitely small price to pay for it to be working;p

Sent from my HTC HD2
[HD2 Android NAND Development] seadersn:
@ pongster: yes, it's in use in my rom :) thx again!

i'm compiling r7 kernel atm, followed by cLK 1.3.2 120M version and will provide a package with 100 to 400 mb sys partitions in 20mb steps again (as i wrote a script for that it's no prob).

k, kernel is done, now cLK :D

cedesmith, thank you again!
[HD2 Android NAND Development] pongster:
where in the source would I change the flash.cfg partitions for CLK?

EDIT: found it its in lk/target/htcleo/rules.mk and init.c for those who may need it :D
[HD2 Android NAND Development] cedesmith:
i recommend flashing with custom ruu whenever possible. flashing from sdcard bypasses some protection in hspl and allows rewrite of spl.

other then that cLK (as magldr) replace only OS part of rom so is as dangerous as flashing any custom roms/magldr.
[HD2 Android NAND Development] arif-ali:
updated my post with 100-400 with 50M gaps

http://xdaforums.com/showpost.php?p=12015289&postcount=408
[HD2 Android NAND Development] pongster:
Nice! will test it out.
[HD2 Android NAND Development] pongster:
I'll try flashing via parallels for mac.. unless you can do it via command line in linux... :)
[HD2 Android NAND Development] seadersn:
hm, k, arif was faster. if there's the need for 20mb stepts, just let me know, i'll attach it :)

i'm flashing now ;)
[HD2 Android NAND Development] arif-ali:
note, I have changed the cache from 44M to 5M, so that is my difference from the code. I don't know how much that will affect anyone.
[HD2 Android NAND Development] seadersn:
i've changed the cache, too: to 3MB. therefore e.g. pongsters initrg.gz is needed, which links /cache to /data/cache.
[HD2 Android NAND Development] mattfmartin:
@seadersn

Did you ever figure out why those apps wouldn't d/l from market? Was it the layout?

Sent from my HTC HD2
[HD2 Android NAND Development] seadersn:
yep, it was the layout, there wasn't sufficient space @ cache partition so market wasn't able to store sth there. now with pongsters initrd.gz it's working, with the same layout :)
[HD2 Android NAND Development] mattfmartin:
Yea that's what I figured;p

Sent from my HTC HD2
[HD2 Android NAND Development] caubecari:
I read the description but I still don't know how to flash. I don't see the *.exe file to flash. Somebody please help me out.
[HD2 Android NAND Development] stirkac:
there is customruu in clk zip :)

pm me for help if you wish
[HD2 Android NAND Development] JDM Civic EG8:
I'm a little lost.. I downloaded Android SDK and installed it installed android sdk & avd manager. i let it download all the packages.. and i flashed clk ruu but it still says android drivers not found. Am i missing something? Any help would be appreciated
[HD2 Android NAND Development] af974:
Did you try here?
[HD2 Android NAND Development] JDM Civic EG8:
I downloaded that zip and extracted it, clicked on adb let it do its thing then connected my phone and it still said drivers not installed.
[HD2 Android NAND Development] af974:
ok, try to go into Control Panel/Hardware and sound/device manager

find Android and update driver software then point to the folder with the drivers.

EDIT: 1st of all connect your device to PC and boot it up by hold and press back key .
[HD2 Android NAND Development] arif-ali:
So, all working great. Reboot to recovery and fastboot works without any problems.

Next thing to test is Rom manager, which doesn't work with my compiled cwm, will try yours, which may have some changes by you.
[HD2 Android NAND Development] JDM Civic EG8:
Thanks that works now im on a black screen with white letters and the last thing says

fastboot: processing comands

Edit: I restarted the phone and entered CWM now flashing the typhoon rom thanks for the help bro!!
[HD2 Android NAND Development] af974:
Just gave a try with rom manager but it does ask for recovery installation.

All is working fine, i just need a good guide for compile myself a kernel, tytung is not OC.

EDIT: @ JDM, Np ;)
[HD2 Android NAND Development] caubecari:
Can you guys make youtube video and show us how? I am very confuse.
[HD2 Android NAND Development] JDM Civic EG8:
I tried Rom Manager (Reboot into Recovery) just to see what would happen and it asked for permission and just restarted the whole phone.
[HD2 Android NAND Development] arif-ali:
So its kind of 50/50 with Rom manager. It reboot the phone into recovery but doesn't do anything. I guess we need to figure out where it's saving the info for the recovery, so that these can be parsed

BTW, again, Good job cedesmith. Keep up the great work. cLK all the way :) :)
[HD2 Android NAND Development] af974:
+1

Thanks, Clk FTW
[HD2 Android NAND Development] Barlows:
I've jumped on the cLK bandwagon as i like the thought of my HD2 being an open source 'native android device'

PPP is working fine just now, my office is in an area with very poor reception so i'll see how it manages tomorrow.

I love how fast it boots etc now, this is the future for our HD2's :)
[HD2 Android NAND Development] af974:
Error....It's just reboot the phone but not into recovery.

The problem, imo, it is in Rom Manager that doesnt recognize our CWM.
[HD2 Android NAND Development] arif-ali:
Well, for me it did.

You need to patch your kernel to get that to work, in terms to get it to reboot into recovery. I have patched my kernel, from the new patch listed in Post 2, and then also patched my recovery image with the same kernel.

So if you press the power off button, and select reboot, and then select recovery, it should go into recovery. If you select bootloader, it will go into fastboot.

I have tested this and this worked for me. I will post my new kernel soon, once I have finished all my testing.
[HD2 Android NAND Development] af974:
No mate, you misunderstood me, if i press End call/reboot/recovery(or bootloader) it works just fine, also because i'm using Cedesmith kernel in 2nd post.

The problem (who care about it) is when i try to reboot into recovery from Rom Manager, it just reboot the phone.
[HD2 Android NAND Development] arif-ali:
hmmm, interesting ...,

I just tried that, and it worked for me.

I updated to the latest ROM manager from the market, and chose DHD as my device, and then apparently it installed CWM, but not sure what it did :confused: :confused:. Then I went down to reboot to recovery, and it rebooted my phone, and it went into recovery.
[HD2 Android NAND Development] af974:
LOL...i just made the same but i chose Desire Gsm.........my phone its making a backup from CWM 3.0.1.3 :eek::confused:

EDIT: Err...CWM v.2.5.0.7 Rom Mangaer v 3.0.1.3
[HD2 Android NAND Development] Barlows:
I've just done as you've said but i chose HTC Desire instead. I rebooted and it has booted into CWM v2.5.0.7!
[HD2 Android NAND Development] af974:
Ok that's funny:

From rom manager i chose backup, phone restarted and made backup from CWM v2.5.0.7.

When the backup was finish the phone did reboot and i did press home button and....CWM v.3.0.1.4 was here

Going to try to restore now.
[HD2 Android NAND Development] Barlows:
I chose to install Desire HD CWM, it installed v3.0.0.6. I made a backup from Rom Manager and it has rebooted into v3.0.1.4

Mixed up versions!
[HD2 Android NAND Development] af974:
Any kind person could say me how to apply Clk 1.32 patches to a kernel?

Thanks.
[HD2 Android NAND Development] arif-ali:
You will need to get a clone one of the git repositories, and then apply patches, and then compile the kernel.

There are enough howtos on the web, so find one, and give it a go
[HD2 Android NAND Development] arif-ali:
ROM MANAGER support

So it seems that this works,

I have tested a backup, and it worked without any problems

Info for ROM chefs:

The cache partition needs to be mounted as /cache for this work in the ROM. I think seadersn and other people found similar problems with cache being small. Now I don't know what the best sizes are for cache, but this will need to be experimented with different sizes. This will depend on how big app downloads are from the market. And which other apps use the /cache partition
[HD2 Android NAND Development] seadersn:
i believe ten megs are sufficient? as i remember to magldr times (hrhr): in the flash.cfg's there were 10mb cache partitions. this should be enough for apps @ market (except one is downloading monster-games...) and recovery.

the yes/no version is updated and uploaded; for changes have a look @ this post. :)
[HD2 Android NAND Development] arif-ali:
The problem with that is, not all chefs do it the same way, like the rom I use has a link /cache -> /data/cachemnt. and some may have it other places, so we need to get people doing it in the same place for it to work

edit: ok, I will fix up the cLK's to have 20MB cache then, i have found apps I have that are larger than 10M, so these will not download, and we will get a lot of complaints from users

so 20M I think should be sufficient

attached all possibilities with 50M gaps 100M-400M with 20M cache

misc 1M
recovery 5M
boot 5M
system 400M
cache 20M
userdata remaining
[HD2 Android NAND Development] af974:
Thanks for the help.
[HD2 Android NAND Development] JDM Civic EG8:
So if we wanted to do a backup using Rom Manager we juse use Desire HD correct?
[HD2 Android NAND Development] seadersn:
not for me :( the recovery partition was overwritten with the original dhd recovery version 3.0.0.6 and no more usable. i think there is some tweaking inside rom manager needed to accept our hd2 recovery version.
[HD2 Android NAND Development] Satyan:
clk 1.3.2 does not work on my TMOUS hd2. data abort on fastboot screen, random hangs when flashing from fastboot especially when sending system... not sure.. am bak on 1.3.1 ...
[HD2 Android NAND Development] seadersn:
"pre-rendered" or self-compiled?
[HD2 Android NAND Development] pongster:
I read on CM7 forums, specifically in firerat's scripts, that for recovery, the /cache required is at least 5mb. maybe bind mounting the cache instead of symlinking it to /data/cache will work...

not sure if you can do bind mounts in init.rc of the initrd.gz

I can do it through an init.d script but I'm not sure if it will be too late in the process since recovery starts way before the init.d scripts are called. :)
[HD2 Android NAND Development] MontAlbert:
just finally tried clk for the first time since initial release. Bloody brilliant so far- i was previously on Typhoon 2.6.3 so when i saw cedesmith had made the kernel for this i figured it was wortha shot... All i did was nandroid the typhoon 2.6.3 i was on, then task 29, then flashed clk, then fastbooted revoery, booted into recovery and restored previous nandroid then flashed clk kernel for this and viola! a fully working rom! no issues with data so far either....

Love the idea of the fastboot once again.

Thanks to cedesmith and all others working on an open source project- i love open source....

BTW: cedesmith- your instructions in third post are missing a recovery- they say fastboot flash recovery_clk_etc.img instead of fastboot flash recovery recovery_clk_etc.img

**edit** using the power button in the CM7 rom and reboot bootloader and reboot recovery both work perfectly and boot into clk and CWM respectively. adb reboot recovery works to get into CWM, adb reboot bootloader works as well....
[HD2 Android NAND Development] pongster:
Quick question for the master of CLK :D

When I try reboot in recovery on my ROM it just reboots as normal...

trying adb reboot recovery also doesn't work at the moment.

I'm using seaders' latest cLK_recovery.img now. afaik, the reboot in recovery code in the android.policy.jar in my ROM is identical to the one in CM7 ... not sure what I should change to enable this.

All ideas welcomed :)