LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxAnswers Discussion
User Name
Password
LinuxAnswers Discussion This forum is to discuss articles posted to LinuxAnswers.

Notices

Reply
 
LinkBack Search this Thread
Old 06-02-2005, 07:48 PM   #16
cheater1034
Member
 
Registered: Aug 2004
Location: Ohio
Distribution: Gentoo
Posts: 141

Rep: Reputation: 15

Awesome guide, exactly what I've been looking for, a good kernel-source compile guide for slackware.
 
Old 06-03-2005, 02:36 PM   #17
cheater1034
Member
 
Registered: Aug 2004
Location: Ohio
Distribution: Gentoo
Posts: 141

Rep: Reputation: 15
Also, you may want to include to take out a lot of stuff from the config that just bloats the kernel, and you don't even need it.

Such as, ISA, Firewire, etc, being a former gentoo user, who compiled a fresh kernel, had it very bare, but still worked, I'd say you can safely remove close to 75% of stuff in pat's kernel.

Also, you may want to make things built in to the kernel, <NOT alsa or any sound though>, I made my network card built in, and basically everything else, and now it all autoconfigures and autoloads, without rc-update or whatever you have to do to autoload modules.
 
Old 06-10-2005, 11:46 PM   #18
MikeZila
Member
 
Registered: Jul 2004
Location: /home/mikezila
Distribution: Slackware
Posts: 377

Rep: Reputation: 30
Your guide saved me hours of fumbling. Thank you, thank you, thank you kind soul for taking the time to write this out. It is very much appreciated.

I have a suggestion. Perhaps it is best to copy the config file from the kernel source directory instead of move it. Some programs (the ndiswrapper, I found out the hard way) rely on seeing your kernel config (named .config) in your kernel source directory. ndiswrapper could not compile until I made a copy of it from my /boot and named it .config. I ask you at least at a note about this to help people who aren't knowlegable enough to figure this out.

Thank you again.

Last edited by MikeZila; 06-10-2005 at 11:47 PM.
 
Old 06-17-2005, 06:33 AM   #19
acidjuice
Member
 
Registered: Jan 2005
Location: a tiny spot on the iceberg
Distribution: Slackware 10.1 (dropline 2.10, kernel 2.6.11.6)
Posts: 320

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by MikeZila
Your guide saved me hours of fumbling. Thank you, thank you, thank you kind soul for taking the time to write this out. It is very much appreciated.

I have a suggestion. Perhaps it is best to copy the config file from the kernel source directory instead of move it. Some programs (the ndiswrapper, I found out the hard way) rely on seeing your kernel config (named .config) in your kernel source directory. ndiswrapper could not compile until I made a copy of it from my /boot and named it .config. I ask you at least at a note about this to help people who aren't knowlegable enough to figure this out.

Thank you again.
absolutely right. and in fact, i have already corrected it, however i have no access to modify this guide.
 
Old 08-10-2005, 09:03 AM   #20
odx
LQ Newbie
 
Registered: Aug 2005
Posts: 1

Rep: Reputation: 0
moved_please ignore

Last edited by odx; 08-10-2005 at 01:58 PM.
 
Old 08-30-2005, 09:13 AM   #21
c.m.klaij
Member
 
Registered: Dec 2004
Location: netherlands
Distribution: suse, slackware, dsl, debian
Posts: 68

Rep: Reputation: 15
Hi,

Great guide! I successfully compiled a custom 2.6.10 kernel with it.

The only problem I encountered was the following:

/usr/src/linux# mv .config /boot/config-2.6.10

When I tried to install the Nvidia driver later on, I found that the installer needs the .config file in /usr/src/linux. If it's not there the installer exits, saying the module could not be build.
 
Old 09-04-2005, 03:06 PM   #22
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 8,993

Rep: Reputation: 2356Reputation: 2356Reputation: 2356Reputation: 2356Reputation: 2356Reputation: 2356Reputation: 2356Reputation: 2356Reputation: 2356Reputation: 2356Reputation: 2356
Just wanted to note that the LinuxAnswer has been updated to the latest revision at the request of acidjuice. Thanks acidjuice.

--jeremy
 
Old 09-12-2005, 12:09 PM   #23
acidjuice
Member
 
Registered: Jan 2005
Location: a tiny spot on the iceberg
Distribution: Slackware 10.1 (dropline 2.10, kernel 2.6.11.6)
Posts: 320

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by c.m.klaij
Hi,

Great guide! I successfully compiled a custom 2.6.10 kernel with it.

The only problem I encountered was the following:

/usr/src/linux# mv .config /boot/config-2.6.10

When I tried to install the Nvidia driver later on, I found that the installer needs the .config file in /usr/src/linux. If it's not there the installer exits, saying the module could not be build.
as per similar post here below, you should CP and not MV this file. please refer to the original article which is now fully updated.
 
Old 09-12-2005, 12:10 PM   #24
acidjuice
Member
 
Registered: Jan 2005
Location: a tiny spot on the iceberg
Distribution: Slackware 10.1 (dropline 2.10, kernel 2.6.11.6)
Posts: 320

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by jeremy
Just wanted to note that the LinuxAnswer has been updated to the latest revision at the request of acidjuice. Thanks acidjuice.

--jeremy
thank you
 
Old 11-19-2005, 11:47 AM   #25
Dngrsone
Member
 
Registered: Nov 2005
Location: Centrally located far from everywhere
Distribution: Ubuntu, Smoothwall
Posts: 30

Rep: Reputation: 15
Forgive me for ressurrecting such an old thread... I tried compiling 2.6.14 on Slack 10.2 using your guide but I have a problem getting network connectivity-- I can ssh into the default 2.4.x kernel, but the 2.6.14 kernel won't go out to the DHCP server for an inet address. I do not understand what I could possibly be doing wrong.

 
Old 03-23-2006, 12:21 PM   #26
Bacter
LQ Newbie
 
Registered: Mar 2006
Posts: 2

Rep: Reputation: 0
Unable to mount root fs

I was compiled and installed Linux-2.6.15.6 kernel step by step using your article titled: Compiling kernel 2.6.10 on a Slackware 10.1. But after rebooting an error occur:

Cannot open root device "815" or unknown block (8,21)
Kernel panic – not syncing:
VFS: Unable to mount root fs on unknown block (8, 21)

LILO start loading kernel and last steps of loading process are:

SCSI device sda: 253952 512 byte hdwr sectors (130 mb)
Sda assuming drive cache: write throw
Sda: sda1
0:0:0:0: attached SCSI removable disk sda
0:0:0:0: attached SCSI generic sg0 type 0
Initializing IPsec netlink socket
NET: Registered protocol family 1
NET: Registered protocol family 17
NET: Registered protocol family 15
Using IPI Shortcut mode
Cannot open root device "815" or unknown block (8, 21)
Kernel panic – not syncing:
VFS: Unable to mount root fs on unknown block (8, 21)

I have compiled all file systems directly into core. I’m using ReiserFS on my disks. As I have SATA disks, I have chosen all necessary options while configuring kernel:

Device drivers->SCSI device support
'SCSI disk' and 'SCSI generic' selected <*>
Under SCSI Low Level Drivers I have selected necessary drivers not loaded in modules. All other steps I have done as written in your article.

What could be wrong?
 
Old 03-23-2006, 11:09 PM   #27
masand
Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 56
Have u selected ext2 fs support to be built in your kernel,not as modules.?
 
Old 03-24-2006, 03:54 PM   #28
Bacter
LQ Newbie
 
Registered: Mar 2006
Posts: 2

Rep: Reputation: 0
Yes I have selected ext2 support to be built in my kernel... All in all I have solved my problem. The problem was that SATA driver’s conflict cause kernel panic. When I disabled all SATA drivers in other sections, except SCSI section, problem was solved.
 
Old 10-24-2006, 04:10 AM   #29
petko3000
LQ Newbie
 
Registered: Oct 2006
Posts: 1

Rep: Reputation: 0
problem with loading modules

Hi,

i try use your howto to step-by-step upgrade from 2.4.30 (default Slackware 10.2) to kernel 2.6.14.

but, when i try run
Quote:
generate-modprobe.conf /etc/modprobe.conf
it return a error:
Quote:
modprobe: QM_MODULES: Function not implemented

Warning: not translating path[toplevel]=/lib/modules/2.6
and /etc/modprobe.conf has been generated, but modprobe can`t load modules... for example command modprobe ah4 returns error:
Quote:
FATAL: Error inserting ah4 (/lib/modules/2.6.14/kernel/net/ipv4/ah4.ko): Unknown symbol in module, or unknown parameter (see dmesg)
and in dmesg is:
Quote:
ah4: Unknown symbol xfrm_state_lookup
ah4: Unknown symbol xfrm4_rcv
ah4: Unknown symbol __xfrm_state_destroy
ah4: Unknown symbol crypto_alloc_tfm
ah4: Unknown symbol xfrm_register_type
ah4: Unknown symbol xfrm_aalg_get_byname
ah4: Unknown symbol crypto_hmac_init
ah4: Unknown symbol crypto_free_tfm
ah4: Unknown symbol crypto_hmac_update
ah4: Unknown symbol skb_icv_walk
ah4: Unknown symbol crypto_hmac_final
ah4: Unknown symbol xfrm_unregister_type
i don`t know where problem is... i try upgrade to last module-init-tools from slackware packages (module-init-tools-3.2.2-i486-2.tgz)
and also i check if i compile "loadable modules support" to my new kernel, and it is there:
part of .config (module):
Quote:
#
# Loadable module support
#
CONFIG_MODULES=y
CONFIG_MODULE_UNLOAD=y
# CONFIG_MODULE_FORCE_UNLOAD is not set
CONFIG_OBSOLETE_MODPARM=y
# CONFIG_MODVERSIONS is not set
# CONFIG_MODULE_SRCVERSION_ALL is not set
CONFIG_KMOD=y
CONFIG_STOP_MACHINE=y
pls can u help me resolve my problem? thank u a lot!

Last edited by petko3000; 10-24-2006 at 04:17 AM.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DISCUSSION: Slackware - Easy 2.6 kernel from Install disc #2 halo14 LinuxAnswers Discussion 8 06-22-2007 03:14 PM
DISCUSSION: nForce2 hardware to work in Slackware with kernel 2.4.22 TCPMeta2k1 LinuxAnswers Discussion 1 03-12-2007 04:19 AM
Slackware 10 error compiling kernel 2.6.7 nirvanix Slackware 3 05-30-2006 12:52 AM
Compiling new kernel with Slackware 10 madhatter2 Linux - Newbie 2 07-29-2004 05:08 PM
Compiling kernel 2.6.4 on Slackware 9.1 ProtoformX Linux - General 1 03-13-2004 11:41 AM


All times are GMT -5. The time now is 04:21 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration