From owner-freebsd-arch@FreeBSD.ORG Wed Jan 21 16:37:42 2015 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 539229BF; Wed, 21 Jan 2015 16:37:42 +0000 (UTC) Received: from mail.turbocat.net (heidi.turbocat.net [88.198.202.214]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 12858AA0; Wed, 21 Jan 2015 16:37:41 +0000 (UTC) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 56A3D1FE023; Wed, 21 Jan 2015 17:37:39 +0100 (CET) Message-ID: <54BFD605.7090603@selasky.org> Date: Wed, 21 Jan 2015 17:38:29 +0100 From: Hans Petter Selasky User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: Adrian Chadd , "freebsd-arch@freebsd.org" Subject: Re: please test: i386 bootloader changes References: In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jan 2015 16:37:42 -0000 On 01/21/15 17:30, Adrian Chadd wrote: > Hi, > > Here's something that I've been poking for a little while. > > The SeaBIOS emulation in the Chromebook C720 implements the E820 > memory map by putting a hole between 15 and 16MiB. That's some really > legacy PC-AT stuff right there. Unfortunately that stops > kernel.GENERIC from loading as loader thinks there's only < 14MiB of > extended RAM available. > > This patch: > > https://people.freebsd.org/~adrian/c720/20150121-seabios-loader-changes-2.diff > > updates it so if the first extended segment from the E820 call is too > small, it tries the E801 call. It also fixes a bug in the E801 call > that would treat the lower and upper memory regions returned as > contiguous when they may indeed not be. > > Now - here be dragons. It's possible that fixing this stuff for one > buggy bios makes freebsd's loader unhappy on other buggy bioses. So > I'd really appreciate if it people would try this out on 32/64 bit x86 > platforms and report back success/failures. So far nothing I have here > complains, but I don't have /that/ much hardware. > > Thanks, > Hi, What is the simplest way to install the loader changes? Can it be tested by replacing "/boot/loader" or do I need to update any boot partition code using "gpart bootcode" ? --HPS