FORUMS
Remove All Ads from XDA
Honor 7x
Win an Honor 7X!

[07.aug.11][KERNEL]RAFPIGNA 2.0 OC [1.5ghz-Ext2/3/4-CIFS-UTF8-EAP-UV-EB-CLK]

1,334 posts
Thanks Meter: 2,232
 
By rafpigna, Retired Recognized Developer on 4th February 2011, 04:00 AM
Post Reply Email Thread
3rd August 2011, 06:15 AM |#421  
inf3rno1's Avatar
Senior Member
Flag Orange County
Thanks Meter: 24
 
More
was really looking forward to raf's update, but now I am losing hope

take your time though, thanks for all the hard work!
 
 
3rd August 2011, 07:10 AM |#422  
Senior Member
Thanks Meter: 1,348
 
More
i'm sure there's a good reason to the time it takes.
quality takes time.
functionality takes time.

we should grow more patience.
take comfort in the fact that our phones already exceeded all expectations in running Android 2.3.5 while manufactor never intended it will happen.

Sent from my NookColor using XDA Premium App
6th August 2011, 02:00 PM |#423  
rafpigna's Avatar
OP Retired Recognized Developer
Flag Rome
Thanks Meter: 2,232
 
Donate to Me
More
Hello folks,
I'm currently working and I hope to release kernel update today or tomorrow.

Anyway let me explain some stuff:

1- HD2 is not my daily phone (I use a Desire HD) so it's really hard for me to test things very good.
2- I have no much free time like in the past.. just to let you understand on my Desire HD I have the same rom from when I bought it in March.. still android 2.2...
3- I see that, apart some little issues that I was still not able to find, this kernel is almost perfect as it is. So I decided that the 2.0 version will be just a "refresh" from a long time. Then, if some bugs or issues arises during your use, I will try to correct them.

I need some time to do things also because I feel a little bit confused since I not followed delevolping for long time, like I dont know anything about cLK...

Thanks for you patience and your following
The Following 11 Users Say Thank You to rafpigna For This Useful Post: [ View ] Gift rafpigna Ad-Free
6th August 2011, 02:05 PM |#424  
Senior Member
Flag Nantong,China
Thanks Meter: 31
 
More
Quote:
Originally Posted by rafpigna

Hello folks,
I'm currently working and I hope to release kernel update today or tomorrow.

Anyway let me explain some stuff:

1- HD2 is not my daily phone (I use a Desire HD) so it's really hard for me to test things very good.
2- I have no much free time like in the past.. just to let you understand on my Desire HD I have the same rom from when I bought it in March.. still android 2.2...
3- I see that, apart some little issues that I was still not able to find, this kernel is almost perfect as it is. So I decided that the 2.0 version will be just a "refresh" from a long time. Then, if some bugs or issues arises during your use, I will try to correct them.

I need some time to do things also because I feel a little bit confused since I not followed delevolping for long time, like I dont know anything about cLK...

Thanks for you patience and your following

Wow..Welcome back!!
Thank you so much for your hard work
6th August 2011, 02:06 PM |#425  
Rick_1995's Avatar
Inactive Recognized Developer
Flag Santa Clara
Thanks Meter: 3,060
 
More
Quote:
Originally Posted by rafpigna

Hello folks,
I'm currently working and I hope to release kernel update today or tomorrow.

Anyway let me explain some stuff:

1- HD2 is not my daily phone (I use a Desire HD) so it's really hard for me to test things very good.
2- I have no much free time like in the past.. just to let you understand on my Desire HD I have the same rom from when I bought it in March.. still android 2.2...
3- I see that, apart some little issues that I was still not able to find, this kernel is almost perfect as it is. So I decided that the 2.0 version will be just a "refresh" from a long time. Then, if some bugs or issues arises during your use, I will try to correct them.

I need some time to do things also because I feel a little bit confused since I not followed delevolping for long time, like I dont know anything about cLK...

Thanks for you patience and your following

Nice to see you back, well cLK is just an Open source alternative to MAGLDR, it is not at all better, just an attempt of being better.

To make your kernel compatible with cLK, include the following patches:

1) Power Collapse patch:
Code:
diff --git a/arch/arm/mach-msm/board-htcleo.c b/arch/arm/mach-msm/board-htcleo.c
index e13205b..ee7680e 100644
--- a/arch/arm/mach-msm/board-htcleo.c
+++ b/arch/arm/mach-msm/board-htcleo.c
@@ -87,6 +87,7 @@ static int __init parse_tag_nand_boot(const struct tag *tag)
 {
 	struct tag_magldr_entry *mentry = (struct tag_magldr_entry *)(&tag->u);
 	nand_boot = !(unsigned int)mentry->fNoNandBoot;
+	if(*((unsigned*)&tag->u)==0x004b4c63) nand_boot = 2; // cLK signature
 	pr_info("Nand Boot: %d\n", nand_boot);
 	return 0;
 }
diff --git a/arch/arm/mach-msm/pm.c b/arch/arm/mach-msm/pm.c
index 8766174..56ccb2a 100644
--- a/arch/arm/mach-msm/pm.c
+++ b/arch/arm/mach-msm/pm.c
@@ -892,6 +892,15 @@ static int __init msm_pm_init(void)
 	register_reboot_notifier(&msm_reboot_notifier);
 	msm_pm_reset_vector = ioremap(0x0, PAGE_SIZE);
 
+#if defined(CONFIG_MACH_HTCLEO)
+	// if cLK is bootloader 0x0 is protected and not writtable but cLK changed reset vecotr to jump at address stored at 0x11800004
+	if(htcleo_is_nand_boot()==2){
+		pr_info("msm_pm: 0x00000000: %x\n", msm_pm_reset_vector[0]);
+		pr_info("msm_pm: 0x00000004: %x\n", msm_pm_reset_vector[1]);
+		msm_pm_reset_vector = ioremap(0x11800000, PAGE_SIZE);
+	}
+#endif
+
 	if (msm_pm_reset_vector == NULL) {
 		printk(KERN_ERR "msm_pm_init: failed to map reset vector\n");
 		return -ENODEV;
2) Offmode kernel charging init panel crash prevention patch:

Code:
diff --git a/arch/arm/mach-msm/board-htcleo-panel.c b/arch/arm/mach-msm/board-htcleo-panel.c
index a7a701d..1b98611 100644
--- a/arch/arm/mach-msm/board-htcleo-panel.c
+++ b/arch/arm/mach-msm/board-htcleo-panel.c
@@ -861,9 +861,17 @@ static void detect_panel_type(void)
 	}
 	else
 	{
-		printk(" UNKNOWN, stop system now\n");
 		htcleo_panel_type = PANELTYPE_UNKNOWN;
-		BUG();
+		extern int board_mfg_mode(void);
+		if(board_mfg_mode()==5) 
+		{
+			printk(" offmode charging, panel is off\n");
+		}
+		else
+		{
+			printk(" UNKNOWN, stop system now\n");
+			BUG();
+		}
 	}
 }
 
diff --git a/arch/arm/mach-msm/devices_htc.c b/arch/arm/mach-msm/devices_htc.c
index e5f65e7..6839c0d 100644
--- a/arch/arm/mach-msm/devices_htc.c
+++ b/arch/arm/mach-msm/devices_htc.c
@@ -457,6 +457,10 @@ int __init board_mfg_mode_init(char *s)
 		mfg_mode = 2;
 	else if (!strcmp(s, "charge"))
 		mfg_mode = 3;
+	else if (!strcmp(s, "power_test"))
+		mfg_mode = 4;
+	else if (!strcmp(s, "offmode_charging"))
+		mfg_mode = 5; 
 
 	return 1;
 }
3) Kernel reboot reason patch:

Code:
diff --git a/arch/arm/mach-msm/pm.c b/arch/arm/mach-msm/pm.c
index 56ccb2a..f3b17f2 100644
--- a/arch/arm/mach-msm/pm.c
+++ b/arch/arm/mach-msm/pm.c
@@ -714,10 +714,28 @@ void msm_pm_flush_console(void)
 	release_console_sem();
 }
 
+#if defined(CONFIG_MACH_HTCLEO)
+static void htcleo_save_reset_reason()
+{
+	/* save restart_reason to be accesible in bootloader @ ramconsole - 0x1000*/
+	uint32_t *bootloader_reset_reason = ioremap(0x2FFB0000, PAGE_SIZE);
+	if(bootloader_reset_reason!=NULL)
+	{
+		printk(KERN_INFO "msm_restart saving reason %x @ 0x2FFB0000 \n", restart_reason);
+		bootloader_reset_reason[0]=restart_reason;
+		bootloader_reset_reason[1]=restart_reason^0x004b4c63; //XOR with cLK signature so we know is not trash
+	}
+}
+#endif
+
 static void msm_pm_restart(char str)
 {
 	msm_pm_flush_console();
 
+#if defined(CONFIG_MACH_HTCLEO)
+	htcleo_save_reset_reason();
+#endif
+
 	/*  always reboot device through proc comm */
 	if (restart_reason == 0x6f656d99)
 		msm_proc_comm(PCOM_RESET_CHIP_IMM, &restart_reason, 0);

Good luck :]
The Following User Says Thank You to Rick_1995 For This Useful Post: [ View ] Gift Rick_1995 Ad-Free
6th August 2011, 02:09 PM |#426  
rafpigna's Avatar
OP Retired Recognized Developer
Flag Rome
Thanks Meter: 2,232
 
Donate to Me
More
kernel is already compatible with cLK
was already patched on 1.9
The Following 4 Users Say Thank You to rafpigna For This Useful Post: [ View ] Gift rafpigna Ad-Free
6th August 2011, 02:15 PM |#427  
Rick_1995's Avatar
Inactive Recognized Developer
Flag Santa Clara
Thanks Meter: 3,060
 
More
Quote:
Originally Posted by rafpigna

kernel is already compatible with cLK
was already patched on 1.9

Another suggestion would be (for the ROM) delete the splash from the initramfs for cLK version, then the splash from SPL continues to be on screen making it less complicated for end users as they don't even know what is ramdisk, rle...
6th August 2011, 02:36 PM |#428  
phikal's Avatar
Senior Member
Flag Brabant
Thanks Meter: 436
 
More
Were you able to use some libs from the gingerbreadupdate for Desire (bravo) with the new kernel?
6th August 2011, 03:22 PM |#429  
Junior Member
Thanks Meter: 0
 
More
Welcome back Rafpigna..
Please fix your Kernel that we can use 2-way call recording and support wifi-calling

Big thanks!
6th August 2011, 03:23 PM |#430  
Member
Flag Cologne
Thanks Meter: 9
 
More
Quote:
Originally Posted by rafpigna

Hello folks,
I'm currently working and I hope to release kernel update today or tomorrow.

GREAT

Quote:
Originally Posted by rafpigna

Thanks for you patience and your following

Thank YOU for taking time to develop ;)

Greetz
Belp
6th August 2011, 03:31 PM |#431  
dorimanx's Avatar
Recognized Developer
Flag TERA Prime.
Thanks Meter: 93,698
 
Donate to Me
More
Talking
Quote:
Originally Posted by rafpigna

Hello folks,
I'm currently working and I hope to release kernel update today or tomorrow.

Anyway let me explain some stuff:

1- HD2 is not my daily phone (I use a Desire HD) so it's really hard for me to test things very good.
2- I have no much free time like in the past.. just to let you understand on my Desire HD I have the same rom from when I bought it in March.. still android 2.2...
3- I see that, apart some little issues that I was still not able to find, this kernel is almost perfect as it is. So I decided that the 2.0 version will be just a "refresh" from a long time. Then, if some bugs or issues arises during your use, I will try to correct them.

I need some time to do things also because I feel a little bit confused since I not followed delevolping for long time, like I dont know anything about cLK...

Thanks for you patience and your following

Dear Developer

i am building my rom based on Tytung kernel and it's working good.

BUT i am always looking for something better...

I have tried your 1.9GB or no GB and i am stuck at boot after some time, and have errors about some files missing...

I am on HD2, CM7 Build.

can you please check what can be done.

i am your guy to test things. on HD2!

We need you!

Thanks!
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes