Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,808,174 Members 35,967 Now Online
XDA Developers Android and Mobile Development Forum

[23 Nov 12] cLK

Tip us?
 
wolfpack612
Old
#91  
Senior Member
Thanks Meter 71
Posts: 430
Join Date: Nov 2006
Location: Hollywood
Quote:
Originally Posted by xlanhackerx View Post
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
Samsung Galaxy Note 2
Carrier: T-Mobile USA
Radio: UVBMD1
ROM: Stock rooted deodexed UVBMD1
Kernel: SaberKernel 32.2
 
Rick_1995
Old
(Last edited by Rick_1995; 8th July 2011 at 07:10 PM.)
#92  
Rick_1995's Avatar
Recognized Developer - OP
Thanks Meter 3,055
Posts: 1,114
Join Date: Sep 2009
Location: Whoville
Quote:
Originally Posted by xlanhackerx View Post
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 View Post
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 View Post
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 View Post
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
The Following 3 Users Say Thank You to Rick_1995 For This Useful Post: [ Click to Expand ]
 
stirkac
Old
#93  
stirkac's Avatar
Senior Member
Thanks Meter 251
Posts: 759
Join Date: Dec 2008
Location: the Internet
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
 
Rick_1995
Old
#94  
Rick_1995's Avatar
Recognized Developer - OP
Thanks Meter 3,055
Posts: 1,114
Join Date: Sep 2009
Location: Whoville
Quote:
Originally Posted by stirkac View Post
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.
 
M..N
Old
#95  
Senior Member
Thanks Meter 94
Posts: 1,176
Join Date: Jul 2009
Quote:
Originally Posted by Rick_1995 View Post
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
Phone : Nexus 4 16GB
Tablet : Nexus 7 32GB-Acer A500 16GB

Previous Devices - T-Mobile G1, HTC HD2, HTC Desire HD, HTC Sensation, Samsung Galaxy S3 16GB White
 
clio94
Old
#96  
Senior Member
Thanks Meter 297
Posts: 1,139
Join Date: Jan 2007
Location: Kozani
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
 
Rick_1995
Old
#97  
Rick_1995's Avatar
Recognized Developer - OP
Thanks Meter 3,055
Posts: 1,114
Join Date: Sep 2009
Location: Whoville
Quote:
Originally Posted by clio94 View Post
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.
 
xlanhackerx
Old
#98  
Senior Member
Thanks Meter 19
Posts: 182
Join Date: Feb 2008
Quote:
Originally Posted by Rick_1995 View Post
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: [ Click to Expand ]
 
M..N
Old
#99  
Senior Member
Thanks Meter 94
Posts: 1,176
Join Date: Jul 2009
Quote:
Originally Posted by Rick_1995 View Post
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
Phone : Nexus 4 16GB
Tablet : Nexus 7 32GB-Acer A500 16GB

Previous Devices - T-Mobile G1, HTC HD2, HTC Desire HD, HTC Sensation, Samsung Galaxy S3 16GB White
The Following User Says Thank You to M..N For This Useful Post: [ Click to Expand ]
 
M..N
Old
#100  
Senior Member
Thanks Meter 94
Posts: 1,176
Join Date: Jul 2009
Quote:
Originally Posted by xlanhackerx View Post
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
Phone : Nexus 4 16GB
Tablet : Nexus 7 32GB-Acer A500 16GB

Previous Devices - T-Mobile G1, HTC HD2, HTC Desire HD, HTC Sensation, Samsung Galaxy S3 16GB White

The Following User Says Thank You to M..N For This Useful Post: [ Click to Expand ]
Tags
1.5, bootloader, clk, hd2, little kernel
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes