yashsingh1/xdaforums huggingface dataset:
[Nexus One General] cocof2001:
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!
[Nexus One General] jesercm:
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.
[Nexus One General] sonic74:
You can't just insmod any joydev.ko, you'd need one specifically for your kernel.

You can see this with

dmesg -c
[Nexus One General] jesercm:
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 ----------

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
[Nexus One General] mentaist12:
was searching for this! it looks great gonna try it, thanks
[Nexus One General] derekbez:
Been wanting to do this since it was announced months ago, but never got around to it.

This project seems to be in its sunset phase. It is an inspirational piece of work! As our N1's get replaced by newer models, lets hope some of them at least get repurposed as controllers for other activities; this usb host stuff could be a magical enabler. :)

Is there any update that works with Cyanogen 7.1 on the N1?

2.3.7 / 2.6.37.6

Has anyone ever written a dummies guide / tutorial that explains the logistics of the details on Sonic74's web page? I'm sure I could follow it (eventually), but need a step-by-step to get me started.

TIA
[Nexus One General] maurrubio:
I was looking for that too, thanks.
[Nexus One General] fatypaul:
Found it, thanks
[Nexus One General] kemkem42:
Hi guys,

Is there a detailled guide somewhere to install this driver to a N1 ?

I've seen Sven page of course, but it's a bit too much for me.

Or, maybe in this thread, someone detailled all the steps ?

Any chance I'll find this in this thread history ?

Many thanks !
[Nexus One General] AndroidGalaxyY:
Web Cam interface with Galaxy S2

Trying to connect webcam to galaxy s2 using USB OTG cable.. After executing dmesg it detects Webcam has "High speed mass storage" instead of video streamer or seomething connected to webcam...

For your INfo: I enabled UVCVideo option in kernel source and build the kernel before flashing to the device.

Thanks in advace!
[Nexus One General] kemkem42:
Ok, I've found a quite nice step by step instructions on page 5 of this thread.

I'm still a bit confused with android and kernel versions :

On Sven page, it says you must use Android version: 2.3.4 and Kernel version: 2.6.35.7

So I have to find an old version of cyanogen (like 7.1.0-RC1) which uses android 2.3.4, and change kernel to 2.6.35.7 ?

Can you confirm me this ?

Where can I find this stuff ?

Thanks a lot !
[Nexus One General] kemkem42:
Hi again,

I've read all the thread, but I still have some unclear steps :

- Kernel is loaded by boot.img (binary version), provided by sven site, or by compiling your own source -> zImage, right ?

- The binary version (boot.img) requires Android 2.3.4

- Cyanogenmod 7.0.1RC1 seems to come with android 2.3.4, is that ok ?

- Is that possible to 'load' boot.img before writing it ? > fastboot boot boot.img ?

Thanks
[Nexus One General] 3lflre:
Would it be possible to use a Logitech USB Nano unifying stick with the nexus without the need for any external power source ?
[Nexus One General] Sina_47:
Hi... Could anyone please upload usbcore.ko and ehci-hcd.ko for android 2.3.4 - kernel 2.6.35.7 ?? i had some problems with insmod these modules ... when i flash boot.img and insmod drivers/usb/core/usbcore.ko it say's can't open... i had compiled the zImage but the same problem... i need to put usbcore.ko and echi-hcd.ko manually on sd or somewhere else then insmod it ... thanx a lot
[Nexus One General] rsdunn:
I was hoping someone out there has compiled the modules and has the binaries needed for kernel 2.6.37.6 on the Nexus?? Would like to use the features...
[Nexus One General] sztupy:
Yeah, SGS2 has:

1. Whitelist for devices (can be turned off in kernel)

2. No support for isochronous transfers

3. No support for split transfers
[Nexus One General] John_duh:
Ok, I managed to compile my kernel, and when i boot it i can't connect to adb anymore, so that's a good thing (I guess)

Now to the bad, I must be missing something, but i can't find the usbcore.ko in the modules archive on Sven's site.

I did find a usbcore.o in the ndk, but this one gives me a wrong file format error when i try to insmod it.

Any tips ?
[Nexus One General] strags:
Hi,

Still having lots of issues with serial devices. I hadn't noticed this comment on Sven's page before:

So, it seems like I'm not the only one.

I'm using a cp210x-based device. After closing/reopening, not only do I no longer receive data, but subsequent attempts to remove/reload the cp210x.ko module result in a hang.

Anyone else dug into this issue at all?

Cheers!
[Nexus One General] quebs:
exec format error

have you met the issues like :exec format error? when push individual drivers and insmod them.:confused:

and could you explain why when considering that my step is the same as you did?so much thx!!
[Nexus One General] xafix.kay:
This thread is interesting.. but, is it possible for ics to have this host??? :)
[Nexus One General] ductruong9x:
Thank you i am seaching it
[Nexus One General] saezito:
you can download the driver with the android official sdk
[Nexus One General] Wraithxt1:
I'm totally.lost. could you help me out, I need to figure out how to get a portable hard drive working with the nexus one. I'm trying to get a pirate box set up on it
[Nexus One General] hansmaiser:
Connect phone / tablet to an external usb drive

hi,

does anybody know about drivers for external drives (DVD)? Or could I use the provided usb storage drivers?

hans
[Nexus One General] sonic74:
I guess so.
[Nexus One General] tb-killa:
Does you have any news about your project for the I9100 ?

I check out some different sources and its seems to be that with the new ICS Roms the Kernel seems to be fixed for better supporting differen types of Protocoll.

Another good point for check out USB Host could be Siyah Kernel eg.
[Nexus One General] sonic74:
After having problems on the I9100 with USB host and kernel sources in ICS again, I switched to the I9250. Works like a charm.
[Nexus One General] orfeas:
Hello,

I managed to get my Atrix to read a USB flash drive with a USB Y-splitter, thanks a lot for info.

I am a photographer so why cannot it read cards from a multi-card reader ??
[Nexus One General] martintzvetomirov:
DVB-T

Ok, guys, can someone help me with this?

It's about the DVB-T thingy. How do I compile the driver for my device or I can use the dvb modules provided for all DVB-T devices?
[Nexus One General] sonic74:
No, you need specific kernel modules and firmware as described here.

I was thinking of a kernel module auto installer/loader. If enough donations would be made, I might do it.
[Nexus One General] martintzvetomirov:
So if it says "Yes, in kernel" next to a device, this means that I need to find the source files of the kernel module for the specified device and compile them?

If it says "Yes, by vendor" I guess things are hopeless. The vendor of my device "AverMedia Volar HX" is providing drivers only for x86/x64 systems, so I guess there is no way I could compile them for Android? Am I correct?
[Nexus One General] sonic74:
You don't need to find them, since they're in the kernel source tree.

Yes, if they are binary-only.
[Nexus One General] kemkem42:
Hi,

I need some help installing this to my Nexus One..

Sven page said : Android 2.3.4; Kernel version: 2.6.35.7 based on g52630a3; Build number: GRJ22. Do I have to get those exact versions ?

I'm currently using one of the last Cyanogen 7.X, what ROM version should I use ?

Do I have to change the kernel ?

Thanks a lot for reading me
[Nexus One General] taodan:
You don't install N1 USB driver to your phone but to your PC. Download and install Android sdk to your PC and connect your n1 and your PC will automatically search for a driver.
[Nexus One General] kemkem42:
Maybe it seems that i'm a total noob ?:confused:

I'd like to use usb HOST feature, developed by sven, to my N1.

I'm pretty good at connecting my N1 to my PC, THANKS!
[Nexus One General] Bi0haZarD:
maybe your not so noob as it looks...anw usb HOST was implemented by IR in his latest GB kernel...try that if it works out for you provide some feedback pls
[Nexus One General] kemkem42:
Thanks for your reply.. Any link to a xda thread ? (can't find it by search :( )
[Nexus One General] kemkem42:
All right, found it here

http://xdaforums.com/showthread.php?t=653598&highlight=otg

Not so easy to figure that IR = IntersectRaven...

Thanks anyway, I'll test it soon
[Nexus One General] mohsyn:
query

Hey

here a another noob question since me n unix never met

1. I have non powered USB OTG - most of my point and shoot cameras do work on it - will it work for a DSLR too which has its own power supply (not sure if it provides it to its USB controller)

2. My phone is HTC wildfire - rooted - running CM 7.2 ( will it work) or Ployer Momo9 compatible P300 running ICS 4.0.3 (rooted - but might have certain devices blocked by manufacturer since its only allows a particular brand of Data dongle to work )

cheers
[Nexus One General] mihovil13:
Wildfire doesnt have anything to do with N1.

You missed the whole forum, and thread

---------- Post added at 02:16 PM ---------- Previous post was at 02:06 PM ----------

http://www.ebay.com/itm/USB-A-Femal...bilePhoneAccessories&hash=item20c9815800#shId

Can I use this adapter for host function?
[Nexus One General] mihovil13:
Dslr will work cause Im getting a cable to do that, I own Canon 550D and newer Eos series have option to remote using 3 methods (wire control, IR and now USB for a computer but this for smartphone)

For that you need usb host function, not OTG.

I hope that a simple adapter from that link will do that?
[Nexus One General] mohsyn:
Checked in chainfire's supported device list

HTC wildfire does claim to have usb host support but does not have class files - so technically its possible but i need to figure out how to get class files for it

anyways ill be doing it on my tab since its has a full support and ICS 4.0.3 - somehow that dslr program is not recognizing camera - seems to be a power issue - waiting for Y cable :)

Thanks for your support

:good:
[Nexus One General] aadiflesher:
Hello. Need some help!

I have a Google Nexus One running Android 4.1.1 paranoidAndroid, Kernel version: 2.6.38.8-evervolv-perdo-jellybean+drew@master #1.

What do I need to make it work with my kernel? Do I need a new kernel or are there any modules that I can flash?

I also made a OTG cable with power supply.

But please tell me which cable configuration is good, first image or second

Do I need the red and black (power cables) going from the power to the usb device AND the phone or just from the power to the usb device.

If they go only from the power to the usb device the phone will not charge and only the usb device (mouse, keyboard, HDD) will have power. So what do I need?

I hope someone can help me! Thanks! :)
[Nexus One General] aadiflesher:
Anyone any ideas that I can use? :)
[Nexus One General] aadiflesher:
man... is really no one here anymore?? Need some help here!
[Nexus One General] tommert38:
A lot of people here, just not the knowledge.
[Nexus One General] joeavery2:
aadiflesher, READ THE SECOND THOUGHT FIRST. you'll need to short pin 5 to pin 4 of the USB micro, IF I remember right... Pin5 is the sense pin and when it is grounded it tells the phone to act as a host. This may be a PITA as you will need to cut the insulation off the usb micro connector. It's probably cheaper/easyier to buy a USB OTG cable on amazon for $0.99 instead but if you don't want to look on google plus / Android central for a how to from +phil Nickinson. He made a nice how to about 3 months ago.

I would use the first picture. Tie the source power to both the phone and the device. This allows both to charge. But the other will work too, Just you don't get the charge, as you pointed out.

I would assume at this point that any kernel made for the N1 has usb host support. So you should be good to go.

Second Thought: There is an app for the Nook that enabled USB OTG without using the sense pin on the cable. You might be able to use that app on the N1 to turn on/off USB OTG without needing to cut up your fingers to hack the cable.

Good luck. I miss my N1.... :crying:
[Nexus One General] PRichardson:
Thank You!

Sven,

I just wanted to say thank you (in addition to hitting the 'Thanks Button'), for your work on this feature, and for the webpage where you documented all your work and posted the videos way back in 2010. I was an early adopter of the Nexus One, and when I found your webpage, I immediately began sharing it with other enthusiasts.

This would be awesome, now that XBMC & Plex are running on Android (if we could get OTG working with these apps). Of course, it might be easier to just try and flash GoogleTV on the N1 than to do all that! ;)

Best Regards,

Paul

:good:
[Nexus One General] BIade:
Is it possible to port this to the "htc desire Z/Vision/G2" ?

A link to a porting guide would be awesome
[Nexus One General] kenkit:
Linux kernel version: 2.6.35.7 Frambuffer console *.ko

Can anyone please upload Linux kernel version: 2.6.35.7 Frame-buffer console modules.

I need to use them on my Alcatel 918D for debugging purposes, I tried compiling but can't due to a compilation error.

Help in identifying the source of the error would be highly appreciated.

http://xdaforums.com/general/help/mtk6573-alcatel-918d-kernel-compilation-t2979556#post57692269

The files usually are :

fbcon.ko

font.ko

sofcursor.ko

bitblit.ko
[Nexus One General] sucksix:
+1
[Nexus One General] chrs2021:
pfft

http://www.dealextreme.com/details.dx/sku.13526 - building it.... only uncool people build their own cables /sarcasm

but for those who can't here is something that might help out a little also you can charge your old g1 with it :)
[Nexus One General] TommyPickles:
Sonic74, is it possible to upload a pre-built .img that we can flash instead of having to download kernel trees, patching, building etc.?

From what we've seen at XDA many users simply want to try new modifications quickly and easily without having to go into too much detail.

However once they experience it, then the passion kicks in and they'll want to learn how to hack from scratch themselves. In this way I'm sure you'll get a greater adoption of users then trying your mod, building and most importantly contributing.
[Nexus One General] sonic74:
A boot.img/bzImage and modules were available on the website since launch ("Binaries").
[Nexus One General] TommyPickles:
Ah, thanks for that Sonic74. So to confirm then, if people want to play with your mod rather than build from scratch they should:

- Download binaries from your page (boot.img and modules.tbz)

- Flash across the boot.img ie. fastboot flash boot boot.img

To load the modules you will need to use ConnectBot or Android SDK and:

- Move to protect your existing Android modules ie. adb shell mv /system/lib/modules /system/lib/modules.orig

- Create a new modules directory on your Android ie. adb shell mkdir /system/lib/modules

- Extract the modules.tbz tarball onto PC, including subdirectories

- Copy bcm4329.ko driver into new modules directory ie. adb push \yourpcdirectoryhere\drivers\net\wireless\bcm4329\bcm4329.ko /system/lib/modules

- Push individual drivers across for eg. USB keyboard ie. adb push yourpcdirectoryhere\usbhost\drivers\hid\usbhid.ko /system/lib/modules/usbhid.ko

Can you clarify, particularly with regards to modules? Greatly appreciated! :)

Cheers

Leon
[Nexus One General] Kermee:
Waiting on the USB OTG cable now. Guessing it'll be two-weeks or so to get it from HK. -- The other end of the USB OTG cable is a USB Type-A female so I'm having problems locating a dual power USB Type-A male to single USB Type-A male... Or maybe I hunt down one of those easier to find dual USB Type-A male to microUSB male and find some type of converter from microUSB male to USB Type-A male...

Cheers,

Kermee
[Nexus One General] huanix:
Just a heads up, I think that cable has mini usb rather than micro usb.

I had to buy 3 of them to meet the minimum charge, but you can get 3 of the referenced cables for $15 (free shipping): go to thefinalclick and search for 28108

It would be AWESOME to find the right one on deal extreme - i really liked the squid-style you found.
[Nexus One General] sonic74:
I recommend to download the zImage and boot it from RAM with

fastboot boot zImage

to try it out first.

jmgrosen got these commands from my scratchpad text file. They are needed only if you want to flash my boot.img for everyday use. Otherwise, just copy the modules somewhere to /data/local and insmod them from there.

Mind that you lose device mode with my mod at the moment.
[Nexus One General] TommyPickles:
Thanks very much for the clarification. I think you helped a number of members with that single post!

Does the boot.img load any or all modules? If not I presume that insmod via shell or terminal on phone stored locally on phone is required, as you've stated.

Lastly, do you have any documentation on different driver modules? Like what should be used where. Eg Media > Video > GSPCA compared to PWC. Is there any issues with insmod loading all modules?
[Nexus One General] sonic74:
I described how to load the modules on the website.

No.
[Nexus One General] huanix:
Thanks for sharing your work Sven - i am incredibly excited about the possibilities this brings!

I'm waiting on parts- probably like everyone else. Has anyone else gotten this up and running/working yet?

Hey Sven - do you have a paypal account? (I'm only a $10 giver, but I do it when i can!)
[Nexus One General] sonic74:
sven@killig.de :)
[Nexus One General] agentkalaw:
So do you guys think we could use the desktop dock and connect it to a monitor and use the rca out for speakers as a simple home theater pc?

-------------------------------------

Sent via the XDA app
[Nexus One General] Kermee:
Desktop dock blocks the USB port.

Cheers,

Kermee
[Nexus One General] Kermee:
Hi sonic74,

Do you think either of these USB 2.0 to DVI adapters will work?

USB 2.0 to DVI Display Adapter with Audio - 1080p

USB 2.0 Display Adapter DVI w/Audio

Both point to DisplayLink for the drivers. The first link claims to support 1920x1080 which would be great for HDTV sets or 1920x1080 monitors...

Cheers,

Kermee

EDIT: Wonder if any of these would work too under Debian?

DisplayLink USB 2.0 Universal Docking Stations

They look like they're DL-165 based and 3 of the 4 units have 4 USB ports so I could power the USB OTG cable with two USB ports leaving two USB ports available.

This one is kinda sexy... Toshiba dynadock V.
[Nexus One General] sonic74:
I don't have experience with combined devices. In theory they should work, they should be modeled with an internal hub. I'm a bit cautious because I use a quite old driver version from 6/2009 because the staging driver resets my Nexus One. I'm in contact with Bernie Thompson from the libdlo mailing list to make it work.
[Nexus One General] Kermee:
Hey Sven,

Yeah. I just saw your post. =)

I was digging around and saw that some people are attempting to get libdlo working with the barrage of USB mini docks out in the market now. -- I see there is a Wiki page titled "DeviceQuirks" that shows a known issue with the "HP Dock." I have a sneaking suspicion the Toshiba Dynadock's will give the same grief.

However, I'm going to bite the bullet and grab either a Dynadock V or U and give it a go. Worse comes to worse, I'll just pick up a generic USB to DVI or VGA device and go from there.

Thanks again for all your work! I'm patiently waiting for everything I ordered ;)

Cheers,

Kermee

P.S. Will be interesting to see if Bernie Thompson can give some insight on the staging version.
[Nexus One General] sonic74:
He did: I successfully updated to a newer driver. I added instructions here.
[Nexus One General] operron:
Hi Sven,

your patch does not apply cleanly on a 2.6.29 kernel tree (so, for a 2.1 nexus)

patch -p1 <android-kernel_msm-v2.6.30-rc2-27223-g248970b_Nexus-One_usb-host.patch
patching file arch/arm/mm/dma-mapping.c
Hunk #1 succeeded at 365 (offset -40 lines).
patching file drivers/usb/Kconfig
Hunk #1 FAILED at 58.
1 out of 1 hunk FAILED -- saving rejects to file drivers/usb/Kconfig.rej
patching file drivers/usb/host/Kconfig
Hunk #1 succeeded at 88 (offset -17 lines).
patching file drivers/usb/host/ehci-hcd.c
Hunk #1 FAILED at 1131.
1 out of 1 hunk FAILED -- saving rejects to file drivers/usb/host/ehci-hcd.c.rej
[Nexus One General] sonic74:
Just apply the contents of *.rej by hand.
[Nexus One General] hugonz:
Sven, have you tried to make OTG mode (dynamic host/peripheral switching) work properly yet?

There seems to be all the required patches upstream for it to work, e.g. https://www.codeaurora.org/gitweb/q...it;h=731e94b44438268741e77db8db3fc91ee9d9acb2

Also, have you managed to get VBUS generation working? I'd imagine the hardware is there and it's probably wired up (it's a feature of the PMIC used in the N1, which includes 5V 600mA boost converter):

http://web.archive.org/web/20080617080725/http://www.qctconnect.com/products/pm_7500.html
[Nexus One General] sonic74:
No, my tries integrating the codeaurora and the Google kernel tree led to many error messages. But Andrew de Quincey is working on the original linux gadget framework.

No, I'm as afraid as Andrew is. And my worst case power consumption is 2 A. I'm thinking about a portable 5 V power source with the National Semiconductor LMZ line.
[Nexus One General] operron:
This is what I did shortly after having posted here... But this is not enough as the compilation then fails.

So I made further updates in some source files and have managed to get the kernel and the modules finally compiling.

I'm now ready to test this but.... as I don't have yet the OTG cable, I will have to wait for it to arrive !

However in the mean time if someone is willing to test my 2.6.29 usb host kernel, I'll be happy to share it.
[Nexus One General] rumborak:
I'm also trying to make it work, and am waiting on the cables (I also ordered another one from Amazon, search for "Cables Unlimited USB Micro A Cable" , which I hope will work too).

A couple of questions: What is the dual-power cable for? Is it strictly necessary, or rather there for driving some of the more power-hungry devices?

Also, what would the APIs be for activating the N1's power supply? I'm sitting on a pile of N1s here at work, and I'd be happy to use one for testing that API :) I will be trying to connect a very low-consumption USB devices, so I'm hoping I could get away without an external power supply.
[Nexus One General] sonic74:
No unique hit. How about a link?

To power the upstream port, because the hub chip get its power from there.

Yes.

Look for msm_hsusb_vbus_power in git://codeaurora.org/quic/kernel/bryanh/linux-2.6.31.y.git