Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Jul 2014 21:42:45 +0200
From:      Anders Bolt-Evensen <andersbo87@icloud.com>
To:        David King <dking@ketralnis.com>
Cc:        freebsd-current@freebsd.org
Subject:   Re: Problems starting X on Mac using vesa, radeon or intel drivers when running FreeBSD-CURRENT in EFI
Message-ID:  <53D01035.3000302@icloud.com>
In-Reply-To: <2AE1EED7-8E9C-47EC-8AED-CDF446260E94@ketralnis.com>
References:  <53CBEC26.7080404@icloud.com> <2AE1EED7-8E9C-47EC-8AED-CDF446260E94@ketralnis.com>

next in thread | previous in thread | raw e-mail | index | archive | help
What I did was:
Install subversion either from ports or via pkg install
Get the newest source code from FreeBSD by running the command svn 
checkout svn://svn.freebsd.org/base/head /usr/src (or whatever directory 
you might choose, I used /usr/src)
Then I ran make buildworld from the new /usr/src directory.
When make buildworld had completed, I cd-ed to /usr/src/release and ran 
sh ./generate-release.sh (this basically creates a chroot-ed 
environment, installs some tools, builds kernel and world and creates an 
ISO in /scratch/R/FreeBSD-something-disc1.iso).
When the shell script generate-release.sh had completed, I ran the 
command mdconfig -a -t vnode -f 
/scratch/R/release/FreeBSD-something-disk1.iso -u 1 && mount -t cd9660 
/dev/md1 /mnt.
Then I created a new directory, /root/freebsd_generic_installer, copied 
the contents of /mnt/ to the new /root/freebsd_generic_installer 
directory and unmounted /mnt.

The following commands are taken 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 -L "FREEBSD_EFI" /dev/md0
 > mount -t msdosfs /dev/md0 /mnt
 > mkdir -p /mnt/efi/boot
 > cp /boot/loader.efi /mnt/efi/boot/bootx64.efi
 > umount /mnt
 > mdconfig -d -u 0

Finally I created the new custom ISO by running the following command:
makefs -t cd9660 -o bootimage='i386;efiboot.img' -o no-emul-boot -o 
rockridge -o label=“FREEBSD_UEFI_INSTALL" -o publisher="test" 
discname.iso /root/freebsd_generic_installer/

For the above example to work, please make sure that 
/root/freebsd_generic_installer/etc/fstab has the following entry:
/dev/iso9660/FREEBSD_UEFI_INSTALL / cd9660 ro 0 0, otherwise, the boot 
of the install DVD will stop with a mount error.

This is how I got the EFI FreeBSD installer to boot.

On 21/07/14 22:11, David King wrote:
>> Last week, I created a custom ISO from the latest -CURRENT sources which contained an EFI image that is bootable on my MacBook Pro.
>> Both installation and booting from this new FreeBSD 11 EFI system goes without any problems.
> Somewhat off-topic, but can you detail how you did this? I've been at this unsuccessfully. Did you just do this <https://wiki.freebsd.org/UEFI#CD.2FDVD_Boot_under_UEFI>?




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53D01035.3000302>