Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[23 Nov 12] cLK

OP Rick_1995

8th July 2011, 07:41 PM   |  #91  
Senior Member
Flag Hollywood
Thanks Meter: 73
 
434 posts
Join Date:Joined: Nov 2006
More
Quote:
Originally Posted by xlanhackerx

Second there is a little problem with charging while device is off... if device is charging you couldn´t startup device by taking power Button. only if you disconnect charging cable you could normaly starting device !!

Hope you would fix these !!

that's also the normal behavior on clk1.4.0.1

Sent from my HTC HD2 using XDA Premium App
8th July 2011, 07:53 PM   |  #92  
Rick_1995's Avatar
OP Recognized Developer
Whoville
Thanks Meter: 3,059
 
1,114 posts
Join Date:Joined: Sep 2009
Quote:
Originally Posted by xlanhackerx

Great work.. do you publish your Sourcecode please !!

Source will be released as soon as i feel that the work is stable enough to be released, i dont want to release unfinished work.

Quote:
Originally Posted by seadersn

rick, you've worked on 1.4.0.1 and added your stuff? sounds very nice; also dan1j3l's version with sboot ah, dan1j3l: sry, for "what the heck" and my reaction in general this wasn't meant offensive to you; i was mad because of RL and wrote a little bit too aggressive sry again!

In a way, no. my work is based on lk from codeaurora forums (rewrite up/remodel of cLK) for bootmenu and few other things to work as they should have.

Quote:
Originally Posted by stirkac

must say, i'm impressed if i only could find time to fiddle with cLK a little.. i'd add always-on-bootscreen even when holding a button, except when fastboot is engaged(or error occurred)
ps: you may feely steal idea from me! xD

and thanks for mentioning my guide

The bootscreen is on always except for when you press
Vol up - lk Boot menu
Vol dn - SPL boot menu
Win key- Verbose Boot (if you cannot boot, this might be useful if no logcat comes up)
Back key -Fastboot mode

Quote:
Originally Posted by wolfpack612

that's also the normal behavior on clk1.4.0.1
Sent from my HTC HD2 using XDA Premium App

Actually no, during offmode charging, your phone boots into recovery, To confirm this, power off your phone and charge it through pc, then enter "adb reboot" in cmd and have a look at your phone. So we will have to modify recovery sourcecode to restart the device on longpress of power button when launched with offmode charging cmdline. so that is not related to cLK, I hope seaderson and arif will look into this as they are the ones currently mantaining CWR for LEO. Although there are som NATIVE android phones which provide offmode charging in quite similar way, i have no idea on how they deal with the said problem and the keypad lights.

Also i was wondering what if we do task 29, install cLK and connect device to power when its off :s
LK has its own poweroff mode charging but due to some unknown reason cedesmith has disabled it, i guess the code is incomplete/unstable.
This is what cedesmith replied to me-
"from what i remember target_battery_charging_enable(1, 0); does not work properly (i can't remember reason) tho i may be wrong.
to power off the device just look in kernel source code."
"I went for recovery charging because kernel already has a driver for charging.
If off mode charging is to be implemented in clk i guess that driver needs to be ported.
I guess charging control is implemented on modem(radio) so it probably work over RPC tho i have no clue on how to do that."


The worse part was rewrite up for LEO and updating the msm power management code, got a LOT of help from cedesmith, irc logs and cotulla

I am trying to make a bootloader for LEO which will make it next to a native device, remodel lk to represent hboot while keeping the goodies from cLK and MAGLDR.

The only thing i cannot promise is working RMNET, it is very dangerous and can brick the device if done incorrectly.

My next progress in list is:

1) True Dual boot like MAGLDR, not using the sboot partition on NAND, (if i fail, dan1j3l is always there )
2) Cosmetical changes to make it look like hboot
3) Code optimisation
4) Code cleanup
5) Release source code

if i have more time, try for WP7 booting and at last research RMNET.

supporting WM6.5 is not ideal as the OS is next to dead and you can already dualboot it using Haret and other software.

I am a Computer sciences student and do this for knowledge, not for thanks or donations, so please dont even ask me my paypal id etc.. btw i dont even have one
Last edited by Rick_1995; 8th July 2011 at 08:10 PM.
The Following 3 Users Say Thank You to Rick_1995 For This Useful Post: [ View ]
8th July 2011, 08:49 PM   |  #93  
stirkac's Avatar
Senior Member
Flag the Internet
Thanks Meter: 251
 
759 posts
Join Date:Joined: Dec 2008
More
i think we've got next clk hero after cede better make that paypal cuz it's gonna be money fallin' down from the sky
8th July 2011, 09:31 PM   |  #94  
Rick_1995's Avatar
OP Recognized Developer
Whoville
Thanks Meter: 3,059
 
1,114 posts
Join Date:Joined: Sep 2009
Quote:
Originally Posted by stirkac

i think we've got next clk hero after cede better make that paypal cuz it's gonna be money fallin' down from the sky

Money/Coffee does not affect my programming, its the support and time which are crucial. I have plenty of support at home for my programming ventures but time constraints are unexceptionally high.
8th July 2011, 10:37 PM   |  #95  
Senior Member
Thanks Meter: 94
 
1,176 posts
Join Date:Joined: Jul 2009
Quote:
Originally Posted by Rick_1995

Money/Coffee does not affect my programming, its the support and time which are crucial. I have plenty of support at home for my programming ventures but time constraints are unexceptionally high.

Great to have you on board with this project, if you ever do decide to work on rmnet maybe you could find someone with a jtag kit to test so if I fact the device does brick it can be restored just a thought :)

Sent from my A500 using XDA Premium App
9th July 2011, 12:38 AM   |  #96  
Senior Member
Flag Kozani
Thanks Meter: 297
 
1,139 posts
Join Date:Joined: Jan 2007
If you can make a way to flash recovery without the need of a PC it will be perfect.I mean a way to be in windows mobile,rename clk to leoimg.nbh flash it from sd card and then flash a cwm rom and vice versa to wm it will be awesome.

Sent from my Liquid MT using Tapatalk
9th July 2011, 02:36 AM   |  #97  
Rick_1995's Avatar
OP Recognized Developer
Whoville
Thanks Meter: 3,059
 
1,114 posts
Join Date:Joined: Sep 2009
Quote:
Originally Posted by clio94

If you can make a way to flash recovery without the need of a PC it will be perfect.I mean a way to be in windows mobile,rename clk to leoimg.nbh flash it from sd card and then flash a cwm rom and vice versa to wm it will be awesome.

Sent from my Liquid MT using Tapatalk

yes, im thinking of doing that, but what my current implementation is far from perfect, as of now if there is an "update" partition in sdcard, the file is flashed to the partition which has the same name as the file.

so if we place a new recovery.img and rename it to recovery and put it into that sdcard 'update' partition, it will flash that to recovery.

Now i need to find out how to read it from normal FAT partitions on our sdcards, another big problem might be setting the block size as different people format their cards with different block size.
9th July 2011, 11:21 AM   |  #98  
Senior Member
Thanks Meter: 19
 
182 posts
Join Date:Joined: Feb 2008
More
Quote:
Originally Posted by Rick_1995

Source will be released as soon as i feel that the work is stable enough to be released, i dont want to release unfinished work.

In a way, no. my work is based on lk from codeaurora forums (rewrite up/remodel of cLK) for bootmenu and few other things to work as they should have.


The bootscreen is on always except for when you press
Vol up - lk Boot menu
Vol dn - SPL boot menu
Win key- Verbose Boot (if you cannot boot, this might be useful if no logcat comes up)
Back key -Fastboot mode


Actually no, during offmode charging, your phone boots into recovery, To confirm this, power off your phone and charge it through pc, then enter "adb reboot" in cmd and have a look at your phone. So we will have to modify recovery sourcecode to restart the device on longpress of power button when launched with offmode charging cmdline. so that is not related to cLK, I hope seaderson and arif will look into this as they are the ones currently mantaining CWR for LEO. Although there are som NATIVE android phones which provide offmode charging in quite similar way, i have no idea on how they deal with the said problem and the keypad lights.

Also i was wondering what if we do task 29, install cLK and connect device to power when its off :s
LK has its own poweroff mode charging but due to some unknown reason cedesmith has disabled it, i guess the code is incomplete/unstable.
This is what cedesmith replied to me-
"from what i remember target_battery_charging_enable(1, 0); does not work properly (i can't remember reason) tho i may be wrong.
to power off the device just look in kernel source code."
"I went for recovery charging because kernel already has a driver for charging.
If off mode charging is to be implemented in clk i guess that driver needs to be ported.
I guess charging control is implemented on modem(radio) so it probably work over RPC tho i have no clue on how to do that."


The worse part was rewrite up for LEO and updating the msm power management code, got a LOT of help from cedesmith, irc logs and cotulla

I am trying to make a bootloader for LEO which will make it next to a native device, remodel lk to represent hboot while keeping the goodies from cLK and MAGLDR.

The only thing i cannot promise is working RMNET, it is very dangerous and can brick the device if done incorrectly.

My next progress in list is:

1) True Dual boot like MAGLDR, not using the sboot partition on NAND, (if i fail, dan1j3l is always there )
2) Cosmetical changes to make it look like hboot
3) Code optimisation
4) Code cleanup
5) Release source code

if i have more time, try for WP7 booting and at last research RMNET.

supporting WM6.5 is not ideal as the OS is next to dead and you can already dualboot it using Haret and other software.

I am a Computer sciences student and do this for knowledge, not for thanks or donations, so please dont even ask me my paypal id etc.. btw i dont even have one

Really great work.

I think the only way why cedesmith doesn´t implement charging direkt to clk would be that we have to port batterymonitor driver from kernel direkt to CLK.

So we use kernel to charge and check status inside CWR !

I implement batterymonitorcode and powermanagement inside CLK , have to optimize because CLK doesn´t readout it correct, seems to be a I2C Problem !


Another thing I have done is buying JTAG for direct debugging.
Would figure out what cotulla write at startup to RADIO Part so we could dump and write little handler to optimize RMNET !!!!

Hope in near of future i know much more about HD2 inside =)
The Following User Says Thank You to xlanhackerx For This Useful Post: [ View ]
9th July 2011, 11:29 AM   |  #99  
Senior Member
Thanks Meter: 94
 
1,176 posts
Join Date:Joined: Jul 2009
Quote:
Originally Posted by Rick_1995

yes, im thinking of doing that, but what my current implementation is far from perfect, as of now if there is an "update" partition in sdcard, the file is flashed to the partition which has the same name as the file.

so if we place a new recovery.img and rename it to recovery and put it into that sdcard 'update' partition, it will flash that to recovery.

Now i need to find out how to read it from normal FAT partitions on our sdcards, another big problem might be setting the block size as different people format their cards with different block size.

Or maybe some sort of terminal within clk could be implemented and a script could be ran to flash the recovery.img from the sdcard

Sent from my HTC HD2 using XDA Premium App
The Following User Says Thank You to M..N For This Useful Post: [ View ]
9th July 2011, 11:31 AM   |  #100  
Senior Member
Thanks Meter: 94
 
1,176 posts
Join Date:Joined: Jul 2009
Quote:
Originally Posted by xlanhackerx

Really great work.

I think the only way why cedesmith doesn´t implement charging direkt to clk would be that we have to port batterymonitor driver from kernel direkt to CLK.

So we use kernel to charge and check status inside CWR !

I implement batterymonitorcode and powermanagement inside CLK , have to optimize because CLK doesn´t readout it correct, seems to be a I2C Problem !


Another thing I have done is buying JTAG for direct debugging.
Would figure out what cotulla write at startup to RADIO Part so we could dump and write little handler to optimize RMNET !!!!

Hope in near of future i know much more about HD2 inside =)

So you bought a jtag? That's awesome if you did, radio and rmnet debugging can definitely get underway then

Sent from my HTC HD2 using XDA Premium App

The Following User Says Thank You to M..N For This Useful Post: [ View ]
Post Reply Subscribe to Thread

Tags
1.5, bootloader, clk, hd2, little kernel
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes