LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-15-2006, 02:57 PM   #1
Aranel
Member
 
Registered: Jun 2006
Location: USA
Distribution: Ubuntu Edgy, Fedora Zod, and SuSE 10.1; some experience with Mandriva 2006 and Debian Sarge
Posts: 37

Rep: Reputation: 15
Compiling the Linux kernel (newb warning)


Hi, I've been using Linux for about two months, and I recently migrated from Mandriva One version 2006.0 to SuSE 10.1. However, my wireless card (a Linksys WPC54G v1.2, which has a Broadcom chipset) doesn't seem to like SuSE as it did Mandriva. Ndiswrapper, which was fully integrated in Mandriva One, simply refuses to work despite the thread I posted at these forums, but I recently heard of the bcm43xx drivers. After trying to use the obsolete drivers from the official site, I was given a nice friendly "FATAL: Error..." message to which I could find no solution on their forums except a kernel upgrade to 2.6.17+.

So I looked for tutorials on how to do this. The instructions here worked flawlessly until towards the end, when it told me how to configure LILO. Thing is, SuSE 10.1 uses GRUB, whose configuration file (/boot/grub/menu.lst) seems quite different from LILO's. I applied what the instructions said to the best of my ability, but it doesn't want to cooperate. Now when I try to boot in the new kernel, this is what appears after it loads my hardware and stuff:

Quote:
Loading ide-core
FATAL: Could not load /lib/modules/2.6.17.5-default/modules.dep: No such file or directory
Loading ide-disk
FATAL: Could not load /lib/modules/2.6.17.5-default/modules.dep: No such file or directory
Loading piix
FATAL: Could not load /lib/modules/2.6.17.5-default/modules.dep: No such file or directory
Loading processor
FATAL: Could not load /lib/modules/2.6.17.5-default/modules.dep: No such file or directory
[more of this same error]
resume device /dev/hda5 not found (ignoring)
Waiting for device /dev/hda6 to appear: ..........................not found -- exiting to /bin/sh
sh: no job control in this shell
$
None of my lights (laser mouse, wireless card, etc.) come on, and in that command prompt, cd and ls are pretty much the only commands it seems to recognize. I looked in /lib/modules/2.6.17.5-default, and indeed there is no modules.dep file.

Here is the relevant part of my /boot/grub/menu.lst file's contents, in case it's needed:

Quote:
title SuSE Linux 10.1
root (hd0,5)
kernel /boot/vmlinuz root=/dev/hda6 vga=0x303 resume=/dev/hda5 splash=silent showopts
initrd /boot/initrd

title New Kernel
root (hd0,5)
kernel /usr/src/linux-2.6.17.5/arch/i386/boot/bzImage root=/dev/hda6 vga=0x303 resume=/dev/hda5 splash=silent showopts
initrd /boot/initrd
And according to YaST, here is the structure of my hard drive (so you can tell between all those different HDA values ). As you can see, I installed Windows and created a FAT32 storage partition first:

Quote:
Device || Size || Type
/dev/hda 27.9GB IC25N030ATCS04-0
/dev/hda1 6.9 GB HPFS/NTFS (mounted at /windows/C)
/dev/hda2 5.3 GB Win95 FAT32 LBA (mounted at /windows/D)
/dev/hda3 15.5GB Extended
/dev/hda5 502MB Linux swap (mounted at swap)
/dev/hda6 6.1 GB Linux native (mounted at /)
/dev/hda7 8.9 GB Linux native (mounted at /home)
All I can make out of the error messages I'm getting in the new kernel is that there should be a modules.dep file that's not there and that for some reason, it's not recognizing the swap or / partitions. And the fact that /boot/initrd is a symlink to /boot/initrd-2.6.16.13-4-default - without any other similar candidates that I can see it could be linking to - also strikes me as kinda odd... shouldn't this new kernel come with its own?

Being the newbie that I am, I'm completely lost. The installation seemed to go smoothly until now, and I can't find any instructions specific enough on the Web... Thanks in advance for any advice you can give!

Edit: I forgot to mention that in the configuration, I set up all the IEEE 802.11 stuff and the BMC43xx stuff in various places as modules. The modules have been successfully make install'd to /lib/modules... so is it possible to use those drivers without updating the kernel anyway? If so, how?

Last edited by Aranel; 07-15-2006 at 04:13 PM.
 
Old 07-15-2006, 06:58 PM   #2
Aranel
Member
 
Registered: Jun 2006
Location: USA
Distribution: Ubuntu Edgy, Fedora Zod, and SuSE 10.1; some experience with Mandriva 2006 and Debian Sarge
Posts: 37

Original Poster
Rep: Reputation: 15
Update: I went to /usr/src/linux-2.6.17.5 and ran make modules_install again. This time, a /lib/modules/2.6.17.5-default/modules.dep file was created, but the new kernel is still saying it doesn't exist. This is weird...
 
Old 07-15-2006, 07:37 PM   #3
DeusExLinux
Member
 
Registered: May 2004
Location: Tampa, Fl
Distribution: Arch
Posts: 648

Rep: Reputation: 30
I would recomiple the beast and run the make modules_install, again.. and then recopy the kernel image to your /boot and try it that way.
 
Old 07-15-2006, 07:55 PM   #4
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Copy the kernel image to boot. If your new kernel needs an initrd, you'll need one compiled with modules for THAT kernel and also placed in boot, with the appropriate path inserted into menu.lst.
 
Old 07-15-2006, 08:00 PM   #5
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
Doesn't Suse offer a 2.6.17+ kernel already configured for Suse? You'll probably be successful and learn a lot in the end, but when Suse does upgrade your kernel (automatically?), will you have to do it again? Even thinking about it makes me thankful for Debian unstable.
 
Old 07-15-2006, 08:46 PM   #6
Aranel
Member
 
Registered: Jun 2006
Location: USA
Distribution: Ubuntu Edgy, Fedora Zod, and SuSE 10.1; some experience with Mandriva 2006 and Debian Sarge
Posts: 37

Original Poster
Rep: Reputation: 15
@ Matir: Forgive my incompetence, but I'm not sure I get what you're saying... What precisely is the "image" in this case?
Quote:
Originally Posted by rickh
Doesn't Suse offer a 2.6.17+ kernel already configured for Suse? You'll probably be successful and learn a lot in the end, but when Suse does upgrade your kernel (automatically?), will you have to do it again? Even thinking about it makes me thankful for Debian unstable.
How would it upgrade the kernel? Online? (Wouldn't that be ironic...) But seriously, I do have an ethernet cable, and since this is a laptop, I can move it next to my router and plug it in. How might one go about applying that upgrade?
 
Old 07-15-2006, 08:55 PM   #7
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Sorry for the confusion... "kernel image" is the term that usually applies to the final compiled binary version of the kernel. (i.e, the vmlinuz file)
 
Old 07-15-2006, 08:57 PM   #8
Aranel
Member
 
Registered: Jun 2006
Location: USA
Distribution: Ubuntu Edgy, Fedora Zod, and SuSE 10.1; some experience with Mandriva 2006 and Debian Sarge
Posts: 37

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Matir
Sorry for the confusion... "kernel image" is the term that usually applies to the final compiled binary version of the kernel. (i.e, the vmlinuz file)
Ah, I think I see... I'll have another whack at it tomorrow. For the moment, I'm kinda kerneled-out... I think I'd probably do something stupid if I tried it now.
 
Old 07-15-2006, 08:59 PM   #9
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
Quote:
How might one go about applying that upgrade?
First you'd have to find a Suse repository that has a newer kernel than the one which ships with the system. Sorry. I don't know enough about how Suse packaging works to be of any real help.
 
Old 07-15-2006, 09:00 PM   #10
Aranel
Member
 
Registered: Jun 2006
Location: USA
Distribution: Ubuntu Edgy, Fedora Zod, and SuSE 10.1; some experience with Mandriva 2006 and Debian Sarge
Posts: 37

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by rickh
First you'd have to find a Suse repository that has a newer kernel than the one which ships with the system. Sorry. I don't know enough about how Suse packaging works to be of any real help.
Okay, I see. I guess I'll start looking for some. Thanks for telling me about that.
 
Old 07-15-2006, 10:42 PM   #11
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Yast should have the ability to update the list of available packages: you can look there for a newer kernel version.
 
Old 07-16-2006, 03:33 PM   #12
Aranel
Member
 
Registered: Jun 2006
Location: USA
Distribution: Ubuntu Edgy, Fedora Zod, and SuSE 10.1; some experience with Mandriva 2006 and Debian Sarge
Posts: 37

Original Poster
Rep: Reputation: 15
Well, I tried updating the kernel again using the newer version 2.6.17.6 from the beginning, but I got the same exact error message as before. I finally did find one 2.6.17 kernel RPM, but it doesn't seem to work too well for this purpose; "modprobe bcm43xx" doesn't give me a "FATAL" message like it did before, but it also doesn't set up any eth# or wlan# interfaces, which makes it just as useless. I think I'll go try Ubuntu out, since it supposedly supports BCM43xx, and wait until a version of SuSE based on the 2.6.17 kernel is released (when will that be, anyway? 10.2?). I just don't think four consecutive headache-filled days is a reasonable timeframe to get a driver working...

Thanks for the help nevertheless!
 
Old 07-16-2006, 07:46 PM   #13
DeusExLinux
Member
 
Registered: May 2004
Location: Tampa, Fl
Distribution: Arch
Posts: 648

Rep: Reputation: 30
You'll probably have to set the alias for the bcm43xx module in modprobe.com
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Warning compiling module Ojp Programming 7 04-03-2006 12:50 AM
Newb compiling help oxbloodoi Linux - Newbie 3 10-20-2004 09:20 PM
gcc warning compiling C code vose Programming 2 09-29-2004 10:58 AM
WARNING: Newb Question! (MuLinux & tehnewbeh Linux - Distributions 8 04-14-2004 10:30 AM
Newb Question - Compiling software Linucks Linux - Distributions 4 06-30-2003 08:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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