From owner-freebsd-current@FreeBSD.ORG Thu Jan 1 09:30:17 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 449C816A4CE for ; Thu, 1 Jan 2004 09:30:17 -0800 (PST) Received: from mailhub2.midco.net (mailhub2.midco.net [24.220.0.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6B84243D3F for ; Thu, 1 Jan 2004 09:30:15 -0800 (PST) (envelope-from pmes@bis.midco.net) Received: (qmail 28739 invoked by uid 0); 1 Jan 2004 17:30:14 -0000 Received: from host-195-219-220-24.midco.net (HELO bis.midco.net) ([24.220.219.195]) (envelope-sender ) by lvs-pop.midco.net (qmail-ldap-1.03) with SMTP for ; 1 Jan 2004 17:30:14 -0000 Message-ID: <3FF45925.80303@bis.midco.net> Date: Thu, 01 Jan 2004 11:30:13 -0600 From: Peter Schultz User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.6b) Gecko/20031215 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Dan Hulme References: <20031229131959.Q14501@root.org> <3FF2A5F7.9070606@diefree.com> <3FF2D94D.90903@bis.midco.net> <3FF32260.2030206@diefree.com> In-Reply-To: <3FF32260.2030206@diefree.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-current@freebsd.org Subject: Re: ACPI causes page fault/panic upon reboot X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jan 2004 17:30:17 -0000 Dan Hulme wrote: > Ok, I did as you said, and replaced "Microsoft Windows" with "FreeBSD" > in the following. I also set the two variables in loader.conf. The > result was that it loaded on boot, but for some reason it couldn't mount > my root partition. I disabled acpi and was able to boot. I looked more > carefully at the result of compiling, and this is what I saw: > Can you provide a verbose dmesg, `boot -Dhv'? How many instances of Windows did you change? If there's more than one, you might want to try changing one at a time. > acpi.asl 123: If (S3EN) > Error 1037 - ^ syntax error > > Here are the surrounding lines. To be honest, I really don't see what > could be causing a syntax error. > > 118 Name (_S0, Package (0x02) > 119 { > 120 0x00, > 121 0x00 > 122 }) ^ It looks like you've got an extra closing paren at the end of line 122. > 123 If (S3EN) > 124 { > 125 Name (_S3, Package (0x02) > 126 { > 127 0x05, > 128 0x05 > 129 }) > 130 } > 131 Else > 132 { > 133 Name (_S1, Package (0x02) > 134 { > 135 0x01, > 136 0x01 > 137 }) > 138 } > > -Dan > Pete... > Name (OSFL, 0x03) > Method (_INI, 0, NotSerialized) > { > If (MCTH (\_OS, "Microsoft Windows")) > { > Store (0x01, OSFL) > } > Else > { > > Peter Schultz wrote: > > >>Dan Hulme wrote: >> >> >>>Disabling ACPI fixes the problem. The problem appears to be in dc0, >>>however. See my other reply for details. >>> >> >>You might be able to use ACPI, run this command: >> >>`acpidump -t -d > your.asl' >> >>In your.asl, change if statements that compare the value of _OS from >>"Windows" to "FreeBSD". For example*: >> >>If (MCTH (\_OS, "Microsoft Windows NT")) >>{ >> Return (PIC1) >>} >>Else >>{ >> Return (PIC0) >>} >> >>Overridden for use with FreeBSD: >>If (MCTH (\_OS, "FreeBSD")) >>{ >> Return (PIC1) >>} >>Else >>{ >> Return (PIC0) >>} >> >>After you customize your.asl, you'll want to compile** it, run: >> >>`iasl -f your.asl' >> >>DSDT.aml is the default output filename for the above command. It's >>machine code you can offer to ACPI instead of using the DSDT provided >>with your motherboard. You do this by editing /boot/loader.conf, add: >> >>acpi_dsdt_load="YES" >>acpi_dsdt_name="/boot/DSDT.aml" >> >>Remember to move DSDT.aml to the /boot directory. That's what I've >>done to get ACPI working back to how it was in the past. >> >>HTH, >>Pete... >> >>* From my OEM ASL, a partnership with Microsoft? >> >>** We're forcing compilation because it seems most OEM ASLs are buggy. >> >> >