LinuxQuestions.org
Visit Jeremy's Blog.
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-21-2006, 08:17 AM   #1
mackj
LQ Newbie
 
Registered: Jul 2006
Location: Greece
Posts: 2

Rep: Reputation: 0
FC5: Need to rebuild the kernel ? how?


Hi,
I'm trying to write a device driver, using FedoraCore5 (kernel: 2.6.15.-1.2054.FC5) According to the documentation I've build a tree as a user and compile my module against it. I want to enable some debuging that isn't enabled. Also I need to recompile some existing module (/drivers/usb/input/hid-core.c) as I've added some lines in there.

I did:
make menuconfig
make dep
make clean
make bzImage
make
make install
make modules
make modules_install

...but when I reboot, the system crashes! Obviously I make something wrong.

Some Information:

kernel tree is under:
/home/user/rpmbuil/BUILD/kernel<version>/linux<version>/

the changes I described above concern the addition of the vendor and product id into the blacklist of usbhid in order to get my driver probed.

Plz help!
 
Old 08-21-2006, 09:08 AM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Try again this time (the correct steps [in the proper order] for the Red Hat family you need);

<apply the your patches here>
make mrproper
cp /boot/config-2.6.15.-1.2054.FC5 .config
make menuconfig (or gconfig or xconfig)
make
make modules_install
make install

The cp the config file step is optional and may not be the correct name for config file but it should give you an idea of where a working configuration resides.
 
Old 08-21-2006, 12:06 PM   #3
mackj
LQ Newbie
 
Registered: Jul 2006
Location: Greece
Posts: 2

Original Poster
Rep: Reputation: 0
Thank you very much!! It really helped me! It worked ok! Although I should have asked erlier It would have saved me 5 days!!
Thanks again!!
 
Old 08-21-2006, 03:10 PM   #4
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Your welcome, glad to help.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Kernel Rebuild Nikosis Linux - Newbie 4 05-01-2006 12:40 AM
how to rebuild kernel bhanu12 Linux - Newbie 2 10-26-2005 04:42 PM
How do you rebuild a kernel? Thaidog Linux - General 4 07-26-2005 12:15 PM
Help (!?) with rebuild kernel 2.4.26 WoofDeF Debian 1 06-22-2005 09:11 AM
kernel rebuild Present Yoper 9 11-26-2004 06:08 PM

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

All times are GMT -5. The time now is 08:44 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