From: "Vesa Jääskeläinen" <chaac@nic.fi>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: [PATCH] LZMA support in i386-pc kernel
Date: Wed, 02 Jul 2008 20:50:52 +0300 [thread overview]
Message-ID: <486BBFFC.3070907@nic.fi> (raw)
In-Reply-To: <ca0f59980807020639k4df0aa77r910560938b198284@mail.gmail.com>
Bean wrote:
> Hi,
>
> This patch add support for lzma decompression. The assembly code
> lzma_decode.S is manually optimized to reduce size. The result decoder
> is tiny, only 416 bytes longer than the lzo version.
Not bad.
> I also include lzma encode from the LZMA SDK. grub needs to use the
> ANSI-C version of encoder, which is only present in the latest 4.58
> beta. I can't find ready to use shared library in most distro.
> Including the encoder/decoder has advantages as well. We don't need to
> worry about the host os, and lzma encoder/decoder can be used in other
> place, like font compression.
We can load more complete decoder module after we can load modules and
leave more optimized version in boot code.
> I use lzma as default, it's still possible to use the old lzo
> compression, you just need to add --enable-lzo option when running
> configure.
>
> PS, here are some information about the lzma decoder:
>
> properties: lc = 3 lp = 0 pb = 2
> memory requirement for the decoder: 15980 bytes
Can we probe for best values and then use always the best? Perhaps embed
them as constants to boot code?
> Result of
> ./grub-mkimage -o core.img biosdisk pc ext2 lvm raid
>
> lzma version: 27,776 bytes
> lzo version: 32,768 bytes
Not bad. Not bad at all.
next prev parent reply other threads:[~2008-07-02 17:50 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-02 13:39 [PATCH] LZMA support in i386-pc kernel Bean
2008-07-02 14:42 ` Robert Millan
2008-07-02 15:11 ` Bean
2008-07-02 16:00 ` Bean
2008-07-03 18:24 ` Marco Gerards
2008-07-03 18:56 ` Bean
2008-07-03 14:06 ` Robert Millan
2008-07-02 17:50 ` Vesa Jääskeläinen [this message]
2008-07-02 18:27 ` Bean
2008-07-02 18:45 ` Vesa Jääskeläinen
2008-07-03 19:37 ` Isaac Dupree
2008-07-03 19:59 ` Bean
2008-07-03 20:11 ` Javier Martín
2008-07-13 2:03 ` Bean
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=486BBFFC.3070907@nic.fi \
--to=chaac@nic.fi \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.