From owner-freebsd-current@FreeBSD.ORG Sat Jul 12 14:24:43 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 B81A54DE for ; Sat, 12 Jul 2014 14:24:43 +0000 (UTC) Received: from mail-la0-x231.google.com (mail-la0-x231.google.com [IPv6:2a00:1450:4010: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 2DAEE26E1 for ; Sat, 12 Jul 2014 14:24:43 +0000 (UTC) Received: by mail-la0-f49.google.com with SMTP id gf5so1718208lab.36 for ; Sat, 12 Jul 2014 07:24:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=i/qTN1F11r5ekUkT+gKSdMTaBGdvMDPCRrsUjwNJbbY=; b=sQXpSHw4ofMlaySwurBl2ciQIVlZtVEJJxwgrtjCbCwPdlGGmpYz8Di1mKYWM3BQ+k t5bkG0WbH/QJoG4zgP4iFcKTlwQdzrGSq0KqHaZyptVD++nLc5pQn1oKBdYooYCRou+9 jW3Mn1lVfFcfyF1UviFYejX4/HDZ/HskoXGshBFUD2eJDSI9X1oU3S8OgdVsVByltcrW vsc5pKy6sshnHc/khbW5e0BYESaj/DldFVFXAAIAj8l/SS+fbRJCU3l/Y2iYIn7zdzqP brhZfagzhwkG7N1hVK64ln7fb8QK3D+v+3pfvciJDRbNVChuFuwCWOR9JEpiMbTOnA04 WiNw== MIME-Version: 1.0 X-Received: by 10.152.5.230 with SMTP id v6mr4527080lav.33.1405175080922; Sat, 12 Jul 2014 07:24:40 -0700 (PDT) Received: by 10.112.217.4 with HTTP; Sat, 12 Jul 2014 07:24:40 -0700 (PDT) Reply-To: huanghwh@gmail.com In-Reply-To: <53C10945.4020003@icloud.com> References: <537DFD85.1090903@icloud.com> <53C10945.4020003@icloud.com> Date: Sat, 12 Jul 2014 22:24:40 +0800 Message-ID: Subject: Re: uefi boot on Apple Mac From: Huang Wen Hui To: Anders Bolt-Evensen Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.18 Cc: freebsd-current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18 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: Sat, 12 Jul 2014 14:24:43 -0000 As loader.efi and kernel not change at all from USB to CD, I am confuse why you can boot from CD. Anyway, I try to boot from CD as you suggest, but I got the same result as before:( 2014-07-12 18:09 GMT+08:00 Anders Bolt-Evensen : > I also got a message like that when I booted from a USB stick on a > MacBookPro8,3 (17 inch, late 2011). > > I fixed it by creating a custom ISO image and burned that onto a DVD usin= g > an external DVD drive. > The UEFI installer boots fine from this external DVD drive. > > Here is how I did it: > > Genereste an ISO with the FreeBSD-CURRENT kernel, mount the ISO and copy > all files from the root directory in the ISO and unmount > > cd /usr/src/release > > sh ./generate-release.sh # You may have to run =E2=80=9Cmake buildw= orld=E2=80=9D and > be connected to the internet to install required ports. > > mount -t cd9660 /scratch/R/release/FreeBSD-something-disc1.iso /mnt > > mkdir freebsd_generic_installer > #Files copied to the directory in the next command will be copied to = a > new ISO in step 3 > > cp -R /mnt/ freebsd_generic_installer/ > > umount /mnt > 2. Create a FAT filesystem image and place the loader in it in the defaul= t > path that UEFI will look for (the following steps are copied from > https://wiki.freebsd.org/UEFI#CD.2FDVD_Boot_under_UEFI): > > dd if=3D/dev/zero of=3Defiboot.img bs=3D4k count=3D100 > > mdconfig -a -t vnode -f efiboot.img > > newfs_msdos -F 12 -m 0xf8 /dev/md0 > > mount -t msdosfs /dev/md0 /mnt > > mkdir -p /mnt/efi/boot > > cp loader.efi /mnt/efi/boot/bootx64.efi > > umount /mnt > > mdconfig -d -u 0 > > 3. Create the custom ISO image. Please make sure that the entry in > freebsd_generic_installer/etc/fstab matches the label you choose in the > command below. > > makefs -t cd9660 -o bootimage=3D'i386;efiboot.img' -o no-emul-boot = -o > rockridge -o label=3D=E2=80=9CFREEBSD_UEFI_INSTALL" -o publisher=3D"test"= uefi-test.iso > freebsd_generic_installer/ > > To get the example in the command above to work, please make sure that th= e > entry in freebsd_generic_installer/etc/fstab reads > "/dev/iso9660/FREEBSD_UEFI_INSTALL / cd9660 ro 0 0" > > 4. Burn the image to DVD, reboot your system and choose =E2=80=9CEFI Boot= =E2=80=9D. Note > that unless you are using a EFI console like rEFIt or rEFInd, you may hav= e > to kind of wait a couple of minutes while the kernel is loading before > anything appears on the screen. > > > > On 04/07/14 16:34, Huang Wen Hui wrote: > >> Hi, >> On my MacbookPro11,3, I got this error message: >> >> http://sw.gddsn.org.cn/freebsd/uefi.jpg >> >> cheers, >> >> Huang WenHui >> >> 2014-07-04 22:13 GMT+08:00 Ed Maste : >> >> On 24 May 2014 19:39, Rafael Esp=C3=ADndola >>> wrote: >>> >>>> Yes, I got that in the mac laptops I tried, it worked on a Mac Pro. It >>>> might be the frame buffer corruption that Ed Maste was mentioning. >>>> >>> I purchased a new MacBook Air yesterday (model identifier >>> MacBookAir6,2). UEFI boot and vt(4) worked correctly. (My image >>> included Rafael's patch; I haven't tried a boot without.) >>> >>> I also committed a change to display the framebuffer parameters >>> (address, dimensions, etc.) on boot, in order to help identify the >>> source of this issue. If you have a moment can you build a new USB >>> stick image and give it a try? >>> >>> -Ed >>> >>> _______________________________________________ >> freebsd-current@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-current >> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.or= g >> " >> > >