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

[15MAR][BOOTLOADER]+[RECOVERY] cLK v1.3.3

OP cedesmith

5th January 2011, 06:20 PM   |  #1  
cedesmith's Avatar
OP Retired Recognized Developer
Thanks Meter: 464
 
270 posts
Join Date:Joined: Feb 2010
17.03.2011
- small fix on get_boot_reason
- cwm off charge fully implemented, inspired by dan1j3l's code (http://gitorious.org/htc-hd2-android.../master/cmon.c)
15.03.2011
- kernel patch to save reboot reason so is available on bootloader
- old patched in zip as pushed in most branches
25.02.2011
- CWM patch for charging, unpached CWM code is not properly reading kernel cmdline because /proc/cmdline file size is always 0 resulting in a always empty cmd line. I also changed the code to wait for key press then reboot phone to normal android.

20.02.2011
- cLK_power_clllapse patch adds detection of cLK to kernel and puts the reset vector at 0x11800000 where cLK will jump (+4) at power_collapse_exit
- off_mode_charging just prevents the kernel from BUG() if off mode charging and panel is off ( and not detectable )
- both of this patches are compatibile with current SD and magldr builds, please push them to your git trees
Attached Files
File Type: zip kernel_reboot_reason.zip - [Click for QR Code] (697 Bytes, 2529 views)
File Type: zip old_kernel_patches.zip - [Click for QR Code] (1.4 KB, 1327 views)
File Type: zip cwm_off_charge_v2.zip - [Click for QR Code] (1.5 KB, 1866 views)
Last edited by cedesmith; 20th March 2011 at 08:44 PM.
The Following 24 Users Say Thank You to cedesmith For This Useful Post: [ View ]
5th January 2011, 06:20 PM   |  #2  
cedesmith's Avatar
OP Retired Recognized Developer
Thanks Meter: 464
 
270 posts
Join Date:Joined: Feb 2010
[15MAR][BOOTLOADER]+[RECOVERY] cLK v1.3.3
cedesmith's (L)ittle (K)ernel bootloader v1.3.3


Disclaimer
This comes with no warranties, if you use it you do it on your own risk.
Please read carefully the flowing information and make sure you know what you are doing.
I don't have time or patience for questions and support. If you use it you are on your own (well and this community).

Recovery
- CWM 3.0.1.4


Q&A
Q: What it is ?
A: A bootloader for android like magldr.

Q: Is it better then magldr ?
A1: NO, it is missing tetris .
A2: NO, magldr has some nice features like partitioning and rmnet.

Q: Can i use last 24MB of nand with this?
A: NO, SPL will erase them. When i have some time i may try to fix it.

Q: Does battery charge with this ?
A: YES, from version 1.3

Q: Does it boot WP7?
A: NO. I am only interested in android but in can load and execute any program.

Q: Should i install it ?
A: If you had to ask probably not. If has no functional benefits over magldr.

How To

Flash cLK
- make sure you have hspl
- enter SPL by holding VOL DOWN key while powering/resting the phone.
- flash with customruu like you would a windows rom and/or magldr

Flash a ROM
- download android sdk, you will need drivers and fastboot command from there
- fastboot flash recovery recovery.img
- after recovery you can reboot and use CWM or you can flash with fastboot (fastboot flash boot boot.img, fastboot flash system system.img, fastboot flash userdata userdata.img)

Start recovery / fastboot / text console
- holding down any key ( except power ) will show text console
- home key will enter recovery ( if flashed )
- back key will enter fastboot mode

Known issues
RMNET does not work.

Downloads

NBH
- RUU 1.3.3
- 1.3.3 and 1.4 are are exactly the same function wise, only tools used to build them is different (1.4 includes nbgen written by me to replace osnbtool and nbmerge)
- recovery.img
ROM
- see post #3

Source code
git link
compile on a linux machine with wine and codesourcery toolchain in path by executing "sh compile" in root of source


Credits
- codeaurrora for making LK and for making it open
- Martin Johnson for his tinboot witch was a great inspiration
- Martijn Stolk for his kernel segfault solving code and and cotulla for pointing it and his contribution to android on HD2
- all how worked on making linux kernel possible on hd2
Attached Files
File Type: zip cLK_1.3.2_src.zip - [Click for QR Code] (594.2 KB, 5234 views)
File Type: zip cLK_1.3.3_src.zip - [Click for QR Code] (594.2 KB, 21509 views)
Last edited by cedesmith; 13th April 2011 at 08:33 AM.
The Following 125 Users Say Thank You to cedesmith For This Useful Post: [ View ]
5th January 2011, 06:20 PM   |  #3  
cedesmith's Avatar
OP Retired Recognized Developer
Thanks Meter: 464
 
270 posts
Join Date:Joined: Feb 2010
ROMS
HyperDroid-CM7 by pongster

cLK for Dummies by stirkac

Froyo Sense revolution 2.5 by arif-ali

CWM 3.0.1.4 with yes/no menu by seadersn

UD 3.1 by crawlingcity

Revolution HD v2.6 & SL v1.4 by arif-ali


TyphoonN 2.6.3 CM7 for cLK

- download cLK
- download recovery
- if you don't have it download fastboot,adb and drivers from here
- download TyphooN 2.6.3 Standard Edition rom from original thread
- download typhoon kernel(tytung_r7) and initrd for clk update

- put rom zip and clk update zip on sdcard
- unzip clk and recovery
- flash clk ruu
- fastboot flash recovery recovery.3.0.1.4_clk_1.3.3.img
- fastboot reboot
- hold HOME key down to boot recovery
- wipe data/factory reset (if not updating from my previous version)
- install zip from sdcard -> choose zip from sdcard -> TyphooN_CM7_v2.6.3.zip
- install zip from sdcard -> choose zip from sdcard -> typhoon2.6.3_tyung_r7_clk_update.zip
- wipe chache

Other?
- drop me a PM to include it on this post
Last edited by cedesmith; 28th March 2011 at 12:18 AM.
The Following 24 Users Say Thank You to cedesmith For This Useful Post: [ View ]
5th January 2011, 06:20 PM   |  #4  
cedesmith's Avatar
OP Retired Recognized Developer
Thanks Meter: 464
 
270 posts
Join Date:Joined: Feb 2010
clk changelog
1.4
  • nbgen for making .nb file
1.3.31.3.2
  • ROMHDR base addr is spl virtual 0x80000000 = 11800000 physical, LK will relocate to correct address (MEMBASE)
  • save reboot reason at 0x2FFB0000 (ramconsole - 0x1000 (PAGE_SIZE)) and @0x2FFB0004 XOR 0x004b4c63 (cLK signature)
  • added oem cmd to fastboot and oemcmd.bat for PC. supported commands are:
    • dmesg - kernel debug messages
    • smesg - spl messages
    • pwf addr len - dump memory
    • set[c,w,s] addr value - set char(1byte), word(4 byes), or string
Last edited by cedesmith; 26th March 2011 at 10:35 AM.
The Following 9 Users Say Thank You to cedesmith For This Useful Post: [ View ]
5th January 2011, 06:23 PM   |  #5  
Senior Member
Flag Shanghai
Thanks Meter: 5
 
222 posts
Join Date:Joined: Apr 2006
More
Oh, I can't wait to try it.
5th January 2011, 06:24 PM   |  #6  
icsulescu's Avatar
Senior Member
Flag Bucharest
Thanks Meter: 31
 
342 posts
Join Date:Joined: Sep 2007
More
Felicitari !!

Congratulation well done!

Regards,
Me
5th January 2011, 06:27 PM   |  #7  
jamieross's Avatar
Senior Member
Flag Armadale
Thanks Meter: 51
 
212 posts
Join Date:Joined: Mar 2010
More
good stuff il second trying that
5th January 2011, 06:28 PM   |  #8  
Senior Member
Flag Halmstad
Thanks Meter: 538
 
3,295 posts
Join Date:Joined: Mar 2010
More
How do you flash those roms on that one ?

Sent from my HTC bravo using XDA App
5th January 2011, 06:29 PM   |  #9  
Senior Member
Thanks Meter: 13
 
316 posts
Join Date:Joined: Jul 2010
More
can this be used as replacement for magldr?

if yes.. can i finally charge my battery while turned off?
5th January 2011, 06:31 PM   |  #10  
hellfire666's Avatar
Senior Member
Flag Bronx
Thanks Meter: 137
 
168 posts
Join Date:Joined: May 2008
More
Nice!!!!!!! downloading..............

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes