Re: System.map
On Wednesday 21 Nov 2001 03:37, Douglas J Hunley wrote: Mike Andrew babbled on about: obviously, uname -r is wrong, because that aint THE compiling kernel. There's some fudgery done during make modules_install where it 'knows' the current compiling version but I can't find the script and magic words as such to use. it's $VERSION.$PATCHLEVEL.$SUBLEVEL$EXTRAVERSION from /usr/src/linux/Makefile ;) I use this: #!/bin/sh #-- # File: /usr/local/bin/buildkernel # Author : Peter Ruskin # Created On : Monday 17 Sep 2001 #-- kernel=$(echo `pwd`|cut -dx -f2) make clean make distclean make mrproper make xconfig echo echo make dep clean... echo make dep clean || exit echo echo make bzImage... echo make bzImage || exit echo echo make modules... echo make modules || exit echo echo make modules_install... echo make modules_install || exit rm -f /boot/initrd$kernel.img /sbin/mkinitrd /boot/initrd$kernel.img $(echo $kernel|cut -d- -f2,3,4,5) \ || exit 1 cp -f arch/i386/boot/bzImage /boot/vmlinuz$kernel cp -f .config /boot/config$kernel cp -f System.map /boot/System.map$kernel echo echo Now you can edit /etc/lilo.conf then run /sbin/lilo. -- Peter Ruskin, Wrexham, Wales. Registered Linux User No. 219434 ( see http://counter.li.org/ ). Mandrake Linux release 8.1 (Vitamin) for i586 Kernel 2.4.8-26mdk-pnr-win4lin, XFree86 4.1.0, patch level 17mdk. KDE: 2.2.1. Qt: 2.3.1. Uptime 1 hour 24 minutes. -- ___ Linux-users mailing list Archives, Digests, etc at http://linux.nf/mailman/listinfo/linux-users
Re: System.map
On Thu, 22 Nov 2001 06:30, Peter Ruskin wrote: kernel=$(echo `pwd`|cut -dx -f2) cp -f System.map /boot/System.map$kernel BING! Thank u thank u thank u. -- http://linux.nf -- [EMAIL PROTECTED] _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com ___ Linux-users mailing list Archives, Digests, etc at http://linux.nf/mailman/listinfo/linux-users
Re: System.map
will make mrproper delete the map files? could be a problem if you forgot about the symlink,... I just learnt... I use the multiple map files, not the symlink. _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com ___ Linux-users mailing list Archives, Digests, etc at http://linux.nf/mailman/listinfo/linux-users
Re: System.map
Mike Andrew babbled on about: How would I automate the copying of the currently compiling System.map-version to /boot ? I tend to write scripts. perhaps 'make bzlilo' does it? I don't know. there's an awful lot of make targets in the kernel nowadays obviously, uname -r is wrong, because that aint THE compiling kernel. There's some fudgery done during make modules_install where it 'knows' the current compiling version but I can't find the script and magic words as such to use. true. but you got the point -- Douglas J Hunley (doug at hunley.homeip.net) - Linux User #174778 Admin: http://linux.nf Admin: http://hunley.homeip.net PROGRAM - n. A magic spell cast over a computer allowing it to turn one's input into error messages. v. tr.- To engage in a pastime similar to banging one's head against a wall, but with fewer opportunities for reward. ___ Linux-users mailing list Archives, Digests, etc at http://linux.nf/mailman/listinfo/linux-users
Re: System.map
Net Llama babbled on about: yes. this is how i've done it for quite some time without any problems. the multiple .map files or the symlink? if you use a symlink to /usr/src/linux/System.map... what happens when you load some kernel other than the one that corresponds to the source in /usr/src/linux. e.g. /usr/src/linux - /usr/src/linux-2.4.14 and /usr/src/l;inux-2.4.13 is there /boot has the .13 and .14 kernels. /boot/System.map is link to /usr/src/linux reboot, .14 panics... reboot, choose .13 from lilo menu.. you now have wrong map. what would happen? -- Douglas J Hunley (doug at hunley.homeip.net) - Linux User #174778 Admin: http://linux.nf Admin: http://hunley.homeip.net How do you feel about women's rights? I like either side of them. ___ Linux-users mailing list Archives, Digests, etc at http://linux.nf/mailman/listinfo/linux-users
Re: System.map
--- Douglas J Hunley [EMAIL PROTECTED] wrote: Net Llama babbled on about: yes. this is how i've done it for quite some time without any problems. the multiple .map files or the symlink? if you use a symlink to /usr/src/linux/System.map... what happens when you load some kernel other than the one that corresponds to the source in /usr/src/linux. e.g. /usr/src/linux - /usr/src/linux-2.4.14 and /usr/src/l;inux-2.4.13 is there /boot has the .13 and .14 kernels. /boot/System.map is link to /usr/src/linux reboot, .14 panics... reboot, choose .13 from lilo menu.. you now have wrong map. what would happen? I use the multiple map files, not the symlink. = Lonni J. Friedman [EMAIL PROTECTED] Linux Step-by-step help: http://netllama.ipfox.com . __ Do You Yahoo!? Find the one for you at Yahoo! Personals http://personals.yahoo.com ___ Linux-users mailing list Archives, Digests, etc at http://linux.nf/mailman/listinfo/linux-users
Re: System.map
--- Mike Andrew [EMAIL PROTECTED] wrote: On Sat, 17 Nov 2001 03:01, Douglas J Hunley wrote: copy it to /boot and append the kernel version to it.. i.e /boot/System.map-2.4.14 My current 'method' is a permanent cd /boot rm System.map ln -s /usr/src/linux/System.map System.map this assumes that /usr/src/linux is itself a symlink to the current kernel (not always the case). there was a post sometime earlier that if you had a series of /boot/System.map-2.4.xx's the kernel would 'discover' for itself which one to use. Is this correct? yes. this is how i've done it for quite some time without any problems. David Bandel mentions the klogd daemon starting early in the boot scripts. Is the name 'System.map' with no extensions a necessity for some other, obscure, applications? none that i've used. = Lonni J. Friedman [EMAIL PROTECTED] Linux Step-by-step help: http://netllama.ipfox.com . __ Do You Yahoo!? Find the one for you at Yahoo! Personals http://personals.yahoo.com ___ Linux-users mailing list Archives, Digests, etc at http://linux.nf/mailman/listinfo/linux-users