From owner-freebsd-questions@FreeBSD.ORG Fri Mar 13 16:34:21 2015 Return-Path: Delivered-To: freebsd-questions@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 5B239CA6 for ; Fri, 13 Mar 2015 16:34:21 +0000 (UTC) Received: from DUB004-OMC4S34.hotmail.com (dub004-omc4s34.hotmail.com [157.55.2.109]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "*.outlook.com", Issuer "MSIT Machine Auth CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D6C2092 for ; Fri, 13 Mar 2015 16:34:20 +0000 (UTC) Received: from DUB131-W58 ([157.55.2.71]) by DUB004-OMC4S34.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.22751); Fri, 13 Mar 2015 09:33:11 -0700 X-TMN: [mJYfRMspEd6jzhl8Pa4oogy7DLOTD6Fx] X-Originating-Email: [cipher_nl@hotmail.com] Message-ID: From: Dirk E To: "freebsd-questions@FreeBSD.org" Subject: EFI boot not working Date: Fri, 13 Mar 2015 17:33:10 +0100 Importance: Normal Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginalArrivalTime: 13 Mar 2015 16:33:11.0077 (UTC) FILETIME=[651A7D50:01D05DAB] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Mar 2015 16:34:21 -0000 Hi guys!=0A= =0A= I'm trying to get EFI boot working by following the document: https://wiki.= freebsd.org/UEFI=0A= =0A= It roughly says:=0A= =0A= gpart create -s gpt da0=0A= gpart add -t efi -s 800K da0=0A= gpart add -t freebsd-ufs da0=0A= dd if=3D/boot/boot1.efifat of=3D/dev/da0p1=0A= newfs /dev/da0p2=0A= =0A= I did exactly that=3B except locate the second partition on a 1024K-boundar= y which the above command does not do. I used the /boot/boot1.efifat from F= reeBSD 10.1 amd64.=0A= =0A= I used RaWrite to create the USB stick. When booting my USB stick i get an = error trying to read /boot/loader.conf=2C then it tries to load the kernel.= It finds the kernel but yields errors when inflating the kernel.=0A= =0A= Some of the error messages:=0A= ---=0A= inflate: invalid code lengths set=0A= invalid distance too far back=0A= invalid distance code=0A= inflate: invalid stored block lengths=0A= readin failed. elf64_loadimage: read failed=0A= inflate: invalid block type=0A= ---=0A= =0A= The strange thing is that trying to boot (OK loader prompt) will yield a di= fferent error. I would expect getting the same error from the same input. I= t appears the error is randomly chosen from the above list. Maybe this is a= clue?=0A= =0A= I am using a preloaded mfsroot. I saw some recent commits to HEAD about add= ressing some issues. But i'm not sure this is the problem=2C since the load= er cannot load /boot/loader.conf or even the kernel itself. So loading the = mfsroot of about 10MB would probably not be the issue?=0A= =0A= Thanks in advance to anyone who can provide assistance!=0A= =