FORUMS
Remove All Ads from XDA

USB Host mode on Defy

16 posts
Thanks Meter: 17
 
By MAPGPS, Junior Member on 19th February 2011, 01:51 PM
Post Reply Email Thread
29th June 2011, 03:01 PM |#21  
shorty66's Avatar
Senior Member
Thanks Meter: 42
 
More
Any news on this?
3rd August 2011, 02:03 PM |#22  
Junior Member
Flag Budapest
Thanks Meter: 2
 
More
bump anyone with any experience with usb/kernel modules?
25th August 2011, 06:04 PM |#23  
Member
Flag Monkeytown
Thanks Meter: 1
 
More
Thumbs up ???
Hi all, there is already someone working on this mod? It would really mega cool to have that I have on defy
29th August 2011, 01:14 PM |#24  
Member
Thanks Meter: 19
 
More
I would like to see this working too!!
31st August 2011, 05:50 AM |#25  
Senior Member
Flag Aizawl
Thanks Meter: 14
 
Donate to Me
More
any developments on this?? getting my defy next week... Samsung Galaxy S 2 supports this but no developments on the Samsung Galaxy afaik (same chipset as Defy)
31st August 2011, 07:24 AM |#26  
viper.'s Avatar
Senior Member
Flag ZAGREB
Thanks Meter: 52
 
More
I think that atm we cant have host mode drivers beacuse of locked bl.
1st September 2011, 07:05 PM |#27  
Senior Member
Flag Aizawl
Thanks Meter: 14
 
Donate to Me
More
b.u.m.m.e.r
10th September 2011, 12:03 PM |#28  
Member
Flag Monkeytown
Thanks Meter: 1
 
More
well??? any news?
4th October 2011, 10:24 AM |#29  
OP Junior Member
Thanks Meter: 17
 
More
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!

Attached Thumbnails
Click image for larger version

Name:	IMG_2531.jpg
Views:	4171
Size:	32.9 KB
ID:	739533  
The Following 9 Users Say Thank You to MAPGPS For This Useful Post: [ View ] Gift MAPGPS Ad-Free
4th October 2011, 02:46 PM |#30  
Junior Member
Thanks Meter: 1
 
More
wow this is great.

it is still possible to access the usb host mode from linux ?

see:
http://android.galoula.com/en/LinuxInstall/
http://labs.igep.es/index.php/How_to...u_distribution


Quote:
Originally Posted by MAPGPS

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 tmuell For This Useful Post: [ View ] Gift tmuell Ad-Free
5th October 2011, 12:23 AM |#31  
dangpzanco's Avatar
Senior Member
Thanks Meter: 85
 
More
Quote:
Originally Posted by MAPGPS

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!

Would you compile this?

Sent from my Milestone 2 XDA App
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