From owner-freebsd-emulation@FreeBSD.ORG Tue Apr 24 11:39:25 2007 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1406E16A402; Tue, 24 Apr 2007 11:39:25 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from relay02.kiev.sovam.com (relay02.kiev.sovam.com [62.64.120.197]) by mx1.freebsd.org (Postfix) with ESMTP id A09E613C448; Tue, 24 Apr 2007 11:39:24 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from [212.82.216.227] (helo=fw.zoral.com.ua) by relay02.kiev.sovam.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.60) (envelope-from ) id 1HgJ6a-0002HN-Uj; Tue, 24 Apr 2007 14:22:45 +0300 Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by fw.zoral.com.ua (8.13.4/8.13.4) with ESMTP id l3OBMa5x068756 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 24 Apr 2007 14:22:36 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.1/8.14.1) with ESMTP id l3OBMZeu042953; Tue, 24 Apr 2007 14:22:35 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.1/8.14.1/Submit) id l3OBMVjQ042952; Tue, 24 Apr 2007 14:22:31 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Tue, 24 Apr 2007 14:22:31 +0300 From: Kostik Belousov To: Bakul Shah Message-ID: <20070424112231.GC2441@deviant.kiev.zoral.com.ua> References: <462ADE46.3080304@freebsd.org> <20070423192309.E77F65B3B@mail.bitblocks.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="5/uDoXvLw7AC5HRs" Content-Disposition: inline In-Reply-To: <20070423192309.E77F65B3B@mail.bitblocks.com> User-Agent: Mutt/1.4.2.2i X-Virus-Scanned: ClamAV version 0.88.7, clamav-milter version 0.88.7 on fw.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-0.1 required=5.0 tests=ALL_TRUSTED,SPF_NEUTRAL autolearn=failed version=3.1.8 X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on fw.zoral.com.ua X-Scanner-Signature: 33ca3efb02d57e4381ef3dfbedf9ea6a X-DrWeb-checked: yes X-SpamTest-Envelope-From: kostikbel@gmail.com X-SpamTest-Group-ID: 00000000 X-SpamTest-Info: Profiles 976 [Apr 24 2007] X-SpamTest-Info: helo_type=3 X-SpamTest-Info: {received from trusted relay: not dialup} X-SpamTest-Method: none X-SpamTest-Method: Local Lists X-SpamTest-Rate: 0 X-SpamTest-Status: Not detected X-SpamTest-Status-Extended: not_detected X-SpamTest-Version: SMTP-Filter Version 3.0.0 [0255], KAS30/Release Cc: freebsd-emulation@freebsd.org Subject: Re: experimental qemu-devel port update, please test! X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Apr 2007 11:39:25 -0000 --5/uDoXvLw7AC5HRs Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Apr 23, 2007 at 12:23:09PM -0700, Bakul Shah wrote: > > >> I found and fixed one bug in src/core/osloader.c (in > > >> etherboot-5.4.3 code) which allows me to get a little bit > > >> further. If anyone wants to play with this more, I can send > > >> them my changes. > > >=20 > > > You may want to post those on the qemu list... > >=20 > > On this list too, since I'm not subscribed to the qemu list (nor are=20 > > many people on this list I'm guessing). >=20 > The change I am talking about is in etherboot-5.4.3 code, not > in qemu. I tried upgrading ports/net/etherboot 5.4.3 but my > effort is not in a usable state right now. >=20 > Download etherboot-5.4.3.tar.bz2, untar it, cd to its top dir > and apply the following patch -- this is the only critical > change. And I borrowed other changes from the current > net/etherboot port. >=20 > If you can compile rtl8139.zrom fine, run qemu with > an explicit -option-rom argument and make sure you use > model=3Drtl8139. >=20 > it will use dhcp to get an address, load freebsd's > pxeboot and jump to it at which point everything halts. >=20 > May be etherboot does too much. Since freebsd does pxeboot > on a real machine, ideally the exact same pxeboot should work > with etherboot. >=20 > --- src/core/osloader.c.orig Sat Feb 24 06:44:59 2007 > +++ src/core/osloader.c Sat Apr 21 21:50:37 2007 > @@ -344,6 +344,8 @@ > } > #endif /* defined(ELF_IMAGE) && defined(IMAGE_MULTIBOOT) */ > =20 > + if (!len) goto done; > + > /* Either len is greater or the skip is greater */ > if ((skip_sectors > (len >> 9)) || > ((skip_sectors =3D=3D (len >> 9)) && (skip_bytes >=3D (len & 0x1ff))))= { > @@ -355,6 +357,7 @@ > skip_bytes -=3D len; > } > else { > + done: > len -=3D (skip_sectors << 9) + skip_bytes; > data +=3D (skip_sectors << 9) + skip_bytes; > skip_sectors =3D os_download(data, len, eof); You may try the following patch for btx: http://people.freebsd.org/~kib/realbtx/realbtx.2.patch or take the pxeboot built from the patched source at http://people.freebsd.org/~kib/realbtx/pxeboot Please, handle the patch with care - do not install /boot/boot2 or /boot/loader built with patch on the machine without ability to boot from removable media, since the changes are in earliest stage and were not tested exhaustive. --5/uDoXvLw7AC5HRs Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFGLeh2C3+MBN1Mb4gRAth3AKCra4lq/GOQVH+gU4A4OLGKS7V9rwCgzNsv PKQWfHxSdVxJHAogtu8l2vo= =anrd -----END PGP SIGNATURE----- --5/uDoXvLw7AC5HRs--