LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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, 01:51 AM   #1
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,276

Rep: Reputation: 49
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, 10:44 PM   #2
Ztcoracat
Senior Member
 
Registered: Dec 2011
Distribution: Slackware, Mint & CentOS
Posts: 3,413
Blog Entries: 1

Rep: Reputation: Disabled
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, 04:11 AM   #3
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,276

Original Poster
Rep: Reputation: 49
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, 12:32 PM   #4
Ztcoracat
Senior Member
 
Registered: Dec 2011
Distribution: Slackware, Mint & CentOS
Posts: 3,413
Blog Entries: 1

Rep: Reputation: Disabled
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, 01:22 PM   #5
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,276

Original Poster
Rep: Reputation: 49
The second link is very interesting reading. I love lilo. What's the need of grub?
 
Old 08-02-2014, 01:40 PM   #6
Ztcoracat
Senior Member
 
Registered: Dec 2011
Distribution: Slackware, Mint & CentOS
Posts: 3,413
Blog Entries: 1

Rep: Reputation: Disabled
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, 03:37 PM   #7
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,276

Original Poster
Rep: Reputation: 49
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, 08:56 PM   #8
Ztcoracat
Senior Member
 
Registered: Dec 2011
Distribution: Slackware, Mint & CentOS
Posts: 3,413
Blog Entries: 1

Rep: Reputation: Disabled
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, 04:14 PM   #9
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,276

Original Poster
Rep: Reputation: 49
Thank you Ztcoracat. The information you have provided me is very useful.
 
Old 08-08-2014, 11:16 AM   #10
Ztcoracat
Senior Member
 
Registered: Dec 2011
Distribution: Slackware, Mint & CentOS
Posts: 3,413
Blog Entries: 1

Rep: Reputation: Disabled
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, 12:30 PM   #11
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad T61 6457-4XG
Posts: 4,661

Rep: Reputation: 1236Reputation: 1236Reputation: 1236Reputation: 1236Reputation: 1236Reputation: 1236Reputation: 1236Reputation: 1236Reputation: 1236
[wrong post]

Last edited by Didier Spaier; 08-08-2014 at 12:32 PM.
 
Old 08-08-2014, 12:31 PM   #12
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad T61 6457-4XG
Posts: 4,661

Rep: Reputation: 1236Reputation: 1236Reputation: 1236Reputation: 1236Reputation: 1236Reputation: 1236Reputation: 1236Reputation: 1236Reputation: 1236
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, 10:47 PM   #13
Ztcoracat
Senior Member
 
Registered: Dec 2011
Distribution: Slackware, Mint & CentOS
Posts: 3,413
Blog Entries: 1

Rep: Reputation: Disabled
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 09:39 AM
Unable to build kernel RPM with 'custom name'. (need not kernel but kernel-something) RattleSn@ke Linux - Kernel 1 01-12-2011 07: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 09:21 PM


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