LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 06-17-2006, 12:13 PM   #1
q6z4k
LQ Newbie
 
Registered: Oct 2005
Distribution: Slackware 10.1
Posts: 9

Rep: Reputation: 0
Problems compiling kernel, after compilation modprobe errors!


Hi!
I'm running Slackware 10.2. I used kernel 2.6.13. I have a Acer - Aspire 5004WLMi laptop, that uses Smart Batery, so I wanted to pach the kernel and add Smart Battery support. First I runned: make menuconfig and select option "Kernel for small systems", then I make bzImage and then make install. I forgot to compile modules!! Then after I rebooted, I got lot of modprobe errors, but I can't boot into Slackware anymore now, because LILO hangs on:
Code:
LOADING SLACKWARE .........
But when I logged in I recompiled the kernel again with loadable module support and all the modules:
Code:
make modules
make modules_install
I really need to get my Slackware running again, but it looks like it doesn't load any modules..

I have Mandrive 2006.0 Free dualboot. I downloaded 2 kernels from kernel.org: 2.6.0 and 2.4.23. But when I try to compile 2.4.23 on Mandrake, I got:
Code:
...processor.h:75: error: array type has incomplete element type
....
smp.h:29: error: previus decleration of 'smp_send_reschedule' was here.. 
unistd.h:375: warning: conflicting types for built-in function '_exit'
make: *** [init/main.o] Error 1
There ware a fiew more errors..
When I try to make menuconfig for 2.6.0, I got:
Code:
make[1]: `scripts/fixdep` is up to date.
   HOSTCC `scripts/kconfig/mconf.o
script/kconfig/mconfig/lkc.h:91: error: previous declaration of 'current_menu' fallows non-static declaration
script/kconfig/mconfig/lkc.h:63: error: previous declaration of 'current_menu' was here
make[1]: *** [scripts/kconfig/mconf.o] Error 1
make: *** [menuconfig] Error 2
Where did I go wrong? I really need to get Slackware back running!! Thank you!!
 
Old 06-18-2006, 04:31 AM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 376Reputation: 376Reputation: 376Reputation: 376
why 2.4.23 and 2.6.0?? those are so old!

for 2.4.x i would recommend 2.4.33-rc1 (the latest prepatch at the time of this post) and for 2.6.x i would recommend 2.6.16.20...

your best bet is to copy an official slackware kernel to your /boot and rerun lilo... then you can boot into your slackware box to recompile your kernel from there...

about the "kernel for small systems" option: i've never used that, but it sounds like it might be for embedded systems... if that's the case, then you probably don't want that...
 
Old 06-18-2006, 06:04 AM   #3
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
To compile 2.6.x kernels, you just type make && make modules_install. You should read the documentation before compiling.

I do not recommend patching unless you know the kernel version that it patches.

For notebook computers, I suggest at least kernel version 2.6.14 or the latest stable kernel.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 errors! Please help! luiso_campeon Linux - Software 3 04-25-2005 11:49 AM
kernel compilation errors vinmoh Linux - General 6 04-14-2005 11:14 AM
kernel compilation errors vishamr2000 Red Hat 3 04-09-2005 11:33 PM
Major compilation errors in emacs while compiling c code dualcyclone Linux - Software 0 03-26-2004 02:31 PM
kernel compilation errors spork545 Red Hat 4 10-15-2003 09:03 PM


All times are GMT -5. The time now is 08:44 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration