Nexus One USB host driver

strags

New member
Mar 1, 2011
3
0
0
No, it isn't.
Hi Sven,

I've followed the instructions on your page, and I'm running into the same kernel module magic version issue as the previous poster.

Your modules.tbz file contains modules with a magic of "2.6.32.9-27240-gbca5320-dirty".

However, this doesn't seem to match the kernel version that you wind up with after doing the git clone and checkout commands.

"git rev-parse --verify --short HEAD" gives 4c0d547, which is used to construct a kernel magic version of 2.6.32.9-27242-g4c0d547-dirty.

I'd love to try the modules that you built, because I'm having a huge amount of trouble with a USB serial device (cp210x.ko) and I want to make sure it's not because I did something stupid.

By the way, what does this mean? (from your page):
(Mind /system/lib/modules/bcm4329.ko !)

As things stand, I can boot your kernel image directly, but Android tries to load bcm4329 from /system/lib/modules, and presumably the same version conflict occurs, and hence wifi doesn't work.

Any help much appreciated - cheers!
 
Last edited:

sonic74

Senior Member
Jan 3, 2010
163
18
0
Schwabach
sven.killig.de
I've followed the instructions on your page, and I'm running into the same kernel module magic version issue as the previous poster.

Your modules.tbz file contains modules with a magic of "2.6.32.9-27240-gbca5320-dirty".

However, this doesn't seem to match the kernel version that you wind up with after doing the git clone and checkout commands.

"git rev-parse --verify --short HEAD" gives 4c0d547, which is used to construct a kernel magic version of 2.6.32.9-27242-g4c0d547-dirty.
Hmmm, bad. Seems I messed it up with my git commits.
I want to update both to Android 2.3.4 with kernel 2.6.35.7 for a long time, I just didn't manage to do it yet.

By the way, what does this mean? (from your page):
(Mind /system/lib/modules/bcm4329.ko !)

As things stand, I can boot your kernel image directly, but Android tries to load bcm4329 from /system/lib/modules, and presumably the same version conflict occurs, and hence wifi doesn't work.
Exactly, therefore this has to be replaced, too.
 

hwgasdfasdf

New member
Sep 23, 2011
4
1
0
Hi

I applied your patches to the cyanogen 2.6.37.6 kernel for desire, and have the kernel compiled and working, and can easily flip back and forth between usb host and usb gadget kernels.

My problem is that everything works great the first time, until I unplug say the keyboard. When I plug it back in, I get

drivers/hid/usbhid/hid-core.c: can't reset device, msm_hsusb-1.2.4/input0, status -71

if I rmmod usbhid, then pull the keyboard, and plug it back in, and modprobe usbhid, it works ok. Once it gets into the state above, I have to reboot the device to get it working again.

Anyone else seen similar behaviour?

Andrew
 

bled82

Senior Member
Nov 14, 2009
303
28
0
Fort Worth
Since you where able to port to the desire , do you think it would be possible to port it to the G2/desire z ? And would you be will to provide directions on how I could or be able to provide a kernal for my device? Thank you in advance , look forward to a response .

Sent from my HTC Vision using xda premium
 

hwgasdfasdf

New member
Sep 23, 2011
4
1
0
Yeah, I'll write up a howto / have some slightly modified patches and stuff in time.

I've just been playing with various devices so far, keyboard, usb stick, usb hard drive, usb ethernet, everything seems to work good, except when I unplug devices without rmmodding the modules first.

Don't have a display-link device yet - would really like to get one and play with that - that would be cool!

Andrew
 

bled82

Senior Member
Nov 14, 2009
303
28
0
Fort Worth
Yeah mini monitor would be nice, they have display link drivers for android.I would like to mount a mini in car n have **** for phone and have every thing in need on a 7inch touch screen.
Sent from my NookColor using XDA Premium App
 

bled82

Senior Member
Nov 14, 2009
303
28
0
Fort Worth
Yeah, I'll write up a howto / have some slightly modified patches and stuff in time.

I've just been playing with various devices so far, keyboard, usb stick, usb hard drive, usb ethernet, everything seems to work good, except when I unplug devices without rmmodding the modules first.

Don't have a display-link device yet - would really like to get one and play with that - that would be cool!

Andrew
Here is a driver i found that might help to get the external display working . https://github.com/magoroku15/DisplayLink-driver-for-android
This guy seems to have alot of stuff that might be usable on other devices . https://github.com/magoroku15
 

fegato

Senior Member
Feb 5, 2010
211
30
0
Interactive Project

@sonic74

Hi, thanks for your really wonderful effort, thank you!

I have a question:
i'm doing a interactive project,
my purpose is to receive a video signal from a webcam (via USB),
and send it delayed of about 4 seconds (via HDMI or DVI) to an HDTV.
Do you think it is possible using your usb host method, linux, and a nexus one?
it would be great if I can do it 720p.

thanks for your time and your work
D
 

gyurman

Senior Member
Jan 12, 2009
90
3
0
usb host mode for I9000

Hello,
What I need to change, if I want usb host mode for I9000 cyanogenmod nightly?
Please I wait for your help.
 

cocof2001

New member
Nov 9, 2011
3
1
0
I am trying to insmod the usbcore.ko on a SGS.
I am getting the magic version error:
version 2.6.27 preempt mod_unload ARMv6 should be 2.6.32

I see that on sven's site there is no more support for the SGS, probably now working for the SGS 2.

Does anyone have the 2 modules (ehci-hcd.ko and usbcore.ko) for SGS 2.6.32?

If not can somone tell me how to recompile it for the SGS?


Thank you in advance!
 
Last edited:

jesercm

New member
Oct 22, 2009
2
0
0
Install gamepad on 2.6.32.9 FRF85B

Hi guys

I'm new here. I just bought a Superpad III and i'm trying to make a gamepad to work.
When i try to install any joydev.ko there is a mesage:
insmod: init_module 'joydev.ko' failed (Exec format error)

My Device is:

Model: Android Tab 10
Android version: V2.3 2011-11-11 (01112)
Kernel version: 2.6.32.9
Build number: FRF85B

Can you help me is this:

I apreciate.
Thank you friend.
 

jesercm

New member
Oct 22, 2009
2
0
0
You can't just insmod any joydev.ko, you'd need one specifically for your kernel.
You can see this with
Code:
dmesg -c
Thank you for the fast answer.

Tell me, there is a place where i can download this module for my kernel?

---------- Post added at 10:07 PM ---------- Previous post was at 09:48 PM ----------

Thank you for the fast answer.

Tell me, there is a place where i can download this module for my kernel?
This is what i got when i plug my gamepad into usb port and type dmesg -c:



<6>[ 6747.095000] usb 2-2: new low speed USB device using imapx200_usbhost11 and
address 6
<6>[ 6747.300000] usb 2-2: configuration #1 chosen from 1 choice
<6>[ 6747.315000] input: DragonRise Inc. Generic USB Joystick as /devices
/platform/imapx200_usbhost11/usb2/2-2/2-2:1.0/input/input6
<6>[ 6747.325000] dragonrise 0003:0079:0006.0005: input: USB HID v1.10 Joystick
[DragonRise Inc. Generic USB Joystick ] on usb-imapx200-2/input0