Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
championswimmer
Old
#21  
championswimmer's Avatar
Senior Member - OP
Thanks Meter 6519
Posts: 4,569
Join Date: Oct 2011
Location: Delhi College of Engineering (Delhi Technological University)
please see my ftp mirror (my signature)

go to es209ra folder, inside kcernel, go to thgokang

dowload the the v3 1113mhz kernel and its wifi modules. inside wifi module zip you'll find usb-storage module too

please try it out

Sent from my X10S using xda premium
If you like my work, you can donate via PayPal or buy some of my apps on Play Store

CONTRIBUTIONS :
KangXperiaProject | TWRP for Xperia | Xperia X10 | Kernel Kitchen

KXP ROM mirrors : Ul.to |or| Goo.IM

My sources on github
List of donators

Phones
Xperia :: tipo : X10 : J : S : V : Z : TabZ
The Following User Says Thank You to championswimmer For This Useful Post: [ Click to Expand ]
 
SysGhost
Old
(Last edited by SysGhost; 8th May 2012 at 09:08 PM.)
#22  
Senior Member
Thanks Meter 38
Posts: 113
Join Date: Jul 2010
Location: Stockholm
Quote:
Originally Posted by HeliumX10 View Post
here there are

As I am uploading them here, i remember that I had found, that USB host cables are located (as in diagram) on the right side of the JTAG pins (under battery stick), because there is located an usb switcher (page 15).

But not sure about it - time to brainstorm
Looking at page 15 now, and I have to say that there isn't much interesting going on there.
The switch in question, is merely a protective switch that seems to be connected to a few testpoint(TP) pads on the board. (As seen on page 15, section B15)
If one supplies 5 volt there, it will enable USB access to these testpoints.
Nothing of interest really.

I'm tracing the USB_DP and USB_DM around and see where they'll end up. Perhaps something more interesting will surface.
(See page 15, Section C11)

I'll be back...




Edit:
It would appear the USB_DP and USB_DM goes directly into the snapdragon system chip (QSD8250).
Knowing that, it seems the USB circuitry is fairly primitive, and have no additional logics to detect whenever a USB host or device is connected.
With this in mind, one need to modify the kernel source code, and provide a method to force the snapdragon system chip into host mode.

In other words: There is no circuits/hardware to enable host mode automatically. We have to force host mode on software/kernel level. This is beyond my capacity. I don't have enough knowledge about the snapdragon USB functions to provide the code needed.
 
HeliumX10
Old
#23  
HeliumX10's Avatar
Senior Member
Thanks Meter 111
Posts: 300
Join Date: Apr 2011
Location: Psáry, Czech Republic
Quote:
Originally Posted by championswimmer View Post
please see my ftp mirror (my signature)

go to es209ra folder, inside kcernel, go to thgokang

dowload the the v3 1113mhz kernel and its wifi modules. inside wifi module zip you'll find usb-storage module too

please try it out

Sent from my X10S using xda premium
Great, thanks! Downloading, will report soon how it works

---------- Post added at 09:48 PM ---------- Previous post was at 09:47 PM ----------

Quote:
Originally Posted by SysGhost View Post
Looking at page 15 now, and I have to say that there isn't much interesting going on there.
The switch in question, is merely a protective switch that seems to be connected to a few testpoint(TP) pads on the board. (As seen on page 15, section B15)
If one supplies 5 volt there, it will enable USB access to these testpoints.
Nothing of interest really.

I'm tracing the USB_DP and USB_DM around and see where they'll end up. Perhaps something more interesting will surface.
(See page 15, Section C11)

I'll be back...
We will be waiting, good luck.


ROM: CyanogenMod 9.1 by Scritch007 - ICS 4.0.4 - version 6
KERNEL: 2.6.29. by ScritchOO7 - version 5
BOOTLOADER: unlocked
ROOTED: yes



All done from Linux !!!
 
SysGhost
Old
#24  
Senior Member
Thanks Meter 38
Posts: 113
Join Date: Jul 2010
Location: Stockholm
Quote:
Originally Posted by HeliumX10 View Post
Great, thanks! Downloading, will report soon how it works

---------- Post added at 09:48 PM ---------- Previous post was at 09:47 PM ----------



We will be waiting, good luck.
Previous post edited.
 
HeliumX10
Old
#25  
HeliumX10's Avatar
Senior Member
Thanks Meter 111
Posts: 300
Join Date: Apr 2011
Location: Psáry, Czech Republic
Quote:
Originally Posted by championswimmer View Post
please see my ftp mirror (my signature)

go to es209ra folder, inside kcernel, go to thgokang

dowload the the v3 1113mhz kernel and its wifi modules. inside wifi module zip you'll find usb-storage module too

please try it out

Sent from my X10S using xda premium
OK, tried it. Downloaded these two files (dont know which of them you mentioned, looks very similar).
kCernel-SONY-thgokang-v3-1113mhz.ftf
kCernel-thgokang-v3-1113mhz.ftf

But I am unable to flash it, gets this error all the time:
Code:
08/034/2012 22:34:20 - INFO  - Flashing kernel.sin
08/034/2012 22:34:20 - ERROR - ERR_SEVERITY="MAJOR";ERR_CLASS="SECURITY_CLASS";ERR_STATIC="SIN_HEAD_VER";ERR_DYNAMIC="Failed to verify sin header";
Same error with loader.sin. Tried custom bundle with just extracted kernel.sin form your ftfs, but same error... Weird


ROM: CyanogenMod 9.1 by Scritch007 - ICS 4.0.4 - version 6
KERNEL: 2.6.29. by ScritchOO7 - version 5
BOOTLOADER: unlocked
ROOTED: yes



All done from Linux !!!
 
championswimmer
Old
#26  
championswimmer's Avatar
Senior Member - OP
Thanks Meter 6519
Posts: 4,569
Join Date: Oct 2011
Location: Delhi College of Engineering (Delhi Technological University)
is your bootloader unlocked??

anyways
if this helps??

http://forum.xda-developers.com/show....php?t=1468531
If you like my work, you can donate via PayPal or buy some of my apps on Play Store

CONTRIBUTIONS :
KangXperiaProject | TWRP for Xperia | Xperia X10 | Kernel Kitchen

KXP ROM mirrors : Ul.to |or| Goo.IM

My sources on github
List of donators

Phones
Xperia :: tipo : X10 : J : S : V : Z : TabZ
 
HeliumX10
Old
#27  
HeliumX10's Avatar
Senior Member
Thanks Meter 111
Posts: 300
Join Date: Apr 2011
Location: Psáry, Czech Republic
Quote:
Originally Posted by championswimmer View Post
is your bootloader unlocked??

anyways
if this helps??

http://forum.xda-developers.com/show....php?t=1468531
Oh, sorry - thought that you released locked bootloader version. My mistake.


BTW didi you anything else with kernel/ kernel modules sources? Or did you only enabled its support during compilation and build all nessesary modules?
I am almost sure that it will be nessesary to make some changes in code, because I also enabled host mode support in my kernel and also loaded modules, but no results.
But to be positive, saw in some very old topic here on xda, that on 2.1 or 1.6 firmware it has symptoms of host mode working - someone wrote, that when he connected usb stick with power to X10, it started to blink for a while (so it means that there was some kind of detection), but nothing else. But currently we dont have anything, even detection - simply nothing.

Will search for that thread.


ROM: CyanogenMod 9.1 by Scritch007 - ICS 4.0.4 - version 6
KERNEL: 2.6.29. by ScritchOO7 - version 5
BOOTLOADER: unlocked
ROOTED: yes



All done from Linux !!!
 
championswimmer
Old
#28  
championswimmer's Avatar
Senior Member - OP
Thanks Meter 6519
Posts: 4,569
Join Date: Oct 2011
Location: Delhi College of Engineering (Delhi Technological University)
nexus 1 and desire (both on qsd8250 like us)
have got usb drivers, I'll try to merge them into my kernel.

even those phones need external power to make it work lol

Sent from my X10S using xda premium
If you like my work, you can donate via PayPal or buy some of my apps on Play Store

CONTRIBUTIONS :
KangXperiaProject | TWRP for Xperia | Xperia X10 | Kernel Kitchen

KXP ROM mirrors : Ul.to |or| Goo.IM

My sources on github
List of donators

Phones
Xperia :: tipo : X10 : J : S : V : Z : TabZ
 
SysGhost
Old
#29  
Senior Member
Thanks Meter 38
Posts: 113
Join Date: Jul 2010
Location: Stockholm
Quote:
Originally Posted by HeliumX10 View Post
Oh, sorry - thought that you released locked bootloader version. My mistake.


BTW didi you anything else with kernel/ kernel modules sources? Or did you only enabled its support during compilation and build all nessesary modules?
I am almost sure that it will be nessesary to make some changes in code, because I also enabled host mode support in my kernel and also loaded modules, but no results.
But to be positive, saw in some very old topic here on xda, that on 2.1 or 1.6 firmware it has symptoms of host mode working - someone wrote, that when he connected usb stick with power to X10, it started to blink for a while (so it means that there was some kind of detection), but nothing else. But currently we dont have anything, even detection - simply nothing.

Will search for that thread.
If that is the case, it means the USB had some "chat" going on. However, that kernel might not have recognised the device in question, and listed itas an unknown USB device. The brief activity was just the host and device etablishing proper bus/protocol setttings. (etablishing speed, giving the device an ID and so on.)
If we can just get that far, the rest will be easy, as it's just a matter of enabling compiling and loading the proper kernel modules.
 
HeliumX10
Old
#30  
HeliumX10's Avatar
Senior Member
Thanks Meter 111
Posts: 300
Join Date: Apr 2011
Location: Psáry, Czech Republic
Quote:
Originally Posted by SysGhost View Post
If that is the case, it means the USB had some "chat" going on. However, that kernel might not have recognised the device in question, and listed itas an unknown USB device. The brief activity was just the host and device etablishing proper bus/protocol setttings. (etablishing speed, giving the device an ID and so on.)
If we can just get that far, the rest will be easy, as it's just a matter of enabling compiling and loading the proper kernel modules.
Yes, really remember that - but cant find that thread now

So, I d like to flash back 2.1 and later 1.6 stock ROM to test it (will check logcat and dmesg), dont know if older ROMs used same kernel version or driver sources. But maybe get to this at weekend, X10i is my main phone and dont have any other phones for experimenting.

As you said, if we will see that device will be shown (as unknown) in dmesg or logcat, whole others will be easy.
However finding out what has changed between e.g. 1.6 and 2.3.3 kernel in chipset or usb related things wouldnt be easy....


ROM: CyanogenMod 9.1 by Scritch007 - ICS 4.0.4 - version 6
KERNEL: 2.6.29. by ScritchOO7 - version 5
BOOTLOADER: unlocked
ROOTED: yes



All done from Linux !!!

The Following 2 Users Say Thank You to HeliumX10 For This Useful Post: [ Click to Expand ]
 
Post Reply+
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...