LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-31-2005, 09:29 AM   #1
edanono
LQ Newbie
 
Registered: Feb 2005
Posts: 23

Rep: Reputation: 15
Noob hitting brick walls with kernel


I have SuSE Enterprise 8 installed. So far have done it twice on the same system. Both times it will not recognize the onboard LAN or the D-Link card installed.

Located drivers for D-link and finally found out the actual commands for compiling. That took a while to find. I hope it was because I had been looking in the wrong places for it.

Moving on. Try to "make" after drivers are placed into /temp dir and get error:

Makefile:29: *** Linux kerenel source not found. Stop.

So I try "rpm -q kernel-source" and get:

package kernel-source is not installed

Then, "rpm -q kernel" and get:

package kernel is not installed

So by this point I am really frustrated. I download a newer kernel version(have 2.4.21 and trying to go to 2.6.11.3). Everything seems to going fine until I attempt to make a new initrd file. I get error telling me modules.dep is not up to date.

Now I am at a stand still. I have not found any documentation that will help with the initrd file. Apperently nobody else makes the same mistakes I do. As for the kernel-source not being found... that just floored me. I can't comprehend why a driver install file would not be able to find the kernel source. Do different distributions place the kernel in different directories? If that were the case shouldn't the drivers be specific to the distro?

I appreciate any help provided.

DA nono
 
Old 03-31-2005, 09:36 AM   #2
shadoxx428
Member
 
Registered: Jan 2005
Location: Los Angeles, CA
Distribution: Xubuntu
Posts: 41

Rep: Reputation: 16
Try doing a:

rpm -qa | grep kernel

That'll show you the packages you have.
 
Old 03-31-2005, 09:39 AM   #3
edanono
LQ Newbie
 
Registered: Feb 2005
Posts: 23

Original Poster
Rep: Reputation: 15
It sends nothing back, at all.

DA nono
 
Old 03-31-2005, 09:46 AM   #4
shadoxx428
Member
 
Registered: Jan 2005
Location: Los Angeles, CA
Distribution: Xubuntu
Posts: 41

Rep: Reputation: 16
This may seem a little obvious, but are you running as root? I'm still sort of a n00b myself. I know some things but not others. I just recompiled my kernel yesterday (I think.) And I'm curious, this won't help me help you at all, but what model of D-Link card do you have? I have a DWL-G510 rev. B and can't seem to get "ndiswrapper" to work with it. If you have the version 1.00 driver for it it would be appreciated if you sent it to my e-mail. As for your problem, I'll research it and see what I come up with.

Oh just incase you didn't know, to run as root type:

su

And it'll come up with:

Password:

It won't show anything but type in your root password and press enter and it should change the prompt from "$" to "#".

So from:

[user@localhost]$

to

[user@localhost]#
 
Old 03-31-2005, 09:50 AM   #5
edanono
LQ Newbie
 
Registered: Feb 2005
Posts: 23

Original Poster
Rep: Reputation: 15
I am in as root. That is how I always log in. Saves time when doing work.

DA nono
 
Old 03-31-2005, 10:01 AM   #6
shadoxx428
Member
 
Registered: Jan 2005
Location: Los Angeles, CA
Distribution: Xubuntu
Posts: 41

Rep: Reputation: 16
OK, I've found it for you. You said you're trying to upgrade to kernel 2.6.11.3 right? I've found the source for you.

http://rpm.pbone.net/index.php3/stat...11.3-2.src.rpm

When you upgrade your kernel, make sure you do:

rpm -Uhv <kernel rpm name>

After that's done, do:

rpm -Uhv <kernel source rpm name>

Tell me how that works out.
 
Old 03-31-2005, 10:05 AM   #7
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517

Rep: Reputation: 58
The kernel packages in SUSE versions <9.0 are called k_deflt, this is why 'rpm -q kernel' does not show it.

I would not recommend to install a 2.6er kernel on your version. You need to update several other packages and some configurations have changed (e.g. modules.conf > modprobe.conf)
 
Old 03-31-2005, 10:06 AM   #8
edanono
LQ Newbie
 
Registered: Feb 2005
Posts: 23

Original Poster
Rep: Reputation: 15
Thanks for the help. I have gotten frustrated enough that I am starting over on compiling the kernel. I will let you know when I hit a snag.

DA nono
 
Old 03-31-2005, 10:40 AM   #9
APB_4
Member
 
Registered: Nov 2004
Distribution: KDE Neon User edition; Manjaro; OpenSUSE Leap
Posts: 298

Rep: Reputation: 31
edanono you might want to start running as a user because running as root all the time is pretty risky, mostly because you can completely screw everything up.
 
Old 03-31-2005, 10:46 AM   #10
edanono
LQ Newbie
 
Registered: Feb 2005
Posts: 23

Original Poster
Rep: Reputation: 15
That is kind of what I am counting on. This is a fresh install and right now it is for experimenting only. I am trying to get aquainted with the OS so I can implement it later as a network server.

If I trash it, then I start all over. Thanks for the tip though.

DA nono
 
Old 03-31-2005, 11:21 AM   #11
edanono
LQ Newbie
 
Registered: Feb 2005
Posts: 23

Original Poster
Rep: Reputation: 15
UPDATE

Progress so far:

make oldconfig(no issues)

make bzImage(no issues)

make modules(no isuues)

make modules_install(some errors with unresolved symbols in /lib/modules/2.6.11.3y/kernel/sound/usb/snd-usb-lib.ko)
I am guessing these are sound driver errors?

Now I need to copy .config, bzImage, and System.map files, right?

After that I should be able to make the initrd file, correct?

DA nono
 
Old 03-31-2005, 11:28 AM   #12
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517

Rep: Reputation: 58
Quote:
2.6.11.3y
so you also answered the EXTRAVERSION question with Yes

Quote:
Now I need to copy .config, bzImage, and System.map files, right?
Yes!
Quote:
After that I should be able to make the initrd file, correct?
Yes, if you have the correct version of mkinitrd installed.
 
Old 03-31-2005, 11:34 AM   #13
edanono
LQ Newbie
 
Registered: Feb 2005
Posts: 23

Original Poster
Rep: Reputation: 15
Thanks for the response abisko.

The EXTAVERSION question... well I got impatient with the oldconfig questions and just started hitting enter. I assummed that the defaults would work for me. I guess I will see if it screws me up.

DA nono
 
Old 03-31-2005, 11:49 AM   #14
edanono
LQ Newbie
 
Registered: Feb 2005
Posts: 23

Original Poster
Rep: Reputation: 15
cp .config /boot/config-2.6.11.3 (ok)
cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.11.3 (ok)
cp System.map /boot/System.map-2.6.11.3 (ok)
mkinitrd /boot/initrd-2.6.11.3.img 2.6.11.3
/boot/initrd-2.6.11.3.img/var/tmp is not a directory

This is obvious, BUT why would it be looking for a directory that has not been created yet. If I manually create it, will this work? Or does there need to be certain files already in the directory?

This is where I have been stuck every time.

DA nono
 
Old 03-31-2005, 12:09 PM   #15
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517

Rep: Reputation: 58
I am not sure if this command can work. Usually you would use
Code:
mkinitrd -k <kernel> -i <initrd>
And better use the full name of the kernel (with EXTRAVERSION) when naming the files. Otherwise it may get confusing.
 
  


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
Hitting walls with Real and mplayer Louis_Carole Linux - Newbie 2 11-15-2004 11:08 AM
Themes/Walls TrickFinlay22 Slackware 4 09-12-2004 03:33 PM
Installation - Hitting a brick wall stuseed Red Hat 1 12-23-2003 07:01 PM
Kernel 2.6 hitting the mainstream? navarre9 Linux - General 10 12-22-2003 09:43 AM
802.11b brick 50yard greendusk Linux - Wireless Networking 1 10-16-2003 12:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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