i hope nobody gets the definition of the sboot feature mixed up.. http://www.urbandictionary.com/define.php?term=sboot
lol...
This is good one!!!
sboot is just short for second boot
i hope nobody gets the definition of the sboot feature mixed up.. http://www.urbandictionary.com/define.php?term=sboot
lol...
Is it possible set partition settings for use 24 Last Mb? (Last 24 Mb in MAGLDR)
I using this flash.cfg (MAGLDR):
misc ya 1M
recovery rrecov|ro|nospr filesize recovery-raw.img
boot yboot|ro 5M
system ya 135M
userdata ya|hr 270M
cache ya|asize|hr allsize
How can i port this settings to clk loader?
No, using last 24mb is not possible with cLK, atleast for now.
as for porting, you will have to compile a version of clk for yourself.
Here you go, i am putting up the version of cLK i'm working on.
currently the changelogs are
1) Better power efficiency by optimising and updating the power management code for msm.
2) Complete fastboot compliance with standard v0.3 (check google git, 0.3 is current)
3) A Boot menu.
4) Can switch off/Power Off in the boot loader itself, no need to access recovery for that.
5) Capability to boot SD Android like MAGLDR (WIP)
to access boot menu, keep holding Volume UP when u press power (just like you hold Volume Down for SPL)
btw, i've used exactly the same flash.cfg parameters you've given (please check if its really 270mb userdata and rest all cache)
just extract the file and run CustomRUU as administrator if you're using Windows 7 or Vista.
Please have a look at this Wonderful guide on cLK before using it
No, using last 24mb is not possible with cLK, atleast for now.
as for porting, you will have to compile a version of clk for yourself.
Here you go, i am putting up the version of cLK i'm working on.
currently the changelogs are
1) Better power efficiency by optimising and updating the power management code for msm.
2) Complete fastboot compliance with standard v0.3 (check google git, 0.3 is current)
3) A Boot menu.
4) Can switch off/Power Off in the boot loader itself, no need to access recovery for that.
5) Capability to boot SD Android like MAGLDR (WIP)
to access boot menu, keep holding Volume UP when u press power (just like you hold Volume Down for SPL)
btw, i've used exactly the same flash.cfg parameters you've given (please check if its really 270mb userdata and rest all cache)
just extract the file and run CustomRUU as administrator if you're using Windows 7 or Vista.
Please have a look at this Wonderful guide on cLK before using it
No, using last 24mb is not possible with cLK, atleast for now.
as for porting, you will have to compile a version of clk for yourself.
Here you go, i am putting up the version of cLK i'm working on.
currently the changelogs are
1) Better power efficiency by optimising and updating the power management code for msm.
2) Complete fastboot compliance with standard v0.3 (check google git, 0.3 is current)
3) A Boot menu.
4) Can switch off/Power Off in the boot loader itself, no need to access recovery for that.
5) Capability to boot SD Android like MAGLDR (WIP)
to access boot menu, keep holding Volume UP when u press power (just like you hold Volume Down for SPL)
btw, i've used exactly the same flash.cfg parameters you've given (please check if its really 270mb userdata and rest all cache)
just extract the file and run CustomRUU as administrator if you're using Windows 7 or Vista.
Please have a look at this Wonderful guide on cLK before using it
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 !!
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.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!
The bootscreen is on always except for when you pressmust 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
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.that's also the normal behavior on clk1.4.0.1
Sent from my HTC HD2 using XDA Premium App
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.
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
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
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.
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 =)
"recovery:5"
"misc:1"
"boot:5"
"userdata:0"
"system:150"
"cache:5"
And we want to change it to:1."recovery"
2."misc"
3."boot"
4."userdata"
5."system"
6."cache"
1."recovery"
2."misc"
3."boot"
4."cache"
5."system"
6."userdata"
"recovery:5"
"misc:1"
"boot:5"
"system:150"
"userdata:0"
"cache:5"
[U]Default partition table:[/U] recovery=5,misc=1,boot=5,system=150,userdata=0,cache=5
[U]Included recovery:[/U] CWM Recovery Touch Beta 8 Release Candidate 1
[U]ExtRom:[/U] Disabled
fastboot oem part-resize name:size:b
where size is in blocks
i.e. fastboot oem part-resize misc:9:b => will resize 'misc' part to 9 blocks
fastboot oem part-add name:size:b
where size is in blocks
i.e. fastboot oem part-add misc:8:b => will add 'misc' part with size 8 blocks (= 1MB)
[U]Default partition table:[/U] recovery=5,misc=1,boot=5,system=150,userdata=0,cache=5
[U]Included recovery:[/U] CWM Recovery Touch Beta 8 Release Candidate 1
[U]ExtRom:[/U] Disabled
fastboot flash lk lk.img
nbgen -b:lk.bin -o:lk.img
[U]Default partition table:[/U] recovery=5,misc=1,boot=5,system=150,userdata=0,cache=5
[U]Included recovery:[/U] CWM Recovery Touch Beta 8 Release Candidate 1
[U]ExtRom:[/U] Disabled
[U]Default partition table:[/U] recovery=5,misc=1,boot=5,system=150,userdata=0,cache=5
[U]Included recovery:[/U] CWM Recovery Touch Beta 8 Release Candidate 1
[U]ExtRom:[/U] Disabled
[U]Default partition table:[/U] recovery=5,misc=1,boot=5,system=150,userdata=0,cache=5
[U]Included recovery:[/U] CWM Recovery Touch Beta 8 Release Candidate 1
[U]ExtRom:[/U] Disabled
supported_boot_partitions[] =
{
{"boot",},
{"sboot"},
{"tboot"},
{"vboot"}, //no uboot :D
{"wboot"},
{"xboot"},
{"yboot"},
{"zboot"},
{""},
};
'fastboot oem key 8' ==> KEY_VOLUMEUP
'fastboot oem key 2' ==> KEY_VOLUMEDOWN
'fastboot oem key 5' ==> KEY_SEND
'fastboot oem key 0' ==> KEY_BACK
[U]Default partition table:[/U] recovery=5,misc=1,boot=5,system=150,userdata=0,cache=5
[U]Included recovery:[/U] CWM Recovery Touch Beta 8 Release Candidate 1
[U]ExtRom:[/U] Disabled
[U]Default partition table:[/U] recovery=5,misc=1,boot=5,system=150,userdata=0,cache=5
[U]Included recovery:[/U] CWM Recovery Touch Beta 8 Release Candidate 1
[U]ExtRom:[/U] Disabled
[U]Default partition table:[/U] recovery=5,misc=1,boot=5,system=150,userdata=0,cache=5
[U]Included recovery:[/U] CWM Recovery Touch Beta 8 Release Candidate 1
[U]ExtRom:[/U] Disabled
[U]Default partition table:[/U] recovery=6,boot=5,misc=1,system=150,userdata=0,cache=5
[U]Included recovery:[/U] CWM Recovery Touch Beta 8 Release Candidate 1
[U]ExtRom:[/U] Disabled
[U]Default partition table:[/U] recovery=6,boot=5,misc=1,system=150,userdata=0,cache=5
[U]Included recovery:[/U] CWM Recovery Touch Beta 8 Release Candidate 1
[U]ExtRom:[/U] Disabled
[U]Default partition table:[/U] recovery=6,boot=5,misc=1,system=150,userdata=0,cache=5
[U]Included recovery:[/U] CWM Recovery Touch Beta 8 Release Candidate 1
[U]ExtRom:[/U] Disabled
[U]Default partition table:[/U] recovery=6,boot=5,misc=1,system=150,userdata=0,cache=5
[U]Included recovery:[/U] CWM Recovery Touch Beta 8 Release Candidate 1
[U]ExtRom:[/U] Disabled
[U]Default partition table:[/U] recovery=6,boot=5,misc=1,system=150,userdata=0,cache=5
[U]Included recovery:[/U] (a)CWM Recovery Touch Beta 8 Release Candidate 1 Or (b)TWRP 2.2.2.0 with new zImage (patched tytung's latest GB-kernel)
[U]ExtRom:[/U] Disabled
[U]Default partition table:[/U] recovery=6,boot=5,misc=1,system=150,userdata=0,cache=5
[U]Included recovery:[/U] Extended TWRP 2.4.1.0.r1
[U]ExtRom:[/U] Disabled
[U]Default partition table:[/U] recovery=6,boot=5,misc=1,system=150,userdata=0,cache=5
[U]Included recovery:[/U] Extended TWRP 2.4.1.0.r1
[U]ExtRom:[/U] Disabled
RAMDISK_ADDR := "(BASE_ADDR+0x01000000)"
SCRATCH_ADDR := "(BASE_ADDR+0x02000000)"
[U]Default partition table:[/U] recovery=6,boot=5,misc=1,system=150,userdata=0,cache=5
[U]Included recovery:[/U] Extended TWRP 2.4.1.0.r2
[U]ExtRom:[/U] Disabled
[U]Default partition table:[/U] recovery=8,boot=5,misc=1,system=150,userdata=0,cache=5
[U]Included recovery:[/U] Extended TWRP 2.4.4.0.r1
[U]ExtRom:[/U] Disabled
[U]Default partition table:[/U] recovery=8,boot=5,misc=1,system=150,userdata=0,cache=5
[U]Included recovery:[/U] Extended TWRP 2.5.0.3
[U]ExtRom:[/U] Disabled
The following tools are provided here, for linux(ubuntu 64bit binaries), windows and mac:
Q: What is cLK?