LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   If I do recompile do I have to copy System.map? (https://www.linuxquestions.org/questions/slackware-14/if-i-do-recompile-do-i-have-to-copy-system-map-51069/)

purpleburple 03-21-2003 05:19 PM

If I do recompile do I have to copy System.map?
 
Hello. Messed up compiling so I reinstalled slack 8.1 fully. Now I have everything like new and want to recompile and just add support for video 4 lin and bttv. Please tell me if these steps are correct so I don't mess things up again >

I am going to cd to /usr/src/linux and type >
'make menuconfig'
I'll then add the options video 4 lin and bttv,etc.
then save and type>
make dep
make clean
make bzImage

rm -rf the modules in /lib/modules/2.4.18
make modules
make modules_install

Do i have to do 'depmod -a'? or does Slack do this on start-up?


then i will cp /usr/src/linux/bzImage /boot/vmlinuz-2.4.18.New
Do I have to copy System.map?
cp /usr/src/linux/System.map /boot/System.map-2.4.18.New?

Of course then update lilo.conf
and run lilo

Are these steps ok?

thanks :)

purpleburple 03-21-2003 08:39 PM

ok ... looked on google and found out from a tutorial that I cp
System.map along with version on the end. Rebooted and successfully booted my new kernel! :)

Excalibur 03-21-2003 08:49 PM

The compiled bzImage will be located in the /usr/src/linux/arch/i386/boot directory.

I think you will find that the System.map in /boot is normally just a sym link. So after you copy it as you stated then;

ln -sf /boot/System.map-2.4.18.New /boot/System.map

I normally just copy the file overwritng the sym link. It depends if you want to maintain the old map files on every compile.

"depmod -a" is normally run from the /etc/rc.d/rc.modules script when required. But it doesn't hurt to run it manually. I do not know if modules_install does it.

And from what you described, there is no real need to delete the older modules. I think they will be overwritten.

purpleburple 03-21-2003 09:22 PM

thanks

:)


All times are GMT -5. The time now is 12:30 AM.