Re: Cannot find map file
Wei Wang said:
> Since the recompile section of debian user manual never mentioned a word
> about System.map, I didn't think of it's role in booting system until I
> saw the above lines in man klogd.
haven't read this document myself but if you use the 'make-kpkg' command
to build your kernel and install the resulting kernel-image-*.deb file it
will install the System.map and stuff for you.
> I checked the /usr/src/linux folder and System.map is right sitting there.
> So why is it not found during booting up?
I think it only looks in /boot
>
> There is a /boot/System.map-2.4.18-bf2.4 file, which I assume is found
> when I boot the binary kernel from the CD installation. So how come this
> can be found and the /usr/src/linux/System.map can't be found during my
> 2.4.20 kernel boot?
different directories... /usr/src is not a good place to make the
system look for the .map file as /usr/src/linux stuff can change at
any time. stuff in /boot is less likely to change(or dissapear)
> Further if I have more than two kernels, how do I specify which System.map
> is for which booting image?
depends, if they are both 2.4.x kernels or 2.2.x kernels 1 system.map
file should be fine for both. I compiled kernels for many years by hand
and maybe once or twice over 3-4 years did I have to update the System.map
file. Though it has to be a filename the system knows to look for, generic
kernels look for /boot/System.map. I highly reccomend using make-kpkg to
build your kernels so you have a .deb file, which has the .map file as
well as the config-`uname -r` file so you know what options were used to
build the kernel if you end up like me and build new kenrels fairly often
depending on the configuration required.
> Is map=/boot/map the suspect? If so, how come my binary CD-installed
> 2.4.18 kernel can find it's System.map?
/boot/map is something else, I think it's a map of the boot sector
or something. not the same as the System.map
nate
Reply to: