Re: Compiling RTL82139 module?


Subject: Re: Compiling RTL82139 module?
From: Aake Svensson (aakesve@algonet.se)
Date: Fri Jul 13 2001 - 15:29:05 MDT


Thanks!

Although i need more help - I can't find the source kernel for
2.2.19-1k on any of the YDL three CD's. The source for kernel 2.4.4
is there though, but
i suppose using one source for compiling and then run under another
kernel invites problems? I found though 2.2.19 header rpm that I
installed but it didn't do any good, still missing *.h files!

Could I install the kernel source from kernel.org, where they have
them all? Are those kernels compatible with mac? And how do i install
them when there not rpm's?

best regards,

Åke Svensson

>First of all, make sure that you installed the kernel-source RPMS.
>Secondly, make sure that /usr/include/linux/version.h exists. If not,
>do the following:
>
>% cd /usr/src/linux ; make include/linux/version.h
>
>Then
>
>%cd /usr/src/modules
>
>You may have to mkdir the modules directory. Once you are inside that
>directory, copy the rtl8139.c file to /usr/src/modules. Then
>
>% gcc -DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes -O6 \
>-c rtl8139.c '[ -f /usr/include/linux/modversions.h ] && echo \
>-DMODVERSIONS'
>
>% install -m 644 rtl8139.o /lib/modules/'uname -r'/net/
>
>Then edit /etc/conf.modules and add
>
>alias eth0 rtl8139
>
>Then reboot the machine. To activate the NIC card:
>
>% ifconfig eth0 up
>
>Then use netconfig to set up the DNS, IP, etc. (You can also use
>DHCP).
>
>--- Sean
>
>On Fri, 13 Jul 2001, Aake Svensson wrote:
>
>> I have a problem compiling a new ethernet card driver, rtl8139.c.
>> With YDL version 1.0.9 was installed but i got version 1.13 of
>> rtl8139.c from the internet (same author - D. Becker). But trying to
>> compile it with the command:
>>
>> gcc -DMODULE -Wall -Wstrict-prototypes -O6 -c rtl8139.c
>>
>> i get the following missing files:
>> linux/config.h
>> version.h
>> string.h
>> asm/processor.h
>> bitops.h
>> io.h
>> and 11 more!
>>
>> I gather that some include library files are missing but how can I
>> install them and are they compatible with Mac PPC? Also how do I give
>> GCC the right include command? No clues for me in the GCC man page.
> >
> > I'm a newbie, happy that I could install GCC on my "Home Office"
> > installation of YDL 2.0.



This archive was generated by hypermail 2a24 : Fri Jul 13 2001 - 14:41:52 MDT