RE: A question on System.map (for the FAQ please)

Jones D (djones2@glam.ac.uk)
Tue, 5 Oct 1999 14:48:41 +0100


> >> After you've made a kernel..
> >>
> >> mv System.map /boot/System.map-`uname -r`
> >
> >Oops.. I screwed up.. This won't work, as it'll take the
> >currently running kernel.. You'll have to boot the new
> >kernel once before doing this..
>
> cd /usr/src/linux
> vps=`awk '/^VERSION/{printf "%s", $3}/^PATCHLEVEL/{printf
> ".%s", $3}/^SUBLEVEL/{printf ".%s", $3}/^EXTRAVERSION/{printf
> "%s", $3}FNR > 10{printf "\n"; stop}' Makefile`
> if [ -e arch/i386/boot/bzImage ]
> then
> cp -av arch/i386/boot/bzImage /test_kernel/$vps
> else
> cp -av arch/i386/boot/zImage /test_kernel/$vps
> fi
> mkdir -p /lib/modules/$vps
> cp -av .config System.map /lib/modules/$vps

Yes, that works for me, and saves a reboot. Nice work.
It'd be good(tm) if this were added to the Makefile, as it's
a little long-winded to type each time you build a kernel.
Make a 'make symbols' or something similar...

regards,

Dave.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/