LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 08-30-2008, 12:31 PM   #1
magnus_simius
LQ Newbie
 
Registered: Jul 2006
Posts: 7

Rep: Reputation: 0
Trying to compile pcwd_pci kernel module in Fedora 7


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.
 
Old 08-30-2008, 03:00 PM   #2
magnus_simius
LQ Newbie
 
Registered: Jul 2006
Posts: 7

Original Poster
Rep: Reputation: 0
It seems to be working for the most part now. The second method must have worked, but I just didn't realize it. The README file that came with it says I should be able to check the status by entering
"echo /proc/pcwd"
However there is no /proc/pcwd.
I'm able to check the boot status via "dmesg | grep pcwd", though. It's working well enough for me at least.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Adaptec Kernel Module - Kernel Compile Errors dumbsheep Linux - General 3 11-07-2007 03:47 PM
Cant compile MODULE (Kernel) merin_83 Linux - Kernel 2 07-29-2007 07:16 AM
Why can't I compile this kernel module? (kernel: 2.6.8-powerpc Debian sarge) Lannix Linux - Hardware 5 05-01-2007 12:29 PM
can't Compile a module under Kernel 2.4.20-8 srsairam Linux - Software 3 11-09-2004 12:45 AM
can i compile just one kernel module whithout recompiling the whole kernel? edman007 Linux - Software 3 02-17-2004 03:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 02:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration