From nobody@FreeBSD.org Tue Aug 23 21:24:40 2005 Return-Path: Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A786216A4C5 for ; Tue, 23 Aug 2005 21:24:39 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6A1EB43D46 for ; Tue, 23 Aug 2005 21:22:42 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j7NLMevZ023626 for ; Tue, 23 Aug 2005 21:22:40 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id j7NLMeZM023625; Tue, 23 Aug 2005 21:22:40 GMT (envelope-from nobody) Message-Id: <200508232122.j7NLMeZM023625@www.freebsd.org> Date: Tue, 23 Aug 2005 21:22:40 GMT From: Christoph Weber-Fahr To: freebsd-gnats-submit@FreeBSD.org Subject: BTX boot loader fails on USB CDROM X-Send-Pr-Version: www-2.3 >Number: 85257 >Category: kern >Synopsis: [boot] BTX boot loader fails on USB CDROM (HP DL145 Opteron) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: closed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Aug 23 21:30:15 GMT 2005 >Closed-Date: Fri Nov 11 19:29:21 UTC 2011 >Last-Modified: Fri Nov 11 19:29:21 UTC 2011 >Originator: Christoph Weber-Fahr >Release: 5.4-RELEASE >Organization: Arcor AG >Environment: never got that far. The machine in question is a HP DL145 Opteron server (which comes without cdrom or floppy). >Description: tried to boot the installation CD from an external usb cdrom. BTX boot loader fails directly after starting and falls into an unreadable endless loop of column formatted (dump like) diagnostic output. I tried with both the i386 and the amd64 CDROMs. Both Windows XP and Suse Linux 9.2 install fine on this combo, so it's definitely not a hardware problem. >How-To-Repeat: >Fix: Hmm. Good question. What about using Grub, since that apparently works with Suse Linux here ? >Release-Note: >Audit-Trail: From: Dimitry Andric To: bug-followup@FreeBSD.org, cwf-ml@arcor.de Cc: Subject: Re: kern/85257: [boot] BTX boot loader fails on USB CDROM (HP DL145 Opteron) Date: Mon, 26 Sep 2005 01:08:17 +0200 ------------2B83CD3BE2EF07 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable I get the same kind of error here, using an external USB DVD-RW on a ThinkPad X41. Usually, I also get the endless scrolling exception messages, making it impossible to read them. However, in some cases, it displays exactly ONE exception message, hangs for a few seconds, and then reboots the machine. In one of those cases I had my cam ready, resulting in this output: CD Loader 1.2 int=3D0000000d err=3D0000001a efl=3D00030246 eip=3D00001a46 eax=3D220050d7 ebx=3D00000002 ecx=3D00001000 edx=3D000040f7 esi=3D0000061c edi=3D00000000 ebp=3D0000061c esp=3D00000614 cs=3D0e01 ds=3Ddcf1 es=3Dffff fs=3D0010 gs=3D0000 ss=3Ddcf1 cs:eip=3Dcc 7c bd 8b 45 d8 66 8b-78 30 e9 30 ff ff ff 8d 76 00 31 c0 8d 65 f4 5b-5e 5f c9 c3 b8 ab aa aa ss:esp=3D50 94 e7 e2 46 02 36 a2-18 00 40 0c 34 00 00 dc 00 10 00 00 ff ff 8b 5b-21 00 00 00 00 00 01 00 BTX halted Looking at the produced code, it seems to be getting an exception somewhere at the end of elf32_obj_reloc_ptr: 00005968 : 5968: 55 push %ebp 5969: 89 e5 mov %esp,%ebp ... 5a47: 85 c0 test %eax,%eax 5a49: 75 1f jne 5a6a 5a4b: ff 45 cc incl 0xffffffcc(%ebp) 5a4e: 8b 4d c8 mov 0xffffffc8(%ebp),%ecx 5a51: 83 c7 08 add $0x8,%edi --> 5a54: 39 4d cc cmp %ecx,0xffffffcc(%ebp) 5a57: 7c bd jl 5a16 5a59: 8b 45 d8 mov 0xffffffd8(%ebp),%eax 5a5c: 66 8b 78 30 mov 0x30(%eax),%di 5a60: e9 30 ff ff ff jmp 5995 5a65: 8d 76 00 lea 0x0(%esi),%esi 5a68: 31 c0 xor %eax,%eax 5a6a: 8d 65 f4 lea 0xfffffff4(%ebp),%esp 5a6d: 5b pop %ebx 5a6e: 5e pop %esi 5a6f: 5f pop %edi 5a70: c9 leave 5a71: c3 ret This seems to be somewhere in this part: for (n =3D 0; n < ef->relasz / sizeof(a); n++) { COPYOUT(ef->rela + n, &a, sizeof(a)); error =3D __elfN(reloc)(ef, __elfN(symaddr), &a, ELF_RELOC_RELA, ef->off, p, val, len); if (error !=3D 0) return (error); } OTOH, as I look at cs:eip, it seems to be excepting in the middle of the cmp instruction?? And how a cmp can generate a general protection fault is beyond me, really. :) ------------2B83CD3BE2EF07 Content-Type: application/pgp-signature -----BEGIN PGP MESSAGE----- Version: GnuPG v1.4.1 (MingW32) iD8DBQFDNy3hsF6jCi4glqMRAs+xAKD2V0zG/2jmYPYHYyRBlorY5/KO9ACgkpA6 rgnhmu3w77LXB+YwiPRqRPE= =l+An -----END PGP MESSAGE----- ------------2B83CD3BE2EF07-- From: =?ISO-8859-1?Q?Jo=E3o_Carlos_Mendes_Luis?= To: bug-followup@FreeBSD.org, cwf-ml@arcor.de Cc: Subject: Re: kern/85257: [boot] BTX boot loader fails on USB CDROM (HP DL145 Opteron) Date: Fri, 08 Sep 2006 13:52:28 -0300 FYI: This is still present on 6.1-RELEASE From: Bruce M Simpson To: freebsd-gnats-submit@FreeBSD.org Cc: Subject: Re: kern/85257: [boot] BTX boot loader fails on USB CDROM (HP DL145 Opteron) Date: Thu, 12 Oct 2006 15:54:38 +0100 I can reproduce this with 6.1-RELEASE CDs on an Itox Expanding Dragon 1U with an external USB DVD+-RW drive. John Baldwin speculates it is due to the redirected BIOS interrupt routines which use USB needing to be called in real mode, not vm86 mode. There is no quick and easy fix for this, but if I get around to it I will try to hack btx. From: Toby Boudreaux To: bug-followup@FreeBSD.org, cwf-ml@arcor.de Cc: Subject: Re: kern/85257: [boot] BTX boot loader fails on USB CDROM (HP DL145 Opteron) Date: Wed, 8 Nov 2006 16:07:09 -0500 This also occurs when booting from a USB floppy drive. Responsible-Changed-From-To: freebsd-bugs->freebsd-usb Responsible-Changed-By: linimon Responsible-Changed-When: Sat Jun 30 08:33:24 UTC 2007 Responsible-Changed-Why: Over to maintainer(s). http://www.freebsd.org/cgi/query-pr.cgi?pr=85257 From: "Eugene M. Zheganin" To: bug-followup@FreeBSD.org, cwf-ml@arcor.de Cc: Subject: Re: usb/85257: [boot] BTX boot loader fails on USB CDROM (HP DL145 Opteron) Date: Mon, 15 Oct 2007 17:17:56 +0600 Reproduceable also on 6.2-RELEASE and on IPKVM-attached device, detected by BIOS as an USB generic DVD-ROM. From: "Rashid N. Achilov" To: bug-followup@freebsd.org, cwf-ml@arcor.de Cc: Subject: Re: usb/85257: [boot] BTX boot loader fails on USB CDROM (HP DL145 Opteron) Date: Tue, 16 Oct 2007 10:05:49 +0700 Reproduceable also at 6.2-RELEASE when trying to boot from USB Flash drive. BTX failed with this dump: (sorry, I have to type dump manually) int=0000000d err=00000000 efl=00030002 eip=00004023 eax=00000000 ebx=00000700 ecx=00000000 edx=00000001 esi=00000000 edi=00000000 ebp=00000000 esp=000003f4 cs=f000 ds=0000 es=0000 fs=0000 gs=0000 ss=9e39 cs:eip= 2e 0f 01 16 48 43 0f 20-c0 0c 01 0f 22 c0 b8 20 00 8e d8 0f 20 c0 24 fe-0f 22 c0 eb 00 66 58 c3 ss:esp= 00 00 00 00 e3 37 00 08-00 00 00 00 86 9d 47 91 00 00 46 02 3d e5 02 00-43 00 00 00 00 00 00 00 I have a snap, taken by phone, can mail on request -- With Best Regards. Rashid N. Achilov (RNA1-RIPE), Web: http://www.askd.ru/~shelton OOO "ACK" telecommunications administrator, e-mail: achilov-rn [at] askd.ru PGP: 83 CD E2 A7 37 4A D5 81 D6 D6 52 BF C9 2F 85 AF 97 BE CB 0A Responsible-Changed-From-To: freebsd-usb->freebsd-usbugs Responsible-Changed-By: gavin Responsible-Changed-When: Mon May 26 11:47:49 UTC 2008 Responsible-Changed-Why: Nothing to do with -usb mailing list http://www.freebsd.org/cgi/query-pr.cgi?pr=85257 Responsible-Changed-From-To: freebsd-usbugs->freebsd-bugs Responsible-Changed-By: gavin Responsible-Changed-When: Mon May 26 12:57:44 UTC 2008 Responsible-Changed-Why: Fix responsible field http://www.freebsd.org/cgi/query-pr.cgi?pr=85257 Responsible-Changed-From-To: freebsd-bugs->brucec Responsible-Changed-By: brucec Responsible-Changed-When: Tue Mar 2 18:53:47 UTC 2010 Responsible-Changed-Why: Take. http://www.freebsd.org/cgi/query-pr.cgi?pr=85257 Responsible-Changed-From-To: brucec->freebsd-bugs Responsible-Changed-By: brucec Responsible-Changed-When: Sun Jan 23 21:41:12 UTC 2011 Responsible-Changed-Why: Back to the pool due to lack of time. http://www.freebsd.org/cgi/query-pr.cgi?pr=85257 State-Changed-From-To: open->feedback State-Changed-By: jh State-Changed-When: Sat Sep 24 09:19:51 UTC 2011 State-Changed-Why: Can you still reproduce this on recent FreeBSD versions? http://www.freebsd.org/cgi/query-pr.cgi?pr=85257 State-Changed-From-To: feedback->closed State-Changed-By: jh State-Changed-When: Fri Nov 11 19:29:19 UTC 2011 State-Changed-Why: Feedback timeout. http://www.freebsd.org/cgi/query-pr.cgi?pr=85257 >Unformatted: