From owner-freebsd-current Tue Sep 18 8: 6:42 2001 Delivered-To: freebsd-current@freebsd.org Received: from ipcard.iptcom.net (ipcard.iptcom.net [212.9.224.5]) by hub.freebsd.org (Postfix) with ESMTP id C95DF37B40C; Tue, 18 Sep 2001 08:06:28 -0700 (PDT) Received: from vega.vega.com (root@dialup7-36.iptelecom.net.ua [212.9.227.164]) by ipcard.iptcom.net (8.9.3/8.9.3) with ESMTP id SAA58869; Tue, 18 Sep 2001 18:06:22 +0300 (EEST) (envelope-from sobomax@FreeBSD.org) Received: from FreeBSD.org (big_brother.vega.com [192.168.1.1]) by vega.vega.com (8.11.4/8.11.3) with ESMTP id f8IF6L922098; Tue, 18 Sep 2001 18:06:21 +0300 (EEST) (envelope-from sobomax@FreeBSD.org) Message-ID: <3BA7634B.A1522B74@FreeBSD.org> Date: Tue, 18 Sep 2001 18:07:56 +0300 From: Maxim Sobolev Organization: Vega International Capital X-Mailer: Mozilla 4.78 [en] (Windows NT 5.0; U) X-Accept-Language: en,uk,ru MIME-Version: 1.0 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] References: <200109181452.f8IEqap69248@freefall.freebsd.org> Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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