From owner-freebsd-arch@FreeBSD.ORG Wed Jan 21 17:29:00 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 A0AA7B67 for ; Wed, 21 Jan 2015 17:29:00 +0000 (UTC) Received: from mail-ig0-x234.google.com (mail-ig0-x234.google.com [IPv6:2607:f8b0:4001:c05::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 66E90E2 for ; Wed, 21 Jan 2015 17:29:00 +0000 (UTC) Received: by mail-ig0-f180.google.com with SMTP id b16so16149255igk.1 for ; Wed, 21 Jan 2015 09:28:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=VWOsDORBrUUiYgvMAVKg1UWoKGXcehmfrIxuxfK8PfY=; b=eGv22e1hbYVJrLmUbnh4kBxHFyBl7AyWLFzYUcItQTeVlpk4BuWT7ubFrKZxYgoMdK QQODGMRSRfRFTuxYOrwbgVW7EhkorBn+Bt6zUTrkPc/9i2WG0efQ37+4b+xwCREHvYss N++tN30I12N4cE4DJ4Gijg0jOppr9vPPQEbqDo7smK3FZ2RfHK211Uzl1MIzDxmkGFGm TnzwxvjJN7tp7AgUfLSN62k3vWPR1I5fGZDfA3XSHuhjWphZJeZ+GDXL8QuaHK1v2kd0 wzg4qH/LGLu9WilK895C5g569oa7GH82rwNtnjT9e03DJ1L1pNaZKWcmzO3xTHxWSX/q 3xRQ== MIME-Version: 1.0 X-Received: by 10.50.55.98 with SMTP id r2mr35874403igp.6.1421861339823; Wed, 21 Jan 2015 09:28:59 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.36.78.14 with HTTP; Wed, 21 Jan 2015 09:28:59 -0800 (PST) In-Reply-To: <54BFD605.7090603@selasky.org> References: <54BFD605.7090603@selasky.org> Date: Wed, 21 Jan 2015 09:28:59 -0800 X-Google-Sender-Auth: 7wRPky_od939Kll-kIE4ZDJNW84 Message-ID: Subject: Re: please test: i386 bootloader changes From: Adrian Chadd To: Hans Petter Selasky Content-Type: text/plain; charset=UTF-8 Cc: "freebsd-arch@freebsd.org" 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 17:29:00 -0000 It's just /boot/loader. You can just copy it there or boot it manually (eg name it /boot/loader2, and have boot0->boot1 boot /boot/loader2 instead.) -adrian On 21 January 2015 at 08:38, Hans Petter Selasky wrote: > 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