Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1IuNJ9-0006i7-KV for mharc-grub-devel@gnu.org; Tue, 20 Nov 2007 02:14:07 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IuNJ7-0006eF-Am for grub-devel@gnu.org; Tue, 20 Nov 2007 02:14:05 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IuNJ6-0006dD-Ko for grub-devel@gnu.org; Tue, 20 Nov 2007 02:14:04 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IuNJ6-0006cv-8L for grub-devel@gnu.org; Tue, 20 Nov 2007 02:14:04 -0500 Received: from mx20.gnu.org ([199.232.41.8]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IuNJ5-00064z-Sh for grub-devel@gnu.org; Tue, 20 Nov 2007 02:14:04 -0500 Received: from py-out-1112.google.com ([64.233.166.179]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IuNJ5-0007oo-5f for grub-devel@gnu.org; Tue, 20 Nov 2007 02:14:03 -0500 Received: by py-out-1112.google.com with SMTP id a73so6924762pye for ; Mon, 19 Nov 2007 23:14:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=YI/G+uz6CXL1THEbvnwWw28o/4q9CAq402Tt/nD3Op4=; b=mn8ifyi+zrtBXXenZj92RVyfFgIc6IssmN+iEvJLNKWuzp0F23PWVn5Juhm0RHkeZUyH+qz3FjX78yp7VGUu4iBoD5EDpmsuCNxjuHcKNXfvf9ucd6yBxU3Bx5qo8GTUjDifsO2N2k8BrFb/vDZ5OzFI1FBzkTHQugMuuQ+g5Gk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=I6x+0buwUYps4y4Z8f04M6rQaFjRhj7fM7+Sjzf4ZwXcRD9sOrKcdUFFmetktiZKfg3i5AaryKpBCxiCAcOS7DrvlS/Kg0I4sGs1pt2oYEECWQxNKac+kt56+7NxBW9L1VZ7Yn/d5de0+soaj1IHqkC89x3KvFxCWq5AaFYDq9U= Received: by 10.35.87.8 with SMTP id p8mr7259881pyl.1195542842622; Mon, 19 Nov 2007 23:14:02 -0800 (PST) Received: by 10.35.48.5 with HTTP; Mon, 19 Nov 2007 23:14:02 -0800 (PST) Message-ID: Date: Tue, 20 Nov 2007 15:14:02 +0800 From: Bean To: "The development of GRUB 2" In-Reply-To: <460f92b70711190705t6665188bs810f64bfa5e3186b@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <460f92b70711190705t6665188bs810f64bfa5e3186b@mail.gmail.com> X-detected-kernel: by mx20.gnu.org: Linux 2.6 (newer, 2) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) Subject: Re: ISA Option ROM booting capability 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: Tue, 20 Nov 2007 07:14:06 -0000 Hi, On Nov 19, 2007 11:05 PM, UrJiZ wrote: > I thought that someone might like to test the ROM booting capability, > so I made a tarball of my grub2/romboot directory (stripped all > binaries). The file can be downloaded from > http://88.193.31.35:8080/urjaman/romboot.tar.gz (or if that server is > down then http://rapidshare.com/files/70800517/romboot.tar.gz.html ). > A short howto follows. > > You will need: > - grub2 sources and all grub2 compilation requirements > - nasm > - romboot.tar.gz > > For testing, the easiest way (for me atleast) is qemu. Bochs might work too. > > first configure and build grub2 normally > then unpack the tarball to the grub2 folder, it will create a new > folder called romboot. > then: > cd romboot > > romchk.c if you like to> > ./grub-mkrom > then you will (if all went ok) have core.img and romboot.bin in that > folder (for the first run it also compiles romchk) > > Testing: > I've only tested using qemu and real hardware, so here it goes for qemu: > qemu -option-rom romgrub.bin /dev/null will work> > Be ready to press scroll lock when qemu comes up. (I've missed it a > few times...) > > The real hardware part is (i think) too long to explain here, and it's > the same as with romos, so: > http://rayer.ic.cz/romos/romose.htm > > > -- > urjaman > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > I just test it, it does work, but here are some suggestion: 1, use gas syntax, it's not that much source, just convert it. 2, don't embed core.img, instead compile header seperately, and create the rom image by catenating the header and core.img 3, Use romchk to zero-pad the rom to 64K, and fix the checksum. It can be quite useful if it can also configure runtime variables like the hotkey and timeout. -- Bean