From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1J5nBP-0007Hr-2l for mharc-grub-devel@gnu.org; Fri, 21 Dec 2007 14:05:19 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J5nBN-0007Hh-CK for grub-devel@gnu.org; Fri, 21 Dec 2007 14:05:17 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J5nBM-0007HU-Jl for grub-devel@gnu.org; Fri, 21 Dec 2007 14:05:17 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J5nBM-0007HR-Gk for grub-devel@gnu.org; Fri, 21 Dec 2007 14:05:16 -0500 Received: from [69.60.117.155] (helo=aybabtu.com) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1J5nBM-0005aq-2S for grub-devel@gnu.org; Fri, 21 Dec 2007 14:05:16 -0500 Received: from [192.168.10.6] (helo=thorin) by aybabtu.com with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1J5nBI-0007Oh-NK for grub-devel@gnu.org; Fri, 21 Dec 2007 20:05:14 +0100 Received: from rmh by thorin with local (Exim 4.63) (envelope-from ) id 1J5nAw-00062i-NJ for grub-devel@gnu.org; Fri, 21 Dec 2007 20:04:50 +0100 Date: Fri, 21 Dec 2007 20:04:50 +0100 From: Robert Millan To: The development of GRUB 2 Message-ID: <20071221190450.GA23118@thorin> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: free as in freedom X-Message-Flag: Worried about Outlook viruses? Switch to Thunderbird! www.mozilla.com/thunderbird X-Debbugs-No-Ack: true User-Agent: Mutt/1.5.13 (2006-08-11) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. Subject: Re: Creating grub/grub2/grldr.mbr bootrom with makerom X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Dec 2007 19:05:17 -0000 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 I know my rights; I want my phone call! What use is a phone call, if you are unable to speak? (as seen on /.)