LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices


Reply
  Search this Thread
Old 07-31-2014, 12:51 AM   #1
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Rep: Reputation: 76
Which kernel?


Hi: I have an old Dragon Linux distribution based on Slackware 7.1. This booted from an DOS/Windows O.S. I created a new partition, moved a file BZIMAGE to /boot and installpkg'd the packages. The system performs OK. However, it includes a package ide.tgz, with another kernel image: vmlinuz.
Code:
$ file BZIMAGE
Linux kernel boot executable bzImage, version 2.2.16 (root@bigkitty) #16 Fri, RO-rootFS, root_dev=0x303, Normal VGA
$file vmlinuz
Linux kernel boot executable bzImage, version 2.2.16 (root@bigkitty) #97 Fri, RW-rootFS, root_dev=0x303, Normal VGA
In fact there also is a scsi.tgz.

The thing is that the ide.tgz package not only includes vmlinuz but System.map and config. My question is: of these two kernels, which should I use and should I use an initrd? The machine has both IDE and SATA controllers, though at this time I only use IDE (PATA).
 
Old 08-01-2014, 09:44 PM   #2
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Hi:

I looked on the kernel archives website and I didn't find kernel 2.2.16-
The long term mentioned is the 2.6.32.63 version of the kernel.
https://www.kernel.org/

I found kernel 2.2 in this index dated 2005. This was before I knew Linux, sorry.
https://www.kernel.org/pub/linux/kernel/v2.2/

It's probably best to wait for a member with more experienced with the kernel-

http://en.wikipedia.org/wiki/Initrd
http://wiki.linuxquestions.org/wiki/Initrd
 
Old 08-02-2014, 03:11 AM   #3
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
I have a more important question I think: Why doesn't BZIMAGE need the System.map and config files? I know System.map is kind of a symbol table (wikipedia). About config I know nothing. Another question would be: how does lilo know what System.map and config files to use? In lilo.conf I only write the path for the kernel image, and the name of this file could be anything, as long as it matches the name given in lilo.conf.
 
Old 08-02-2014, 11:32 AM   #4
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
After reading this I wondered....
https://lists.debian.org/debian-isp/.../msg00052.html

Is the wrong map being seen or is it like the man said the syntax is wrong?
Maybe there is more than one map?

I'm looking here for possible answers.
Found that here: http://homepage.smc.edu/morgan_david...ilo-readme.txt

"A map file (/boot/map) containing the location of the kernel, and the lilo command (/sbin/lilo), which reads the configuration file and uses the information to create or update the map file and to install the files LILO needs."
http://docstore.mik.ua/orelly/linux/lnut/ch04_02.htm

Quote:
how does lilo know what System.map and config files to use?
I'm trying to find out-
 
Old 08-02-2014, 12:22 PM   #5
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
The second link is very interesting reading. I love lilo. What's the need of grub?
 
Old 08-02-2014, 12:40 PM   #6
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Evidently there is only one other map file. (/boot/map) (unless I misunderstand)

There is only one other map file that specifies an alternative map file.
The map installer program /sbin/lilo updates the boot sector and creates the mapfile.
A new map is created for the images described in the configuration file /etc/lilo.conf and registered in the boot sector.

/sbin/lilo with (-v) list's the currently mapped files. Notice it says "files" How many is what I'm having trouble finding out--
If the (-c) option is omitted than the /etc/lilo.conf is used.

The LILO map installer can be invoked in the following ways:
http://lilo.alioth.debian.org/olddoc...html#x1-320004

Quote:
What's the need of grub?
LOL!
 
Old 08-02-2014, 02:37 PM   #7
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
In the old days of MS-DOS the IO.SYS and MSDOS.SYS had to be the first files in the partition. That way, it was very easy to load them.
 
1 members found this post helpful.
Old 08-02-2014, 07:56 PM   #8
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Even after finding the info. on initrd and initramfs it's not exactly clear which you should use-
Perhaps this is about preference?

Both initrd and ramfs are zipped at compile time, but the difference is, initrd is a block device unpacked to be mounted by the kernel at booting, while ramfs is unpacked via cpio into memory-

http://stackoverflow.com/questions/1...-and-initramfs
 
Old 08-07-2014, 03:14 PM   #9
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Thank you Ztcoracat. The information you have provided me is very useful.
 
Old 08-08-2014, 10:16 AM   #10
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by stf92 View Post
Thank you Ztcoracat. The information you have provided me is very useful.
Your Welcome-

Always glad to help.

Have a good weekend stf92!
 
Old 08-08-2014, 11:30 AM   #11
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,055

Rep: Reputation: Disabled
[wrong post]

Last edited by Didier Spaier; 08-08-2014 at 11:32 AM.
 
Old 08-08-2014, 11:31 AM   #12
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,055

Rep: Reputation: Disabled
Quote:
Originally Posted by Ztcoracat View Post
Both initrd and ramfs are zipped at compile time, but the difference is, initrd is a block device unpacked to be mounted by the kernel at booting, while ramfs is unpacked via cpio into memory
Exactly. But what can confuse people is that files /syslinux/initrd.img in a Slackware media as well as /boot/initrd.gz output of /sbin/mkinitrd are actually initramfs, despite their names
 
1 members found this post helpful.
Old 08-08-2014, 09:47 PM   #13
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by Didier Spaier View Post
Exactly. But what can confuse people is that files /syslinux/initrd.img in a Slackware media as well as /boot/initrd.gz output of /sbin/mkinitrd are actually initramfs, despite their names
I can see where it could be a tad confusing:-
Thanks!
 
  


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 crash after running a stable kernel from kernel.org Saptarshi4031 Linux - Newbie 1 06-05-2013 08:39 AM
Unable to build kernel RPM with 'custom name'. (need not kernel but kernel-something) RattleSn@ke Linux - Kernel 1 01-12-2011 06:30 PM
LXer: Howto: build Linux kernel module against installed kernel w/o full kernel source tree LXer Syndicated Linux News 0 09-03-2006 08:21 PM

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

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