On Fri, 2006-06-09 at 18:46 +0100, Freedom Web Services wrote:
> Hmm, I've got a K6-200 running FC5 at home... that has an i586 kernel
> too.
>
> I'm afraid I don't know why this kernel module is not included in the
> i586
> kernels but it is in the i686 versions.
>
> If there's a good reason for it not being included then you have
> problems.
> Perhaps someone more au fait with the kernel knows.
>
> If it's accidental that it's not included, then you should be able to
> request in bugzilla that it gets included in future i586 kernel
> releases,
> and you could try compiling the module "out of tree". Do you have the
> kernel 2.6.16-1.2122_FC5 SRPM or any other source for that module?
>
Yes Paul I do have the kernel-2.6.16-1.2122_FC5.src.rpm and the
kernel-devel-2.6.16-1.2122_FC5.i586.rpm.
Right, let's try building the module ourselves then.
Install the kernel-devel RPM; that will be needed.
Next, follow the steps in the kernel tweaking guide at
http://www.city-fan.org/tips/TweakKernelPackage up to and including the
"Prepare Build" step. Use your kernel-2.6.16-1.2122_FC5.src.rpm instead
of the FC4 one used as an example.
Next, make yourself a module-build directory:
$ mkdir ~/module-build
$ cd ~/module-build
Next, copy the module source code from the unpacked kernel source:
$ cp
~/rpmbuild/BUILD/kernel-2.6.16/linux-2.6.16.i586/drivers/char/n_hdlc.c .
(don't miss the "." at the end of that one long command)
Create a file "Makefile" in your module-build directory, containing:
obj-m := n_hdlc.o
KDIR := /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)
default:
$(MAKE) -C $(KDIR) M=$(PWD) modules
install:
strip -g n_hdlc.ko
$(MAKE) -C $(KDIR) M=$(PWD) modules_install
(all indented lines should be indented with tabs, not spaces)
Build the module:
$ make
Install the module:
$ su
# make install
# /sbin/depmod -a
You should then have your module ready to go...
I have installed the kernel source as instructed on the,
http://www.city-fan.org/tips/TweakKernelPackage link, but I can not find the
where it has installed it!!! It should be in a directory '/rpmbuild' but no
such directory exists.
Any ideas?
Many thanks,
Garry