Nexus One USB host driver

rumborak

Member
Jun 7, 2010
24
1
0
Hmm, the USB audio cards are giving me a lot of trouble. I have tried a good number of them by now, but none of them works properly in full duplex mode. The fact that different cards show different amounts of capability (even though under Windows they all work perfectly fine) seems to indicate to me that it's the Linux USB audio module that's causing the trouble. Or the OSS emulation, one of the two.
 

KeiAiAm

Member
Nov 15, 2008
24
0
0
Sorry if I'm just bumping into here, but I'm kinda new to Android and I just got a small question to make my mind clear again as I'm a little confused right now :S

The kernel is basically the core of the whole Android OS right?
So if I'd download the (precompiled?) files you provided, they would basically overwrite my 2.1 kernel? Would there be any problems with the "rest"? What is basically next to the kernel?

Hope you can help me out
Greetings
 

sonic74

Senior Member
Jan 3, 2010
163
18
0
Schwabach
sven.killig.de
The kernel is basically the core of the whole Android OS right?
An Android device has two "cores": the kernel and the Android framework.

So if I'd download the (precompiled?) files you provided, they would basically overwrite my 2.1 kernel?
I recommend you use
Code:
fastboot boot zImage
to test it. After the next reset, your original 2.1 kernel is active again.

Would there be any problems with the "rest"?
Maybe, since my binaries are for Android 2.2
 

tocixxx

Member
Jan 11, 2010
16
1
0
Hi !

I found this and today i will try to implement my first kernel patch ever ;)...
I will try to integrate your mods in the actual cyanogen kernel and i´ll try to get this working on a G1.

I just have one question about the setup.
As far as i understand the N1 does not supply the necessary voltage over USB.
That´s why you use an active USB hub right ?
Would it be possible, if you use a USB-hardware which does not rely on bus power, to use it without the hub ? or does the controller chip in the N1 need the power supply ?
 

sonic74

Senior Member
Jan 3, 2010
163
18
0
Schwabach
sven.killig.de
As far as i understand the N1 does not supply the necessary voltage over USB.
That´s why you use an active USB hub right ?
Right.

Would it be possible, if you use a USB-hardware which does not rely on bus power, to use it without the hub ?
Not without providing power to the device's Vbus pin.

or does the controller chip in the N1 need the power supply ?
A hub chip is definitely powered by the uplink port Vbus pin. And it seems every other device, too: I just tried to plug in my self-powered printer, it's not recognised.
 
Last edited:

tocixxx

Member
Jan 11, 2010
16
1
0
OK, I see

Seems like to voltage on the VBUS-Pin is like a "remote" control for the attached devices, even if selfpowered...

Hmm,... quite a disadvantage in the usability...
anyway.. I`ll try to apply the patch anyways and sort out the errors.

Did you see, Andrew de Quincey, has made a lot of improvements to his implementation ?

I took a look at the new patch and this incooperates a lot more work...
 

pikipirs

Senior Member
Jan 23, 2009
316
83
0
android.ccpcreations.com
Not all USB hubs need power on the host cable...

I have Trust HU-5870V 7-port USB hub and it has power in the host cable when it's connected to the power adapter. I know this because my notebook (when the hub is connected to it) is half-alive even if the notebook itself doesn't have any power. Stuff like wifi/bluetooth light and dvd-rom are turned on (dvd tray is ejectable), and if I unplug the USB hub, they turn off.

I just received the OTG cable today and I tried it with this hub. It doesn't need any additional cables, apart from power block and the OTG cable. No dual-power USB cable needed. The nexus is charging when connected over OTG.
 
Last edited:

ManticoreX

Member
Jun 24, 2010
28
4
0
Great job with this. I am planning on trying to set this up soon, but I have a quick question. On your webpage you have
Substitute device mode (or port Andrew de Quincey's work)
Use adb over TCP/IP
adb connect IP_address:5555
Filesystem access
Nexus One's
On Air (Vista/7 registry patch)
PC's
insmod fs/cifs/cifs.ko
mount -t cifs -o username="username",password="password" //IP_address/share /mnt/sdcard/cifs
Could you explain this step a little more. Do I need to use a PC to enable this every time or can this step be done directly on the phone. My plan is to be able to have a usb keyboard I could use with the phone anywhere for taking notes, writing documents etc.
 

sonic74

Senior Member
Jan 3, 2010
163
18
0
Schwabach
sven.killig.de
Do I need to use a PC to enable this every time or can this step be done directly on the phone.
There I describe how to substitute the USB client mode. This is only neccessary if you want to use adb or access files on the phone from the PC.
The steps for keyboard support can be started by a small script that you start with ConnectBot on the phone.