LinuxQuestions.org
Help answer threads with 0 replies.
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 01-21-2004, 07:09 AM   #1
NarutoKun
Member
 
Registered: Jan 2004
Location: Puchong, Selangor, Malaysia
Posts: 38

Rep: Reputation: 15
Cool kernel compilation - bug?


I've found a few problems with Fedora Core 1 kernel compilation:

To my knowledge /boot/config-2.4.22-1.2149.nptl and /usr/src/linux-2.4.22-1.2149.nptl/configs/kernel-2.4.22-i686.config are supposed to be the same (diff the 2 files and the reply is no difference) and usage of anyone of them should get you the current running kernel. Well think again. I copied the file to .config and tried to recompile the kernel but the end result is lots of modules and drivers aren't loading compared to the original running kernel (2.4.22-1.249). Here is what I did.

1. cd /usr/src/linux-2.4.22-1.2149.nptl
2. cp configs/kernel-2.4.22-i686.config .config
3. make menuconfig; make menuconfig #you have to run 2 times or else you'll get a error during make bzImage
4. make dep
5. make clean
6. make bzImage
7. make modules
8. make modules_install
9. make install
10. reboot

After rebooting into the new kernel (nptlcustom) I found out that my external usb harddisk was not detected. Why? Isn't the new kernel supposed to be the same as the original one? Upon checking I found out that lots of modules are not loaded compared to the original one (eg pcmcia, ehci-hcd, etc.) Any Idea?
 
Old 01-21-2004, 08:09 AM   #2
wampfler
Member
 
Registered: Nov 2003
Location: switzerland
Distribution: Fedora Core 1.0/Gentoo
Posts: 35

Rep: Reputation: 15
i had the same problem with pcmcia!
solution: remove the folder with the symbolic links in /lib/modules/kernel-name/pcmcia when you remove it (or rename), pcmcia works again. perhaps it's the same problem with usb.

Last edited by wampfler; 01-21-2004 at 08:17 AM.
 
Old 01-22-2004, 08:33 AM   #3
NarutoKun
Member
 
Registered: Jan 2004
Location: Puchong, Selangor, Malaysia
Posts: 38

Original Poster
Rep: Reputation: 15
Thanks for the answer but I don't think this is the problem

I tried the one you mentioned already but it didn't help. What's worst now is, my original kernel can't even detect the external usb harddisk. Hmmmm.... must be a very big bug in Fedora. It worked earlier but after a few compilations of my kernel, now all of them can't detect my external hard disk.

Actually, my external harddisk is connected to a pcmcia card with a usb2.0 port. It worked fine in RedHat 9.0 and the first time I installed Fedora as well as the first time I recompiled my kernel. But after that all hell broke loose after my third/forth kernel recompilation. Whenever I tried modprobe/insmod usb-ohci or ehci-hcd, I get these messages:

/lib/modules/2.4.22-1.2163.nptl/kernel/drivers/usb/host/usb-ohci.o: init_module: No such device
Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters.
You may find more information in syslog or the output from dmesg
/lib/modules/2.4.22-1.2163.nptl/kernel/drivers/usb/host/usb-ohci.o: insmod /lib/modules/2.4.22-1.2163.nptl/kernel/drivers/usb/host/usb-ohci.o failed
/lib/modules/2.4.22-1.2163.nptl/kernel/drivers/usb/host/usb-ohci.o: insmod usb-ohci failed

I've also tried to enable/disable acpi as well as apm but to no avail. Anybody knows any work around?
 
  


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
kernel compilation-From where it should be started for already compiled kernel b0nd Linux - Newbie 11 08-17-2005 01:08 PM
kernel compilation : to remove a kernel which files should be deleted b0nd Linux - Newbie 2 08-17-2005 11:35 AM
Kernel compilation problems, distorted video and kernel panic shamrock_uk Linux - Laptop and Netbook 5 08-12-2005 10:53 PM
does kernel-source installs with the compilation cum installtion of a new kernel? luqman Linux - General 18 03-04-2005 07:33 AM
Kernel 2.6 bug?!! oldi Slackware 1 05-30-2004 02:26 PM

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

All times are GMT -5. The time now is 11:45 AM.

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