Download - SiFive Freedom U740

From Funtoo
Revision as of 16:37, June 5, 2022 by Drobbins (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This section lists the CPU-optimized Funtoo Linux builds currently available for download for sifive-fu740. This subarch supports the RISC-V SiFive Freedom U740 processor, featured on the HiFive Unmatched board.



Date: 2022-06-04
Size: 577MB browse

Not sure which to choose? See this portion of our Install docs.

For information on how to verify the integrity of your stage3 tarball using gpg, see GPG Signatures.

Downloads accelerated by Cdn77 logo.png

Architecture and Optimization

The following settings are applied to all stages for this subarch via Funtoo subarch profiles:

CFLAGS-O2 -march=rv64gc -mabi=lp64d

What you need


  • Insert the prepared microSD card and boot into the Linux loaded on it.
  • Follow the usual Funtoo installation process to prepare the M.2 disk (/dev/nvme0n1), but don't create a separate boot partition, as you're going to be using the one already present on the microSD card (/dev/mmcblk0p3).
  • Mount your partitions under /mnt/funtoo, it should look similar to this (ignore additional rows):
root # lsblk
mmcblk0     179:0    0    30G  0 disk 
|-mmcblk0p1 179:1    0     1M  0 part 
|-mmcblk0p2 179:2    0     4M  0 part 
|-mmcblk0p3 179:3    0   130M  0 part /mnt/funtoo/boot
`-mmcblk0p4 179:4    0   6.5G  0 part 
nvme0n1     259:0    0 931.5G  0 disk 
`-nvme0n1p1 259:1    0 931.5G  0 part /mnt/funtoo
  • Finish the usual normal Funtoo installation until you need to configure booting (remember to add the microSD card boot partition to your fstab
  • Add Funtoo to the U-Boot config on the microSD card:
default Funtoo

label OpenEmbedded-SiFive-HiFive-Unmatched
   kernel /Image.gz-initramfs-unmatched.bin
   fdt /hifive-unmatched-a00.dtb
   append root=/dev/mmcblk0p4 rootfstype=ext4 rootwait console=ttySIF0,115200 earlycon

label Funtoo
   kernel /Image.gz-initramfs-unmatched.bin
   fdt /hifive-unmatched-a00.dtb
   append root=/dev/nvme0n1p1 rootfstype=ext4 rootwait console=ttySIF0,115200 earlycon
  • Rebooting should load your Funtoo installation with the official Freedom U SDK kernel

Self-compiled kernel: Build the kernel into a single (EFI) image (with an embedded initramfs, should you need one), then install that to the microSD card's boot partition, along with the hifive-unmatched-a00.dtb file from your kernel's source directory. Adjust the kernel and fdt entries from /boot/extlinux/extlinux.conf accordingly.