From owner-freebsd-stable@FreeBSD.ORG Fri Apr 4 01:25: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 A9B409B5 for ; Fri, 4 Apr 2014 01:25:04 +0000 (UTC) Received: from mail-oa0-x231.google.com (mail-oa0-x231.google.com [IPv6:2607:f8b0:4003:c02::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 730CC798 for ; Fri, 4 Apr 2014 01:25:04 +0000 (UTC) Received: by mail-oa0-f49.google.com with SMTP id o6so2858763oag.22 for ; Thu, 03 Apr 2014 18:25:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=F7HZg9eN/mSJlflHN9pCfOm7rjxIsXaLR3Qi8Rb6A1s=; b=BVg97sCHDerbAMofR6GAlYXPa5+SafFXF+bHtfHvZwJrqkJmInOWaXanCN5Yxm44x4 zRGxSdE+/KhG1WpGMPFaBuZIIIhocQIe93ZQA3neCcCoeU85xhne8jK5m9TSG+9syOyK xnrGiCfJPcsPg2L3eB3OzgihQ57E8ZdhPu8Cg6EFI7oFDF79qK8vKTXL2NALZTnT6kWf lHJT4Cv+UgGwMprLyA+3Z0Jwk3uLlzo73EQHj99ek73AnJPtfFmH7PXhb+uL+Ax+5Fyn LMKaMgFIH2pY5u00r1NlBz5PbHZdvYGRRwcFK4Q+UrhjotHmGDvfUdomiUJn0X5n35DD NaGw== X-Received: by 10.60.63.12 with SMTP id c12mr13500465oes.23.1396574703700; Thu, 03 Apr 2014 18:25:03 -0700 (PDT) MIME-Version: 1.0 Received: by 10.76.87.104 with HTTP; Thu, 3 Apr 2014 18:24:43 -0700 (PDT) In-Reply-To: <20140404000343.GA45831@potato.growveg.org> References: <20140404000343.GA45831@potato.growveg.org> From: Henry Hu Date: Thu, 3 Apr 2014 21:24:43 -0400 Message-ID: Subject: Re: UEFI bios, problem installing freebsd but not pc-bsd To: freebsd-stable@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.17 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 01:25:04 -0000 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. 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" > -- Cheers, Henry