🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.linux.networking
Article #889

Re: ne.o & 3c509.o compiled ???

#889
From: Enbugger
Date: Sat, 20 Mar 1999 00:00
194 lines
6529 bytes

"��d�W" wrote:
> 
> Thank you for giving me the reference Homepage:
> http://www.redhat.com/support/docs/rhl/kernel-2.2/kernel2.2-upgrade-5.html#s
> s5.2
> 
> Actually, I tried to follow a book's instruction to build the kernel.
> After having a look on the Homepage,I find that I miss 3 procedures:
>     make mrproper
> 
>     cp /usr/src/linux-2.2.3/System.map /boot/System.map-2.2.3

>     # put the kernel in the /boot partition/directory.
>     cd /boot
>     rm System.map
>     ln -s System.map-2.2.3 System.map
> 
>     mkinitrd /boot/initrd-2.2.1.img 2.2.1
> 
> Also, I cannot find 1). System.map-2.2.3
>                     2). initrd-2.2.3 by using the command:
>     find / -name System.map-2.2.3 -print
> 
> How can I do this 3 procedures now ?
> Will it be too late for me the above procedure now ?
> 

If you do this
    cp /usr/src/linux-2.2.3/System.map /boot/System.map-2.2.3
you will have /boot/System.map-2.2.3, so you can
    cd /boot
    rm System.map
    ln -s System.map-2.2.3 System.map

The command line
    mkinitrd /boot/initrd-2.2.1.img 2.2.1
should be
    mkinitrd /boot/initrd-2.2.3.img 2.2.3
for version 2.2.3
(The example in the RedHat kernel update document is for ver 2.2.1.)

> I have chosen [Y] for 1). NE2000 NIC support
>                       2). 3Com NIC support in the make xconfig procedure !
> P.S.
> I use NE2000(ISA) and 3Com 3c905(PCI) as eth0 and eth1, respectively.
> 
> Do I need to use the file /etc/conf.modules now ?
>

If you compile the ethernet drivers into the kernel by selecting
[Y] instead of [M], you need not load them as modules in conf.modules.

>
> How can I know if there are really be compiled in the kernel image ?
> When I enter dmesg | grep eth
> it report:
>     eth0: 3Com 3c905 Boomerang 100baseTx at 0x6000, 00:60:97:a1:f7:9d, IRQ
> 11
> P.S.
> 3Com(PCI) can be detected and change from eth1 to eth0.
>

It seems that your new kernel can only detect the 3Com card but cannot
find the NE2000 card.  

To solve the problem, you may check if there is IRQ / IO conflict in your
system with the NE2000 card.

If not, try to specify the IRQ / IO_ADDR of the NE2000 
by adding

  append="linux eth0=0x300,5"

in the section of the new kernel in /etc/lilo.conf
where 0x300,5 is the IO address and IRQ of your NE2000 resp.
Of course, make sure you have selected [Y] for NE2000 and
then do 
  lilo -v 
again and re-boot. 
 
> >Can you actually use the ethernet by running the
> >new kernel?
> 
> No, I don't think so.
> I can notice eth0 when I enter ifconfig -a.
> But actually, I use NE2000 NIC for my ethernet LAN.
> So, the LAN is completely dead now :.<
> 
> Please keep Helping !!!
> Thank you !
>

Ref.
[ ftp://ftp.cs.cuhk.edu.hk/pub/Linux/docs/HOWTO/mini/Modules ]
 

Hope these all help.
Good luck! ^_^

> Enbugger ���g��峹 <7ctuhj$kss$1@imsp009a.netvigator.com>...
> >Have you re-built the initrd image by using
> >mkinitrd ?
> >
> >If you have set
> >[Y] in both 3com NIC support and NE2000
> >[Y] Enable IPv4 packet forwarding
> >when building the kernel, they are already
> >compiled into the kernel image.
> >
> >You can check the eth drivers by
> >dmesg |grep eth
> >
> >Can you actually use the ethernet by running the
> >new kernel?
> >
> >
> >
> >HTH
> >
> >"��d�W" wrote:
> >>
> >> I have done this la !
> >>
> >> Enbugger ���g��峹 <7ctncl$l52$1@imsp009a.netvigator.com>...
> >> >I am not sure if you are using RedHat.
> >> >If you are, please refer to this document for
> >> >version 2.2 kernel upgrade:
> >> >
> >> >http://www.redhat.com/support/docs/rhl/kernel-2.2/kernel2.2-upgrade.html
> >> >
> >> >Hints:
> >> >Have you done:
> >> >  make modules
> >> >and
> >> >  make modules_install
> >> >?
> >> >
> >> >"��d�W" wrote:
> >> >>
> >> >> Before, I haven't build the kernel.
> >> >> I need to prepare the file /etc/conf.modules:
> >> >>
> >> >> alias eth0 ne
> >> >> options ne io=0x300
> >> >> alias eth1 3c59x
> >> >>
> >> >> And today, I try to build the kernel.
> >> >> I have chosen the [Y] in both 3com NIC support and NE2000 support.
> >> >> So, I won't got this two modules(ne.o and 3c59x.o) any more during
> >> building.
> >> >> Then, the problem happened !!!
> >> >> On starting:
> >> >> ...
> >> >> Enable IPv4 packet forwarding.
> >> >> modprobe: can't locate module net-pf-5
> >> >> ...
> >> >> eth1: unknown interface.     (NE2000 NIC change from eth0 to eth1)
> >> >> modprobe: can't locate module net-pf-5
> >> >>
> >> >> What's more, I try to copy back the files:
> >> >>     ne.o       to /lib/modules/2.2.3/net/ne.o
> >> >>     3c59x.o to /lib/modules/2.2.3/net/3c59x.o
> >> >>
> >> >> Then the system report:
> >> >> ...
> >> >> modprobe: can't locate module net-pf-5
> >> >> insmod: /lib/modules/2.2.3/net/3c59x.o: kernel module version mismatch
> >> >>              /lib/modules/2.2.3/net/3c59x.o was compiled for kernel
> >> version
> >> >> 2.0.36 while this kernel is version 2.2.3.
> >> >> eht1: unknown interface.
> >> >> modprobe: can't locate module net-pf-5
> >> >> ...
> >> >>
> >> >> What should I do now, is that supports been compiled to kernel yet ???
> >> >> I have chosen [Y] for these 2 NIC support already !!!
> >> >> Would you please offer your Kindly Help ?
> >> >
> >> >--
> >> >Enbugger
> >> >
> >> >p.s. Remove /NO-SPAM/ for e-mail.
> >
> >--
> >Enbugger
> >
> >p.s. Remove /NO-SPAM/ for e-mail.

-- 
Enbugger

p.s. Remove /NO-SPAM/ for e-mail.
Technical Details
Message-ID: <7cuasi$78c$1@imsp009a.netvigator.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <7ct558$1ho$1@imsp009a.netvigator.com> <7ctncl$l52$1@imsp009a.netvigator.com> <7cttko$71m$1@imsp009a.netvigator.com> <7ctuhj$kss$1@imsp009a.netvigator.com> <7cu8km$66f$1@imsp009a.netvigator.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,BIG5
X-Google-Thread: f798d,891747a90ae2df91
X-Google-Attributes: gidf798d,public
X-Google-Thread: f4db5,891747a90ae2df91
X-Google-Attributes: gidf4db5,public
X-Google-Thread: 10669a,891747a90ae2df91
X-Google-Attributes: gid10669a,public
From: Enbugger <enbugger@usa./NO-SPAM/net>
Subject: Re: ne.o & 3c509.o compiled ???
Date: 1999/03/20
Message-ID: <7cuasi$78c$1@imsp009a.netvigator.com>
X-Deja-AN: 456634386
Content-Transfer-Encoding: 8bit
References: <7ct558$1ho$1@imsp009a.netvigator.com> <7ctncl$l52$1@imsp009a.netvigator.com> <7cttko$71m$1@imsp009a.netvigator.com> <7ctuhj$kss$1@imsp009a.netvigator.com> <7cu8km$66f$1@imsp009a.netvigator.com>
To: "��d�W" <ptto7@se.cuhk.edu.hk>
X-Accept-Language: zh-TW,en,zh-CN,ja
Content-Type: text/plain; charset=big5
Organization: -
Mime-Version: 1.0
Newsgroups: comp.os.linux.networking,hk.comp.os.linux,hk.comp.pc