Results 1 to 10 of 12
hello all,
iam very new to linux ive been using windows for 10years,i managed to install linux redhat ver 7.2,iam starting to learn the basics commans and ive gotten used ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 04-22-2006 #1Just Joined!
- Join Date
- Apr 2006
- Posts
- 11
help with installing internet connection
hello all,
iam very new to linux ive been using windows for 10years,i managed to install linux redhat ver 7.2,iam starting to learn the basics commans and ive gotten used to them,iam trying to install my connection,iam using an ethernet lan card which came with drivers,iam trying to install the drivers as per the cd instructions i tried copying the files to a new directory...i was able to make the directory but when i put the command
# mount -t iso9660 /dev/cdrom /mnt
it does not accept and gives an error read-write error or something and /mnt busy......i then copied the folder directly from gui mode.copy/paste to /temp directory.....i continued with the cd's instructions another command was given which started with
# cp /mnt/sl_linux.tgz /temp
it gave an error that the directory dosent exist.the next step i checked for the files that i coped from gui, cd /temp ,i found the file ....so as per the cd instructions i continued, i unziped using the comand given...
# tar xzvf sl_linux.tgz
after unziping i followed instructions # cd sc92031 it was successfull.next
Compile the driver source files and it will generate sc92031.o, and
copy it to correct driver installation path (The installation directory
is different in different kernel versions. In 2.4.x kernel, the path is
/lib/modules/KERNEL_VERSION/kernel/drivers/net/, and in 2.2.x kernel,
the path is /lib/modules/KERNEL_VERSION/net/)
# make install
at this stage i was unsucessful and freezed..i tried the steps several times without luck.....can anyone pleaseeee help me,iam really desprate...maybe iam missing some software or driveres....as i have no idea...do i need to install special softwares??
- 04-22-2006 #2
What error(s) are you recieving when you do the 'make install' command? Can you copy and paste the output here? By the way, I would recommend maybe using a later version of a distro as it will make many things including wireless easier. Many wonderful things have happened with Linux since RedHat 7.2 came out.
CentOS is a RedHat based distro that is up-to-date and very stable.
- 04-22-2006 #3Just Joined!
- Join Date
- Apr 2006
- Posts
- 11
hi there,thanks very much for your concern...well ill change to diffrent flavours of linux in the future..but idd like to woork with this one so that i could really understand it....actually in this o.s i get so many kinds of errors i can really work with the systems as all examples i try really dont work anjd some commands as well like unmount.....once i mount a device such as cd rom i can unmount or mount anything else...please help....these r the errors i get as recuested....
[root@localhost temp]# cd sc92031
[root@localhost sc92031]# ls
°²×°ÊÖ²á.txt Makefile readme.txt sc92031.c
[root@localhost sc92031]# make file
make: *** No rule to make target `file'. Stop.
[root@localhost sc92031]# make instal
make: *** No rule to make target `instal'. Stop.
[root@localhost sc92031]# make install
*****************************
sc92031.o built for 2.4.7-10
SMP Disabled
*****************************
sc92031.c:18:28: linux/compiler.h: No such file or directory
sc92031.c:27:25: linux/crc32.h: No such file or directory
[root@localhost temp]# ls
r sc92031 sl_linux (copy).tgz
[root@localhost temp]# cd sc92031
[root@localhost sc92031]# ls
°²×°ÊÖ²á.txt Makefile readme.txt sc92031.c
[root@localhost sc92031]# make install
*****************************
sc92031.o built for 2.4.7-10
SMP Disabled
*****************************
sc92031.c:18:28: linux/compiler.h: No such file or directory
sc92031.c:27:25: linux/crc32.h: No such file or directory
sc92031.c:350: parse error before string constant
sc92031.c:350: warning: type defaults to `int' in declaration of `MODULE_LICENSE
'
sc92031.c:350: warning: function declaration isn't a prototype
sc92031.c:350: warning: data definition has no type or storage class
sc92031.c: In function `silan_ethtool_ioctl':
sc92031.c:1830: `ETHTOOL_GLINK' undeclared (first use in this function)
sc92031.c:1830: (Each undeclared identifier is reported only once
sc92031.c:1830: for each function it appears in.)
sc92031.c:1831: variable `edata' has initializer but incomplete type
sc92031.c:1831: warning: excess elements in struct initializer
sc92031.c:1831: warning: (near initialization for `edata')
sc92031.c:1831: storage size of `edata' isn't known
sc92031.c:1831: warning: unused variable `edata'
sc92031.c:1839: `ETHTOOL_NWAY_RST' undeclared (first use in this function)
sc92031.c: At top level:
sc92031.c:1974: warning: implicit declaration of function `__devexit_p'
sc92031.c:1974: initializer element is not constant
sc92031.c:1974: (near initialization for `silan_pci_driver.remove')
sc92031.c:1979: initializer element is not constant
sc92031.c:1979: (near initialization for `silan_pci_driver')
make: *** [sc92031.o] Error 1
[root@localhost sc92031]# mkdir /temp
OR
mtu:1492
[root@localhost dev]# mount /dev/cdrom /mnt
mount: block device /dev/cdrom is write-protected, mounting read-only
[root@localhost dev]# unmount /dev/cdrom /mnt
bash: unmount: command not found
[root@localhost dev]#
i cant even connect to the internet as i got a ppp program i have to install in the windows of tcp/ip in windows...thanks in advance
- 04-22-2006 #4
No time to look at the other stuff right now but quickly it's umount, not unmount...
- 04-22-2006 #5Just Joined!
- Join Date
- Apr 2006
- Posts
- 11
thanks ,for pointing that out,hope u can help me out with the othe problem...tc
- 04-22-2006 #6Just Joined!
- Join Date
- Apr 2006
- Posts
- 11
hi there thanx alot for the correction,obiously it worked ok...hope ull b able to help me with my othr problem tc..thanks again
- 04-24-2006 #7
Can you copy and paste that readme.txt or the Makefile here? Whichever one has the instructions for compiling? Better yet, provide me with a link where I can download this package myself. I will then try and compile it so as to try and figure out what you are running into.
Edit: Have a look at this.Last edited by Dapper Dan; 04-24-2006 at 01:38 AM.
- 04-24-2006 #8Just Joined!
- Join Date
- Apr 2006
- Posts
- 11
well the software iam trying to nstall are drivers for my ethernet card,so there on my cd..no link sry...but the readme file n make file are as below..
make file
# Driver files
SRC = sc92031.c
TARGET = sc92031.o
# Kernel Search Path
KSP := /lib/modules/$(shell uname -r)/build \
/usr/src/linux-$(shell uname -r) \
/usr/src/linux-$(shell uname -r | sed 's/-.*//') \
/usr/src/kernel-headers-$(shell uname -r) \
/usr/src/kernel-source-$(shell uname -r) \
/usr/src/linux-$(shell uname -r | sed 's/\([0-9]*\.[0-9]*\)\..*/\1/') \
/usr/src/linux
# prune the list down to only values that exist
# and have an include/linux sub-directory
test_dir = $(shell [ -e $(dir)/include/linux ] && echo $(dir))
KSP := $(foreach dir, $(KSP), $(test_dir))
# use this first valid entry in the search path
KSRC := $(firstword $(KSP))
# if Linux kernel source is set up?
ifeq (,$(KSRC))
$(error Linux kernel source not found)
endif
SRCDIR := $(KSRC)/drivers/net
VERSION_FILE := $(KSRC)/include/linux/version.h
CONFIG_FILE := $(KSRC)/include/linux/config.h
ifeq (,$(wildcard $(VERSION_FILE)))
$(error Linux kernel source not configured - missing version.h)
endif
ifeq (,$(wildcard $(CONFIG_FILE)))
$(error Linux kernel source not configured - missing config.h)
endif
# pick a compiler
ifneq (,$(findstring egcs-2.91.66, $(shell cat /proc/version)))
CC := kgcc gcc cc
else
CC := gcc cc
endif
test_cc = $(shell which $(cc) > /dev/null 2>&1 && echo $(cc))
CC := $(foreach cc, $(CC), $(test_cc))
CC := $(firstword $(CC))
# standard flags for module builds
CFLAGS += -Wall -DLINUX -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB -D__NO_VERSION__ -O2 -pipe
CFLAGS += -I$(KSRC)/include -I. -Wstrict-prototypes -fomit-frame-pointer
CFLAGS += $(shell [ -f $(KSRC)/include/linux/modversions.h ] && \
echo "-DMODVERSIONS -include $(KSRC)/include/linux/modversions.h")
# get the kernel version
KVER := $(shell $(CC) $(CFLAGS) -E -dM $(VERSION_FILE) | grep UTS_RELEASE | \
awk '{ print $$3 }' | sed 's/\"//g')
ifneq ($(KVER),$(shell uname -r))
$(warning ***)
$(warning *** Warning: kernel source version ($(KVER)))
$(warning *** does not match running kernel ($(shell uname -r)))
$(warning *** Continuing with build,)
$(warning *** resulting driver may not be what you want)
$(warning ***)
endif
# pick an appropriate install path
ifneq (,$(wildcard /lib/modules/$(KVER)/kernel))
INSTDIR := /lib/modules/$(KVER)/kernel/drivers/net
else
INSTDIR := /lib/modules/$(KVER)/net
endif
# look for SMP in config.h
SMP := $(shell $(CC) $(CFLAGS) -E -dM $(CONFIG_FILE) | \
grep CONFIG_SMP | awk '{ print $$3 }')
ifneq ($(SMP),1)
SMP := 0
endif
ifneq ($(SMP),$(shell uname -a | grep SMP > /dev/null 2>&1 && echo 1 || echo 0))
$(warning ***)
ifeq ($(SMP),1)
$(warning *** Warning: kernel source configuration (SMP))
$(warning *** does not match running kernel (UP))
else
$(warning *** Warning: kernel source configuration (UP))
$(warning *** does not match running kernel (SMP))
endif
$(warning *** Continuing with build,)
$(warning *** resulting driver may not be what you want)
$(warning ***)
endif
ifeq ($(SMP), 1)
CFLAGS += -D__SMP__
endif
#enable or disable debug
DEBUG = n
ifeq ($(DEBUG),y)
CFLAGS += -g -DSILAN_DEBUG -DSILAN_NDEBUG
endif
.SILENT: $(TARGET) clean
$(TARGET):
echo
echo "*****************************"
echo " $(TARGET) built for $(KVER)"
echo -n " SMP "
if [ "$(SMP)" = "1" ];\
then echo "Enabled ";\
else echo "Disabled";\
fi
echo "*****************************"
echo
$(CC) $(CFLAGS) -c $(SRC)
install: $(SRC) $(TARGET)
mkdir -p $(MOD_ROOT)$(SRCDIR)
install -m 644 -o root $(SRC) $(MOD_ROOT)$(SRCDIR)
mkdir -p $(MOD_ROOT)$(INSTDIR)
install -m 644 -o root $(TARGET) $(MOD_ROOT)$(INSTDIR)
ifeq (,$(MOD_ROOT))
/sbin/depmod -a || true
else
/sbin/depmod -b $(MOD_ROOT) -a || true
endif
uninstall:
if [ -e $(INSTDIR)/$(TARGET) ]; then \
rm -f $(INSTDIR)/$(TARGET);\
fi
if [ -e $(SRCDIR)/$(SRC) ]; then \
rm -f $(SRCDIR)/$(SRC);\
fi
/sbin/depmod -a
clean:
rm -f $(TARGET) *~
readme file
*************************************************
** Silan SC92031 PCI Fast Ethernet Adapter **
** **
** LINUX driver **
*************************************************
Introduction:
=============
The instructions are for linux driver installation. You must
compile the source code to generate sc92031.o and use insmod command to
insert sc92031.o as module.
Contents of the Subdirectory:
=============================
readme.txt This file.
sc92031.c The linux core driver source code file
Makefile Makefile for generating driver object file
Kernel Supported
================
This driver support linux kernel version 2.4.x/2.5.x now.
Installation
============
1) Create a temporary directory:
# mkdir /temp
2) Change to the temporary directory:
#cd /temp
3) Copy driver (sl_linux.tgz) from CD-ROM to the temporary directory, and follow the commands:
# mount -t iso9660 /dev/cdrom /mnt
# cp /mnt/sl_linux.tgz /temp
4) untar the archive file:
# tar xzvf sl_linux.tgz
# cd sc92031
5) Compile the driver source files and it will generate sc92031.o, and
copy it to correct driver installation path (The installation directory
is different in different kernel versions. In 2.4.x kernel, the path is
/lib/modules/KERNEL_VERSION/kernel/drivers/net/, and in 2.2.x kernel,
the path is /lib/modules/KERNEL_VERSION/net/)
# make install
6) Check configuration file (/etc/modules.conf or /etc/conf.modules,it
depend on your Linux distribution) for loading kernel modules. Make sure
there is the following content in the configuration file, where # is
interface number :
alias eth# sc92031
7) Reboot now:
shutdown -r now
Install your driver module (If the driver module is in the wrong place,
an error message will appear, and say that can't find the driver
module):
insmod sc92031.o
Use ifconfig command to assign the IP address, where # is network
interface number:
ifconfig eth# <IP>
9) Check the interface works:
ping <remote_host_IP>
Uninstallation
==============
Please enter the following commands to uninstall your driver:
# make uninstall
Module Parameter:
=================
The following parameters can be set when we install the driver module. You can add this parameters when
you execute 'insmod' command to install the driver
# insmod sc92031.o work_node =0x00
work_mode
work_mode is used for setting the speed and duplex mode of NIC.Value is as followed:
AUTOSELECT 0x00
M10-HALF 0x01
M10-FULL 0x02
M100-HALF 0x04
M100-FULL 0x08
If you want to use other modes,it can be changed by the following steps:
# ifdown eth0
# rmmod sc92031
# insmod sc92031.o work_mode= ****
please try and help me asap.....as i have toswitch to xp everytym i wanna use the net...thanks in advance...
- 04-24-2006 #9Just Joined!
- Join Date
- Apr 2006
- Posts
- 11
well the software iam trying to nstall are drivers for my ethernet card,so there on my cd..no link sry...but the readme file n make file are as below..
make file
# Driver files
SRC = sc92031.c
TARGET = sc92031.o
# Kernel Search Path
KSP := /lib/modules/$(shell uname -r)/build \
/usr/src/linux-$(shell uname -r) \
/usr/src/linux-$(shell uname -r | sed 's/-.*//') \
/usr/src/kernel-headers-$(shell uname -r) \
/usr/src/kernel-source-$(shell uname -r) \
/usr/src/linux-$(shell uname -r | sed 's/\([0-9]*\.[0-9]*\)\..*/\1/') \
/usr/src/linux
# prune the list down to only values that exist
# and have an include/linux sub-directory
test_dir = $(shell [ -e $(dir)/include/linux ] && echo $(dir))
KSP := $(foreach dir, $(KSP), $(test_dir))
# use this first valid entry in the search path
KSRC := $(firstword $(KSP))
# if Linux kernel source is set up?
ifeq (,$(KSRC))
$(error Linux kernel source not found)
endif
SRCDIR := $(KSRC)/drivers/net
VERSION_FILE := $(KSRC)/include/linux/version.h
CONFIG_FILE := $(KSRC)/include/linux/config.h
ifeq (,$(wildcard $(VERSION_FILE)))
$(error Linux kernel source not configured - missing version.h)
endif
ifeq (,$(wildcard $(CONFIG_FILE)))
$(error Linux kernel source not configured - missing config.h)
endif
# pick a compiler
ifneq (,$(findstring egcs-2.91.66, $(shell cat /proc/version)))
CC := kgcc gcc cc
else
CC := gcc cc
endif
test_cc = $(shell which $(cc) > /dev/null 2>&1 && echo $(cc))
CC := $(foreach cc, $(CC), $(test_cc))
CC := $(firstword $(CC))
# standard flags for module builds
CFLAGS += -Wall -DLINUX -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB -D__NO_VERSION__ -O2 -pipe
CFLAGS += -I$(KSRC)/include -I. -Wstrict-prototypes -fomit-frame-pointer
CFLAGS += $(shell [ -f $(KSRC)/include/linux/modversions.h ] && \
echo "-DMODVERSIONS -include $(KSRC)/include/linux/modversions.h")
# get the kernel version
KVER := $(shell $(CC) $(CFLAGS) -E -dM $(VERSION_FILE) | grep UTS_RELEASE | \
awk '{ print $$3 }' | sed 's/\"//g')
ifneq ($(KVER),$(shell uname -r))
$(warning ***)
$(warning *** Warning: kernel source version ($(KVER)))
$(warning *** does not match running kernel ($(shell uname -r)))
$(warning *** Continuing with build,)
$(warning *** resulting driver may not be what you want)
$(warning ***)
endif
# pick an appropriate install path
ifneq (,$(wildcard /lib/modules/$(KVER)/kernel))
INSTDIR := /lib/modules/$(KVER)/kernel/drivers/net
else
INSTDIR := /lib/modules/$(KVER)/net
endif
# look for SMP in config.h
SMP := $(shell $(CC) $(CFLAGS) -E -dM $(CONFIG_FILE) | \
grep CONFIG_SMP | awk '{ print $$3 }')
ifneq ($(SMP),1)
SMP := 0
endif
ifneq ($(SMP),$(shell uname -a | grep SMP > /dev/null 2>&1 && echo 1 || echo 0))
$(warning ***)
ifeq ($(SMP),1)
$(warning *** Warning: kernel source configuration (SMP))
$(warning *** does not match running kernel (UP))
else
$(warning *** Warning: kernel source configuration (UP))
$(warning *** does not match running kernel (SMP))
endif
$(warning *** Continuing with build,)
$(warning *** resulting driver may not be what you want)
$(warning ***)
endif
ifeq ($(SMP), 1)
CFLAGS += -D__SMP__
endif
#enable or disable debug
DEBUG = n
ifeq ($(DEBUG),y)
CFLAGS += -g -DSILAN_DEBUG -DSILAN_NDEBUG
endif
.SILENT: $(TARGET) clean
$(TARGET):
echo
echo "*****************************"
echo " $(TARGET) built for $(KVER)"
echo -n " SMP "
if [ "$(SMP)" = "1" ];\
then echo "Enabled ";\
else echo "Disabled";\
fi
echo "*****************************"
echo
$(CC) $(CFLAGS) -c $(SRC)
install: $(SRC) $(TARGET)
mkdir -p $(MOD_ROOT)$(SRCDIR)
install -m 644 -o root $(SRC) $(MOD_ROOT)$(SRCDIR)
mkdir -p $(MOD_ROOT)$(INSTDIR)
install -m 644 -o root $(TARGET) $(MOD_ROOT)$(INSTDIR)
ifeq (,$(MOD_ROOT))
/sbin/depmod -a || true
else
/sbin/depmod -b $(MOD_ROOT) -a || true
endif
uninstall:
if [ -e $(INSTDIR)/$(TARGET) ]; then \
rm -f $(INSTDIR)/$(TARGET);\
fi
if [ -e $(SRCDIR)/$(SRC) ]; then \
rm -f $(SRCDIR)/$(SRC);\
fi
/sbin/depmod -a
clean:
rm -f $(TARGET) *~
readme file
*************************************************
** Silan SC92031 PCI Fast Ethernet Adapter **
** **
** LINUX driver **
*************************************************
Introduction:
=============
The instructions are for linux driver installation. You must
compile the source code to generate sc92031.o and use insmod command to
insert sc92031.o as module.
Contents of the Subdirectory:
=============================
readme.txt This file.
sc92031.c The linux core driver source code file
Makefile Makefile for generating driver object file
Kernel Supported
================
This driver support linux kernel version 2.4.x/2.5.x now.
Installation
============
1) Create a temporary directory:
# mkdir /temp
2) Change to the temporary directory:
#cd /temp
3) Copy driver (sl_linux.tgz) from CD-ROM to the temporary directory, and follow the commands:
# mount -t iso9660 /dev/cdrom /mnt
# cp /mnt/sl_linux.tgz /temp
4) untar the archive file:
# tar xzvf sl_linux.tgz
# cd sc92031
5) Compile the driver source files and it will generate sc92031.o, and
copy it to correct driver installation path (The installation directory
is different in different kernel versions. In 2.4.x kernel, the path is
/lib/modules/KERNEL_VERSION/kernel/drivers/net/, and in 2.2.x kernel,
the path is /lib/modules/KERNEL_VERSION/net/)
# make install
6) Check configuration file (/etc/modules.conf or /etc/conf.modules,it
depend on your Linux distribution) for loading kernel modules. Make sure
there is the following content in the configuration file, where # is
interface number :
alias eth# sc92031
7) Reboot now:
shutdown -r now
Install your driver module (If the driver module is in the wrong place,
an error message will appear, and say that can't find the driver
module):
insmod sc92031.o
Use ifconfig command to assign the IP address, where # is network
interface number:
ifconfig eth# <IP>
9) Check the interface works:
ping <remote_host_IP>
Uninstallation
==============
Please enter the following commands to uninstall your driver:
# make uninstall
Module Parameter:
=================
The following parameters can be set when we install the driver module. You can add this parameters when
you execute 'insmod' command to install the driver
# insmod sc92031.o work_node =0x00
work_mode
work_mode is used for setting the speed and duplex mode of NIC.Value is as followed:
AUTOSELECT 0x00
M10-HALF 0x01
M10-FULL 0x02
M100-HALF 0x04
M100-FULL 0x08
If you want to use other modes,it can be changed by the following steps:
# ifdown eth0
# rmmod sc92031
# insmod sc92031.o work_mode= ****
please try and help me asap.....as i have toswitch to xp everytym i wanna use the net...thanks in advance...
- 04-24-2006 #10
Once inside the driver directory, do:
rather thanCode:make
Code:make file


Reply With Quote
