Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,785,457 Members 42,072 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
cedesmith
Old
(Last edited by cedesmith; 20th March 2011 at 07:44 PM.)
#1  
cedesmith's Avatar
Retired Recognized Developer - OP
Thanks Meter 464
Posts: 270
Join Date: Feb 2010
Default kernel and recovery patches

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, 2441 views)
File Type: zip old_kernel_patches.zip - [Click for QR Code] (1.4 KB, 1284 views)
File Type: zip cwm_off_charge_v2.zip - [Click for QR Code] (1.5 KB, 1805 views)

TGTool - rom tool for Toshiba TG01
cLK bootloader for HTC HD2
The Following 24 Users Say Thank You to cedesmith For This Useful Post: [ Click to Expand ]
 
cedesmith
Old
(Last edited by cedesmith; 13th April 2011 at 07:33 AM.)
#2  
cedesmith's Avatar
Retired Recognized Developer - OP
Thanks Meter 464
Posts: 270
Join Date: Feb 2010
Default [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, 5207 views)
File Type: zip cLK_1.3.3_src.zip - [Click for QR Code] (594.2 KB, 21446 views)

TGTool - rom tool for Toshiba TG01
cLK bootloader for HTC HD2
The Following 125 Users Say Thank You to cedesmith For This Useful Post: [ Click to Expand ]
 
cedesmith
Old
(Last edited by cedesmith; 27th March 2011 at 11:18 PM.)
#3  
cedesmith's Avatar
Retired Recognized Developer - OP
Thanks Meter 464
Posts: 270
Join Date: Feb 2010
Default 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

TGTool - rom tool for Toshiba TG01
cLK bootloader for HTC HD2
The Following 24 Users Say Thank You to cedesmith For This Useful Post: [ Click to Expand ]
 
cedesmith
Old
(Last edited by cedesmith; 26th March 2011 at 09:35 AM.)
#4  
cedesmith's Avatar
Retired Recognized Developer - OP
Thanks Meter 464
Posts: 270
Join Date: Feb 2010
Default 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

TGTool - rom tool for Toshiba TG01
cLK bootloader for HTC HD2
The Following 9 Users Say Thank You to cedesmith For This Useful Post: [ Click to Expand ]
 
jackielo
Old
#5  
Senior Member
Thanks Meter 5
Posts: 222
Join Date: Apr 2006
Location: Shanghai
Oh, I can't wait to try it.
 
icsulescu
Old
#6  
icsulescu's Avatar
Senior Member
Thanks Meter 31
Posts: 342
Join Date: Sep 2007
Location: Bucharest
Felicitari !!

Congratulation well done!

Regards,
Me
Nexus 5
Operator: Cosmote
ROM: Stock

Nexus 7.2
Operator: Digi
ROM:Stock
 
jamieross
Old
#7  
jamieross's Avatar
Senior Member
Thanks Meter 51
Posts: 212
Join Date: Mar 2010
Location: Armadale
good stuff il second trying that
Current Phone:
::Samsung Galaxy Note [Stock Rom]
::[AbyssNote Kernel]


[GUIDE] ..::The Galaxy Note Tips n Tricks Collaboration::..

Previous Phone:
:: [25.OCT.11][MAG/CLK][ROM-PORT] Redux2 HD2 v1.1a [AOSP 2.3.5][LITE][NO-A2SD][R12.4]
:: Partition: 5/60/5
:: Radio: 2.15
:: Magldr: 1.13

HD2
WM 6.5 | WP7.5 | Android | Ubuntu | Meego

And finally... For those of you that just gotta have house music...
http://www.youtube.com/djjamieross
 
norpan111
Old
#8  
Senior Member
Thanks Meter 537
Posts: 3,282
Join Date: Mar 2010
Location: Halmstad
How do you flash those roms on that one ?

Sent from my HTC bravo using XDA App
 
simax
Old
#9  
Senior Member
Thanks Meter 13
Posts: 316
Join Date: Jul 2010
can this be used as replacement for magldr?

if yes.. can i finally charge my battery while turned off?
i ♥ nand
 
hellfire666
Old
#10  
hellfire666's Avatar
Senior Member
Thanks Meter 43
Posts: 144
Join Date: May 2008
Location: Bronx
Nice!!!!!!! downloading..............
Current
One Plus One - 64GB - Daily Driver


 

History so far

Nokia 1100 - Have no idea where it is | Nokia N95 - SOLD | Nokia 5800 - backup | HTC HD 2 Leo - SOLD | Inspire 4G-SOLD | HTC Desire HD - SOLD | Iphone 4 - Have no idea where it is | Samsung Galaxy S 2 - SOLD | Samsung Galaxy S 3 - SOLD | Lumia 900 - Lost | Nexus 4 - Broken | Nexus 5 - SOLD

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes