From owner-freebsd-stable@FreeBSD.ORG Fri Apr 4 05:54:04 2014 Return-Path: Delivered-To: freebsd-stable@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 CE289E8F for ; Fri, 4 Apr 2014 05:54:04 +0000 (UTC) Received: from mail-wi0-x22c.google.com (mail-wi0-x22c.google.com [IPv6:2a00:1450:400c:c05::22c]) (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 1F41AE75 for ; Fri, 4 Apr 2014 05:54:03 +0000 (UTC) Received: by mail-wi0-f172.google.com with SMTP id hi2so545869wib.5 for ; Thu, 03 Apr 2014 22:54:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding; bh=92pAtsPsKT0HIRtVfBm7qgdXYaaRoJqwLlCl2GxQR3A=; b=awnfRrXGVcMo8eFkzbEIT4FQ8J7gOjhEMedCaRpIXzd6RSm2WsAloki243D3TEG08j 0mtvCAb+JoQB8SI86qQ7g5+c5f8odbQrnyPf/WA2EaBDpaKb3t0HKNhoJ+02axMgWrRQ WiwAA5UzI14a3u7g9vPNwbm+v4OkPua62FItyyHXV0u1hm4/QR9E718nN8Azk9spVcv5 oVdl/2Xtwa/Si419lSYZeJOCMjS6s5H3JkyzU1reqfQ3Rb5+h/iz3vSGLCqt8f7KWP6C igg1ttQO4bmHXK9cIA9VPjzVeO5SiDh0c7bba+bciFLdyLcm/uL4mECErbhBRUCg01Q+ 2F3Q== X-Received: by 10.180.189.169 with SMTP id gj9mr1458791wic.17.1396590842369; Thu, 03 Apr 2014 22:54:02 -0700 (PDT) Received: from laptop.minsk.domain (m-s.agava.net. [195.222.84.203]) by mx.google.com with ESMTPSA id m44sm17088596eep.14.2014.04.03.22.54.00 for (version=SSLv3 cipher=RC4-SHA bits=128/128); Thu, 03 Apr 2014 22:54:01 -0700 (PDT) Date: Fri, 4 Apr 2014 08:53:55 +0300 From: "Sergey V. Dyatko" To: freebsd-stable@freebsd.org Subject: Re: UEFI bios, problem installing freebsd but not pc-bsd Message-ID: <20140404085355.33efbe2d@laptop.minsk.domain> In-Reply-To: References: <20140404000343.GA45831@potato.growveg.org> X-Mailer: Claws Mail 3.9.3 (GTK+ 2.24.22; amd64-portbld-freebsd11.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Apr 2014 05:54:05 -0000 On Thu, 3 Apr 2014 21:24:43 -0400 Henry Hu wrote: > On Thu, Apr 3, 2014 at 8:03 PM, John wrote: > > > Hello -stable, > > > > Got a new computer the other day. It has a UEFI bios. I downloaded the > > latest builds of 10-stable and 11 from allbsd, and also downloaded > > pc-bsd 10-R. > > > > Although I could install all three, for the freebsds the system would > > not get to the loader prompt. All I got was a blank screen and the > > cursor hopping around in the top left quadrant of the screen. > > > > In contrast to this, when I installed pc-bsd and the system rebooted, it > > was able to fully boot as expected. Why is this? I suspect it's due to > > UEFI but, unlike a server I look after, this machine does not appear to > > have a legacy bios. > > > > Now, while I have nothing against pc-bsd, I'm used to getting the base > > install sorted then installing what I need out of ports, probably > > because I'm an old fart who has been using freebsd as a desktop since > > 2.2.5. How can I make the proper BSD bootable after install in the face > > of UEFI ? How does pc-bsd overcome this limitation? > > > > [whoops, just looked at https://wiki.freebsd.org/UEFI - has anyone here > > got this to work?] > > > > I'm using the projects/uefi branch and it works well. something from that branch was commited to head by emaste@ Look at r264095 > Generally, you need to > * Build loader.efi > This is built in the process of buildworld of that branch. > * Install loader.efi to EFI partition's /EFI/FreeBSD > * Build and install an EFI kernel > Notice that traditional kernel cannot be booted with loader.efi > * Copy /boot to EFI partition's /boot > kernel is not needed, only the scripts and config files. > * Change /boot/loader.conf in the EFI partition. You may want to specify > bootfile="part5:/boot/kernel/kernel" // or other partition > vfs.root.mountfrom="ufs:gpt/root" // or other partition > * Boot with FreeBSD's loader.efi > In my laptop, you can create a new boot entry and specify that one as > the boot loader in BIOS. Currently, I'm using rEFInd to chain-load > freebsd's loader.efi and it works well. > > For bootstrap, my laptop can still boot up the install media (using legacy > boot loader), so I can mount the root partition after loading the kernel > from the install media, and build and install the necessary items. > > You can find the EFI partition as a small fat partition on the disk. > > Notice that you also need to replace syscons with vt to get a usable > console. > > Good Luck! > > > > thanks, > > -- > > John > > _______________________________________________ > > freebsd-stable@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" > > > > > -- wbr, tiger