LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-09-2008, 11:51 AM   #1
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Anomaly With Compiling SMP 2.6.21.5 Kernel


I'm still learning about my new box and hardware. Because I have so much to learn, I have been using the stock 2.6.21.5 huge kernel that came with Slackware 12. Recently I recompiled that same kernel with some modest changes, such as support for lm-sensors. When I run this new kernel the boot screen is abnormal. The dual penguins are stretched and skinny and the screen output text is tiny. I cannot see the bottom of the screen display.

My boot configuration calls for VGA=788, which looks beautiful with the stock huge kernel but not with my compiled version. Seems that nothing I do with the VGA setting changes the screen output, everything remains tiny and stretched. Similarly, if I choose a non framebuffer VGA boot parameter (for example, VGA=3), everything stays the same resolution.

I compared my kernel configuration file to the stock huge kernel and found nothing obvious. Any thoughts where I should troubleshoot is appreciated.
 
Old 03-09-2008, 09:37 PM   #2
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Original Poster
Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Solved And Another Kernel Compile Question

After spending the day tweaking various aspects of my new box, and trying different kernel options, I discovered the cause of my problem as originally posted. I booted with the stock huge kernel and then saved a copy of dmesg. I then booted with my recompiled kernel and saved that dmesg. I noticed two interesting differences:

stock huge kernel:
Console: switching to colour frame buffer device 100x37
fb0: VESA VGA frame buffer device

my custom kernel:
fb1: VESA VGA frame buffer device

I then used Kompare to diff the stock huge kernel config file with my config file. I found two suspects:

stock huge kernel:
CONFIG_FB_DDC=m
CONFIG_FB_NVIDIA=m

my custom kernel:
CONFIG_FB_DDC=y
CONFIG_FB_NVIDIA=y

I modified my kernel for module support. The kernel then booted with an expected normal screen and fat penguins. I don't pretend to understand the underlying root cause, although I am using the on-board nvidia video chip rather than a separate nvidia video card.

During my journey this afternoon, I ran across a thread about using both cores of a dual core processor to speed compile times. I use a script I wrote to automate most of my compiling and I added "-j4" to my make commands. Watching gkrellm told me that both CPU cores finally were being used. My compile time went from a half hour (a dramatic improvement over my 3+ hours with my old box) to about 15 minutes. Sweet.

I noticed a kernel option called CONFIG_NR_CPUS and the default is 32. I changed that to 2 as that is all the cores in my BE-2400 CPU. I don't know whether that will make any difference anywhere.

I noticed an option to modify the console scroll buffer (CONFIG_VGACON_SOFT_SCROLLBACK_SIZE). I changed that option from the default of 64KB to 256KB.

I hope this information helps future inquiries.

Question:
In my rc.modules script I enabled the modprobe acpi-cpufreq option. I always receive an error message of FATAL: Error inserting acpi_cpufreq (/lib/modules/2.6.21.5/kernel/arch/i386/cpu/cpufreq/acpi-cpufreq.ko) no such device. The module does exist. I modified the CPU type in my kernel configuration from the stock huge kernel Pentium Pro to MK8, as my CPU is a member of the K8 family (BE-2400). I still receive this error message. Any help is appreciated.
 
Old 03-09-2008, 10:04 PM   #3
shadowsnipes
Senior Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 1,443

Rep: Reputation: 73
Quote:
Originally Posted by Woodsman View Post
Question:
In my rc.modules script I enabled the modprobe acpi-cpufreq option. I always receive an error message of FATAL: Error inserting acpi_cpufreq (/lib/modules/2.6.21.5/kernel/arch/i386/cpu/cpufreq/acpi-cpufreq.ko) no such device. The module does exist. I modified the CPU type in my kernel configuration from the stock huge kernel Pentium Pro to MK8, as my CPU is a member of the K8 family (BE-2400). I still receive this error message. Any help is appreciated.
I'm assuming that you didn't have a suffix to your kernel name when you compiled it (similar to the "-smp" in stock kernels), so that means you probably clobbered all you modules from your stock kernel. Either that or you never installed the new modules for your current kernel. Are you sure you built that modules for your current kernel? Check your config and report back your steps in building the kernel and modules (just show what commands you used).
 
Old 03-09-2008, 10:34 PM   #4
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Original Poster
Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Quote:
I'm assuming that you didn't have a suffix to your kernel name when you compiled it (similar to the "-smp" in stock kernels), so that means you probably clobbered all you modules from your stock kernel.
No I did not use a suffix --- and I did not clobber my existing modules . The stock huge kernel uses the "smp" suffix and the modules use the same suffix. I did not touch those modules or kernel because during compile testing I always need an escape route to reboot and recover from possible mistakes.

When I compile and test a new kernel I create an additional boot option so I can run the stock kernel and modules or my new kernel and modules. The two environments remain separate.

My compiled kernel and modules are simply 2.6.21.5 with no suffix. I also use a separate rc.modules-2.6.21.5 to keep the rc.modules-2.6.21.5-smp clean.

I also enabled the following in rc.modules and receive no errors:

/sbin/modprobe powernow-k8
/sbin/modprobe cpufreq_powersave
/sbin/modprobe cpufreq_ondemand
/sbin/modprobe cpufreq_conservative

Checking with lsmod shows those four modules are running.

Everything in the new kernel works wonderfully except for that one error message.
 
Old 03-09-2008, 11:18 PM   #5
symatic
Member
 
Registered: May 2007
Distribution: Slackware
Posts: 242

Rep: Reputation: 32
acpi-cpufreq is a generic module. You have already loaded the correct module which is powernow-k8. Comment the apci-cpufreq module as it is not needed.
 
Old 03-09-2008, 11:25 PM   #6
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Original Poster
Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Quote:
acpi-cpufreq is a generic module. You have already loaded the correct module which is powernow-k8. Comment the apci-cpufreq module as it is not needed.
Well alrighty then! Thank you!
 
Old 03-10-2008, 11:36 AM   #7
duryodhan
Senior Member
 
Registered: Oct 2006
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054

Rep: Reputation: 46
If you didn't add a suffix, wouldn't your custom kernel's modules and the old smp's modules be installed in the same directory ?

what does ls /lib/modules show ?
 
Old 03-10-2008, 12:51 PM   #8
shadowsnipes
Senior Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 1,443

Rep: Reputation: 73
Quote:
Originally Posted by duryodhan View Post
If you didn't add a suffix, wouldn't your custom kernel's modules and the old smp's modules be installed in the same directory ?

what does ls /lib/modules show ?
No because the original stock smp kernel has an "-smp" suffix but his custom kernel is not smp and does not have a suffix. However, if he decided to use any of the non-smp stock kernels then he might run into issues.
 
  


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
compiling programs on an smp pc to use on non smp pc Carpo Slackware 5 03-22-2007 03:52 PM
Hyperthread server goes to kernel panic with SMP kernic, boots ok with non SMP kernel abefroman Linux - Kernel 1 09-15-2006 05:43 PM
Any reason to keep a non-smp kernel installed on a smp FC3 machine? jim-j Fedora 2 03-12-2006 07:06 AM
compiling SMP kernel WMD Slackware 8 08-08-2004 09:34 AM
Compiling SMP Kernel outlawpsd Slackware 4 10-31-2003 09:09 AM

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

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