Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
Panda_Face
Old
#511  
Panda_Face's Avatar
Senior Member
Thanks Meter 31
Posts: 338
Join Date: Nov 2010
Quote:
Originally Posted by TheInVisibleGoD View Post
Tytung, I tried install your r12b2 in Cyanogen Nightlies 2.3.5 cLK from arif-ali, but I got this when trying to turn on wifi:

Wifi
Turning on...
FC --> application settings (in process com.android.settings) is not responding.
Wifi turned off

The kernel installation went well though, no adb or fastboot issues encountered...
How did you get the kernel installed? I'd like to use his r12 version but I couldn't get it working correctly. Could you tell me how? Much appreciated.

Sent from my HTC HD2 using XDA App
 
germanandy
Old
#512  
germanandy's Avatar
Senior Member
Thanks Meter 11
Posts: 136
Join Date: Nov 2010
Quote:
Originally Posted by Panda_Face View Post
How did you get the kernel installed? I'd like to use his r12 version but I couldn't get it working correctly. Could you tell me how? Much appreciated.

Sent from my HTC HD2 using XDA App
yes if its possible a r12... version for clk-users would be nice.
 
tytung
Old
#513  
tytung's Avatar
Recognized Developer
Thanks Meter 14049
Posts: 3,513
Join Date: Jun 2010
Quote:
Originally Posted by TheInVisibleGoD View Post
Hum... MAC adress "Unavailable" to me!
Thanks. It's the same as MAGLDR.
I saw "Unavailable" MAC address on MAGLDR.
And ff:ff:ff:ff:ff:ff presents in dmesg only.
 
tytung
Old
#514  
tytung's Avatar
Recognized Developer
Thanks Meter 14049
Posts: 3,513
Join Date: Jun 2010
Quote:
Originally Posted by Rick_1995 View Post
Is it possible that WM during initialization sends a command to the RPC server/modem processor which then reads the hardware mac id and places it in smem ?
Kernel reads the real WiFi MAC from SPL memory space.
You can visit [Dev] Real WiFi MAC address for more info.

On WM, we can get WiFi MAC from SPL/HSPL. (It's loaded into the memory, so we can dump the whole SPL/HSPL from the memory and get WiFi MAC.)
When using SD build on WM, we can access SPL/HSPL too.

However, we cannot access HSPL when using MAGLDR and cLK bootloaders.
Maybe the memory space of HSPL has been overwritten by bootloaders.
Maybe the memory address of WiFi MAC is changed so that the kernel gets the wrong value.

@Rick_1995
Since you're developing cLK, I think you may know how cLK works.
Is there any cLK code to be related to HSPL?
 
siddharth singh
Old
#515  
Senior Member
Thanks Meter 46
Posts: 382
Join Date: Oct 2009
Location: kolkata
Quote:
Originally Posted by tytung View Post
Kernel reads the real WiFi MAC from SPL memory space.
You can visit [Dev] Real WiFi MAC address for more info.

On WM, we can get WiFi MAC from SPL/HSPL. (It's loaded into the memory, so we can dump the whole SPL/HSPL from the memory and get WiFi MAC.)
When using SD build on WM, we can access SPL/HSPL too.

However, we cannot access HSPL when using MAGLDR and cLK bootloaders.
Maybe the memory space of HSPL has been overwritten by bootloaders.
Maybe the memory address of WiFi MAC is changed so that the kernel gets the wrong value.

@Rick_1995
Since you're developing cLK, I think you may know how cLK works.
Is there any cLK code to be related to HSPL?

I have seen the codes myself... I haven't encountered any hspl related lines..... Most probably
Sent from my HTC HD2 using XDA App
current rom :: blackout ics sesne 3.6
BOOTLOADER:: ENG S-OFF ..RADIO S-OFF
SCARED OF BRICKING YOU DEVICE:: NOT POSSIBLE VERRY LESS CHANCE


CWM:: touch recovery

HAVING TROUBLE ROOTING DESIRE HD... FEEL FREE TO CONTACT ME
 
Rick_1995
Old
(Last edited by Rick_1995; 9th September 2011 at 02:25 PM.)
#516  
Rick_1995's Avatar
Recognized Developer - OP
Thanks Meter 2923
Posts: 1,092
Join Date: Sep 2009
Location: Whoville
Quote:
Originally Posted by tytung View Post
Kernel reads the real WiFi MAC from SPL memory space.
You can visit [Dev] Real WiFi MAC address for more info.

On WM, we can get WiFi MAC from SPL/HSPL. (It's loaded into the memory, so we can dump the whole SPL/HSPL from the memory and get WiFi MAC.)
When using SD build on WM, we can access SPL/HSPL too.

However, we cannot access HSPL when using MAGLDR and cLK bootloaders.
Maybe the memory space of HSPL has been overwritten by bootloaders.
Maybe the memory address of WiFi MAC is changed so that the kernel gets the wrong value.

@Rick_1995
Since you're developing cLK, I think you may know how cLK works.
Is there any cLK code to be related to HSPL?
From what i have been working on, MAGLDR and cLK are ARM compiled binaries and flashed to the OS partition (0x400) in terms of nbh files.

When (H)SPL (OSPL would not even flash unsigned files to device although it might boot them, refer SSPL. Also there *COULD* be some difference as Cotulla had advised not to use SSPL for MAGLDR somewhere.) boots, it does not now what is there in that partition, it just loads the code stored there and jumps to entry point of cLK/MAGLDR. They perform hardware initialization in their own different ways (*MAYBE*) and then load the kernel + initramfs stored in boot partition to 0x11800000 and 0x00a00000 respectively and jump to the linux kernel. While also cLK remaps the reset vector of the aCPU to 0x11800004 where it jumps to right before loading linux kernel and MAGLDR does the RMNET magic.

That shouldn't change much as compared to WM/HARET boot. Unless HaRet or WinMo initialization code include some special stuff which is not included in the method used to initialize hardware using cLK or MAGLDR.

I too am not an expert in this area but trying to learn, So i might be wrong but i did my work before writing this post.


Also a bit into history - lk was developed by Travis for fun ~ 2006 and picked up by codeaurora forums and worked on for Qualcomm devices (Qualcomm is partner in Codeaurora) A branch was forked and worked on by google and used as Bootloader for g1 i guess and was later removed/depreciated and moved to legacy code. HTC had a branch forked themselves and worked on it and named it HBOOT. When Android arrived on NAND, cedesmith took lk and ported it to LEO, it was just a hobby project then as per the IRC logs but then grew into much more as many were dissatisfied by the closeness of magldr (Which is actually just from my POV as cotulla mentioned his code could be used by crooks to wreak havoc and what not like change IMEI and other nasty stuff but also attract attention of manufacturers to the weakness/hole he exploited in their code making future devices hard to crack) and especially the GO GO GO screen
The Following 4 Users Say Thank You to Rick_1995 For This Useful Post: [ Click to Expand ]
 
gear_rus
Old
#517  
gear_rus's Avatar
Senior Member
Thanks Meter 22
Posts: 155
Join Date: Jun 2010
Location: Novosibirsk
So.. uh.. will we see a flashlight in a new version?:P
Euro HD2 (Originally 1.66 Russian Stock)
Android: Ultimate Droid (Tytung Kernel, UD ROM Family, non-RAM, the FASTest thing I've ever expirienced)
Radio: 2.15.50 (found in master radio thread)
My Splash Screen (specially for Hl2 fans)
My tutorial for doing a clean install of Ultimate Droid ROM (lots of info, explains how to change logo after MAGLDR, check it out ;])
THANKS button really IS there for a reason lol
 
Panda_Face
Old
#518  
Panda_Face's Avatar
Senior Member
Thanks Meter 31
Posts: 338
Join Date: Nov 2010
Quote:
Originally Posted by gear_rus View Post
So.. uh.. will we see a flashlight in a new version?:P
I +1 this idea :)

Sent from my HTC HD2 using XDA App
 
siddharth singh
Old
#519  
Senior Member
Thanks Meter 46
Posts: 382
Join Date: Oct 2009
Location: kolkata
Quote:
Originally Posted by gear_rus View Post
So.. uh.. will we see a flashlight in a new version?:P
Yes.... You will see. A flashlight... And this time... One which doesn't flicker so much it will be stable as in the applications ... All thanks to rick

Sent from my HTC HD2 using XDA App
current rom :: blackout ics sesne 3.6
BOOTLOADER:: ENG S-OFF ..RADIO S-OFF
SCARED OF BRICKING YOU DEVICE:: NOT POSSIBLE VERRY LESS CHANCE


CWM:: touch recovery

HAVING TROUBLE ROOTING DESIRE HD... FEEL FREE TO CONTACT ME
The Following User Says Thank You to siddharth singh For This Useful Post: [ Click to Expand ]
 
Panda_Face
Old
#520  
Panda_Face's Avatar
Senior Member
Thanks Meter 31
Posts: 338
Join Date: Nov 2010
Quote:
Originally Posted by siddharth singh View Post
Yes.... You will see. A flashlight... And this time... One which doesn't flicker so much it will be stable as in the applications ... All thanks to rick

Sent from my HTC HD2 using XDA App
Really? This is so much better than tetris :P

Sent from my HTC HD2 using XDA App

 
Post Reply+
Tags
1.5, bootloader, clk, hd2, little kernel
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...