From owner-freebsd-stable@FreeBSD.ORG Wed Aug 17 23:42:45 2005 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2208B16A41F for ; Wed, 17 Aug 2005 23:42:45 +0000 (GMT) (envelope-from Emanuel.strobl@gmx.net) Received: from mail.gmx.net (imap.gmx.net [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 71BE243D53 for ; Wed, 17 Aug 2005 23:42:43 +0000 (GMT) (envelope-from Emanuel.strobl@gmx.net) Received: (qmail invoked by alias); 17 Aug 2005 23:42:41 -0000 Received: from flb.schmalzbauer.de (EHLO cale.flintsbach.schmalzbauer.de) [62.245.232.135] by mail.gmx.net (mp014) with SMTP; 18 Aug 2005 01:42:41 +0200 X-Authenticated: #301138 From: Emanuel Strobl To: freebsd-current@freebsd.org Date: Thu, 18 Aug 2005 01:42:28 +0200 User-Agent: KMail/1.8.1 References: <200508161405.18729@harrymail> <200508171643.57044@harrymail> <200508171529.45664.jhb@FreeBSD.org> In-Reply-To: <200508171529.45664.jhb@FreeBSD.org> X-Birthday: Oct. 6th 1972 X-CelPhone: +49 (0) 173 9967781 X-Tel: +49 (0) 89 18947781 X-Country: Germany X-Address: Munich, 80686 X-OS: FreeBSD MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1248472.mTvEkWymv2"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200508180142.37790@harrymail> X-Y-GMX-Trusted: 0 Cc: freebsd-stable@freebsd.org, John Baldwin Subject: Re: BTX failure [Was: Re: pxeboot problems with BETA2] X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Aug 2005 23:42:45 -0000 --nextPart1248472.mTvEkWymv2 Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Am Mittwoch, 17. August 2005 21:29 CEST schrieb John Baldwin: > On Wednesday 17 August 2005 10:43 am, Emanuel Strobl wrote: [*schnip*] > > Relocating the loader and the BTX > > Starting the BTX loader > > > > int=3D00000006 err=3D00000000 efl=3D00010202 eip=3D00023c21 > > eax=3D00000000 ebx=3D000384e0 ecx=3D000384e0 edx=3D00000001 > > esi=3D00001000 edi=3D00000029 ebp=3D00086770 esp=3D00086758 > > cs=3D002b ds=3D0033 es=3D0033 fs=3D0033 gs=3D0033 ss=3D0033 > > cs:eip=3D0f 4f c2 a3 c8 7d 03 00-8d 41 0c c7 41 04 fd 44 > > ff 55 89 39 c6 44 39 ff-fe 83 c4 0c 5b 5e 5f 5d > > ss:esp=3Db4 7d 03 00 29 00 00 00-00 10 00 00 00 00 00 00 > > 83 57 02 00 02 00 00 00-a0 67 08 00 98 1c 02 00 > > BTX halted > > > > Any clue? Regarding cvsweb nothing changed recently, and I had net4501 > > boxes pxebooting fine with FreeBSD 5.3..... > > Hmm. Int 6 is an invalid opcode exception: > > 00000000 0F4FC2 cmovg eax,edx > 00000003 A3C87D0300 mov [0x37dc8],eax > 00000008 8D410C lea eax,[ecx+0xc] > 0000000B C74104FD44FF55 mov dword [ecx+0x4],0x55ff44fd > 00000012 8939 mov [ecx],edi > 00000014 C64439FFFE mov byte [ecx+edi-0x1],0xfe > 00000019 83C40C add esp,byte +0xc > 0000001C 5B pop ebx > 0000001D 5E pop esi > 0000001E 5F pop edi > 0000001F 5D pop ebp > > I'm guessing that there's been a stack overflow or some such. Your eip > is in the loader. You can try using the loader.sym from your loader > binary to look up that eip address. In the loader here on my laptop > it's in the write function: Thanks for your attention! It's late here, I'll try to understand and see=20 what I can do tomorrow. Just for info, simply copying pxeboot from a 5.3-release (also real=20 verified with 5.2.1 no 5.4 so far) DVD works. Bisides that I need sio=20 support in pxeldr so I have to compile it my own. And of course I'd love=20 to have the new comspeed config option :) > % nm /usr/obj/usr/src/sys/boot/i386/loader/loader.sym | sort > ... > 00023b9c T readdirfd > 00023c14 T write > 00023d18 T lseek > > If you want to be able to use gdb, then rebuild libstand with debugging > (make DEBUG_FLAGS=3D-g) and rebuild all of /sys/boot with debugging (make > DEBUG_FLAGS=3D-g). You can then > use /usr/obj/usr/src/sys/boot/i386/pxeldr/pxeboot for your pxeboot and > you can run gdb on /usr/obj/usr/src/sys/boot/i386/loader/loader.sym and > you can do listings of the addresses for eip, etc. Expect to here from me the next 48 hours, tommorow I'm too busy as I could= =20 just see :( Thanks again, =2DHarry --nextPart1248472.mTvEkWymv2 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQBDA8ttBylq0S4AzzwRAjbrAJ4+iE8vLuusXUpM33dnD/5o5k9v+ACfVjo1 xltUc1SwaW4V8JSqT+SYCCE= =1T9Q -----END PGP SIGNATURE----- --nextPart1248472.mTvEkWymv2--