I recently purchased a
watchdog timer card from Berkshire products. I have followed two different instruction sets and neither one has given me any results. The instructions that came with it are as follows:
INSTALL PCWD_PCI DRIVER AS KERNEL MODULE
Copy pcwd_pci.c in /usr/src/linux/drivers/char/watchdog
Compile kernel with pcwd_pci as a module:
make modules
make modules_install
depmod -a
modprobe pcwd_pci
There is no "/usr/src/linux/drivers/char/watchdog" directory in Fedora so I created a symlink from "/usr/src/linux/" -> "/usr/src/kernels/2.6.23.17-88.fc7-i686/"
where "2.6.23.17-88.fc7-i686" is my current kernel.
However, when I type in "make modules" it gives me
"make: *** No rule to make target `modules'. Stop."
I also followed a set of instructions from the
fedora project website on compiling kernel modules. I modified the Makefile in /usr/src/kernels/2.6.23.17-88.fc7-i686/drivers/char/watchdog/ to include the following lines:
# Added on August 30, 2008
obj-m:= pcwd_pci.o
KDIR := /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)
default:
$(MAKE) -C $(KDIR) M=$(PWD) modules
# End of additions
When I try running the make command it says
"make: Nothing to be done for `default'."
even though the module was not created.
The pcwd_pci.c file I'm using can be found
here.
Any help would be great.