[realtek] Compile problems

Reinke Bonte reinke@hknet.com
Fri, 11 May 2001 15:03:40 +0800


Thank you for your info! So, you have managed to compile it on a new Red Hat
system? I also have problems, but I haven't yet tried hard enough, I will
check whether all paths are correct and will try again for my 2.2 kernel.

Has anyone managed to compile the rtl8139 driver on a 2.4 kernel? I'm not
able to do it on Mandrake 8.0 with kernel 2.4.3. Is this my mistake?


Reinke



----- Original Message -----
From: "Oliver Bienert" <obienert@gmx.de>
To: <realtek@scyld.com>
Sent: Thursday, May 10, 2001 9:34 PM
Subject: Re: [realtek] Compile problems


> I compiled rtl8139.c by hand using and adapting (I just changed the path
to
> pcmcia so it fits my system) the commandline at the end of rtl8139.c and
> copied pci-scan.o and realtek_cb.o to /lib/modules/2.2.18/pcmcia.
> In etc/pcmcia/realtek.conf I updated:
>
> device "realtek_cb"
>     class "network"  module "cb_enabler", "pci-scan", "cb_shim",
> "realtek_cb"
>
> card "Realtek Rtl8139"
>     manfid 0x0000, 0x024c
>     bind "realtek_cb"
>
> Now it seems to work...
> Donald, thank you for your hint concerning the sources,
>
> Oliver
>
> ----- Original Message -----
> From: "Oliver Bienert" <obienert@gmx.de>
> To: <realtek@scyld.com>
> Sent: Thursday, May 10, 2001 1:49 PM
> Subject: Re: [realtek] Compile problems
>
>
> > I had the sources for 2.4 kernel installed...
> > Now everything works fine, however it doesn't seem to produce any *_cb.o
> > files and no cb_shim.o. The sources of the pcmcia packages reside in
> > /usr/src/kernel-modules/pcmcia so I changed the path in the Makefile to:
> > PCMCIA=/usr/src/kernel-modules/pcmcia/include
> > But still I can't get any *_cb.o and cb_shim file.
> >
> > By the way, I looked into /lib/modules/pcmcia after installing pcmcia
> > (3.1.22) and there is already a realtek_cb.o and a cb_shim.o as well as
a
> > pci-scan and cb_enabler.o file. But when I start my box it says:
> > /lib/modules/2.2.18/pcmcia/realtek_cb.o: init_module: Device or resource
> > busy
> >
> > Strange enough, yesterday, when I first tried to get the card working it
> > said:
> > socket 1: unsupported card Realtek .....
> > PCI id: 0x000, 0x024c
> > Now, after updating pcmcia, it says:
> > PCI id: 0x10ec, 0x8138
> > But only I when change the config line to:
> > card "RealTek Rtl8139"    manfid 0x0000, 0x024c  bind "realtek_cb"
> > it tries to load the module.
> >
> > Oliver
> >
> > ----- Original Message -----
> > From: "Donald Becker" <becker@scyld.com>
> > To: "Oliver Bienert" <obienert@gmx.de>
> > Cc: <realtek@scyld.com>
> > Sent: Wednesday, May 09, 2001 11:47 PM
> > Subject: Re: [realtek] Compile problems
> >
> >
> > > On Wed, 9 May 2001, Oliver Bienert wrote:
> > >
> > > > bash-2.04# make
> > > >
> >
>
gcc -DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes -O6 -I/usr/src/linux/inc
> > > > lude -pipe -fno-strength-reduce -DMODVERSIONS   -c -o pci-scan.o
> > pci-scan.c
> > > > pci-scan.c: In function `pci_drv_register':
> > > > pci-scan.c:158: structure has no member named `base_address'
> > > > pci-scan.c:132: warning: `pciaddr' might be used uninitialized in
this
> > > > function
> > > > make: *** [pci-scan.o] Error 1
> > > >
> > > > I remember something seen in the depths of the list's archives but
> > didn't
> > > > found it anymore. I am using Suse Linux 7.1 with a 2.2.18 Kernel.
> > > > Can someone help me out?
> > >
> > > Is the kernel source at /usr/src/linux/ correct for your system?
> > > There are Makefile options if you have the correct kernel source in
> > > e.g. /usr/src/linux-2.2.18/
> > >
> > > Donald Becker becker@scyld.com
> > > Scyld Computing Corporation http://www.scyld.com
> > > 410 Severn Ave. Suite 210 Second Generation Beowulf Clusters
> > > Annapolis MD 21403 410-990-9993
> > >
> >
> >
> > _______________________________________________
> > realtek mailing list
> > realtek@scyld.com
> > http://www.scyld.com/mailman/listinfo/realtek
> >
>
>
> _______________________________________________
> realtek mailing list
> realtek@scyld.com
> http://www.scyld.com/mailman/listinfo/realtek
>