Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Linux 2.6.x Cayman3341 USB router drivers

Status
Not open for further replies.

Evan145

Technical User
Dec 24, 2001
33
IE
Hi,

This may be a longshot but, can someone please help me with compiling the drivers for
my Cayman3341 USB router.

I have completed my first ever Linux (Fedora 5) installation. I havnt gotr a network card in my machine
yet, so I can only use the USB port for my router.

Not being a developer in any way, I cant debug the 'make'
errors. Is it possible for someone to create the '.ko'
file for me and send them to me, please???

Fedora 5: kernel version 2.5.16-1.2054_FC5
USB Driver for Netopia Cayman 3341 DSL modem for Linux 2.6.X.



My attempts to make....
I'll be honest and say I dont really know what Im doing..
Code:
[root@localhost 2.6.15-1.2054_FC5-i686]# make
make -C /lib/modules/2.6.15-1.2054_FC5/build SUBDIRS=/tmp/usb modules
make[1]: Entering directory `/usr/src/kernels/2.6.15-1.2054_FC5-i686'
make[1]: *** No rule to make target `modules'.  Stop.
make[1]: Leaving directory `/usr/src/kernels/2.6.15-1.2054_FC5-i686'
make: *** [default] Error 2
[root@localhost 2.6.15-1.2054_FC5-i686]#


[root@localhost 2.6.15-1.2054_FC5-i686]# make install
install -D -m 644 *.ko /lib/modules/2.6.15-1.2054_FC5/kernel/drivers/usb/net
install: cannot stat `*.ko': No such file or directory
make: *** [install] Error 1
 
What's in the usr/src/kernels/2.6.15-1.2054_FC5-i686 directory?

It should contain the kernel source, for example on my system (not FC5) it contains:

[tt]$ ls /usr/src/linux-2.6.16.20
COPYING Makefile arch include mm usr
CREDITS Module.symvers block init net vmlinux
Documentation README crypto ipc scripts
Kbuild REPORTING-BUGS drivers kernel security
MAINTAINERS System.map fs lib sound[/tt]

You may need to install the kernel source RPM first.

Incidentally it fails to compile on my system as well, but for other reasons. Possibly because I haven't configured the kernel for USB.

Annihilannic.
 
You are right Annihilannic, that directory is empty.

I have NO dev experience whatsoever, but a bit of googling
following your response tells me that the Fedora kernel source is not added during install.

I found the exact kernel version here

If I run the following commands, will this enable me to do make again for the cayman drivers???

And where should I put the rpm before compling?

# rpm -ivh kernel-2.6.15-1.2054_FC5.src.rpm
# rpmbuild -bp --target=$(uname -m) /usr/src/redhat/SPECS/kernel-2.6.spec

Thank you
Evan
 
Following another bit of intense reading, I discovered
how to extract the source.

[root@localhost usb]# ls
cayman3341.c Makefile
kernel-2.6.15-1.2054_FC5.src.rpm README
kernel-devel-2.6.15-1.2054_FC5.i686.rpm

[root@localhost usb]# rpm -ihv {kernel-devel-*.rpm}
[root@localhost usb]# rpm -ihv {kernel-*.src.rpm}
However, I decide not to run the rpmbuild command as yet!!!

SO, now I finally get to call the 'make' on the cayman3341.c driver code.

Annihilannic, do you get the same errors??
Any idea what the errors mean?

Code:
[root@localhost usb]# make
make -C /lib/modules/2.6.15-1.2054_FC5/build SUBDIRS=/usb modules
make[1]: Entering directory `/usr/src/kernels/2.6.15-1.2054_FC5-i686'
  CC [M]  /usb/cayman3341.o
/usb/cayman3341.c:118: error: unknown field 'owner' specified in initializer
/usb/cayman3341.c:118: warning: initialization from incompatible pointer type
/usb/cayman3341.c: In function 'cayman3341_tx_timeout':
/usb/cayman3341.c:350: error: 'URB_ASYNC_UNLINK' undeclared (first use in this function)
/usb/cayman3341.c:350: error: (Each undeclared identifier is reported only once
/usb/cayman3341.c:350: error: for each function it appears in.)
make[2]: *** [/usb/cayman3341.o] Error 1
make[1]: *** [_module_/usb] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.15-1.2054_FC5-i686'
make: *** [default] Error 2
[root@localhost usb]#

Tnks
 
Those are exactly the same errors I had. Probably best to get in touch with the developer to ask about them.

Annihilannic.
 
Online!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Having sourced the drivers for my USB router, and an impromptu crash course of the Linux kernel through trial and error, I learned, thanks to Annihilannic, that I hadnt the kernel-devel rpms installed. My first lesson in module and kernel source.

Got the src/dev rpms, only to then discover that the cayman3341.c file wont compile due to changes between 2.4 and 2.6. The URB_ASYNC_UNLINK has been dropped from the module.h file.

Finally, I threw in the towel and bagged an NIC from a friend. Got the network up and running in no time.

Closing this thread in Firefox from my new dual boot Win98/Fedora 5 Core.

I can now leave my WinXP Pro as is, and use this machine for
experimenting more in Linux.

Thanks Annihilannic for pointing me in the right direction.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top