Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Jul 2014 22:24:40 +0800
From:      Huang Wen Hui <huanghwh@gmail.com>
To:        Anders Bolt-Evensen <andersbo87@icloud.com>
Cc:        freebsd-current <freebsd-current@freebsd.org>
Subject:   Re: uefi boot on Apple Mac
Message-ID:  <CAB8uncYoAc_UzKOnaPxTOHWv-GBX%2By7RFA_5Wk=jh9E-pcTG=Q@mail.gmail.com>
In-Reply-To: <53C10945.4020003@icloud.com>
References:  <CAB8uncZ5CGiCQexVVKn9fDkX_wug5WBmiXSs0JgQ6O60dWePbg@mail.gmail.com> <537DFD85.1090903@icloud.com> <CAG3jReJpOFaM-eL6kjYQY=xR=1CpnzY3_FNtxq3xRsqzuY7PUg@mail.gmail.com> <CAB8uncYm4uhr6fGasmyDhBaAzAbqmiGU_iGqBsajvcEvF1QPbg@mail.gmail.com> <CAG3jReKuB-Z-PDf6jrLF8WeqTLce30E6j3yp0OmbMuB3sxPydQ@mail.gmail.com> <CAPyFy2BmQtyuzwLz9z6uwi%2BC6LTCyWcbBKo_k-t3q%2BDwm_bi8w@mail.gmail.com> <CAB8uncai=hiVYibrAvDCEqWN-UdLSpgUxQLC=3Wtvo5vHmfbvw@mail.gmail.com> <53C10945.4020003@icloud.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <andersbo87@icloud.com>:

> 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 <emaste@freebsd.org>:
>>
>>  On 24 May 2014 19:39, Rafael Esp=C3=ADndola <rafael.espindola@gmail.com=
>
>>> 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
>> "
>>
>
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAB8uncYoAc_UzKOnaPxTOHWv-GBX%2By7RFA_5Wk=jh9E-pcTG=Q>