LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-01-2006, 05:32 AM   #1
elkikz
LQ Newbie
 
Registered: Sep 2006
Location: Lebanon
Distribution: Centos 4.4 on notebook - Mandrake 10.1 on Desktop
Posts: 9

Rep: Reputation: 0
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
 
Old 09-01-2006, 12:29 PM   #2
KenJackson
Member
 
Registered: Jul 2006
Location: Maryland, USA
Distribution: Fedora, PCLinuxOS
Posts: 648

Rep: Reputation: 84
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.
 
Old 09-01-2006, 05:23 PM   #3
elkikz
LQ Newbie
 
Registered: Sep 2006
Location: Lebanon
Distribution: Centos 4.4 on notebook - Mandrake 10.1 on Desktop
Posts: 9

Original Poster
Rep: Reputation: 0
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
 
Old 09-01-2006, 05:23 PM   #4
elkikz
LQ Newbie
 
Registered: Sep 2006
Location: Lebanon
Distribution: Centos 4.4 on notebook - Mandrake 10.1 on Desktop
Posts: 9

Original Poster
Rep: Reputation: 0
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
 
Old 09-01-2006, 07:12 PM   #5
KenJackson
Member
 
Registered: Jul 2006
Location: Maryland, USA
Distribution: Fedora, PCLinuxOS
Posts: 648

Rep: Reputation: 84
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
 
Old 09-04-2006, 05:00 AM   #6
elkikz
LQ Newbie
 
Registered: Sep 2006
Location: Lebanon
Distribution: Centos 4.4 on notebook - Mandrake 10.1 on Desktop
Posts: 9

Original Poster
Rep: Reputation: 0
Unhappy 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
 
Old 09-04-2006, 10:44 AM   #7
KenJackson
Member
 
Registered: Jul 2006
Location: Maryland, USA
Distribution: Fedora, PCLinuxOS
Posts: 648

Rep: Reputation: 84
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.
 
Old 09-04-2006, 01:18 PM   #8
elkikz
LQ Newbie
 
Registered: Sep 2006
Location: Lebanon
Distribution: Centos 4.4 on notebook - Mandrake 10.1 on Desktop
Posts: 9

Original Poster
Rep: Reputation: 0
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
 
Old 09-04-2006, 02:10 PM   #9
KenJackson
Member
 
Registered: Jul 2006
Location: Maryland, USA
Distribution: Fedora, PCLinuxOS
Posts: 648

Rep: Reputation: 84
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.
 
Old 09-04-2006, 04:25 PM   #10
elkikz
LQ Newbie
 
Registered: Sep 2006
Location: Lebanon
Distribution: Centos 4.4 on notebook - Mandrake 10.1 on Desktop
Posts: 9

Original Poster
Rep: Reputation: 0
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
 
Old 09-06-2006, 09:38 AM   #11
elkikz
LQ Newbie
 
Registered: Sep 2006
Location: Lebanon
Distribution: Centos 4.4 on notebook - Mandrake 10.1 on Desktop
Posts: 9

Original Poster
Rep: Reputation: 0
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
3com 3c920b ethernet driver install laoje Linux - Laptop and Netbook 2 08-29-2004 08:33 AM
3com wireless driver mysticpain Linux - Hardware 0 05-27-2004 09:48 AM
Need driver for 3com 3CS0HO100B-TX John Gary Linux - Networking 4 05-02-2004 12:24 PM
Rocks Cluster Install 3com driver problem madfitz Red Hat 2 02-14-2004 12:31 PM
3Com Gigabit LAN on IS7 Driver for Mandrake 9.1 brettjrob Linux - Hardware 3 11-06-2003 10:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration