Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,732,479 Members 48,266 Now Online
XDA Developers Android and Mobile Development Forum

[DEV] USB host mode

Tip us?
 
hololight
Old
(Last edited by hololight; 28th May 2011 at 06:45 AM.)
#1  
Senior Member - OP
Thanks Meter 171
Posts: 274
Join Date: Dec 2010
Default [DEV] USB host mode

DMESG output....

PM me if you think you can help out...

Think of this as an open 'team' invite, not looking for an answer to specific question.


musb_hdrc: hw_ep 7rx, max 512
musb_hdrc: hw_ep 8tx, max 512
musb_hdrc: hw_ep 8rx, max 512
musb_hdrc: hw_ep 9tx, max 512
musb_hdrc: hw_ep 9rx, max 512
musb_hdrc: hw_ep 10tx, max 512
musb_hdrc: hw_ep 10rx, max 512
musb_hdrc: hw_ep 11tx, max 512
musb_hdrc: hw_ep 11rx, max 512
musb_hdrc: hw_ep 12tx, max 512
musb_hdrc: hw_ep 12rx, max 512
musb_hdrc: hw_ep 13tx, max 512
musb_hdrc: hw_ep 13rx, max 512
musb_hdrc: hw_ep 14shared, max 1024
musb_hdrc: hw_ep 15shared, max 1024
musb_hdrc: USB OTG mode controller at fa0ab000 using DMA, IRQ 92
NET: Registered protocol family 2
IP route cache hash table entries: 16384 (order: 4, 65536 bytes)
TCP established hash table entries: 65536 (order: 7, 524288 bytes)
TCP bind hash table entries: 65536 (order: 6, 262144 bytes)
TCP: Hash tables configured (established 65536 bind 65536)
TCP reno registered
NET: Registered protocol family 1
checking if image is initramfs... it is
Freeing initrd memory: 176K
dspbridge_init: 600000 bytes @ 81200000
boxer_wifi_init: start
Enabling VAUX for wifi
omap-iommu omap-iommu.0: isp registered
NetWinder Floating Point Emulator V0.97 (double precision)
ashmem: initialized
msgmni has been set to 976
alg: No test for stdrng (krng)
io scheduler noop registered
io scheduler cfq registered (default)
OMAP DSS rev 2.0
OMAP RFBI rev 1.0
OMAP DISPC rev 3.0
OMAP DSI rev 1.0
Enabling power for LCD
spi_probe mode : 0, per_word 16, chip_select 0, speed 375000, master_bus 4,master_cs 1
brd: module loaded
loop: module loaded
Linux video capture interface: v2.00
omap-previewer omap-previewer: omap-previewer: Registered preview wrapper
omap3isp omap3isp: Revision 15.0 found
omap-iommu omap-iommu.0: isp: version 1.1
Saving csi2 context
Restoring csi2 context
Saving csi2 context
i2c /dev entries driver
DSP Bridge driver loaded
Driver 'sd' needs updating - please use bus_type methods
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci_hcd: block sizes: qh 128 qtd 96 itd 160 sitd 96
android init
android_probe pdata: c04a77f0
android_bind
android_bind_config
mass_storage_function_add
fsg_probe pdata: c04a8244
android_usb gadget: Number of LUNs=2
adb_function_add
android_usb gadget: android_usb ready
musb_hdrc musb_hdrc: MUSB HDRC host driver
musb_hdrc musb_hdrc: new USB bus registered, assigned bus number 1
usb usb1: default language 0x0409
usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: MUSB HDRC host driver
usb usb1: Manufacturer: Linux 2.6.29-omap1 musb-hcd
usb usb1: SerialNumber: musb_hdrc
usb usb1: uevent
usb usb1: usb_probe_device
usb usb1: configuration #1 chosen from 1 choice
usb usb1: adding 1-0:1.0 (config #1, interface 0)
usb 1-0:1.0: uevent
hub 1-0:1.0: usb_probe_interface
hub 1-0:1.0: usb_probe_interface - got id
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
hub 1-0:1.0: standalone hub
hub 1-0:1.0: individual port power switching
hub 1-0:1.0: no over-current protection
hub 1-0:1.0: power on to power good time: 10ms
hub 1-0:1.0: 100mA bus power budget for each child
hub 1-0:1.0: local power source is good
hub 1-0:1.0: enabling power on all ports
input: TWL4030 Keypad as /devices/platform/i2c_omap.1/i2c-adapter/i2c-1/1-004a/twl4030_keypad/input/input0
input: gpio-keys as /devices/platform/gpio-keys/input/input1
cyttsp_init:Cypress TrueTouch(R) Standard Product
cyttsp_init:I2C Touchscreen Driver (Built Mar 29 2011 @ 13:26:30)
cyttsp_probe:Reseting TMA340
cyttsp_probe:Start Probe 1.2

cyttsp::found BL, Overriding maxx & maxy
cyttsp_initialize:cyttsp-i2c: Register input device
input: cyttsp-i2c as /devices/platform/i2c_omap.2/i2c-adapter/i2c-2/2-0022/input/input2
cyttsp_initialize:cyttsp_initialize: Create sysfs_group successfully!
cyttsp_probe:Start Probe PASS
cyttsp_power_on:BL101: f=00 s=11 err=00 bl=010B bld=010B R=16
cyttsp_power_on:BL102: tver=1100 a_id=AA1D aver=0006
cyttsp_power_on:BL103: c_id=C0C1C2
cyttsp_power_on:BL104: f=04 s=00 err=00 bl=0000 bld=0000
The Following 10 Users Say Thank You to hololight For This Useful Post: [ Click to Expand ]
 
OverDrive33
Old
#2  
OverDrive33's Avatar
Member
Thanks Meter 12
Posts: 39
Join Date: Dec 2007
Location: Toronto

 
DONATE TO ME
PM Sent.

If this is what I think it is, I am pretty excited
The lurking developer

Nexus 4 - Varies...
Galaxy S II X - CM11
Nook Color - CM9
Nexus S - CM9
Motorola Milestone - CM7.2
 
chisleu
Old
#3  
chisleu's Avatar
Senior Member
Thanks Meter 105
Posts: 1,029
Join Date: Mar 2011
Location: Myrtle Beach SC
If you get this working, you get a cookie.
 
karimsaud21
Old
#4  
Member
Thanks Meter 5
Posts: 97
Join Date: Aug 2010
Location: Texas
is this usb host?
 
verygreen
Old
#5  
Recognized Contributor
Thanks Meter 2561
Posts: 1,288
Join Date: Feb 2011
Location: TN

 
DONATE TO ME
If you mean you enabled OTG mode in the kernel config, it's not that easy.
I was not able to get vbus out of it for example.
Also forced host mode patches from N900 guys are a pain to apply to the newer driver in .29 kernel from B&N.

I am playing with it separately, but that project is on hold for now until I get microUSB-A cable. It's probably not strictly necessary, but seeing all the troubles N900 guys went through without it I better wait. Should arrive next week.
The Following 3 Users Say Thank You to verygreen For This Useful Post: [ Click to Expand ]
 
dalingrin
Old
#6  
Recognized Developer
Thanks Meter 2737
Posts: 1,400
Join Date: Nov 2007
I suggest posting your changes on github and letting others help rather than posting dmesg and asking for PMs.
The Following 6 Users Say Thank You to dalingrin For This Useful Post: [ Click to Expand ]
 
hololight
Old
#7  
Senior Member - OP
Thanks Meter 171
Posts: 274
Join Date: Dec 2010
So here's where I'm at. My USB keyboard shows up in kernel messages. Doesn't actually do anything yet, but as soon as I saw it was enumerated I decided to call it a night.

No vbus, using a y cable to supply power from wall wart.

No kernel source as I made no changes to dal's kernel yet.

Just wanted people to know it was/ is/ will be possible.

Sent from my Desire HD using XDA App
The Following 4 Users Say Thank You to hololight For This Useful Post: [ Click to Expand ]
 
hololight
Old
#8  
Senior Member - OP
Thanks Meter 171
Posts: 274
Join Date: Dec 2010
Still lots of issues to solve but, USB keyboard works. Going to upload a YouTube video in a few.

Sent from my Desire HD using XDA App
The Following 3 Users Say Thank You to hololight For This Useful Post: [ Click to Expand ]
 
joenathane
Old
#9  
joenathane's Avatar
Senior Member
Thanks Meter 536
Posts: 1,319
Join Date: Oct 2010
Location: Phoenix
Quote:
Originally Posted by dalingrin View Post
I suggest posting your changes on github and letting others help rather than posting dmesg and asking for PMs.
Off topic, but what happens when your thanks meter fills up? I think it means you win at life, and get a free pony of your choice but what do I know...

Quote:
Originally Posted by hololight View Post
Still lots of issues to solve but, USB keyboard works. Going to upload a YouTube video in a few.

Sent from my Desire HD using XDA App
Very nice, congrats on the accomplishment! Looking forward to what all this brings....
 
hololight
Old
#10  
Senior Member - OP
Thanks Meter 171
Posts: 274
Join Date: Dec 2010
http://www.youtube.com/watch?v=DhNz5OFmSkw&sns=em

The Following 8 Users Say Thank You to hololight For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes