LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 06-25-2004, 03:20 AM   #1
six6
Member
 
Registered: Jun 2004
Location: In Adamantine Chains and penal Fire
Distribution: Debian Sarge & Ubuntu Breezy
Posts: 107

Rep: Reputation: 16
Viewing the default kernel options


Hi, I'm new to GNU/Linux (that's fun to say, for a couple of reasons).

Bear with me, I can't post URLs (haven't reached 5 posts yet). Add `www' to the front of each address.

I have Mandrake10.0 official working well. I was hoping to utilize the newest kernel (2.6.7) from a fresh compile, though I have some issues. I think the easiest way to sort out the issues is looking at the .config file (or whatever is relevant) when Mandrake ``put together" my kernel on installation. Where can I find this file/information? I think I'll need almost the same info as that contained in my .config file I've created through `make xconfig'.

My computer is a dual-boot with that other OS, and I'm fond of IceWM.

Those experienced might think what's above isn't the right course of action for solving my problems. If that's the case, here are the specific issues I'd like to resolve:
  • My NTFS partitions don't automagically mount, though I haven't changed the fstab. They mount automatically with the default 2.6.3 kernel. This might have to do with the NLS modules (or lack thereof) I originally chose. I can mount them as root, but can't access them after mounting.
  • I don't have sound. I chose ALSA as a module and disabled OSS. ALSA works in the default kernel.
  • Most annoying, when launching a terminal window in IceWM, the window opens but just a cursor displays. I can't enter any text, see what directory I'm in, etc. CTRL-ALT-1 switches to a different virutal-terminal with normal display properties.

If you think it's an issue with my .config, check it out:
tc.umn.edu/~frye0031/config
These are my systems specifications:
tc.umn.edu/~frye0031/comp-specs
Here is my dmesg:
tc.umn.edu/~frye0031/2.6.7-dmesg
The kernel built fine, so I assume it's not that process causing the problems. Here's my build process just in case:
tc.umn.edu/~frye0031/ker-howto

Let me know if you need any more info. Thanks!
 
Old 06-25-2004, 10:29 PM   #2
mascdman
Member
 
Registered: Jun 2004
Location: Canada
Distribution: Ubuntu 6.06 LTS
Posts: 152

Rep: Reputation: 30
If you want to get the .config of the default Mandrake kernel, reboot and run the 2.6.3 kernel and then run something like
Code:
cp /proc/config.gz /usr/src/linux/.config
That will overwrite the configuration file in your /usr/src/linux directory. Copy your old configuration somewhere else if you want to keep it. You should then be able to do a make oldconfig to configure the kernel sources (note: It will prompt you about any newer options that the 2.6.7 kernel offers). After this you should be able to do a make xconfig and change any options you need/want to.

--mascdman
 
Old 06-26-2004, 03:21 PM   #3
six6
Member
 
Registered: Jun 2004
Location: In Adamantine Chains and penal Fire
Distribution: Debian Sarge & Ubuntu Breezy
Posts: 107

Original Poster
Rep: Reputation: 16
Thanks so much! I actually had installed the kernel source and the .config was in there (/usr/src/linux)...so I used that. I tried "make oldconfig" but it didn't prompt about newer options, so I exited out of all that and just did "make xconfig".

Secondly, I tried using the /proc/config.gz but "make oldconfig" couldn't use it and neither could "make xconfig". I had no idea that /proc/config.gz even existed or why it was .gz, so I also tried unzipping it with tar -xvf but that didn't work either. Most importantly though, your post gave me a new train of thought.

The "make xconfig" with the .config file from /usr/scr/linux (version 2.6.3-7mdk) worked well, and the kernel built fine and I'm running it now without any problems. I wonder if the 2.6.3-7mdk patched kernel was equivalent to the 2.6.7 I downloaded, spent time with, and got working?

Oh well, I've learned how to compile a kernel at least.
 
Old 06-26-2004, 03:54 PM   #4
mascdman
Member
 
Registered: Jun 2004
Location: Canada
Distribution: Ubuntu 6.06 LTS
Posts: 152

Rep: Reputation: 30
Oops -- my bad. That's what I get for posting while tired. The command I should have posted is
Code:
zcat /proc/config.gz >/usr/src/linux/.config
Or you could do
Code:
cp /proc/config.gz /tmp
gunzip /tmp/config,gz
mv /tmp/config /usr/src/linux/.config
Glad to hear the kernel is working, though.

--mascdman
 
Old 07-21-2004, 06:05 PM   #5
newlus
LQ Newbie
 
Registered: Jul 2004
Posts: 3

Rep: Reputation: 0
hey ppl, another newbie here

I have Mandrake 10 discovery 10, i am attempting to install some usb wireless lan dirvers and i need to make sure that the kernel has got the correct configuration.

Following the read me file it says i need to go to /usr/src/linux as this is where the config filles be, but when going into /usr/src all i can see if a foler called RMP, there isnt a folder for the linux config files.

Is it located in a diffrent place with certain versions of mandrake, if so where? Or is the folder some how hidden from me if so how can i get to it

Thanks for the help
 
Old 07-21-2004, 10:23 PM   #6
mascdman
Member
 
Registered: Jun 2004
Location: Canada
Distribution: Ubuntu 6.06 LTS
Posts: 152

Rep: Reputation: 30
You just need to install the kernel sources. As root, run urpmi kernel-source.

--mascdman
 
Old 07-22-2004, 07:05 AM   #7
newlus
LQ Newbie
 
Registered: Jul 2004
Posts: 3

Rep: Reputation: 0
Quote:
Originally posted by mascdman
You just need to install the kernel sources. As root, run urpmi kernel-source.

--mascdman
Thanks for the reply, I have tried this and still doesnt place the source files in /usr/scr. The only place where i can find where it appears to install the souces is /lib/modules this contains the folders named with the kernel versions. But yet there is no make file or config file so I can cannot look over the config.

Anyone any ideas (total newbie at work here)
 
Old 07-22-2004, 11:04 AM   #8
UK MAdMaN
Member
 
Registered: Jul 2004
Location: Manchester, England
Distribution: Gentoo
Posts: 211

Rep: Reputation: 30
Have you run the updater in the Mandrake Control Centre? If not, run this (no need to update anything) and then run the command again. This will then download the latest version of the kernel and should put the files in the correct place.
 
Old 07-22-2004, 12:26 PM   #9
newlus
LQ Newbie
 
Registered: Jul 2004
Posts: 3

Rep: Reputation: 0
Quote:
Originally posted by UK MAdMaN
Have you run the updater in the Mandrake Control Centre? If not, run this (no need to update anything) and then run the command again. This will then download the latest version of the kernel and should put the files in the correct place.
Ok thanks, following your instruction I ran the update but did not update anything, i then run the command again and downloaded it, it then prepaired. Looking back into /usr/src/ there is still not linux folder containing my kernel
 
Old 07-22-2004, 03:21 PM   #10
mascdman
Member
 
Registered: Jun 2004
Location: Canada
Distribution: Ubuntu 6.06 LTS
Posts: 152

Rep: Reputation: 30
Does running rpm -q kernel-source show anything? If it does, run rpm -q kernel-source --list to see where all the files have been installed.

--mascdman
 
  


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
Default options for kernel compile... guddler Mandriva 2 03-19-2004 05:12 PM
Kernel 2.6.2 options question - LOCKED options ? tvojvodi Linux - General 0 02-17-2004 04:23 AM
default kernel options whysyn Slackware 1 06-16-2003 11:27 PM
default user options? hux Linux - Security 2 12-18-2002 10:19 AM
default font for viewing text files glock19 Linux - General 6 02-04-2002 02:36 PM

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

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