Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Sep 2001 18:07:56 +0300
From:      Maxim Sobolev <sobomax@FreeBSD.org>
Cc:        dcs@FreeBSD.org, current@FreeBSD.org
Subject:   Forth and bzip2 support in loader(8) [was: cvs commit:  src/sys/boot/i386/loader Makefile conf.c]
Message-ID:  <3BA7634B.A1522B74@FreeBSD.org>
References:  <200109181452.f8IEqap69248@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Maxim Sobolev wrote:

> sobomax     2001/09/18 07:52:36 PDT
>
>   Modified files:
>     sys/boot/i386/loader Makefile conf.c
>   Log:
>   Add support for loading bzip2-compressed kernels and modules. This support
>   is turned off by default and could be enabled by defining LOADER_BZIP2_SUPPORT
>   make variable. Also make gzip support optional (turned on by default) -
>   it could be turned off via LOADER_NO_GZIP_SUPPORT make variable.
>
>   Please note, that due to limit on the amount of memory available to the
>   loader(8), it is possible to load modules/kernels compressed with the smallest
>   block size supported by the bzip2 - 100k (`-1' bzip2(1) option), however
>   even in this mode bzip2(1) usually provides better compression ratio than
>   gzip(1) in its best compression mode.

There is also some weird problem, that prevents loading bzip2-compressed modules
when loader(8) compiled with Forth support. Instead of understandable `out of
memory' error loader completely loses control after starting loading any
bzip2-compressed file (I'm suspecting stack overwriting, but not sure how to debug
this). Things are OK when it compiled without Forth, though.

-Maxim


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3BA7634B.A1522B74>