From owner-freebsd-amd64@FreeBSD.ORG Thu Jan 8 15:50:01 2009 Return-Path: Delivered-To: freebsd-amd64@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D9EEC106566B for ; Thu, 8 Jan 2009 15:50:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id B646B8FC0A for ; Thu, 8 Jan 2009 15:50:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n08Fo1uU010253 for ; Thu, 8 Jan 2009 15:50:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n08Fo1n6010252; Thu, 8 Jan 2009 15:50:01 GMT (envelope-from gnats) Resent-Date: Thu, 8 Jan 2009 15:50:01 GMT Resent-Message-Id: <200901081550.n08Fo1n6010252@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-amd64@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Koen Smits Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C06651065670 for ; Thu, 8 Jan 2009 15:40:34 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id AECBF8FC0C for ; Thu, 8 Jan 2009 15:40:34 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n08FeYHB055355 for ; Thu, 8 Jan 2009 15:40:34 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n08FeYW3055354; Thu, 8 Jan 2009 15:40:34 GMT (envelope-from nobody) Message-Id: <200901081540.n08FeYW3055354@www.freebsd.org> Date: Thu, 8 Jan 2009 15:40:34 GMT From: Koen Smits To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: amd64/130303: FreeBSD 7.1-RELEASE amd64 cannot boot on VIA Nano equipped systems X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 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, 08 Jan 2009 15:50:02 -0000 >Number: 130303 >Category: amd64 >Synopsis: FreeBSD 7.1-RELEASE amd64 cannot boot on VIA Nano equipped systems >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-amd64 >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Jan 08 15:50:01 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Koen Smits >Release: 7.1-RELEASE >Organization: >Environment: >Description: boot loader checks if the 64bit CPU is Intel or AMD, obviously VIA is neither of them. boot process reports "CPU does not support long mode" and asks for kernel. See simple patch below. Maybe this check should not be performed at all? Note that VIA CPU's allow you to change the vendorstring. This could lead to more trouble. >How-To-Repeat: Boot 7.1-RELEASE Disc1 on VIA Nano equipped system. (VIA VB8001 for example) >Fix: /usr/src/sys/boot/i386/libi386/bootinfo64.c: Line 152+: ! 152: /* Check for vendors that support AMD features. */ ! 153: if (strncmp(cpu_vendor, "GenuineIntel", 12) != 0 && ! 154: strncmp(cpu_vendor, "AuthenticAMD", 12) != 0) ! 155: return (0); change to: /* Check for vendors that support AMD features. */ if (strncmp(cpu_vendor, "GenuineIntel", 12) != 0 && strncmp(cpu_vendor, "AuthenticAMD", 12) != 0 && strncmp(cpu_vendor, "CentaurHauls", 12) != 0) return (0); >Release-Note: >Audit-Trail: >Unformatted: