yashsingh1/xdaforums huggingface dataset:
[HD2 Android NAND Development] arif-ali:
Hi,

I seemed to have run some problems with libhtc_ril_wraper, and couldn't figure out. In the end added the extra memory stuff and ppp tweaks from letamas thread, and all seemed to work ok

I have attached the ppp.zip file similar to what seadersn provided with the following modifications

Added low memory handling (this was supposed to be a fix for MDJs kernel)

added dns entries from ppp into /etc/ppp/resolv.conf in ip-up

02cache script

Doing the above has now fixed my PPP issues that I have been having in the last few days. Now at least I am able to handle very long downloads such has a CD iso image, and it downloaded now without any disconnections.

I hope this post helps others
[HD2 Android NAND Development] seadersn:
i don't have problems at all with ppp, but if this could make things even more stable, then of course i'm not saying "no!" :D
[HD2 Android NAND Development] hehuichao:
I want to know.How to change the size of the system？
[HD2 Android NAND Development] 暗黑王:
ppp disconnect when i make a call.

please how to fix it?
[HD2 Android NAND Development] 2000impreza:
I uploaded the zImage in a separate zip file.

Download here:

http://xdaforums.com/showpost.php?p=12156772&postcount=616
[HD2 Android NAND Development] seadersn:
with cedesmiths recovery everything is ok, the led is working as it should.

with my new recovery 3.0.1.9 the led is blinking in turn: amber - green - amber - green - amber - green, in ~ 2 sec. distance, even if it's fully charged and should light only green.

what can cause this? which compiler are you using, cede? tried prebuilt toolchain 4.4.0, 4.4.3, codesourcery 2010q1 and 2009q3, nothing fixed that. or is sth missing in the path environment? damn...
[HD2 Android NAND Development] pongster:
I had trouble applying the patch. Are you building off hastarins? Would you mind sending me a zip of the files patched so I can use filemerge to merge them? :)

Sent from my HD2 powered by HyperDroidGBX
[HD2 Android NAND Development] seadersn:
pthread.h... that's the point to start... i believe it's compiler related.
[HD2 Android NAND Development] seavers11:
@seadersn

moin... is it possible to make an partition layout with 90MB ??? (For pongsters hyperdroid 90MB was perfect)

thx
[HD2 Android NAND Development] seadersn:
tüllich :D jep, of course. todays evening, i believe.
[HD2 Android NAND Development] seavers11:
OK thx...

Question : When i flash the 90MB Partition of cLK, i must install new CWM but can i use an backup from CWM ? I am on CWM 3.0.1.9... :confused:
[HD2 Android NAND Development] seadersn:
your current version, with which you're making a backup, is 3.0.1.9? then restore as usual, no problem at all.
[HD2 Android NAND Development] seavers11:
Yes i am on YOUR 3.0.1.9 with 100MB :D

My HD2 is installing at the moment and i don´t want to install everything new at the evening when i can flash my partition to 90MB :p

... i want to try the rom manager at next :D
[HD2 Android NAND Development] seadersn:
k, if you're on my version, please tell me: is the f***ing LED working correctly for you...??? i mean, no blinking while charging, only amber led, and if fully charged, it turns to green...? because in the other thread someone told me that he didn't have this issue... i'm totally confused.

what kernel are you using? but this can't have anything to do with it, i believe. maybe the kernel with which it is compiled...
[HD2 Android NAND Development] seavers11:
OK my HD2 is charging at moment and the red light is burning not blinking... i will tell you when my battery is charged if the led goes to green...

i using pongsters hyperkernel 6 cLK
[HD2 Android NAND Development] seadersn:
ok, maybe i'll try this one, but i don't believe that this changes anything.

thx :) i need to sleep now -.-
[HD2 Android NAND Development] seavers11:
K... a good night to you and sweet dreams of our HD2 with cLK ;)
[HD2 Android NAND Development] arif-ali:
I compiled the same version last night. And the patch didn't go on either. So I created a patch for yes/no, and deleted my recovery folder area from my repo sync area. I then checked out the recovery in another area and applied the patches, which applied with no problems. And then re-compiled. I am now using this version, and all seems good.
[HD2 Android NAND Development] seadersn:
the patch was applied, i've doublechecked this. it seems that this is kernel related; i'll test this now and that's it for now. this is making me angry xD

it's not the kernel :( i don't know... gnaah...
[HD2 Android NAND Development] ironheart:
As far as I know by know the new permissions just work fine for both - Android market & RomManager:

- Market downloads ok

- RomManager - reboot to recovery ok

- RomManager - backup/restore ok

Thx for your quick reply.
[HD2 Android NAND Development] bell2010:
great thanks,i will try it now.
[HD2 Android NAND Development] l0rdsheva:
i'm on magldr and i'd like to use this bootloader; what i don't understand is how it run and how to install cwm over. Does someone can tell me how or just send me a link to an howto? Thank you!
[HD2 Android NAND Development] arif-ali:
the howto is on OP, and or check seadersn's thread as well for which there is a link from one of the 1-3 posts
[HD2 Android NAND Development] `SBR`:
Where should I enter the command... I can't download from market.

Using hyperdroid cm7 hyperkernel 6 ppp.

I tried the cmd in terminal, it says invalid code.

EDIT: It;s working by using the below combination

chown 1000.2001 /cache

chown 1000.2001 /cache/recovery

chmod 0770 /cache/recovery
[HD2 Android NAND Development] MontAlbert:
can someone point me in the direction of how to compile a kernel for this? I am on tyweens typhoon rom and want to be able to update it every couple of days- this way i can provide the kernel for others to use this awesome "bootloader". i figure and hope its a matter of unyaffing the kernel inside tyweens rom? or do i need to build from source each time with patches etc?

thanks
[HD2 Android NAND Development] arif-ali:
You need to build from source with all the patches.

By default a zImage is a binary file, which cannot be patched

There a few that are available, you can check the first post and use cedesmith kernel. I have a kernel which is available in my signature. the typhoon kernel I think on post 3 of this thread
[HD2 Android NAND Development] Blubster:
I am also using typhoon roms with cLK... The kernel i flashed is simply hyperkernel v6, but the version for cLK which is provided in his thread... ;)
[HD2 Android NAND Development] pongster:
Do you have a cLK 1.3.3 100mb .nbh? May I request for one? :)

I flashed the 3.0.1.9 recovery by seaders but its not charging while in recovery... is there something I should patch in the kernel even if I've patched it for the first reboot reason the other day?

Thanks. :)
[HD2 Android NAND Development] Unconn:
I am willing to try this. Do you know if it helps in reconnection after lost signal (basement, elevator/lift, etc)?
[HD2 Android NAND Development] arif-ali:
There's hardly any change in the 1.3.3 code, so cedesmith hasn't released it, check previous posts from cedesmith

Not sure, for me it was that the connection would die, but would automatically come back up after 30s. So it did for some people

I was using letamas 0.7 ril wrapper, and now testing 0.6 as suggested as another poster. Will report back later today with my findings
[HD2 Android NAND Development] bhilgeman:
Umm 1.3.3 is in the OP
[HD2 Android NAND Development] arif-ali:
ok, coming soon (20 mins)

he didn't put it up when he said he released it :D
[HD2 Android NAND Development] clio94:
hello.i am trying to flash recovery but i cant :(

i have in my pc adb working and fastreboot. I have flashed clk from first post and then after reboot i see some letters and in the end the word portchange

i am trying to reboot into fastboot holding down back key,and i see a screen fastboot init () and some other

i am connecting hd2,run command fastboot flash recovery recovery.3.0.1.4_clk_1.3.3.img and it stays in <waiting for device>

sorry for saying "some letters" and "some other" but i have installed wm for now

can someone help me on how to flash clk;

thank you
[HD2 Android NAND Development] af974:
Your PC seems to dont have the right drivers, check some post behind for the solution.

EDIT: http://xdaforums.com/showthread.php?p=12119162#post12119162
[HD2 Android NAND Development] bhilgeman:
That's cool, just busting his chops :)
[HD2 Android NAND Development] af974:
Thanks for info, i didnt see it before :)
[HD2 Android NAND Development] karendar:
Question for you guys, what will the misc partition be used for exactly? Recovery info?
[HD2 Android NAND Development] pongster:
Uhmm... miscellaneous stuff :D

sorry, couldn't resist that one... lol

seriously, I'm not sure... but if its not there bad things will happen. :D
[HD2 Android NAND Development] arif-ali:
clk 1.3.3

OK, all the files attached

misc 1M

recovery 5M

boot 5M

system <as specified by the filename>

cache 5M

userdata remaining

enjoy ;)
[HD2 Android NAND Development] pongster:
after installing, we have to install recovery again and the rom? OR can this be flashed without any of those? :)
[HD2 Android NAND Development] arif-ali:
If you used the same partition layout as before, i.e. used clk1.3.2 from my original post and not the 20M cache in my second post of downloads, then you shouldn't need to flash anything other than cLK. I have done this previously and have been successful

If you are using the 20M cache version, then you don't need to flash recovery, system, or boot. You probably just need to flash the data partition.

If you used seadersn's version then you need to flash everything back, or, flash recovery, and restore from backup, because his misc is 2M, and mine is 1M

But still I'll recommend a NAND backup just in-case, it goes wrong.

@cedesmith, @seadersn we probably need to agree on a standard partition layout so that we don't confuse the users, and so that it is easily upgradeable. i.e. if i create the updates, then if I am not available to make the patches and the next time seadersn's makes updates, they should be compatible and upgradeable.

the difference between my build, seadersn and cedesmith are

arif-ali seadersn cedesmith
cache 5M 3M 44M
misc 1M 2M 1M
CustomROM.exe default task29 default
[HD2 Android NAND Development] Dominic83:
That is a great idea :)
[HD2 Android NAND Development] `SBR`:
Successfully Installed Hyper CM7 with ppp Kernel..

everything is working so far..

1. Able to boot to recovery using Recovery in power button

2. Able to backup and restore via ROM manager.

3. Data in PPP seems to be ok, so far no data drops.. but connection speed comes around 1.6 Kb/s

Thanks Cedesmith, for the clk you made it.. :)

and also thks to arif-ali and sedesan. for the img and recovery file..:)

Current Configuration

clk 1.3.3 (cedesmith)

CM7 - Hyper Droid (Pongster)

Hyper Kernel v6 (PPP) (Pongster)

Recovery 3.0.1.9 (seadersn)

Partion 400mb, cache 20M (arif-ali)

to make it Market work, type the command as below in terminal(credit to Arif-ali)

chown 1000:2001 \cache

chown 1000:2001 \cache\recovery

chmod 0770 \cache\recovery
[HD2 Android NAND Development] pongster:
Good idea. I was able to upgrade without a hitch. Thanks. :)

Sent from my HD2 powered by HyperDroidGBX
[HD2 Android NAND Development] Satyan:
just a off question, does somebody have mkyaffs binary for mac ?

thanks
[HD2 Android NAND Development] Unconn:
Correct me if I am wrong, but without the 44M cache ROM cookers will have to make sure they use a symlink to another partition for cache right? If the ROM makers forget/omit this then large downloads from the market (among other things) will break.? Do I understand this correctly?

I should think settling on a safe size and letting others (Euro HD2 hackers with small NANDs) resize if needed. We can still set a standard.
[HD2 Android NAND Development] mattfmartin:
Take for instance google maps,that's 5.86 mb... So that means we can't use the new layouts because the cache is only 5mb? Why not just make one that's 10mb so you would be pretty much covered? Or am I wrong and these current ones will work?

Sent from my HTC HD2
[HD2 Android NAND Development] seavers11:
i think in pongsters hyperdroid it caches to sd ext ?
[HD2 Android NAND Development] mattfmartin:
Also is the kernel_reboot_reason included in clk1.3 or do we have to apply that separately?

Sent from my HTC HD2
[HD2 Android NAND Development] mattfmartin:
I'm on typhoon,

Maybe I should just stick with cedesmiths default layout?

Sent from my HTC HD2
[HD2 Android NAND Development] arif-ali:
It really depends how you want your phone to work. Not everything can depend on the chef, we can easily create scripts around what the chef does and make it work. If you ask some gaming users, they will cry with 10M, and some games require up to 16M (angry birds for example), so this could be never ending on how big the cache size is. partitions and sizes of them is very valuable for the EU users, who only have 512M. So having the most space available in userdata is what we are trying to achieve.

For instance the rom I use, /cache is a symlink to /data/cachmnt, this way you have ample space for market place downloads. and therefore nothing to worry about.

On the other hand the cache partition is also used by ROM manager for automated rom installation, backups and restore; and 5, and even 3M is sufficient, and only the recovery folder on that partition is required for that. This is easily achieved by mounting the cache somewhere else and symlinking or bind mounting the recovery folder into /cache/recovery

This is how it is done on my ROM, I am happy with it, but everyone else their own ways of doing things, and some might not like this, and would prefer to have the cache as /cache

just my 2 cents.
[HD2 Android NAND Development] mattfmartin:
I don't play any games, and have about 90 apps. So I'm guessing the 100 layout should be good to go then, as typhoons builds is around 90mb usually

Sent from my HTC HD2
[HD2 Android NAND Development] Satyan:
1.3.3 seems address the issue, and working good .

thanks cedesmith !
[HD2 Android NAND Development] despy1989:
Has anyone tried this with Coredroid 1.5? Can you please post instructions if you have i would love to try it out with cLK. Is there anyway to flash the ROM with cLK without using SDK. I hav enever used it and not sure if I understand the flash instructions correctly.....sorry for the nOOb question but am a little confused with the whole process....
[HD2 Android NAND Development] seadersn:
regarding the partition layout: jep, you're right, arif. this has to be "standardized".

between my layout and yours aren't much differences; then we can arrange us to offer "our versions" ?
[HD2 Android NAND Development] clio94:
thank you.it works! this solution i think that must be in firsts posts in how to
[HD2 Android NAND Development] g30rg10u:
any Stock Desire HD rom with cLK around ?
[HD2 Android NAND Development] MontAlbert:
You mean Tyween's Typhoon build? his requires a 135MB partition- it says it in his first post. When it installs it installs to about that. i use cedesmith's 150MB just to be sure and to future proof myself a bit :D
[HD2 Android NAND Development] mattfmartin:
Thats not necessarily true. Ive used a smaller one than 135 and it worked. But yeah Ive been using the default one from the getgo (150)
[HD2 Android NAND Development] af974:
The kernel need to be patched again with v.1.3.3?
[HD2 Android NAND Development] arif-ali:
No, only new recoveries
[HD2 Android NAND Development] MontAlbert:
recently he has changed the size of the system partition- my system now has about 131MB on the 150MB partition. I havent added anything extra to it so i am assuming this is now his stock size.
[HD2 Android NAND Development] af974:
Thanks arif,

sorry, just another thing, i'm trying to make my own clk, so i run make from lk folder but it ask me to spec a projectname in local.mk, the problem is that i dont have that file, am i missing something?
[HD2 Android NAND Development] arif-ali:
When you extract the clk1.3.3, you will find a file called compile, you just run that script, and that should compile it. Make sure that you have the codesourcery toolchain, and wine in your path
[HD2 Android NAND Development] af974:
Yes, lol i'm so stupid, i just see that i dont have 4.4.0 but 2010q1.

Thank you very much.
[HD2 Android NAND Development] JDM Civic EG8:
if i wanted to use cLK with the jaws miui rom what would I have to do?
[HD2 Android NAND Development] arif-ali:
you need a cLK that has

at least

=>140M system

=>8M boot

none in this thread would work for you. Either one of would need to compile one for you. Or you could go into the deep end and compile one for yourself

Then you need a kernel that is patched with cLK, which I believe tytung_r2 is I think. You could probably grab the relevant bits from the 3rd post of this thread

Use cwm to install the zip, and then use fastboot to install the zImage and initrd.gz.

Most of what i have explained is already mentioned in some of the posts on this thread
[HD2 Android NAND Development] af974:
I was thinking, now basically we should use a patched RomUpdate Utility for flashing roms since it use adb and fastboot, am i wrong?
[HD2 Android NAND Development] JDM Civic EG8:
Thanks for the help bro, I was just wondering what it would take to get the rom to work with cLK. I'm not going to lie I'm not good at building anything technical. You see how long it took for me to get cLK up and running lol
[HD2 Android NAND Development] af974:
sudo /bin/bash/ ./compile

How can you run wine with sudo? it isnt possible.

I always got ".wine is not owned by you"
[HD2 Android NAND Development] arif-ali:
I tend do all the compilation work using root, as there are times, that as a user it tends not to work

so "sudo su -", then copy the relevant stuff from your home area, and then try again. That's the way I work anyway.

I hope that helps
[HD2 Android NAND Development] af974:
Working great thanks :)

Is not a bit dangerous though?

Not that i care, since i dont run any windows files from Ubuntu.
[HD2 Android NAND Development] arif-ali:
As long as you know what the scripts are doing, and what you are doing, then there shouldn't be a problem, I use Linux on a day-to-day basis, i use my own user id for all main tasks, but some things still require root access.

as long as you don't do a "rm -rf /*", then you'll be ok :D :D :D :eek: :eek: :eek: :D :D :D
[HD2 Android NAND Development] af974:
Thanks for explanation arif, sorry had to ask that, i spent a lot of time searching for a solution and i always end in "NO!! no wine as root!!" but since i trust in you, i didnt care of what i found in other sites, i do it and it works !! :D

Thanks again.

EDIT: sorry ialready spent my 5 thanks today :D
[HD2 Android NAND Development] DreddJudge:
Im currently using cLK 1.3.3 with the latest cwm and running typhoon cm7 2.7.2 and hyperkernal 6 cLK and my battery meter wont go down properly it was working fine on magldr is there something I can try?
[HD2 Android NAND Development] randasecret:
Arif if I want to change the cache size in the init.c which is 44 MB by default do I have to change anything more or that's it

Thanks
[HD2 Android NAND Development] stirkac:
wipe data or try installing again :)
[HD2 Android NAND Development] seadersn:
first thing on a linux machine (vm) i do is "sudo passwd root" and give my own password for the root account; reboot and login with it, done, su(do) problems gone :)
[HD2 Android NAND Development] stirkac:
okay i tried(well i was about to flash rom anyways) DreddJudge's setup and actually got batt hangs. sometimes it went to 0% on reboots, or hangs to percentage it showed on startup... any clues? i can do logcat but anything particular to look after?
[HD2 Android NAND Development] Satyan:
Looks likve even i had a similar problem the batterry suddenly dropped to 0 % and phone wont startup.
[HD2 Android NAND Development] seadersn:
this is build related stuff, not cLK. which kernel are you using?
[HD2 Android NAND Development] stirkac:
second that.. changing to tytung ppp v7 fixed all problems. so it's just build/kernel combo not getting along :)
[HD2 Android NAND Development] idcom:
I have recently switched to clk using ppp hyperkernel on hyperdroid cm7 1.0.2.

ppp performance is similar to before magldr. It crashes if you move through a lot of cells. I have set a gscript shortcut to 'killall rild' which seems to reset rild and pppd. Is this an acceptable workaround?
[HD2 Android NAND Development] punksux:
Would you mind sharing your script? PPP is the ONLY thing I don't really like about cLK.

Thanks
[HD2 Android NAND Development] idcom:
It is only 'killall rild'. Nothing fancy. I really should ps|grep to check for the process before running the kill. Also android restarts rild and pppd automagically after. Nothing to do with me. I only use if data connect toggle fails. I haven't needed the script but have needed to disconnect/connect data 3 times today.
[HD2 Android NAND Development] StephanV:
Quick noob question: just flashed cLK, but not sure how to get recovery working. Fastboot keeps waiting for a device in both cLK and SPL, and yes I have the Android SDK installed (I've been developing for a few months).

Any hints?

Edit: apparently it's already there.. I'll play around with it some more first, not sure I'm getting everything straight here yet though.

Edit2: halp! I flashed a rom through CWM successfully, but every reboot hangs at a cLK logscreen ending with

(410) -- reset --
(420) -- portchange --

I thought I was familiar with both flashing and Android, but there's not really a lot of info in OP?...
[HD2 Android NAND Development] mattfmartin:
I think someone should make a video of cLK install and put it in 1st post. I would but, don't have a video camera.
[HD2 Android NAND Development] Unconn:
I would say probably not. This is made for booting from internal memory, like normal android phones. That does not mean a dev might not beable to take the source and enable this.
[HD2 Android NAND Development] nlo:
The download links do not work. :(

I get an "invalid attachment" notice when I click them.

Has anyone mirrored them?

edit: Downloads work now.
[HD2 Android NAND Development] crowbarr:
If we set up CLK and fastboot flash Clockwork recovery, could we not just flash a ROM from .zip on an SD card instead of going through all the trouble? Just asking so I can be more educated. If this is a possibility, I would prefer CLK over MAGLDR. It seems to have a cleaner boot process from what I've seen so far. Not that MAGLDR isn't great, but it's nice to have choices as well.
[HD2 Android NAND Development] lesjaw:
i think if we flash clockwordmod rom-zip will compatible with this bootloader, don't need fastboot to flash android, one thing keeping me out of this is how we can change partition layout..because i just need a sepesific layout for my build..clockwork has 250mb system partition, just to big for my miui build..to much to waste
[HD2 Android NAND Development] g30rg10u:
i guess that both opinions match with mine.

cedesmith, since there is an opensource solution (with all Open Source benefits that may can during time) i support you!

MAGLDR is absolutely nice, but I would prefer something that would be hidden/faster. Native android bootloader behavior.

The average user will not use any of the MAGLDR options.

Anyhow, just my opinion.
[HD2 Android NAND Development] FrAsErTaG:
where is the userdata.img?

Ive successfully got a rom booting.

I think I got recovery working as well

But fast boot and recovery seem to show no picture.. my boot splash is not standard.. I dont see text console.

It just slowly fades away and reboots and slowly fades away again to black for recovery (not sure if I did it right) and fastboot

my rom boots at least

also confirmed the phone does not power off properly, however mine did in MAGLDR
[HD2 Android NAND Development] cedesmith:
reread 1st post, i updated it.

also added recovery and boot.img for rajko's cm61.

to get console hold any key (except power)

to get recovery hold home key

to get fastboot hold back key