From owner-freebsd-amd64@FreeBSD.ORG Thu Jul 1 19:13:00 2004 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AE45116A4CE for ; Thu, 1 Jul 2004 19:13:00 +0000 (GMT) Received: from anuket.mj.niksun.com (gwnew.niksun.com [65.115.46.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id DFBC143D1F for ; Thu, 1 Jul 2004 19:12:59 +0000 (GMT) (envelope-from jkim@niksun.com) Received: from [10.70.0.244] (daemon.mj.niksun.com [10.70.0.244]) i61JAPRl001810; Thu, 1 Jul 2004 15:10:26 -0400 (EDT) (envelope-from jkim@niksun.com) X-RAV-AntiVirus: This e-mail has been scanned for viruses. From: Jung-uk Kim Organization: Niksun, Inc. To: freebsd-amd64@freebsd.org, Jeff Connelly Date: Thu, 1 Jul 2004 15:10:23 -0400 User-Agent: KMail/1.6.1 References: <200406280740.i5S7eXnG080095@freefall.freebsd.org> In-Reply-To: <200406280740.i5S7eXnG080095@freefall.freebsd.org> MIME-Version: 1.0 Content-Disposition: inline Content-Type: Multipart/Mixed; boundary="Boundary-00=_fGG5A+cjWGfmpMp" Message-Id: <200407011510.23772.jkim@niksun.com> cc: dillon@apollo.backplane.com Subject: Re: amd64/67745: boot fails on compaq presario r3000z X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jul 2004 19:13:00 -0000 --Boundary-00=_fGG5A+cjWGfmpMp Content-Type: text/plain; charset="euc-kr" Content-Transfer-Encoding: 7bit Content-Disposition: inline On Monday 28 June 2004 03:40 am, Jeff Connelly wrote: > The following reply was made to PR amd64/67745; it has been noted > by GNATS. > > From: Jeff Connelly > To: freebsd-gnats-submit@freebsd.org > Cc: > Subject: Re: amd64/67745: boot fails on compaq presario r3000z > Date: Mon, 28 Jun 2004 00:31:35 -0700 > > FYI Jung-uk Kim responded to this issue but it didn't make it to > gnats: > > > http://lists.freebsd.org/pipermail/freebsd-amd64/2004-June/001636.h >tml > > Anyone want to take a stab at it? I found a fix and diff's attached. This hack lets you boot in 'safe mode' and seems harmless for Compaq R3000Z. Somehow this machine shuts down when it issues 'Keyboard Interface Test' command (0xab) to port 0x64. http://www.clipx.net/ng/hardware/ng1462d.php It only boots in 'safe mode' because of broken nForce3/BIOS. See the chipset section from the following link: http://withagen.dyndns.org/FreeBSD/notes/amd64-hardware.html We may need to add this in hints as a flag (e. g., hint.atkbdc.0.flags) or a MIB (e. g., hw.atkbdc.disable_test). I only verified in FreeBSD/amd64 but it should work for FreeBSD/i386 and DragonFlyBSD. Cheers, Jung-uk Kim * PS: Since we have ACPI blacklist feature now, we can blacklist this BIOS. --Boundary-00=_fGG5A+cjWGfmpMp Content-Type: text/plain; charset="euc-kr"; name="r3000.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="r3000.diff" --- src/sys/dev/kbd/atkbdc.c.orig Thu Jul 1 12:52:57 2004 +++ src/sys/dev/kbd/atkbdc.c Thu Jul 1 13:13:20 2004 @@ -944,6 +944,7 @@ int test_kbd_port(KBDC p) { +#if 0 int retry = KBD_MAXRETRY; int again = KBD_MAXWAIT; int c = -1; @@ -965,6 +966,9 @@ if (verbose || bootverbose) log(LOG_DEBUG, "kbdc: TEST_KBD_PORT status:%04x\n", c); return c; +#else + return 0; +#endif } int --Boundary-00=_fGG5A+cjWGfmpMp--