[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: sparc32 etch kernel compile help needed



On Sun, Feb 25, 2007 at 10:45:37PM -0500, Robert Reif wrote:
> I'm trying to compile a kernel on etch without success.  I first tried a 
> 2.6.21-rc1 and it failed to boot because the image was too large.  I 
> next tried the debian source in /usr/src/linux-source-2.6.18.tar with 
> the same results.  Both were configured with the config from /boot.

For sparc32 you need to strip the kernel of non-essential parts in 
order for it to fit into the space reserved for it. It goes 
approximately like this:

cp /boot/vmlinuz-2.6.18-4-sparc32 vmlinux.gz
gzip -d vmlinux.gz
strip -R .comment -R .note -K sun4u_init -K _end -K _start vmlinux
gzip -9 vmlinux
mv vmlinux.gz /boot/vmlinuz-2.6.18-4-sparc32

Best regards,
-- 
Jurij Smakov                                           jurij@wooyd.org
Key: http://www.wooyd.org/pgpkey/                      KeyID: C99E03CC



Reply to: