From owner-freebsd-i386@FreeBSD.ORG Thu Apr 27 19:30:14 2006 Return-Path: X-Original-To: freebsd-i386@hub.freebsd.org Delivered-To: freebsd-i386@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7263716A415 for ; Thu, 27 Apr 2006 19:30:14 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C054243D5C for ; Thu, 27 Apr 2006 19:30:12 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k3RJUCgC072964 for ; Thu, 27 Apr 2006 19:30:12 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k3RJUC1T072963; Thu, 27 Apr 2006 19:30:12 GMT (envelope-from gnats) Resent-Date: Thu, 27 Apr 2006 19:30:12 GMT Resent-Message-Id: <200604271930.k3RJUC1T072963@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-i386@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Yuichiro Goto Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1F7FA16A402 for ; Thu, 27 Apr 2006 19:27:55 +0000 (UTC) (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 E299743D45 for ; Thu, 27 Apr 2006 19:27:54 +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 k3RJRseH023450 for ; Thu, 27 Apr 2006 19:27:54 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id k3RJRsGU023448; Thu, 27 Apr 2006 19:27:54 GMT (envelope-from nobody) Message-Id: <200604271927.k3RJRsGU023448@www.freebsd.org> Date: Thu, 27 Apr 2006 19:27:54 GMT From: Yuichiro Goto To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: i386/96430: boot2 is unable to load kernel directly X-BeenThere: freebsd-i386@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: I386-specific issues for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Apr 2006 19:30:14 -0000 >Number: 96430 >Category: i386 >Synopsis: boot2 is unable to load kernel directly >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-i386 >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Apr 27 19:30:12 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Yuichiro Goto >Release: FreeBSD 6.1-RC1 >Organization: >Environment: FreeBSD cobalt.my.domain 6.1-RC FreeBSD 6.1-RC #0: Wed Apr 26 10:38:08 JST 2006 root@cobalt.my.domain:/usr/obj/usr/src/sys/GENERIC i386 >Description: Loading a kernel directly using boot2 causes the invalid-opcode fault like the following: int=00000006 err=00000000 efl=00010002 eip=c0445a90 eax=c0445a90 ebx=0007cd0f ecx=c0b5e1a7 edx=a030001e esi=c0b5e1a7 edi=c0445a90 ebp=00000002 esp=0009eb84 cs=0008 ds=0010 es=0010 fs=0010 gs=0010 ss=0010 cs:eip=ff ff ff ff ff ff ff ff-ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff-ff ff ff ff ff ff ff ff ss:esp=69 95 00 00 00 00 00 80-1e 00 30 a0 00 00 00 00 00 00 00 00 00 00 00 00-60 dd 00 00 36 42 00 00 BTX halted I tried to load a kernel directly that is a slightly modified version of GENERIC. The following 2 lines are added to GENERIC: makeoptions CONF_CFLAGS=-DROOTDEVNAME=\"ufs:/dev/ad0s2a\" makeoptions NO_MODULES=yes >How-To-Repeat: Directly load a kernel using boot2. >Fix: load() in src/sys/boot/i386/boot2/boot2.c tries to copy kernel segments at a phisical address on memory whose most significant 2 bits are set. This is because of changes between rev 1.70 and 1.71 of src/sys/boot/i386/boot2/boot2.c. >Release-Note: >Audit-Trail: >Unformatted: