From owner-freebsd-arch@FreeBSD.ORG Wed Jan 21 16:30:06 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 19D8D5EE for ; Wed, 21 Jan 2015 16:30:06 +0000 (UTC) Received: from mail-ie0-x22d.google.com (mail-ie0-x22d.google.com [IPv6:2607:f8b0:4001:c03::22d]) (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 D79AF992 for ; Wed, 21 Jan 2015 16:30:05 +0000 (UTC) Received: by mail-ie0-f173.google.com with SMTP id tr6so13023464ieb.4 for ; Wed, 21 Jan 2015 08:30:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=FyujZa/dgrJIxB5+yKuaKE/5/gahf//olhhFsvlfZz0=; b=x7Jek/b3hOUF06QdyFw3+7FFiqj96G3++NxpXV98/zsWpv5AJhwwKwtudTCxMxCute KcDJ1FkBA6Ckzs46sthuuul4Dma2Jjb7j+d6kG4OZx0JySo8Fv5a31xOTYHNvplUoKk1 t6uZaE4rANMT6nGIQGsg+T1pW836KhLVZBP8eiWIyq5L0Bm8mWt3tUSrJsQx0pSuOgT0 5rB1sqNBFHCXUF095codOmNCBfszXlPrz2CKKxFA8ZdbL9y5m+K2y0KMts+hnEj/a0X4 zRlDk7bMELYagFKxz0xTzJ4DOzyIzQzlsoOc/a5dCrMxojjcAAogyA4JkDbv5VCw7oys 5SRg== MIME-Version: 1.0 X-Received: by 10.50.66.171 with SMTP id g11mr5407902igt.49.1421857805238; Wed, 21 Jan 2015 08:30:05 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.36.78.14 with HTTP; Wed, 21 Jan 2015 08:30:05 -0800 (PST) Date: Wed, 21 Jan 2015 08:30:05 -0800 X-Google-Sender-Auth: -7K8RtXULG4UOLoG21AkhA-5wJg Message-ID: Subject: please test: i386 bootloader changes From: Adrian Chadd To: "freebsd-arch@freebsd.org" Content-Type: text/plain; charset=UTF-8 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:30:06 -0000 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, -adrian