This guide provides instructions on how to get a NUC (Next Unit of Computing) device up and running with Fuchsia.
The steps are:
To get started, you need the following parts:
For GPU support, get a NUC7 (Kaby Lake) or NUC8 (Coffee Lake). The list below shows some example models:
The table below shows some example parts with links to the manufacturer's product pages:
Item | Link | Notes |
---|---|---|
RAM | Crucial 8GB DDR4-2400 SODIMM | Works fine. |
SSD | Samsung SSD 850 EVO SATA M.2 250GB | Works fine. |
SSD | ADATA Ultimate SU800 M.2 2280 3D NAND SSD | Works fine. |
SSD | CRUCIAL MX300 SSD | Works fine, but is discontinued. |
Monitor | HP 22cwa | Works fine. |
NUCs do not come with RAM or an SSD, so you need to manually install them.
Figure 1. A NUC device and RAM and SSD sticks.
To install the RAM and SSD on your NUC, do the following:
Remove the Phillips screws on the bottom feet of the NUC.
Install the RAM.
Remove the Phillips screws that would hold the SSD in place (a Phillips screwdriver with a magnetic tip is useful here).
Install the SSD.
Mount the SSD in place using the screws from Step 3.
Put the bottom feet and screws back in.
Plug power, ethernet cable, HDMI, and keyboard into the NUC.
Plug the other end of the ethernet cable into your workstation (or the router or switch connected to the workstation).
To enable EFI (Extensible Firmware Interface) booting on your NUC, do the following:
Reboot your NUC.
To enter BIOS, press F2
while booting.
In the Boot Order window on the left, click the Legacy tab.
Uncheck Legacy Boot.
Click the Advanced button.
Confirm the following boot configuration:
Select the Secure Boot tab and uncheck Secure Boot.
To save the changes and exit BIOS, press F10
.
Note: Network booting only works with the NUC's built-in ethernet; netbooting via USB-ethernet dongle is not supported.
If you want to remotely manage the device, see Remote management for NUC.
To build a Fuchsia system image for your NUC, follow the Get started with Fuchsia guide.
When running fx set
, make sure to use the x64
board configuration (for example, fx set workstation.x64
).
Before installing Fuchsia to a device, you need to prepare a bootable USB drive. On a NUC, Fuchsia boots via a chain of bootloaders. The instructions below creates a USB drive containing the first two steps in the chain: Gigaboot and Zedboot.
Gigaboot is a UEFI boot shim with some limited functionality, including netbooting and flashing. By default, Gigaboot chains into Zedboot, which is a bootloader built on top of Zircon. Zedboot then either boots into Fuchsia or allows you to pave your device. To set up a NUC for the first time, you need to boot into Zedboot and pave Fuchsia to your device's storage.
To prepare a bootable USB drive, do the following:
Plug your USB key into your build workstation.
Identify the path to your USB key:
fx list-usb-disks
Create a Zedboot USB drive:
fx mkzedboot /path/to/usb/disk
For more information on preparing a bootable USB drive, see Prepare a USB flash drive to be a bootable disk.
To pave Fuchsia on your NUC, do the following:
Plug the Zedboot USB key into the NUC and boot it.
When Zedboot is started, press Alt
+ F3
to switch to a command-line prompt.
Note: If you cannot press Alt
+F3
because the keyboard on the NUC is not working, see Keyboard not working after Zedboot in Troubleshoot.
On the NUC, view the HDD or SSD's block device path:
lsblk
Take note of the block device path (for example, the path might look like /dev/sys/platform/pci/00:17.0/ahci/sata0/block
).
On the NUC, clear and initialize the partition tables on the NUC:
install-disk-image init-partition-tables --block-device <BLOCK_DEVICE_PATH>
Use the block device path from Step 3.
On your workstation, install Fuchsia on the NUC:
fx pave
After paving is completed, disconnect the USB key.
Fuchsia is now installed on your NUC. When you reboot the machine, it will load Gigaboot, Zedboot, and Fuchsia all from your device‘s storage. You don’t need the USB drive anymore. If you need to pave a new version of Fuchsia, you can run fx reboot -r
on your workstation, which reboots the NUC into Zedboot.
In the Pave Fuchsia section, after plugging the Zedboot USB key into the NUC, if you notice that the keyboard on the NUC is not working, then skip Step 2 through 4 and perform the following workaround instead:
On your workstation, try to install Fuchsia on the NUC:
fx pave
This command may fail due to the partition tables issue on the NUC.
View the kernel logs:
fx klog
In the logs, look for an error message similar to the following:
Unable to find a valid GPT on this device with the expected partitions. Please run *one* of the following command(s): fx init-partition-tables /dev/sys/platform/pci/00:17.0/ahci/sata0/block
To initialize the partition tables on the NUC, run the suggested command in the logs, for example:
fx init-partition-tables /dev/sys/platform/pci/00:17.0/ahci/sata0/block
Now, to install Fuchsia on the NUC, run the following command again:
fx pave