Re: compressed kernel file format?

Jean-Sébastien Guay <[email protected]> Wed, 12 Oct 2005 20:28:20 -0400
Newsgroups gmane.linux.gentoo.alpha
Message-ID <[email protected]>
Hi Jeff,

>I followed the instruction in the current Gentoo
>Handbook (Alpha edition), which says to do a "make &&
>make modules_install" (after a "make menuconfig" of
>course). Correct me if I'm wrong, but didn't it used
>to be something like "make bzimage" on Alpha? Is the
>handbook wrong?
>  
>
Nope, the handbook isn't wrong. 'make bzImage' was used for 2.4.x 
kernels I believe.

Just to be sure, check that you're copying the right file to your /boot 
partition. it should be /usr/src/linux/arch/alpha/boot/vmlinux.gz . 
Other images you may find in the directory structure seem to be 
intermediate files, including the one that ends up in the kernel's root 
directory (/usr/src/linux), which always struck me as being strange, but 
hey, I'm no Linus Torvalds... :-)

I always do this after a kernel compile (I'm sure it's pretty standard 
stuff, so it could be made into a script of some sort...) :
cp arch/alpha/boot/vmlinux.gz /boot/vmlinux.gz-<version>
cp System.map /boot/System.map-<version>
cp .config /boot/config-<version>
cd /boot
rm vmlinux.gz # remove symlink to old kernel
ln -s vmlinux.gz-<version> vmlinux.gz
rm vmlinux.gz-old # remove symlink to old old kernel (if that makes 
sense...)
ln -s vmlinux.gz-<previous version> vmlinux.gz-old

I always keep entries in AlphaBIOS's boot menu that boot vmlinux.gz and 
vmlinux.gz-old. It's proved to be a useful habit... :-) The third boot 
option is a straight MILO prompt, for times when I need to boot off the 
LiveCD or whatever.

Good luck,

J-S

-- 
___________________________________________
Jean-Sébastien Guay   [email protected]
             http://whitestar02.webhop.org/

-- 
[email protected] mailing list