On Mon, 28 Feb 2000, James Atkinson wrote about, Why do my new kenels never work
right?:
> Every time I compile a new kernel I hit some small error that makes my computer
> almost useless..
>
> Last time something went wrong and it couldn't mount the root filesystem. This
> time I can't seem to compile my network card driver.(Realtek 8139), thus
> makeing it impossible for me to get online (cable modem).
>
> During the config (menuconfig and xconfig) I see an option to either compile in
> or load a modual for my network card. However I can never select that option,
> not matter what other options I try, its allways greyed out. Any idea why this
> is?
Menu and xconfig i never recommend, use make config.
Choose your options with y, n or m
Under;
Ethernet (10 or 100Mbit) (CONFIG_NET_ETHERNET)
you will find the following;
3COM cards (CONFIG_NET_VENDOR_3COM) [N/y/?]
The above has a default of N just hit enter to accept the default.
Western Digital/SMC cards (CONFIG_NET_VENDOR_SMC) [N/y/?]
AMD LANCE and PCnet (AT1500 and NE2100) support (CONFIG_LANCE) [N/y/m/?]
Racal-Interlan (Micom) NI cards (CONFIG_NET_VENDOR_RACAL) [N/y/?]
RealTek 8129/8139 (not 8019/8029!) support (CONFIG_RTL8139) [N/y/m/?]
type y or m, yes = in the kernel, m = module.
Small note, it is considered a good idea to compile drivers as modules
because you can always change the cards address without having to recompile
a kernel and you can use modprobe (/etc/modules.conf) to pass address
options to modprobe so it knows where the card can be found.
> I figured this wouldn't be a problem, the driver was there and it had
> instructions on how to compile it. So fine, I did. The compile went fine, no
> errors, however when I try and load it, it gives me
> 'Unresolved Symbols'.
> That pops up when I do a depmod -a, insmod, or modprobe. Nothing I do seems to
> work.
cd /usr/src/linux
cp .config ..
make distclean
make mrproper
cp ../.config .
edit the Makefile and define an EXTRAVERSION
EXTRAVERSION = -123
make config
make dep
make bzImage
make modules modules_install
cp arch/i386/boot/bzImage /boot/vmlinuz-2.2.xx-123
cp System.map /boot/System.map-2.2.xx-123
edit /etc/lilo.conf and enter the new kernels details
/sbin/lilo
reboot
>
> Any ideas? (Idealy I want to compile this straight into the kernel so I don't
> have to deal with it anymore).
You can compile it into the kernel, but modules are as i said above, the
way to go.
> --
> - James Atkinson
> Linux! The Ultimate NT Service Pack.
>
>
--
Regards Richard
[EMAIL PROTECTED]
http://people.zeelandnet.nl/pa3gcu/
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.linux-learn.org/faqs