Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
vishal24387
Old
(Last edited by vishal24387; 11th August 2012 at 11:04 AM.)
#361  
vishal24387's Avatar
Recognized Contributor
Thanks Meter 1476
Posts: 3,135
Join Date: May 2011
Location: Solapur, Maharashtra (currently in Pune)
Default XXKPH rom wont help me

Now I am really fed up of trying this usb otg with help of modules. I tried XXKPH rom with modules uploaded in OP but no success

This is my procedure

1. I did a clean install of XXKPH rom with xxkpe rom as base.
2. Then I tried to flash Amit's universal CF root but guess what phone start to bootloop. Means universal CF root dont work on XXKPH rom
3. So I flashed this CF root of Amit
http://forum.xda-developers.com/show....php?t=1252969
4. As expected this cf root has otg modules. Even though I copied modules at /system/modules/ folder location. When I tried to insmod otg modules manually then I got message in terminal emulator that modules are already exist.
5. When I opened OTG helper app it showed me that busybox not installed. So I installed busybox installer. It installed latest busybox version in /system/xbin/ folder location successfully.
6. After this I rebooted the phone.
7. When I connected OTG cable with pen drive type memory card reader & when I opened OTG helper app, after pressing mount button I got message that no drive found

I am really confused because with above configuration zerocool420 member has successfully mouned drive using otg helper app. But I am not able to do that.

Is this due to following reasons???
1. busybox location & version???
--This is because I have installed busybox at /system/xbin/ folder location. While zerocool420 has installed busybox at /system/sbin location. I have installed latest version of busybox. Dont know about zerocool420's busybox version

2. Different OTG cable???
--zerocool420 is using xperia S otg cable while I am using modded otg cable of nokia n8 (but my cable works perfectly on galaxy s2 then why not on SL??)

3. Different type of memory card reader???
--I have used exact same type of memory card reader as that of zerocool420. Even I have used external power source also but no use.

I think I have to contact zerocool420 member & I have to tell him that he will have to flash XXKPH rom & he has to repeat whole procedure & once again if he successfully mounted drive then using logcat or dmesg file we can invistigate more in this.
 
hillbeast
Old
#362  
hillbeast's Avatar
Recognized Developer
Thanks Meter 6614
Posts: 2,604
Join Date: Feb 2011
Location: Dunedin

 
DONATE TO ME
Quote:
Originally Posted by vishal24387 View Post
Now I am really fed up of trying this usb otg with help of modules. I tried XXKPH rom with modules uploaded in OP but no success

This is my procedure

1. I did a clean install of XXKPH rom with xxkpe rom as base.
2. Then I tried to flash Amit's universal CF root but guess what phone start to bootloop. Means universal CF root dont work on XXKPH rom
3. So I flashed this CF root of Amit
http://forum.xda-developers.com/show....php?t=1252969
4. As expected this cf root has otg modules. Even though I copied modules at /system/modules/ folder location. When I tried to insmod otg modules manually then I got message in terminal emulator that modules are already exist.
5. When I opened OTG helper app it showed me that busybox not installed. So I installed busybox installer. It installed latest busybox version in /system/xbin/ folder location successfully.
6. After this I rebooted the phone.
7. When I connected OTG cable with pen drive type memory card reader & when I opened OTG helper app, after pressing mount button I got message that no drive found

I am really confused because with above configuration zerocool420 member has successfully mouned drive using otg helper app. But I am not able to do that.

Is this due to following reasons???
1. busybox location & version???
--This is because I have installed busybox at /system/xbin/ folder location. While zerocool420 has installed busybox at /system/sbin location. I have installed latest version of busybox. Dont know about zerocool420's busybox version

2. Different OTG cable???
--zerocool420 is using xperia S otg cable while I am using modded otg cable of nokia n8 (but my cable works perfectly on galaxy s2 then why not on SL??)

3. Different type of memory card reader???
--I have used exact same type of memory card reader as that of zerocool420. Even I have used external power source also but no use.

I think I have to contact zerocool420 member & I have to tell him that he will have to flash XXKPH rom & he has to repeat whole procedure & once again if he successfully mounted drive then using logcat or dmesg file we can invistigate more in this.
Well I would like the person who posted these modules in the first place to comply with the rules of the XDA and post the source codes. That's right, its actually in the rules that you must follow the source licenses, in this case the GPL. If he/she hasn't posted them within a week, I will report them to a moderator.

Sent from my Serenity Galaxy S2
Samsung Galaxy 3: No ROM + Kernel 3.4.x Project
Google|Asus Nexus 7: CyanogenMod 10.1 + CM10.1 Kernel
Sony Xperia Arc S: FXP CyanogenMod 10 + CM10 Kernel
ODROID U2: Ubuntu 12.10 + ODROID Ubuntu Kernel

Previous phones: Samsung Galaxy S2

My creations/contributions: Kyorarom (G3-F) (G3-ICS) - Kyorakernel - G3MOD Kernel - Kernel 3.4 Project for Galaxy 3 - Hybrid Data2SD - HD2SD v2 - Kernel 3.3.8 for Linksys WAG160N
 
vishal24387
Old
#363  
vishal24387's Avatar
Recognized Contributor
Thanks Meter 1476
Posts: 3,135
Join Date: May 2011
Location: Solapur, Maharashtra (currently in Pune)
Quote:
Originally Posted by hillbeast View Post
Well I would like the person who posted these modules in the first place to comply with the rules of the XDA and post the source codes. That's right, its actually in the rules that you must follow the source licenses, in this case the GPL. If he/she hasn't posted them within a week, I will report them to a moderator.

Sent from my Serenity Galaxy S2
No need to report & no use of report buddy. Because Amit who had actually created modules has left xda site.
Anyway any progress on creating necessary drivers of usb otg???
 
vishal24387
Old
#364  
vishal24387's Avatar
Recognized Contributor
Thanks Meter 1476
Posts: 3,135
Join Date: May 2011
Location: Solapur, Maharashtra (currently in Pune)
I was searching around on xda site for phones having same chipset with usb otg enabled by developer. I found motorola defy on which developers tried to enable usb otg (but not successful). But good thing is that their developer had developed module which makes phone to supply power to external device by itself
Can we use this in our phone for giving power supply to external device???

This is the post of motorola defy usb otg development

Quote:
Originally Posted by MAPGPS View Post
Finally I bought my Defy, and began to do more research on it.

My first attempt was to turn on the VBUS 5V power supply for the USB port on Defy.
I have made it happened by insmod a dummy module with following piece of code executed during the module init:
Code:
#define MBASE 0xfa0ab000 //got from:
//data# dmesg|grep Peripheral
//[    8.125518] musb_hdrc: USB Peripheral mode controller at fa0ab000 using DMA,IRQ 92

void power_on_vbus(void)
{
	u8 reg;
	void __iomem *mbase = MBASE;

	reg = musb_readb(mbase, MUSB_TESTMODE);
	reg |= MUSB_TEST_FORCE_HOST;
	musb_writeb(mbase, MUSB_TESTMODE, reg);
}
You can see my USB modem attached to Defy has it's light ON!

The Following User Says Thank You to vishal24387 For This Useful Post: [ Click to Expand ]
 
crk1995
Old
(Last edited by crk1995; 21st August 2012 at 05:27 PM.)
#365  
crk1995's Avatar
Senior Member
Thanks Meter 220
Posts: 681
Join Date: Nov 2011
Location: Delhi
I found something related to USB_otg in the latest source code released by samsung (ICS misconception one)
In that file, under kernel,
/drivers/usb/otg/

Images:


 
dhiru1602
Old
#366  
dhiru1602's Avatar
Recognized Contributor / Recognized Developer
Thanks Meter 6844
Posts: 1,238
Join Date: Aug 2010

 
DONATE TO ME
Quote:
Originally Posted by crk1995 View Post
I found something related to USB_otg in the latest source code released by samsung (ICS misconception one)
In that file, under kernel,
/drivers/usb/otg/

Images:


https://github.com/teamhacksung/andr...rivers/usb/otg

There are even on the older kernels. For some reason the device doesn't switch to host mode. I have spent few hours on it but I couldn't figure out why the device doesn't switch modes.
Samsung Galaxy S3 I9300
Samsung Galaxy S I9000
Samsung Galaxy SL I9003

My Work!
CM9 for Galaxy SL I9003
CM10 for Galaxy SL I9003
Galaxy S II ICS Firmware ported to Galaxy S

My Sources!
https://github.com/dhiru1602

 
crk1995
Old
#367  
crk1995's Avatar
Senior Member
Thanks Meter 220
Posts: 681
Join Date: Nov 2011
Location: Delhi
Can it be related to the problems hillbeast is facing with uart

Sent from my GT-I9003 using xda app-developers app
 
dhiru1602
Old
(Last edited by dhiru1602; 21st August 2012 at 08:59 PM.)
#368  
dhiru1602's Avatar
Recognized Contributor / Recognized Developer
Thanks Meter 6844
Posts: 1,238
Join Date: Aug 2010

 
DONATE TO ME
I found something really interesting a few minutes ago. Actually most of the devices doesn't have their OTG ID pin connected, so the devices doesn't know if the cable is actually a Micro USB Data cable or an OTG cable. Incase of Galaxy SL, I have been assuming the same, until I have enabled logging for the FSA9480 USB controlled and I have found that the device indeed detects OTG cable when it is connected. The dmesg proves this.

While digging into the code, I have realized that the OTG implementation for the FSA9480 is broken. It is incomplete, and so is the same for the UART. There are just dummy logging messages with no actual effect. I was also able to realize that this device doesn't support a Car Dock (?), however it has capabilities of Audio out through the USB.

As for the modules that everyone is so much arguing about, they could be compiled by enabling few configs in the defconfig. I have got them built into the kernel directly. Modules are utter pain.

https://github.com/teamhacksung/andr...a89acfba38c337

Seems we need to work on the FSA usb driver to enable OTG or UART (?). The dmesg shows the "USB OTG" log entry when a standard Micro USB OTG Host Cable is connected, as triggered from https://github.com/teamhacksung/andr...480_i2c.c#L461
Attached Thumbnails
Click image for larger version

Name:	otg_fsa9480.jpg
Views:	205
Size:	48.9 KB
ID:	1273908  
Samsung Galaxy S3 I9300
Samsung Galaxy S I9000
Samsung Galaxy SL I9003

My Work!
CM9 for Galaxy SL I9003
CM10 for Galaxy SL I9003
Galaxy S II ICS Firmware ported to Galaxy S

My Sources!
https://github.com/dhiru1602

The Following 11 Users Say Thank You to dhiru1602 For This Useful Post: [ Click to Expand ]
 
crk1995
Old
#369  
crk1995's Avatar
Senior Member
Thanks Meter 220
Posts: 681
Join Date: Nov 2011
Location: Delhi
Quote:
Originally Posted by dhiru1602 View Post

As for the modules that everyone is so much arguing about, they could be compiled by enabling few configs in the defconfig. I have got them built into the kernel directly. Modules are utter pain.

https://github.com/teamhacksung/andr...a89acfba38c337
What does this indicates dhiru?
Have you made a kernel with the possibility of usb otg.???
And thanks for this work around.
Seems we are close to these features.
Will it be difficult or a bit easier to implement these features since you have investigated the cause?


Sent from my GT-I9003 using xda app-developers app
 
hillbeast
Old
#370  
hillbeast's Avatar
Recognized Developer
Thanks Meter 6614
Posts: 2,604
Join Date: Feb 2011
Location: Dunedin

 
DONATE TO ME
Quote:
Originally Posted by dhiru1602 View Post
Seems we need to work on the FSA usb driver to enable OTG or UART (?)
No need to fix the UART function. It's working fine as it is. It's just the OTG functionality isn't implemented fully. Take a look at other devices with this switch chip for ideas on how to fix it. There are many for instance the Galaxy S, the Galaxy 3, and I think the GS2 also use the same chip, albeit just revisions of each other.
Samsung Galaxy 3: No ROM + Kernel 3.4.x Project
Google|Asus Nexus 7: CyanogenMod 10.1 + CM10.1 Kernel
Sony Xperia Arc S: FXP CyanogenMod 10 + CM10 Kernel
ODROID U2: Ubuntu 12.10 + ODROID Ubuntu Kernel

Previous phones: Samsung Galaxy S2

My creations/contributions: Kyorarom (G3-F) (G3-ICS) - Kyorakernel - G3MOD Kernel - Kernel 3.4 Project for Galaxy 3 - Hybrid Data2SD - HD2SD v2 - Kernel 3.3.8 for Linksys WAG160N

The Following User Says Thank You to hillbeast For This Useful Post: [ Click to Expand ]
 
Post Reply+
Tags
dev, i9003, otg, usb, xxkph
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...