LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-24-2002, 05:55 AM   #1
r4merlin
LQ Newbie
 
Registered: Nov 2002
Distribution: Redhat 9
Posts: 24

Rep: Reputation: 15
Ethernet Card Redhat Linux 7.3


How can I get Linux to pick up my ethernet card, it is from a company called Safeway

.Safeway Website

I was reading through some stuff and it is in the /proc/pci

Myson Technology Inc

If you need some further information just let me know

Last edited by r4merlin; 11-24-2002 at 06:02 AM.
 
Old 11-24-2002, 06:21 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
what is the chipset that the card is based on? that is all thatis liekly to matter, manufacturers name raerly carry any weight in linux. check the card to see what the chip set... "lspci" should also tell you the chpiset. particulary i'd expect rtl-8139 or a similar name to be listed. with a silly picture of a crab on the chip in question.
 
Old 11-24-2002, 06:34 AM   #3
r4merlin
LQ Newbie
 
Registered: Nov 2002
Distribution: Redhat 9
Posts: 24

Original Poster
Rep: Reputation: 15
I tried that it comes up with the following

Ethernet Controller: MYSON Technology Inc: Unknown Device 0803

I have looked at the card itself and there is no obvious markings as to the chipset although am led to believe it is based on a Realtek card but not sure which one.
 
Old 11-25-2002, 04:56 PM   #4
raypen
Member
 
Registered: Jun 2002
Location: Midwest
Distribution: Slackware
Posts: 365

Rep: Reputation: 30
Given the feedback (Myson Technology Inc), it would appear
that you have one of those odd Taiwanese/Chinese cards. I have
the same problem with my Asound cards.

While /proc/pci will probably be able to show you a card exists,
no functionality will be forthcoming unless a driver is loaded.
You will probably have to recompile your kernel (2.4.x) selecting
Myson under the networking drivers section of the configure
menu and compile in the kernel or as a module. If you compile as
a module include the following in /etc/rc.d/rc.modules (or
whatever your modules file is):

/sbin/modprobe/ fealnx

Don't forget to set it up as "eth0", "eth1" or whatever.

You should then be able to see it recognized as you boot or
with 'dmesg'.

If you're already aware of all this and the problem is something
else, forgive the rehash.
 
Old 11-26-2002, 10:43 AM   #5
r4merlin
LQ Newbie
 
Registered: Nov 2002
Distribution: Redhat 9
Posts: 24

Original Poster
Rep: Reputation: 15
I did have a driver on disc although if I try to install it says it is too old for the Kernel I am using.

When I try to recompile using the following instructions

This is after following the instructions on readme.


Installation:

1. copy the source code fealnx.c to Linux,

2. compile the source code, the instruction for compiling the driver is
as follows:

#gcc -DMODULE -D__KERNEL__ -I/usr/src/linux/net/inet -Wall
-Wstrict-prototypes -O6 -c fealnx.c

3. insert the driver as module,

#insmod fealnx.o

4. bind your card to an IP address

#ifconfig eth0 ${IPADDR} broadcast ${BROADCAST} netmask ${NETMASK}

5. add your card to IP routing table,

#route add -net ${NETWORK} netmask ${NETMADK} eth0

6. now, you should be able to ping local network.


I get lots of errors "Deferencing pointer to incomplete type"

And it is not creating fealnx.o file.

Any suggestions from there.
 
Old 11-26-2002, 01:31 PM   #6
raypen
Member
 
Registered: Jun 2002
Location: Midwest
Distribution: Slackware
Posts: 365

Rep: Reputation: 30
I also went through that type of hassle. What you are doing
is trying to compile the driver separately with the driver
source code. I cannot say for sure, but by doing this you are
bypassing needed support in the kernel.

You must recompile the kernel (must be 2.4.x ) with
Myson support and select either in kernel or module. If you
select module, and follow the rest of the build steps:

make bzImage
make modules
make modules_install

you will find fealnx.o in /lib/modules/2.4.x/kernel/drivers/net.
At least you find it there on a Slackware distribution.

Again add the following to /etc/rc.d/rc.modules:

/sbin/modprobe/ fealnx

and you should be ready to go.

If you are unfamiliar with recompiling a kernel here is some good
info:

Compile steps:

cd /lib/modules rm -r 2.4.5 if it exists. Best to compile modules with a clean slate so delete the /lib/modules/ directories for whatever version you are going to compile. or: mv 2.4.5 default (or whatever name you wish to associate with the installed kernel) to maintain a good copy to be used in case of compile problems

cd/usr/src/linux Do not try to use the symlink /usr/src/linux; works better if the actual source directory is used.

make menuconfig Select what you want to compile in the kernel and whether you want a module instead of direct kernel compile

make mrproper For a first time compile this cleans up some of the source files and purges whatever .config file you might have had in the directory from the install. Basically cleans the slate, but you might want to keep a copy of the installed .config before doing this

make dep This creates all the dependencies for the current configuration; i.e. which header and other source files are to be used to compile the kernel and various modules. (> dump quiets the output of all make steps and shows only errors and warnings - good for diagnostic purposes use in all steps)

make clean Cleans up any binary or intermediate files that may be left from the last compile

make bzImage > dump Compiles the kernel which will be located in: /usr/src/linux-/arch/i386/boot/bzImage

make modules > dump Compiles all modules

make modules_install > dump Creates the new /lib/modules/ directories and installs drivers and all other modules. (These modules will normally be compiled as driver.o/module.o whereas the installed modules will generally be of the module.o.gz variety)

copy the new kernel to /boot - cp /usr/src/linux/arch/i386/boot/bzImage /boot/vmlinuz-new (or whatever name you want)

Run LILO Update LILO for the new kernel (and System.map).

Note: You must have gcc and all of its associated libraries in order
to perform a kernel recompile. Also, the Myson support is only
available in the 2.4.x kernel versions. I use 2.4.5 which works
just fine.

Hope this is clear.

Last edited by raypen; 11-26-2002 at 01:35 PM.
 
Old 11-26-2002, 02:07 PM   #7
KevinJ
Member
 
Registered: Feb 2001
Location: Colorado Springs, CO
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
Posts: 857

Rep: Reputation: 30
Before going that far... what does an "lsmod" show?
What does the file /etc/modules.conf look like?

What commonly happens is that as drivers mature, they get added into the kernel source so extra drivers are not often needed.

-K.
 
Old 11-26-2002, 03:43 PM   #8
tico
LQ Newbie
 
Registered: Nov 2002
Location: Slovenia
Distribution: Red Hat
Posts: 8

Rep: Reputation: 0
I have the same card with the same problem. I am using RH8.0 kernel version 2.4.18-14.

raypen

I tryed your instructions and when I get to "make modules"
it returns some errors. If any help I will write them here. Will it work if I run make dep, make bzImage and then add bzimage to grub.conf?

A question how to configure grub.conf to boot new kernel
this is may grub.conf

title Redhat 2.4.18-14
root (hd0,1)
kernel /vmlinuz-2.4.18-17.8.0 ro root=LABEL=/
initrd /initrd-2.4.18-17.8.0.img

how to add bzImage so that old kernel stay intact?

thanks!
 
Old 11-26-2002, 10:35 PM   #9
raypen
Member
 
Registered: Jun 2002
Location: Midwest
Distribution: Slackware
Posts: 365

Rep: Reputation: 30
I didn't mean to imply that you should skip any steps in a kernal
compile; all are necessary including 'make dep'. However, 'make mrproper' is usually only performed once when a kernel compile
is performed for the first time. If you skipped 'make dep', this
could be the source of your problem.

I do not use grub, but I'm sure it's similar to LILO. You have to
edit the grub.conf file to add the new kernal name (whatever
you call it). Before you make changes, take a good look at this
file and read the grub instructions. You'll see that you can compile
several different kernels, give them different names and the grub
startup menu should allow you to make a selection of any of
them each time you boot.

When you then run /sbin/grub (or whatever the command is),
grub takes the information in the grub.conf file to create a new
boot record reflecting the changes (same thing /sbin/lilo does).

I don't use Redhat, so the grub.conf file looks a little strange to
me, but it would appear that it identifies the same basic elements
that a LILO.conf file does, i.e:

image = /boot/newlinux
root = /dev/hda3
label = NewLinux
read-only

If I had saved the original kernel and wanted to be able to
select either one from a boot menu, lilo.conf might look like:

image = /vmlinuz
root = /dev/hda3
label = Linux
read-only

image = /boot/newlinux
root = /dev/hda3
label = NewLinux
read-only

Hope this helps.
 
Old 11-27-2002, 03:05 PM   #10
tico
LQ Newbie
 
Registered: Nov 2002
Location: Slovenia
Distribution: Red Hat
Posts: 8

Rep: Reputation: 0
me again.

followed your instructions raypen but the thing is not working. When I do "make modules" it returns a pile of warnings and finally an error. Then runinng "make modules_install" also returns errors and then stops. If any help I will upload returns of commands: lsmod, dmesg, make dep, make modules, make modules_install.
 
Old 11-27-2002, 10:30 PM   #11
raypen
Member
 
Registered: Jun 2002
Location: Midwest
Distribution: Slackware
Posts: 365

Rep: Reputation: 30
Before posting the entire output try compiling with
'> dump' to elminate extraneous output isolating
only warnings and errors. Like this:

make memuconfig
make dep > dump
make clean > dump
make bzImage > dump
make modules > dump
make modules_install > dump

Warnings are just that, warnings, and are not necessarily
cause for concern. Errors that actually halt the compile
are obviously serious and should be the focus of your
trouble shooting efforts.

Often compile errors are the result of missing libraries
because you have not installed all of the packages
required for a full development system. First look at
the error messages with this in mind; you might be able
to correct the situation by installing an extra
development package or two.

Failing that, go ahead and post the warnings and errors.
 
  


Reply



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
Suse 9.0 doesn't detect Ethernet card on nVidia shipset 2, on-board card Realtek 8201 devilpim Linux - Newbie 3 05-27-2006 12:08 AM
Ethernet card on laptop: I installed my D-Link ethernet card into Redhat 9, not detec brighamr Linux - Hardware 0 05-18-2004 12:33 AM
how to set up SMC EZ Card 10/100 ethernet PCI network card mymojo Linux - Networking 2 12-16-2003 02:35 AM
Insert scsi pcmcia card kills existing ethernet card lgetsche Linux - Hardware 0 11-12-2002 04:16 PM
Can't network pcmcia card with Intel eepro100 ethernet card. RKris Linux - Networking 1 06-18-2002 12:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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

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
Open Source Consulting | Domain Registration