Compare commits

..

3 Commits

Author SHA1 Message Date
7471ee9022 fixed issue on version.h 2011-05-08 02:49:24 +01:00
8332acfa89 fixed init.c to add the version veriable 2011-05-08 02:38:38 +01:00
98d0f46c45 Added version.h, Makefile
Added relevent version info in the rest of the code, to reference
the variable in version.h. Makefile to be able to use make
2011-05-08 02:35:18 +01:00
8 changed files with 6 additions and 163 deletions

93
README
View File

@ -1,93 +0,0 @@
=================
cLK by cedesmith
=================
URL: http://forum.xda-developers.com/showthread.php?t=901305
1. Disclaimer
2. FAQ
3. How To
3.1. Flash cLK
3.2. Compiling cLK
4. Known Issues
5. Credits
================
1. 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).
================
2. FAQ
================
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.
=================
3. How To
=================
3.1 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 (or rather, just adb, drivers and fastboot)
- 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
The following URL has a fantastic howto by stirkac
http://forum.xda-developers.com/showpost.php?p=12327648&postcount=844
3.2 Compiling cLK
-----------------
Linux: http://forum.xda-developers.com/showpost.php?p=12461912&postcount=934
Windows: http://forum.xda-developers.com/showpost.php?p=12461551&postcount=932
=================
4. Known issues
=================
RMNET does not work.
=================
5. Credits
=================
- cedesmith for make LK available for the HD2
- 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

Binary file not shown.

View File

@ -1,19 +0,0 @@
cLK 1.4
---------
Built by arif-ali from xda-developers
using 2009q3 of Codesourcery Toolchain
misc 1M
recovery 5M
boot 8M
system 90M
cache 5M
userdata remaining
Thanks and credits
------------------
* cedesmith
* seadersn
- 27 Mar 2011

View File

@ -1,41 +0,0 @@
#!/bin/bash
export ARM=$PWD/../../../toolchain/arm-2009q3/bin
export PATH=$ARM:$PATH
export VERSION=1.4.0.1
#export SIZES="`echo {80..150..10} {160..460..20} 250 350 450`"
export SIZES="`echo {80..450..10}`"
export CACHE="5 44"
export OUTPUT=$PWD/../cLK-out
export O_ALL=$OUTPUT/allInOne
export O_ZIP=$OUTPUT/zips
make clean
mkdir -p $O_ALL
mkdir -p $O_ZIP
rm -rf $O_ALL/{*.nbh,*.zip}
rm -rf $O_ZIP/*.zip
for cache in $CACHE
do
for size in $SIZES
do
sed -i s/DEFINES\ +=\ SYSTEM_PARTITION_SIZE=.*/DEFINES\ +=\ SYSTEM_PARTITION_SIZE=${size}/ lk/target/htcleo/rules.mk
sed -i s/DEFINES\ +=\ CACHE_PARTITION_SIZE=.*/DEFINES\ +=\ CACHE_PARTITION_SIZE=${cache}/ lk/target/htcleo/rules.mk
sed -i s/system\ .*/system\ ${size}M/ build-stuff/readme.txt
sed -i s/cache\ .*/cache\ ${cache}M/ build-stuff/readme.txt
make partition
pushd build-stuff
rm -rf $O_ZIP/cLK_${VERSION}_${size}_${cache}.zip
mv ../bin/RUU_signed.nbh .
zip -9Dr $O_ZIP/cLK_${VERSION}_${size}_${cache}.zip readme.txt CustomRUU.exe RUU_signed.nbh
cp RUU_signed.nbh $O_ALL/RUU_signed-${size}-${cache}.nbh
rm -rf RUU_signed.nbh
popd
done
done
pushd $O_ALL
rm -rf cLK_${VERSION}_layouts_arif.zip
zip -9Dr cLK_${VERSION}_layouts_arif.zip *.nbh
popd

View File

@ -297,7 +297,7 @@ unified_boot:
strcat(cmdline,cLK_version);
dprintf(INFO, "cmdline = '%s'\n", cmdline);
dprintf(INFO, "\nBooting Linux\n");
boot_linux((void *)hdr->kernel_addr, (void *)TAGS_ADDR,
(const char *)cmdline, board_machtype(),
@ -653,8 +653,6 @@ void aboot_init(const struct app_descriptor *app)
/* Check if we should do something other than booting up */
if (keys_get_state(KEY_HOME) != 0)
boot_into_recovery = 1;
//if (keys_get_state(KEY_SOFT1) != 0)
// try_flash_recovery = 1;
if (keys_get_state(KEY_BACK) != 0)
goto fastboot;
if (keys_get_state(KEY_CLEAR) != 0)

View File

@ -4,4 +4,3 @@
static const char *cLK_version = "1.4.0.1";
#endif

View File

@ -42,7 +42,7 @@ static struct ptentry board_part_list[MAX_PTABLE_PARTS] __attribute__ ((aligned
.length = SYSTEM_PARTITION_SIZE /* In MB */,
},
{
.length = CACHE_PARTITION_SIZE /* In MB */,
.length = 44 /* In MB */,
.name = "cache",
},
{
@ -150,8 +150,8 @@ void target_init(void)
}
void display_lk_version()
{
char *version = "cedesmith's LK (CLK) v";
strcat(version,cLK_version);
char *version = "cedesmith's LK (CLK) v";
strcat(version,cLK_version);
strcat(version,"\n");
_dputs(version);
}

View File

@ -5,9 +5,8 @@ INCLUDES += -I$(LOCAL_DIR)/include -I$(LK_TOP_DIR)/platform/msm_shared
PLATFORM := qsd8k
#define system partition size (in MB), if not defined my custom (from magldr) layout is used. see init.c
DEFINES += SYSTEM_PARTITION_SIZE=90
#DEFINES += SYSTEM_PARTITION_SIZE=90
DEFINES += CACHE_PARTITION_SIZE=5
DEFINES += SYSTEM_PARTITION_SIZE=150
#DEFINES += SYSTEM_PARTITION_SIZE=250
#cedesmith note: MEMBASE requires edit in platform/qsd8k/rules.mk
# maximum partition size will be about 340mb ( MEMBASE-SCRATCH_ADDR)