LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-22-2003, 11:46 AM   #1
tmoorman
Member
 
Registered: Aug 2003
Location: Ottawa, Ontario, Canada
Distribution: Kubuntu
Posts: 50

Rep: Reputation: 15
Custom Kernel and System.map


I have configured and compiled a custom kernel under Mandrake 9.1. I copied bzImage to /boot and changed lilo.conf to use it:

boot=/dev/hde
map=/boot/map
vga=normal
default="linux025"
keytable=/boot/us.klt
prompt
nowarn
timeout=100
message=/boot/message
menu-scheme=wb:bw:wb:bw
disk=/dev/hde bios=0x80
disk=/dev/hdg bios=0x81
image=/boot/bzImage
label="linux025"
root=/dev/hde2
append="devfs=mount hdc=ide-scsi acpi=off"
read-only
image=/boot/vmlinuz
label="linux013"
root=/dev/hde2
initrd=/boot/initrd.img
append="devfs=mount hdc=ide-scsi acpi=off"
read-only
image=/boot/vmlinuz
label="failsafe"
root=/dev/hde2
initrd=/boot/initrd.img
append="failsafe devfs=nomount hdc=ide-scsi acpi=off"
read-only

I then copied System.map from /usr/src/linux (linked to linux-2.4.21-0.25mdk) to /boot and renamed it to System.map-2.4.21-0.25mdkcustom. I deleted the old System.map symbolic link and replaced it with a System.map linked to the 0.25 map. When I reboot, the new system.map is gone and the System.map link is pointing to the 0.13 map. I am doing all of this from within Kde.
What is going on? How do I use the 0.25 System.map?
 
Old 10-22-2003, 11:20 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Jessie, Linux Mint 17
Posts: 7,793

Rep: Reputation: 292Reputation: 292Reputation: 292
After you make all of your changes to /etc/lilo.conf are you running the lilo command before you reboot?


___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
Old 10-23-2003, 09:00 AM   #3
tmoorman
Member
 
Registered: Aug 2003
Location: Ottawa, Ontario, Canada
Distribution: Kubuntu
Posts: 50

Original Poster
Rep: Reputation: 15
Yes, I am.
 
Old 10-23-2003, 03:54 PM   #4
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Jessie, Linux Mint 17
Posts: 7,793

Rep: Reputation: 292Reputation: 292Reputation: 292
I do not understand what is causing the error. You might try the following as a diagnostic step and see what happens:

Delete the symbolic link and leave the two system map files in place. Then switch between the two files by changing the map= parameter in lilo.conf. See if that works.

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
Old 10-23-2003, 04:29 PM   #5
tmoorman
Member
 
Registered: Aug 2003
Location: Ottawa, Ontario, Canada
Distribution: Kubuntu
Posts: 50

Original Poster
Rep: Reputation: 15
'man lilo-conf' says this about the map param:
map=<map-file>
Specifies the location of the map file. If `map' is omitted, the
file /boot/map is used.

On machines with a pre-1998 BIOS, the EDD bios extensions which
are required to support "lba32" disk sector addressing may not
be present. In this case, the boot-loader will fall back auto-
matically to "geometric" addressing; this fall back situation,
or the specific use of "geometric" or "linear" addressing, will
require the map file to be located within the first 1024 cylin-
ders of the disk drive. This BIOS limitation is not present on
post-1998 systems, most of which support the newer EDD disk BIOS
calls.
There is a /boot/map which has a timestamp the same as the last time I ran lilo.

'man lilo' says this about the '-q' parameter:
-q List the currently mapped files. lilo maintains a file, by
default /boot/map, containing the name and location of the ker-
nel(s) to boot. This option will list the names therein. Use
with -v for more detailed information about the installed boot
loader.
So, from the above it looks like changing the map parameter may make my system unbootable (?). Any other suggestions?
It is not as if I am having problems (eg. no odd behaviour or mysterious crashes, yet..). It is just that I think I am supposed to have System.map pointing to the correct file for the kernel.
 
Old 10-23-2003, 04:54 PM   #6
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Jessie, Linux Mint 17
Posts: 7,793

Rep: Reputation: 292Reputation: 292Reputation: 292
"So, from the above it looks like changing the map parameter may make my system unbootable (?). "

Every time I compile a kernel I run for a while with two kernels and two map files and I don't use symbolic links. Currently I am running with a single kernel and:
map=/boot/System.map-2.4.22

I have never had any problems with changing the lilo.conf from one map to the other so I do not think that your system will crash. However there is obviously something wrong with your system and I cannot guarentee that it will not crash if you play around with the map names.

You could safely experiment by creating boot floppies that reference the map directly without using a symbolic link.

http://tldp.org/HOWTO/LILO-8.html

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
Old 10-23-2003, 05:12 PM   #7
tmoorman
Member
 
Registered: Aug 2003
Location: Ottawa, Ontario, Canada
Distribution: Kubuntu
Posts: 50

Original Poster
Rep: Reputation: 15
I think your right, there is something wrong. I deleted the System.map link file and copied my custom System.map file to /boot/System.map-blah-blah and rebooted. I went to /boot and System.map-blah-blah was not there. Also, a new link file was not created. Anyway, I will try it with a boot floppy (should make one anyway).

Thanks for the help
 
  


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
Compilling a new kernel, System.map and modules mimithebrain Linux - General 2 10-22-2005 06:07 PM
Compile kernel: System.map? iaMMai Linux - Newbie 9 05-19-2005 09:05 AM
Kernel System.map Scorched Linux - Newbie 4 03-02-2004 06:48 PM
Custom kernel and System.map tmoorman Mandriva 1 10-22-2003 09:11 PM
Kernel images and System.map Dark_Helmet Linux - Newbie 4 02-03-2003 11:58 AM


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