LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 02-17-2007, 01:58 AM   #31
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,385

Original Poster
Rep: Reputation: 52

Hi syvy,


I'm now prepared to recompile the kernel according to your advice. Before start I went through your advice again avoiding making mistake and resulting in the OS not working. I have done kernel recompilation several times previously but not frequently. Last time was about 1 year ago.

Steps performed as follows;

# cd /usr/src/linux-2.6.18/
# cp /boot/config-generic-2.6.18 .config
# # ls -al
Code:
total 800
drwxr-xr-x 19 root root   4096 2006-10-13 23:38 .
drwxr-xr-x  4 root root   4096 2007-02-13 00:57 ..
-rw-r--r--  1 root root  58674 2007-02-17 15:13 .config
-rw-r--r--  1 root root  65460 2006-10-13 22:35 .config.old
-rw-r--r--  1 root root    542 2006-09-20 11:42 .gitignore
-rw-r--r--  1 root root  18693 2006-09-20 11:42 COPYING
-rw-r--r--  1 root root  89517 2006-09-20 11:42 CREDITS
drwxr-xr-x 58 root root   4096 2006-09-20 11:42 Documentation
-rw-r--r--  1 root root   1273 2006-09-20 11:42 Kbuild
-rw-r--r--  1 root root  72925 2006-09-20 11:42 MAINTAINERS
-rw-r--r--  1 root root  47674 2006-09-20 11:42 Makefile
-rw-r--r--  1 root root 326301 2006-10-13 23:05 Module.symvers
-rw-r--r--  1 root root  16538 2006-09-20 11:42 README
-rw-r--r--  1 root root   3065 2006-09-20 11:42 REPORTING-BUGS
drwxr-xr-x 26 root root   4096 2006-09-20 11:42 arch
drwxr-xr-x  2 root root   4096 2006-10-13 23:37 block
drwxr-xr-x  2 root root   4096 2006-10-13 23:37 crypto
drwxr-xr-x 61 root root   4096 2006-10-13 23:38 drivers
drwxr-xr-x 58 root root   4096 2006-10-13 23:38 fs
drwxr-xr-x 41 root root   4096 2007-02-13 00:57 include
drwxr-xr-x  2 root root   4096 2006-10-13 23:38 init
drwxr-xr-x  2 root root   4096 2006-10-13 23:38 ipc
drwxr-xr-x  5 root root   4096 2006-10-13 23:38 kernel
drwxr-xr-x  5 root root   4096 2006-10-13 23:38 lib
drwxr-xr-x  2 root root   4096 2006-10-13 23:38 mm
drwxr-xr-x 36 root root   4096 2006-10-13 23:38 net
drwxr-xr-x  9 root root   4096 2006-10-13 23:38 scripts
drwxr-xr-x  4 root root   4096 2006-10-13 23:38 security
drwxr-xr-x 17 root root   4096 2006-10-13 23:38 sound
drwxr-xr-x  2 root root   4096 2006-10-13 23:38 usr
There is a .config.old file. Would it be there already? OR on copying ./config the old ".config" was renamed as ".config.old" automatically. There was no warning "a file of the same name ".config" already [Replace][Exit]".

Quote:
I have installed the kernel modules for 2.6.16.29 already, so I edited the .config-file under "general options" like this:
Code:
CONFIG_LOCALVERSION="-smp"
Here I got a little bid confused.

# cat /usr/src/linux-2.6.18/.config | grep CONFIG_LOCALVERSION
Code:
CONFIG_LOCALVERSION=""
# CONFIG_LOCALVERSION_AUTO is not set
not yet set as;
CONFIG_LOCALVERSION="-smp" (Is there a minus sign "-" before smp?)

I have to set this option while running "make menuconfig". Pls advise. TIA

Quote:
Type make oldconfig. If there come questions, answer them carefully. After that type make menuconfig and configure your
processor type, smp-support and other things depending on your hardware. Do this carefully and you should have read the kernel-build-howto at this point.
Why it is necessary to run "make oldconfig" followed by "make menuconfig"? Not straight to "make menuconfig"? Tks.

Quote:
Before you copy everything to /boot it's a good idea to save the existing kernel to have a fallback if something goes wrong. Look in /boot: if there are vmlinuz-generic-2.6.16.29, System.map-generic-2.6.16.29, config-generic-2.6.16.29 and symlinks to them (vmlinuz, System.map, config), delete the symlinks. If there are only vmlinuz, System.map, config rename them by appending -generic-2.6.16.29 to each name.
Would it be possible to maintain 2 kernels on LILO for selecting at boot? On GRUB it is possible.

If it is possible please shed me some light how to make it? Providing a new name to new-vmlinuz, new-system.map, etc.

The lilo config on this box is as follow;
$ cat /etc/lilo.conf
Code:
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
boot = /dev/sda
message = /boot/boot_message.txt
compact
prompt
timeout = 1200
# Override dangerous defaults that rewrite the partition table:
change-rules
  reset
vga=791

# End LILO global section
# Linux bootable partition config begins
image = /boot/vmlinuz
  root = /dev/sda2
  label = Linux
  read-only
# Linux bootable partition config ends
Quote:
Now just type lilo, pray and reboot. If you see two penguins at the boot screen, you're not drunk. Each penguin stands for one CPU.
Whether you meant after finish before reboot just type
# lilo

NOT

# lilo -C /etc/lilo.conf

Tks.


B.R.
satimis
 
Old 02-19-2007, 04:23 PM   #32
sse007
Member
 
Registered: Nov 2005
Posts: 39

Rep: Reputation: 15
i think make menuconfig will copy .config to .config.old when u save changes after make menuconfig. If u never did that, could be .config and .config.old came with slamd64.

the problem i came across b4 was when i did make modules_install, it'll overwrite the old modules and when i tried to boot from the old kernel, it either not loading those modules or kernel panic. Not sure if i can specify a separate directory when doing make modules_install.

To reconfigure lilo, you can do it from pkgtool and then select setup and then select liloconfig. The problem u encountered before could be u were installing it in mbr, try installing it on root partition instead, u can tell where its going to install by looking for the boot line
boot = /dev/sda (mbr)
boot = /dev/sda2 (root partition)

Last edited by sse007; 02-20-2007 at 12:01 AM.
 
Old 02-20-2007, 01:09 AM   #33
syvy
Member
 
Registered: Sep 2005
Location: Germany
Distribution: slackware64
Posts: 110

Rep: Reputation: 16
Hi satimis!

- A .config.old occours when you have a .config and do make oldconfig or make menuconfig, itīs a backup of your old .config without your changes. It isnīt shipped with the kernel source or with slamd64.

- It is a minus sign in "-smp" but that doesnīt matter. You can append what you want. You can use an editor or do it with make menuconfig. This is to prevent you from what sse007 happend: It installs your modules to /lib/modules/kernelversion-whateveryouappend instead of overwriting something in /lib/modules/kerneversion.

- Make oldconfig takes an existing .config as starting point and asks you just for differences (which of course come with a new kernel version).

- "lilo" does the same as "lilo -C /etc/lilo.conf"

- To maintain two kernels in lilo just look how I did it, page 2 of this thread.

- I didnīt know that Fred uploaded procompiled smp-kernels again. Why donīt you use it?
 
Old 02-20-2007, 06:22 AM   #34
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,385

Original Poster
Rep: Reputation: 52
Hi syvy,

Tks for your advice.

Quote:
- I didnīt know that Fred uploaded procompiled smp-kernels again. Why donīt you use it?
I found Fred's testing kernel on;
http://ftp.scarlet.be/pub/slamd64/sl.../huge26_smp.s/

I have been looking around for the instruction using it without discovery.

my lilo.conf is as following;
$ cat /etc/lilo.conf
Code:
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
boot = /dev/sda
message = /boot/boot_message.txt
compact
prompt
timeout = 1200
# Override dangerous defaults that rewrite the partition table:
change-rules
  reset
# VESA framebuffer console @ 1024x768x256
vga = normal
image = /boot/vmlinuz
  root = /dev/sda2
  label = Linux
  read-only
# Linux bootable partition config ends
I expect retaining the old kernel in case of problem of the new kernel I still have a working kernel.

Any advice. TIA


B.R.
satimis
 
Old 02-20-2007, 11:48 AM   #35
sse007
Member
 
Registered: Nov 2005
Posts: 39

Rep: Reputation: 15
Thumbs up

I just tested out the huge26_smp.s and it worked pretty good, no need to recompile and it detected both core rite away. Just downloaded the whole folder and then cd to that directory, installed it with pkgtool.
It'll create the necessary directory and put the bzimage, system.map and config files in the /boot directory. All u need to do is to reconfigure lilo and u can boot between 2.6.16 and 2.6.20. The only issue is when i tried to compile ndiswrapper, it complained about not finding the kernel build info and not compiling at all. To fix that, download the kernel tarball, put it in /usr/src and then do make modules, viola i can compile ndiswrapper.
 
Old 02-20-2007, 12:57 PM   #36
syvy
Member
 
Registered: Sep 2005
Location: Germany
Distribution: slackware64
Posts: 110

Rep: Reputation: 16
Hi satimis, hi sse007!

I like discoveries! Without I would't have learned so much (oh, I don't know REALLY much ) about Linux and especially Slackware.
sse007 gave a good advice to install huge26_smp.s. Thank you sse007. If there were a ready to use smp-kernel for slamd available as I installed it, I wouldn't have compiled my own.

I have a question to sse007: Is sound working with huge26_smp.s? (If so, I could leave out another discovery, cause I'm lazy sometimes )

And a question to both of you: What do you think? I compared the speed of 32bit Slackware to Slamd64 on the same machine and noticed a difference in starting up programs. KDE and firefox for example starts much faster on Slamd. But it doesn't boot notable faster and jobs like compressing huge amounts of data take about the same time. Where do you see the advantages of Slamd64?
 
Old 02-20-2007, 05:26 PM   #37
sse007
Member
 
Registered: Nov 2005
Posts: 39

Rep: Reputation: 15
sound finally work for me but i dont know whether switching to 2.16.20 fix it or after i mopping around with the modprobe fix it.

I dont do development stuff like compiling so i dont notice big difference between slack and slamd. Just use it because get a dual core turion 64. Maybe i can time the difference in compiling kernel between the two.
 
Old 02-20-2007, 08:39 PM   #38
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,385

Original Poster
Rep: Reputation: 52
Hi sse007 and syvy,

Tks for your advice.

Avoiding making mistake I'm prepared to perform following steps.

Download following packages to /home/satimis/Desktop
Code:
System.map.gz  
bzImage 
config.gz
kernel-generic-2.6.20_smp-x86_64-1.tgz
kernel-generic-2.6.20_smp-x86_64-1.txt 
kernel-modules-2.6.20_smp-x86_64-1.tgz
kernel-modules-2.6.20_smp-x86_64-1.txt
decompress following packages;
Code:
System.map.gz  
config.gz
kernel-generic-2.6.20_smp-x86_64-1.tgz
kernel-modules-2.6.20_smp-x86_64-1.tgz
to /boot/smp-kernel (a new directory created)


Remark:
I'll run tar command to decompress them. It allows me to dump the decompressed files to selected directory (change directory). I'm not familiar with pkgtool command. Can I manage directing the decompressed files to selected directories? If, YES, pls advise HOW? Or pkgtool selects the directory itself beyond my control)


Edit lilo.conf as follow;
Code:
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
Title
boot = /dev/sda
message = /boot/boot_message.txt
compact
prompt
timeout = 1200
# Override dangerous defaults that rewrite the partition table:
change-rules
  reset
vga = normal
image = /boot/vmlinuz
  root = /dev/sda2
  label = Linux
  read-only

Title
boot = /dev/sda
message = /boot/smp-kernel/boot_message.txt
compact
prompt
timeout = 1200
# Override dangerous defaults that rewrite the partition table:
change-rules
  reset
vga = normal
image = /boot/smp-kernel/vmlinuz
  root = /dev/sda2
  label = Linux
  read-only
# Linux bootable partition config ends
If I'm wrong pls advise me. Tks.


To syvy,
Code:
If you are working on 64bit PC better run 64bit
packages, if available, taking their advantage on
compilation, better speed.  The problem is some 
drivers may not be available.

I'm also testing a FreeBSD-6.2-amd64 box.  Driver 
for the onboard NIC not working.  I'm still struggling.

On this slamd64-11.0 box I have problem on video card
driver.  I have to download a driver on nVidia website.
Another problem was after running "slackpkg
update/upgrade" I have to reinstall the driver and 
reconfig xorg.conf as well.

B.R.
satimis

Last edited by satimis; 02-20-2007 at 08:42 PM.
 
Old 02-20-2007, 10:35 PM   #39
sse007
Member
 
Registered: Nov 2005
Posts: 39

Rep: Reputation: 15
u only need to download these files :

kernel-generic-2.6.20_smp-x86_64-1.tgz
kernel-generic-2.6.20_smp-x86_64-1.tgz.asc
kernel-generic-2.6.20_smp-x86_64-1.txt
kernel-modules-2.6.20_smp-x86_64-1.tgz
kernel-modules-2.6.20_smp-x86_64-1.tgz.asc
kernel-modules-2.6.20_smp-x86_64-1.txt

cd to /home/satimis/Desktop and do pkgtool, the 1st item is install packages from current directory and it will extract System.map-generic-2.6.20, config-generic-2.6.20 and vmlinuz-generic-2.6.20 to /boot and also the generic and modules files to the corresponding location. Then download the kernel tarball linux-2.6.20.tar.bz2 from kernel.org and extract it to /usr/src. Add this to the end of ur lilo.conf

image = /boot/vmlinuz-generic-2.6.20
root = /dev/sda2
label = linux-2.6.20
read-only

then run lilo to install it and u should have both options after restart.
 
Old 02-21-2007, 04:31 AM   #40
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,385

Original Poster
Rep: Reputation: 52
Hi sse007,

Tks for your advice. I'm now running a LiveCD communicating with this forum.

After reboot failed to start X, nVidia driver gone and xorg.conf changed automatically for unknown reason. I can't boot the old kernel althought there were 2 kernels (Linux and Linux-2.6.20) on the boot loader. Booting either of them on running "uname -a" displayed "Linux host 2.6.20......".

I performed following steps to install smp-kernel.

Download linux-2.6.20.tar.bz2 on /home/satimis/Desktop

Download following packages on /home/satimis/Desktop/smp-kernel
Code:
kernel-generic-2.6.20_smp-x86_64-1.tgz
kernel-generic-2.6.20_smp-x86_64-1.tgz.asc
kernel-generic-2.6.20_smp-x86_64-1.txt
kernel-modules-2.6.20_smp-x86_64-1.tgz.asc
kernel-modules-2.6.20_smp-x86_64-1.tgz.part
kernel-modules-2.6.20_smp-x86_64-1.txt

bash-3.1# cd Desktop/smp_kernel/

bash-3.1# installpkg kernel-generic-2.6.20_smp-x86_64-1.tgz
Code:
Installing package kernel-generic-2.6.20_smp-x86_64-1... 
PACKAGE DESCRIPTION:
kernel-generic: kernel-generic (a general purpose Linux kernel)
kernel-generic:
kernel-generic: This is a Linux kernel with built-in support for most IDE contro
llers
kernel-generic: and the ext2 filesystem.  If you need more advanced filesystems,
 or
kernel-generic: need to load support for a SCSI or other controller, then you'll
 need
kernel-generic: to load one or more kernel modules using an initial ramdisk, or
kernel-generic: initrd.  For more information about creating an initrd, see the
kernel-generic: README.initrd file in the /boot directory.
kernel-generic:
Executing install script for kernel-generic-2.6.20_smp-x86_64-1...
bash-3.1# installpkg kernel-modules-2.6.20_smp-x86_64-1.tgz
Code:
Installing package kernel-modules-2.6.20_smp-x86_64-1... 
PACKAGE DESCRIPTION:
kernel-modules: kernel-modules (Linux kernel modules)
kernel-modules:
kernel-modules: A kernel module is a piece of object code that can be dynamicall
y
kernel-modules: loaded into the Linux kernel to provide new kernel functions.  M
ost of
kernel-modules: these modules provide support for devices such as CD-ROM drives,
 tape
kernel-modules: drives, and ethernet cards.  You can choose which modules to loa
d by
kernel-modules: editing /etc/rc.d/rc.modules.
kernel-modules:
Executing install script for kernel-modules-2.6.20_smp-x86_64-1...
bash-3.1# cd ..
bash-3.1# tar jxf linux-2.6.20.tar.bz2 -C /usr/src
bash-3.1# ls /usr/src/ | grep linux
Code:
linux
linux-2.6.16.29
linux-2.6.20
Edited /etc/lilo.conf adding following lines
Code:
image = /boot/vmlinuz-generic-2.6.20
root = /dev/sda2
label = linux-2.6.20
read-only

bash-3.1# cat /etc/lilo.conf
Code:
 
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
boot = /dev/sda
message = /boot/boot_message.txt
compact
prompt
timeout = 1200
# Override dangerous defaults that rewrite the partition table:
change-rules
  reset

vga = normal

# Linux bootable partition config begins
image = /boot/vmlinuz
  root = /dev/sda2
  label = Linux
  read-only

image = /boot/vmlinuz-generic-2.6.20
root = /dev/sda2
label = linux-2.6.20
read-only

# Linux bootable partition config ends
bash-3.1# lilo
Code:
Added Linux *
Added linux-2.6.20
Rebooted slamd64-11.0


I think I can reinstall nvidia driver and fix xorg.conf problem. However I expect to find out what is the cause of the problem, unable to boot the old kernel. Tks


B.R.
satimis
 
Old 02-21-2007, 05:12 AM   #41
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,385

Original Poster
Rep: Reputation: 52
Hi sse007,

Further to my late posting I get the old kernel back with X started without problem.

Changes made as follows

On /etc/lilo.conf
changing:
image = /boot/vmlinuz
as
image = /boot/vmlinuz-generic-2.6.16.29

changing:
label = Linux
as
label = Linux-2.6.16.29

Ran;
# lilo

Ignoring the smylinks of "linux" and "vmlinuz" on following files:-

$ ls -al /usr/src
Code:
total 20
drwxr-xr-x  5 root root 4096 2007-02-21 17:53 ./
drwxr-xr-x 20 root root 4096 2007-01-28 22:09 ../
lrwxrwxrwx  1 root root   16 2007-02-20 22:18 linux -> linux-2.6.16.29//
drwxr-xr-x 19 root root 4096 2006-09-30 22:01 linux-2.6.16.29/
drwxr-xr-x 19 root root 4096 2007-02-05 02:44 linux-2.6.20/
drwxr-xr-x  7 root root 4096 2006-07-28 05:56 rpm/
$ ls -al /boot | grep vmlinuz
Code:
satimis@host:~$ ls -al /boot | grep vmlinuz
lrwxrwxrwx  1 root root      22 2007-02-21 17:35 vmlinuz -> vmlinuz-generic-2.6.                        20
-rw-r--r--  1 root root 3028097 2006-09-30 21:48 vmlinuz-generic-2.6.16.29
-rw-r--r--  1 root root 3115605 2007-02-10 18:46 vmlinuz-generic-2.6.20
Now I can boot either the old kernel OR smp-kernel ("uname -a" proving them). The remaining problem is X fails to start on smp-kernel. Would it be there are 2 xorg.conf?

I can manually adjust xorg.conf while running smp-kernel to make X booted first. Then reinstall nVidia driver and re-edit xorg.conf. In doing so can I run X on booting the old kernel. It looks quite funny to me.


B.R.
satimis

Last edited by satimis; 02-21-2007 at 08:29 AM.
 
Old 02-21-2007, 11:54 AM   #42
sse007
Member
 
Registered: Nov 2005
Posts: 39

Rep: Reputation: 15
Unhappy

if ur using the driver downloaded from nvidia, then u have to install it for 2.6.20 i think. On my other system which has a nvidia card, i need to install it again when i switched between different kernel, maybe someone can show me if there is a way to set it up for different kernel. Tried reinstall the driver cuz u should have a separate modules directory now for both kernel, i only have one modules directory on that system.

Last edited by sse007; 02-21-2007 at 11:57 AM.
 
Old 02-21-2007, 07:31 PM   #43
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,385

Original Poster
Rep: Reputation: 52
Quote:
Originally Posted by sse007
if ur using the driver downloaded from nvidia, then u have to install it for 2.6.20 i think. On my other system which has a nvidia card, i need to install it again when i switched between different kernel, maybe someone can show me if there is a way to set it up for different kernel. Tried reinstall the driver cuz u should have a separate modules directory now for both kernel, i only have one modules directory on that system.
Hi sse007,

I don't know what has been happened to Kernel-2.6.20. Before I have a chance to re-install nVidia driver, now it even fails to boot with warning "invalid compressed format (err=2) system halted"

The old kernel still can be booted and is working find.

Any advice. Tks.


B.R.
satimis
 
Old 02-21-2007, 07:48 PM   #44
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,385

Original Poster
Rep: Reputation: 52
Hi syvy,

Re my posting #38

Quote:
If you are working on 64bit PC better run 64bit
packages, if available, taking their advantage on
compilation, better speed. The problem is some
drivers may not be available.

I'm also testing a FreeBSD-6.2-amd64 box. Driver
for the onboard NIC not working. I'm still struggling.

On this slamd64-11.0 box I have problem on video card
driver. I have to download a driver on nVidia website.
Another problem was after running "slackpkg
update/upgrade" I have to reinstall the driver and
reconfig xorg.conf as well.
Don't let my above comment mislead you which only refers to slamd64-11.0 and FreeBSD-6.2-amd64.

I have been testing Ubuntu-6.06-LAMP-server-amd64, Gentoo-64 and FedoraCore6-64. Non of them have such funny problem nor nVidia driver problem. The FC6-64 and Gentoo-64 are still working strong. 64bit Linux is the direction for you to move.

After testing smp-kernel I'll erase slamd64-11.0 and test CentOS 4
http://centos.org/


B.R.
satimis
 
Old 02-21-2007, 08:55 PM   #45
sse007
Member
 
Registered: Nov 2005
Posts: 39

Rep: Reputation: 15
can you post ur lilo.conf file and the result of "ls -l /boot"
 
  


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
SUSE USB installation boot up fails dep. on IDE or SATA oozie Linux - Kernel 0 10-23-2006 05:00 PM
Slamd64 RC4 won't boot? cheater1034 Slackware - Installation 7 03-02-2006 10:24 PM
Mandrake 10.0 Community installation - boot floppy fails at reckognizing SCSI CDROM nixguide Mandriva 5 06-03-2004 11:38 AM
Installation success, boot load fails nimonm Linux - Newbie 2 01-12-2004 09:43 PM
RH9 installation fails on boot JezzerP Linux - Distributions 1 07-06-2003 06:20 AM


All times are GMT -5. The time now is 06:44 AM.

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 Google+: linuxquestions
Open Source Consulting | Domain Registration