mirror of
https://git.savannah.gnu.org/git/gnuboot.git
synced 2025-01-08 16:47:40 +01:00
Denis 'GNUtoo' Carikli
6e5e4f3421
Before being merged with the commitdc6e1f32c1
("Import website-build to build the GNU Boot website."), website-build was a separate git repository. And so, even after the merge, until the commit20d122e94a
("website-build: use website from local git repository."), it still worked in the same way and still downloaded the website from git. This prevented merging the website and website-build directories together as the GNU Boot repository also needed to be a valid Untitled website repository as well. Now after this commit, the website is built from the same git tree, so we can simply adjust the build scripts to be able to move things around. In addition of making things more clear for contributors, it also simplify the migration to haunt as with haunt we typically have the haunt.cfg (and the autotools build code if needed) code in the top directory and the markdown files in a subdirectory. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> Acked-by: Adrien 'neox' Bourmault <neox@gnu.org>
130 lines
3.8 KiB
Markdown
130 lines
3.8 KiB
Markdown
---
|
|
title: How to install FreeBSD on x86 GNU GRUB payload
|
|
x-unreviewed: true
|
|
...
|
|
|
|
FreeBSD might show graphical corruption during bootup. You can fix this by
|
|
altering the order in which kernel modules/drivers are loaded. First, try moving
|
|
video to an earlier stage on the boot process, or try moving it to a later stage
|
|
instead. With this, you should be able to get a working display.
|
|
|
|
freebsd.img is the installation image for FreeBSD. Adapt the filename
|
|
accordingly, for whatever FreeBSD version you use.
|
|
|
|
Prepare the USB drive (in FreeBSD)
|
|
----------------------------------
|
|
|
|
[This page](https://www.freebsd.org/doc/handbook/bsdinstall-pre.html) on
|
|
the FreeBSD website shows how to create a bootable USB drive for
|
|
installing FreeBSD. Use the *dd* on that page.
|
|
|
|
Prepare the USB drive (in NetBSD)
|
|
---------------------------------
|
|
|
|
[This
|
|
page](https://wiki.netbsd.org/tutorials/how_to_install_netbsd_from_an_usb_memory_stick/)
|
|
on the NetBSD website shows how to create a NetBSD bootable USB drive
|
|
from within NetBSD itself. You should use the *dd* method documented
|
|
there; you can use this with any ISO, including FreeBSD.
|
|
|
|
Prepare the USB drive (in LibertyBSD or OpenBSD)
|
|
------------------------------------------------
|
|
|
|
If you downloaded your ISO on a LibertyBSD or OpenBSD system, here is
|
|
how to create the bootable FreeBSD USB drive:
|
|
|
|
Connect the USB drive. Check dmesg:
|
|
|
|
dmesg | tail
|
|
|
|
Check to confirm which drive it is, for example, if you think its sd3:
|
|
|
|
disklabel sd3
|
|
|
|
Check that it wasn't automatically mounted. If it was, unmount it. For
|
|
example:
|
|
|
|
doas umount /dev/sd3i
|
|
|
|
dmesg told you what device it is. Overwrite the drive, writing the
|
|
FreeBSD installer to it with dd. For example:
|
|
|
|
doas dd if=freebsd.img of=/dev/rsdXc bs=1M; sync
|
|
|
|
You should now be able to boot the installer from your USB drive.
|
|
Continue reading, for information about how to do that.
|
|
|
|
Prepare the USB drive (in GNU+Linux)
|
|
------------------------------------
|
|
|
|
If you downloaded your ISO on a GNU+Linux system, here is how to create
|
|
the bootable FreeBSD USB drive:
|
|
|
|
Connect the USB drive. Check dmesg:
|
|
|
|
dmesg
|
|
|
|
Check lsblk to confirm which drive it is:
|
|
|
|
lsblk
|
|
|
|
Check that it wasn't automatically mounted. If it was, unmount it. For
|
|
example:
|
|
|
|
sudo umount /dev/sdX\*
|
|
umount /dev/sdX\*
|
|
|
|
dmesg told you what device it is. Overwrite the drive, writing your
|
|
distro ISO to it with dd. For example:
|
|
|
|
sudo dd if=freebsd.img of=/dev/sdX bs=8M; sync
|
|
dd if=freebsd.img of=/dev/sdX bs=8M; sync
|
|
|
|
You should now be able to boot the installer from your USB drive.
|
|
Continue reading, for information about how to do that.
|
|
|
|
Installing FreeBSD without full disk encryption
|
|
-----------------------------------------------
|
|
|
|
Press C in GRUB to access the command line:
|
|
|
|
grub> kfreebsd (usb0,gpt3)/boot/kernel/kernel
|
|
grub> set FreeBSD.vfs.mountfrom=ufs:/dev/da1p3\
|
|
grub> boot
|
|
|
|
It will start booting into the FreeBSD installer. Follow the normal
|
|
process for installing FreeBSD.
|
|
|
|
Installing FreeBSD with full disk encryption
|
|
--------------------------------------------
|
|
|
|
TODO
|
|
|
|
Booting
|
|
-------
|
|
|
|
TODO
|
|
|
|
Configuring Grub
|
|
----------------
|
|
|
|
TODO
|
|
|
|
Troubleshooting
|
|
===============
|
|
|
|
Most of these issues occur when using libreboot with coreboot's 'text
|
|
mode' instead of the coreboot framebuffer. This mode is useful for
|
|
booting payloads like memtest86+ which expect text-mode, but for FreeBSD
|
|
it can be problematic when they are trying to switch to a framebuffer
|
|
because it doesn't exist.
|
|
|
|
In most cases, you should use the corebootfb ROM images. There ROM images
|
|
have `corebootfb` in the file name, and they start in a high resolution frame
|
|
buffer, provided by coreboot's `libgfxinit` library.
|
|
|
|
won't boot...something about file not found
|
|
---------------------------------------------
|
|
|
|
Your device names (i.e. usb0, usb1, sd0, sd1, wd0, ahci0, hd0, etc) and
|
|
numbers may differ. Use TAB completion.
|