From owner-freebsd-current@FreeBSD.ORG Sat Jul 12 11:09:22 2014 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 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 742CA4E0 for ; Sat, 12 Jul 2014 11:09:22 +0000 (UTC) Received: from st11p00mm-asmtp001.mac.com (st11p00mm-asmtp001.mac.com [17.172.81.0]) (using TLSv1 with cipher DES-CBC3-SHA (168/168 bits)) (Client CN "smtp.me.com", Issuer "VeriSign Class 3 Extended Validation SSL SGC CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 42960288A for ; Sat, 12 Jul 2014 11:09:21 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 8BIT Content-type: text/plain; charset=UTF-8; format=flowed Received: from andersbo-mac.local (ti0025a400-5325.bb.online.no [85.167.91.221]) by st11p00mm-asmtp001.mac.com (Oracle Communications Messaging Server 7u4-27.10(7.0.4.27.9) 64bit (built Jun 6 2014)) with ESMTPSA id <0N8L00I6MG7ABY30@st11p00mm-asmtp001.mac.com> for freebsd-current@freebsd.org; Sat, 12 Jul 2014 10:09:12 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.12.52,1.0.14,0.0.0000 definitions=2014-07-12_01:2014-07-11,2014-07-12,1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=92 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1402240000 definitions=main-1407120132 Message-id: <53C10945.4020003@icloud.com> Date: Sat, 12 Jul 2014 12:09:09 +0200 From: Anders Bolt-Evensen User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 To: huanghwh@gmail.com Subject: Re: uefi boot on Apple Mac References: <537DFD85.1090903@icloud.com> In-reply-to: Cc: freebsd-current@freebsd.org 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 11:09:22 -0000 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 using 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 “make buildworld” 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 default path that UEFI will look for (the following steps are copied from https://wiki.freebsd.org/UEFI#CD.2FDVD_Boot_under_UEFI): > dd if=/dev/zero of=efiboot.img bs=4k count=100 > 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='i386;efiboot.img' -o no-emul-boot -o rockridge -o label=“FREEBSD_UEFI_INSTALL" -o publisher="test" uefi-test.iso freebsd_generic_installer/ To get the example in the command above to work, please make sure that the 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 “EFI Boot”. Note that unless you are using a EFI console like rEFIt or rEFInd, you may have 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índola 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.org"