Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1PXbjO-0004sU-RA for mharc-grub-devel@gnu.org; Tue, 28 Dec 2010 10:44:58 -0500 Received: from [140.186.70.92] (port=32819 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PXbjK-0004qq-Qp for grub-devel@gnu.org; Tue, 28 Dec 2010 10:44:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PXbjI-0004sX-Uf for grub-devel@gnu.org; Tue, 28 Dec 2010 10:44:54 -0500 Received: from cox.rootnode.net ([89.248.165.14]:47425) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PXbjI-0004s8-QC for grub-devel@gnu.org; Tue, 28 Dec 2010 10:44:52 -0500 Received: from DSPAM-Daemon (localhost [127.0.0.1]) by cox.rootnode.net (Postfix) with SMTP id 9A54680153CC for ; Tue, 28 Dec 2010 16:38:42 +0100 (CET) Received: from webmail.rootnode.net (cox.rootnode.net [89.248.165.14]) by cox.rootnode.net (Postfix) with ESMTPA id 5A2DA801481E; Tue, 28 Dec 2010 16:38:42 +0100 (CET) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 28 Dec 2010 16:38:42 +0100 From: To: The development of GNU GRUB In-Reply-To: References: Message-ID: <76348a3b3f7c30fc5ab5aad5ec418ca6@janc.net.pl> X-Sender: szymon@janc.net.pl User-Agent: Roundcube Webmail/0.4.2 X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.3.7 (cox.rootnode.net [0.0.0.0]); Tue, 28 Dec 2010 16:38:42 +0100 (CET) X-DSPAM-Result: Innocent X-DSPAM-Processed: Tue Dec 28 16:38:42 2010 X-DSPAM-Confidence: 0.9904 X-DSPAM-Probability: 0.0000 X-DSPAM-Signature: 4d1a0482236711804284693 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) Cc: seth.goldberg@oracle.com Subject: Re: How to use xzio? X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Dec 2010 15:44:55 -0000 On Mon, 27 Dec 2010 22:58:18 -0800 (PST), Seth Goldberg wrote: > Hi, > > I'm trying to experiment with loading xz-compressed multiboot > modules and cannot figure out how to do it so that the xzio module > can > actually deal with the compressed file (after instrumenting it, the > problem is "unsupported xz options"), I've tried simply compressing > the file I'm interested in loading with "xz", and with "xz -1" and > both of the files cannot be decompressed. What's the deal with the xz > support, then? xzio utilizes xzembedded for decompression and this implementation doesn't support crc64 (which is default in xz). So one must compress files with xz --check=crc32 foo.bar or xz --check=none foo.bar It also supports BCJ filters (only with start offset=0) so if you are compressing executable code better compression ratio (few %) can be achieved xz --x86=start=0 --lzma2 --check=crc32 foo.bar (also supports PowerPC, ARM, ARM-Thumb, IA-64, SPARC code, see xz manual for details) Maybe xzio should print appropriate warning when unsupported (but not critical for decompression) option is used? > Also, the grub manual currently only lists gzip: Yeah... I'll update documentation with xz stuff when find some time :) -- Szymon Janc