LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to Install 3Com 3CRUSB10075 driver under Mandrake 10.1 (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-install-3com-3crusb10075-driver-under-mandrake-10-1-a-479373/)

elkikz 09-01-2006 05:32 AM

How to Install 3Com 3CRUSB10075 driver under Mandrake 10.1
 
Dear All,

i just installed linux mandrake 10.1 yesterday for the first time. and i never used linux before.

i checked in the hardware settings and found out that all the drivers are installed correctly, except the Wireless lan which are stated as Question mark, i have to wifi cards 1- SMC wireless PCMCIA Card which doesn't have linux driver
2- 3com 3crusb10075 which has the driver, i downloaded it and extracted it to a folder.

but i dont know how to compile it and install it.
i would appreciate it if you could supply me step by step information on how to do it or direct me to a Link or website or file that teaches that.

i need your help urgently.

Thanks in advance.

Elkikz

KenJackson 09-01-2006 12:29 PM

If it the developer has done a good job and used the GNU autotools, there are three steps to install a software package that is destributed as source code.
Code:

./configure
make
make install

configure is a big custom bash shell script that examines your system to find your compiler and see if you have the needed libraries, etc., and generates a file named "Makefile". It must be called with a leading "./" because the current directory isn't on the PATH. The make command reads Makefile and does what it says. make install (run as root) installs the completed build in your system.

But I fear this may not work for this driver. This guy complained that his 3COM driver Makefile (apparently there was no configure script) was incorrect. Though I think his product was different than yours.)

Anyway, if it already has a file named "Makefile", then simply run the make command:
Code:

make
If you get errors, try to see what caused it. The guy above had to edit a variable in the Makefile that identified the kernel source path, and comment out commands that generate 'man' (manual) pages.

It would also be helpful to know the URL of the driver you downloaded.

elkikz 09-01-2006 05:23 PM

Hey man thanks for your help
the site that i download the driver from is the 3com site 3com.com/products/en_US/result.jsp?selected=all&sort=effdt&sku=3CRUSB10075&order=desc.


anyway i checked the link that you gave and it seems that the guy has the same usb wifi that i have.

and it has a Makefile in it.

i altered the Makefile to suit my kernel version.

i saved it and run. make.

it gave me errors that i didnt get to understand.

the Makefile that i have is like this:

#
# .zd1211 - USB2.0 802.11b/g driver for Zydas ZD1211 chipsets
#

CC=gcc
CPP=g++
LD=ld
RM=rm -f -r

# if the kernel is 2.6.x, trun on this
KERN_26=y
KERNEL_SOURCE=lib/modules/2.6.8.1-12mdk
# if the kernel is 2.4.x, trun on this
#KERN_24=y
#KERNEL_SOURCE=/usr/src/linux-2.4

SRC_DIR=src
DEFINES=-D__KERNEL__ -DMODULE=1

KERNRELEASE := $(shell uname -r;)
MODPATH := /lib/modules/$(KERNRELEASE)

ifeq ($(KERN_26), y)

MODULE = zd1211.ko

INCLUDES=-I$(KERNEL_SOURCE)/include -I$(SRC_DIR)/include/ -I$(SRC_DIR)

so when i save it and run make i get this error:

[kiko@localhost 3Com]$ make
/lib/modules/2.6.8.1-12mdk/build
/home/kiko/Desktop/3com/3Com
-I/home/kiko/Desktop/3com/3Com/src/include -fomit-frame-pointer -O2 -Wall -Wstrict-prototypes -pipe -DHOST_IF_USB -DAMAC -DGCCK -DOFDM -DUSE_EP4_SET_REG -DDOWNLOADFIRMWARE -DfTX_GAIN_OFDM=0 -DfNEW_CODE_MAP=1 -DfWRITE_WORD_REG=1 -DfREAD_MUL_REG=1 -DENHANCE_RX=1
make -C /lib/modules/2.6.8.1-12mdk/build SUBDIRS=/home/kiko/Desktop/3com/3Com modules
make: *** /lib/modules/2.6.8.1-12mdk/build: No such file or directory. Stop.
make: *** [all] Error 2

elkikz 09-01-2006 05:23 PM

Hey man thanks for your help
the site that i download the driver from is the 3com site 3com.com/products/en_US/result.jsp?selected=all&sort=effdt&sku=3CRUSB10075&order=desc.


anyway i checked the link that you gave and it seems that the guy has the same usb wifi that i have.

and it has a Makefile in it.

i altered the Makefile to suit my kernel version.

i saved it and run. make.

it gave me errors that i didnt get to understand.

the Makefile that i have is like this:

#
# .zd1211 - USB2.0 802.11b/g driver for Zydas ZD1211 chipsets
#

CC=gcc
CPP=g++
LD=ld
RM=rm -f -r

# if the kernel is 2.6.x, trun on this
KERN_26=y
KERNEL_SOURCE=lib/modules/2.6.8.1-12mdk
# if the kernel is 2.4.x, trun on this
#KERN_24=y
#KERNEL_SOURCE=/usr/src/linux-2.4

SRC_DIR=src
DEFINES=-D__KERNEL__ -DMODULE=1

KERNRELEASE := $(shell uname -r;)
MODPATH := /lib/modules/$(KERNRELEASE)

ifeq ($(KERN_26), y)

MODULE = zd1211.ko

INCLUDES=-I$(KERNEL_SOURCE)/include -I$(SRC_DIR)/include/ -I$(SRC_DIR)

so when i save it and run make i get this error:

[kiko@localhost 3Com]$ make
/lib/modules/2.6.8.1-12mdk/build
/home/kiko/Desktop/3com/3Com
-I/home/kiko/Desktop/3com/3Com/src/include -fomit-frame-pointer -O2 -Wall -Wstrict-prototypes -pipe -DHOST_IF_USB -DAMAC -DGCCK -DOFDM -DUSE_EP4_SET_REG -DDOWNLOADFIRMWARE -DfTX_GAIN_OFDM=0 -DfNEW_CODE_MAP=1 -DfWRITE_WORD_REG=1 -DfREAD_MUL_REG=1 -DENHANCE_RX=1
make -C /lib/modules/2.6.8.1-12mdk/build SUBDIRS=/home/kiko/Desktop/3com/3Com modules
make: *** /lib/modules/2.6.8.1-12mdk/build: No such file or directory. Stop.
make: *** [all] Error 2


so any idea what's messed up.

waiting for ur help

thanks Elkikz

KenJackson 09-01-2006 07:12 PM

Do you have the kernel source RPM installed? It's probably named kernel-source-2.6.8.1-12mdk. You can check with this command. (It will take several seconds while it searches the RPM database.)
Code:

rpm -qa kernel-source\*
If not, and then install it. Try this:
Code:

urpmi kernel-source-2.6.8.1-12mdk
If you have the sources installed and you get that error, then just make the directory it's griping about (as root) and try again.
Code:

cd /lib/modules/2.6.8.1-12mdk/
mkdir build


elkikz 09-04-2006 05:00 AM

same problem
 
hey man,

thanks for your help first of all.
i tried:
rpm -qa kernel-source\*If not, and then install it.

it doesnt give anything...

i tried this:

urpmi kernel-source-2.6.8.1-12mdk

it says urpmi: command not found

i logged in as root and created the folder BUILD

then i tried to do make for the the driver
and still getting the same error.

so any idea what's happenin..

i know am bothering you alot and thank you for ur help.

Regards,

Elkikz

KenJackson 09-04-2006 10:44 AM

Quote:

Originally Posted by elkikz
rpm -qa kernel-source\*If not, and then install it.

I hope that was just a typo.

Quote:

Originally Posted by elkikz
urpmi kernel-source-2.6.8.1-12mdk

Note that you must install this as root. Also, the 'urpmi' command is in /usr/sbin, which is not in a normal user's PATH variable by default--which explains why it wasn't found.

Quote:

Originally Posted by elkikz
i logged in as root and created the folder BUILD

Note that filesnames and directories are case sensitive on Linux. So build and BUILD and even Build are all different directory names.

elkikz 09-04-2006 01:18 PM

ok i installed the Kernel Source files ( btw they are Version 2.4.27 )

and i created the "build" Folders as root before.

and am still getting the same error when i compile ( even i tried to compile other stuff and other programs and still get the same error )

the error is like this:


[root@localhost 3Com]# make
/lib/modules/2.6.8.1-12mfk/build
/home/kiko/Desktop/3com/3Com
-I/home/kiko/Desktop/3com/3Com/src/include -fomit-frame-pointer -02 -Wall -Wstrict-prototypes -pipe
-DHOST_IF_USB -DAMAC -DGCCL -DOFDM -DUSE_EP4_SET_REG -DDOWNLOADFIRMWARE -DfTX_GAIN_OFDM=0 -DfNEW_COD
make -C /lib/modules/2.6.8.1-12mdk/build SUBDIRS=/home/kiko/Desktop/3com/3Com modules
make[1]: Entering directory '/lib/modules/2.6.8.1-12mdk/build'
make[1]:***No rule to make target 'modules'. Stop.
make[1]: Leaving directory '/lib/modules/2.6.8.1-12mdk/build'
make: *** [all] Error 2

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

Thx for ur help.

Regards,

Elkikz

KenJackson 09-04-2006 02:10 PM

If you are building a module for kernel 2.6.8.1-12mdk (which seems to be the case from what you've posted), you need the source for 2.6.8.1-12mdk. Version 2.4.something won't do.

elkikz 09-04-2006 04:25 PM

ok i guess i c what u saying.

am downloading right now the source kernel of my version

gonna try to install it in the mourning and try to compile again.

i'll keep u informed of what's happenin.

Thx alot

Regards,

Elkikz

elkikz 09-06-2006 09:38 AM

ok am back,

i installed the new source.

tried to compile and still gettin the same error.

i know that am botherin u alot.

but i need to install it urgently.

thanks for ur help and waiting for ur reply.

Regards,

Elkikz


All times are GMT -5. The time now is 08:11 AM.