From owner-freebsd-current@FreeBSD.ORG Fri Jan 30 15:58:04 2015 Return-Path: Delivered-To: freebsd-current@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 83C5A77; Fri, 30 Jan 2015 15:58:04 +0000 (UTC) Received: from mail-ie0-x231.google.com (mail-ie0-x231.google.com [IPv6:2607:f8b0:4001:c03::231]) (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 4F16ADA9; Fri, 30 Jan 2015 15:58:04 +0000 (UTC) Received: by mail-ie0-f177.google.com with SMTP id vy18so4249865iec.8; Fri, 30 Jan 2015 07:58:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=j51aJMmoaOznEmcl2tLJgKsqM3BoU8PlfHGN1X8AOQo=; b=E717DpIy0Z2m3qiYclNOKdaOvucYoiegPtTOFrOeAK0YBpO5yT9Hqk+j/QDnQaDcLM O/hQ/WLqeqLhd/yBxjKq/0DO9h6IwyBE1ThFvD3x1UuRK0XwOdjz5z0qNOdzKs0pZ7oR /o48bqu1qmRI8k/94zJfr8PanPsUbxdgQ/dBGzQ87GvWO2uk+/UhQtBCTiPs9NwCZdQD MMNgov86QqepKExULT1xzp9BauJ9NiGXionQo8zIoKJbKVkYSx5/BP9znCF1M0q82g+g LyRij/EoGeDBqKMgxGtQfsxrPWysg5Q3VPoDzJ+tGO0YMpEf4XPEuOAY1gt0OHUCCtjU hZpQ== X-Received: by 10.42.249.2 with SMTP id mi2mr6741516icb.36.1422633483782; Fri, 30 Jan 2015 07:58:03 -0800 (PST) MIME-Version: 1.0 Received: by 10.64.91.193 with HTTP; Fri, 30 Jan 2015 07:57:43 -0800 (PST) From: Luca Pizzamiglio Date: Fri, 30 Jan 2015 16:57:43 +0100 Message-ID: Subject: UEFI boot hangs with MINNOWBOARD To: FreeBSD Hackers , freebsd-current@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Mailman-Approved-At: Fri, 30 Jan 2015 18:17:34 +0000 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: Fri, 30 Jan 2015 15:58:04 -0000 Hi, I'm testing CURRENT on a MINNOWBOARD (http://www.elinux.org/Minnowboard:MinnowMax): Dual-core atom E3825 CPU EFI Version: 2.4.0 EFI: EDK II boot1.efi starts, it can found the ufs partition with loader.efi loader.efi fails at BT->ExitBootServices() (elf64_exec() of sys/boot/amd64/efi/elf64_freebsd.c) ExitBootServices() fails with error code 2 (INVALID_PARAMETER). The documentation of this function (http://wiki.phoenix.com/wiki/index.php/EFI_BOOT_SERVICES#ExitBootServices.28.29) states that the mapKey is wrong and GetMemoryMap() should be recall and then ExitBootServices() again. I've tried to implement it, but it fails again. My main problem is that I don't know which parameter should I pass to GetMemoryMap() I gave a look to this discussion (http://www.gossamer-threads.com/lists/linux/kernel/1733014) about "retry ExitBootServices() on failure" about eboot in Linux: they do a retry (only one) and they call also a FreePoll(). Do you have any tips, suggestions or something that could help to get FreeBSD boot on this apparently standard board? Best regards, Luca Pizzamiglio PS: should we implement the ExitBootServices() retry?