Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[DEV] USB host mode

OP hololight

31st March 2011, 07:41 AM   |  #1  
OP Senior Member
Thanks Meter: 172
 
274 posts
Join Date:Joined: Dec 2010
More
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
Last edited by hololight; 28th May 2011 at 07:45 AM.
The Following 10 Users Say Thank You to hololight For This Useful Post: [ View ]
31st March 2011, 05:29 PM   |  #2  
OverDrive33's Avatar
Member
Flag Toronto
Thanks Meter: 12
 
39 posts
Join Date:Joined: Dec 2007
Donate to Me
More
PM Sent.

If this is what I think it is, I am pretty excited
31st March 2011, 07:27 PM   |  #3  
chisleu's Avatar
Senior Member
Flag Myrtle Beach SC
Thanks Meter: 105
 
1,029 posts
Join Date:Joined: Mar 2011
If you get this working, you get a cookie.
31st March 2011, 10:19 PM   |  #4  
Member
Flag Texas
Thanks Meter: 5
 
97 posts
Join Date:Joined: Aug 2010
More
is this usb host?
1st April 2011, 02:34 AM   |  #5  
Recognized Contributor
TN
Thanks Meter: 2,603
 
1,292 posts
Join Date:Joined: Feb 2011
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: [ View ]
1st April 2011, 02:51 AM   |  #6  
Recognized Developer
Thanks Meter: 2,763
 
1,419 posts
Join Date:Joined: 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: [ View ]
27th May 2011, 07:59 AM   |  #7  
OP Senior Member
Thanks Meter: 172
 
274 posts
Join Date:Joined: Dec 2010
More
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: [ View ]
28th May 2011, 07:26 AM   |  #8  
OP Senior Member
Thanks Meter: 172
 
274 posts
Join Date:Joined: Dec 2010
More
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: [ View ]
28th May 2011, 08:20 AM   |  #9  
joenathane's Avatar
Senior Member
Flag Phoenix
Thanks Meter: 537
 
1,323 posts
Join Date:Joined: Oct 2010
Quote:
Originally Posted by dalingrin

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

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....
28th May 2011, 08:38 AM   |  #10  
OP Senior Member
Thanks Meter: 172
 
274 posts
Join Date:Joined: Dec 2010
More
http://www.youtube.com/watch?v=DhNz5OFmSkw&sns=em

The Following 8 Users Say Thank You to hololight For This Useful Post: [ View ]
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes