From owner-freebsd-current@FreeBSD.ORG Thu Sep 11 14:12:58 2014 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 59D5B795; Thu, 11 Sep 2014 14:12:58 +0000 (UTC) Received: from mail-ig0-x232.google.com (mail-ig0-x232.google.com [IPv6:2607:f8b0:4001:c05::232]) (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 1F8A9154; Thu, 11 Sep 2014 14:12:58 +0000 (UTC) Received: by mail-ig0-f178.google.com with SMTP id a13so1068091igq.17 for ; Thu, 11 Sep 2014 07:12:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type:content-transfer-encoding; bh=ectgD7PawcMtEDZlyjXCmLRVQBIiHuSsxMvDeRSIu6g=; b=0cQN3DAhswUq1JgGagGIR1zyFprGXbE74RmDURdIPRyG0W1E/uDU/o62LGaTFXNWOx W/YNb7HV4zJkOpdbwXnjUQEbZIZK7WI8ONfL1t1LL3iAnndCeRFZTKgWVVO69S6WOtcm DQSXlLIKBn7fx6sU2fgHNQ4ObUvkEBfB7M4F4rf/GwyCBNrEn/s5Dg4NkFRgR0gt0N8I Dqnqrwx5QGeAqLwRd5c6h62HlhxEt6/X1slMwbqZcmgZF+xtUzW54UPwey6xRuzdUUIE IUzAb/LxIphHc92k2Fcy5CjcOHHf8Lh6iHUhojPsHBeE6UtADt9zf2LFcCy4WK++Mkz3 WRSw== X-Received: by 10.50.6.77 with SMTP id y13mr2629613igy.21.1410444777540; Thu, 11 Sep 2014 07:12:57 -0700 (PDT) MIME-Version: 1.0 Sender: carpeddiem@gmail.com Received: by 10.107.44.1 with HTTP; Thu, 11 Sep 2014 07:12:37 -0700 (PDT) In-Reply-To: <54109FC4.70105@FreeBSD.org> References: <54109FC4.70105@FreeBSD.org> From: Ed Maste Date: Thu, 11 Sep 2014 10:12:37 -0400 X-Google-Sender-Auth: AtN-GwZQ5wdPMppkya3_hxWvHu4 Message-ID: Subject: Re: UEFI boot failure: BIOS smap did not include a basemem segment! To: =?UTF-8?B?SmVhbi1Tw6liYXN0aWVuIFDDqWRyb24=?= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: FreeBSD Current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-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, 11 Sep 2014 14:12:58 -0000 On 10 September 2014 15:00, Jean-S=C3=A9bastien P=C3=A9dron wrote: > Hello! > > I tried the following FreeBSD snapshot on my Clevo W860CU with UEFI > enabled: > FreeBSD-11.0-CURRENT-amd64-20140903-r270990-memstick.img Thanks for trying it out. > The boot fails early with the following error: > panic: BIOS smap did not include a basemem segment! This panic means the memory map does not include usable memory (for the kernel) with physaddr 0. if (physmap[i] =3D=3D 0x00000000) { basemem =3D physmap[i + 1] / 1024; basemem =3D=3D 0 produces the panic. The requirement for a usable memory range with physaddr 0 doesn't hold for UEFI, and the md startup hasn't yet been reworked to accommodate that. > Here's a video of a verbose boot (the quality is really low, I can try > to redo it if this one doesn't help): > http://www.dumbbell.fr/~dumbbell/FreeBSD-Clevo-W860CU-UEFI-no-basemem-seg= ment.mov Pausing the video immediately after the kernel starts confirms this: the UEFI firmware has RuntimeServicesData at physaddr 0, so not available for kernel use. Do you mind submitting a PR to keep track of this issue?