All of lore.kernel.org
 help / color / mirror / Atom feed
From: Robert Millan <rmh@aybabtu.com>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: Creating grub/grub2/grldr.mbr bootrom with makerom
Date: Fri, 21 Dec 2007 20:04:50 +0100	[thread overview]
Message-ID: <20071221190450.GA23118@thorin> (raw)
In-Reply-To: <ca0f59980712211050i1651eb20k52a219b333e94f4d@mail.gmail.com>

On Sat, Dec 22, 2007 at 02:50:11AM +0800, Bean wrote:
> makerom is a new tool in the GRUB Utilities project. It can be used to
> create bootrom image using grub legacy, grub2 and grldr.mbr.
> 
> grub legacy/grub4dos:
> makerom rom_xxx.img stage2 grub.bin
> 
> grub2:
> makerom rom_xxx.img core.img grub2.bin
> 
> grldr.mbr:
> makerom -s 0 rom_xxx.img grldr.mbr grldr.bin
> 
> rom_xxx.img stands for one of the following files:
> 
> rom_isa.img: Header for ISA bootrom
> rom_pci.img: Header for PCI bootrom
> rom_zisa.img: Header for ISA bootrom, support lzma decompression
> rom_zpci.img: Header for PCI bootrom, support lzma decompression
> 
> To enable lzma, you should use option -z, and choose one of the
> headers that supports lzma:
> 
> makerom -z rom_zisa.img stage2 grub.bin
> 
> As bootrom has 64K size limit, for image larger than 64K, you must use
> compression. For example, the uncompressed stage2 for grub 0.97 is
> 98K, after compression, image reduced to about 50K.
> 
> Also note that compression is performed by external lzma program, you
> need to install the lzma package before using the compression
> function.

How well does compression work for GRUB 2 ?  core.img is already compressed
(with lzo); if LZMA makes better results perhaps it'd be a good idea to switch.

-- 
Robert Millan

<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call, if you are unable to speak?
(as seen on /.)



  reply	other threads:[~2007-12-21 19:05 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-21 18:50 Creating grub/grub2/grldr.mbr bootrom with makerom Bean
2007-12-21 19:04 ` Robert Millan [this message]
2007-12-22  3:57   ` Bean
2007-12-22  8:06   ` Yoshinori K. Okuji
2007-12-22  9:03     ` Bean
2007-12-22  9:47       ` Yoshinori K. Okuji

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=20071221190450.GA23118@thorin \
    --to=rmh@aybabtu.com \
    --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.