Components used:
- HiFive Unmatched Rev B Freedom HF105-001, Mouser 115-HF105-001.
- Intel Wi-Fi 6 Multiprotocol Modules Wi-Fi 6 AX201 (Gig+), 2230, 2x2 AX+BT, vPro, datasheet.
- Fractal Design Ridge Black - PCIe 4.0 Riser Card Included - 2X 140mm PWM Aspect Fans Included - Type C USB - m-ITX PC Gaming Case.
- Corsair SF850L Fully Modular Low-Noise SFX Power Supply - ATX 3.0 & PCIe 5.0 Compliant - Quiet 120mm PWM Fan - 80 Plus Gold Efficiency - Zero RPM Mode - 105 C-Rated Capacitors - Black.
- XFX Radeon RX 580 GTS XXX Edition 1386MHz OC+, 8GB GDDR5, VR Ready, Dual BIOS, 3xDP HDMI DVI, AMD Graphics Card (RX-580P8DFD6) (optional).
- Samsung MZ-V7S500B/AM 500GB 970 EVO Plus M.2 (2280).
- SanDisk 32GB Ultra microSDHC UHS-I Memory Card with Adapter - 98MB/s, C10, U1, Full HD, A1, Micro SD Card - SDSQUAR-032G-GN6MA.
- Energizer 1220 3V Batteries, 3 Volt Battery Lithium Coin.
See Running on Hardware:
“Disk images files use
<image>-<machine>.<output_format>
format, for example,demo-coreip-cli-unmatched.rootfs.wic.xz
. We are interested in.wic.xz
disk images for writing to uSD card.”
Download demo-coreip-cli-unmatched.rootfs.wic.xz.
This is the 2024.10.00
version from the https://github.com/sifive/freedom-u-sdk/releases.
Pay close attention to the image type (cli
or xfce4
) and board name (freedom-u540
or unmatched
).
For this build, the cli
-unmatched
was used.
The download is a compressed file, so extract the demo-coreip-cli-unmatched.rootfs.wic
directory that should contain an 8GB file of the same name.
Windows 11 allows a right-click-extract for .xz
files which works the same way as .zip
files.
Be sure to write the uncompressed file called demo-coreip-cli-unmatched.rootfs.wic
to an SD card, such as
this SanDisk 32GB Ultra microSDHC UHS-I Memory Card with Adapter - 98MB/s, C10, U1, Full HD, A1, Micro SD Card - SDSQUAR-032G-GN6MA.
Windows users can utilize the win32diskimager from sourceforge.
Ensure the dip switches are set for the MSEL for Unmatched.
The fan shipped with the board is impressively and undesirably loud. Consider buying a DC 25mm Fan 12V 2510 Hydraulic Bearing Brushless Cooling 25mmx10mm. Make extra note that it is a 12v fan.
NOTE: ssh is enabled by default. See docs to disable:
systemctl disable sshd.socket
systemctl stop sshd.socket
Change the default password and setup user login:
THIS_USER=gojimmypi
echo "Setting up usder: $THIS_USER with sudo permissions..."
sudo useradd -m -s /bin/bash $THIS_USER
sudo usermod -aG sudo $THIS_USER
groups $THIS_USER
sudo passwd $THIS_USER
# change password from default for root user
sudo passwd root
Manually edit /etc/sudoers
:
nano /etc/sudoers
Ensure the /etc/sudoers
file contains this text:
##
## User privilege specification
##
root ALL=(ALL:ALL) ALL
gojimmypi ALL=(ALL:ALL) ALL
Note the $PATH
value for the root
user. Set this as needed for new users.
echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin
View the release:
root@unmatched:~# cat /etc/*-release
ID=freedom-u-sdk
NAME="FreedomUSDK (SiFive Freedom Unleashed SDK)"
VERSION="2024.10.00 (2024November)"
VERSION_ID=2024.10.00
VERSION_CODENAME="2024November"
PRETTY_NAME="FreedomUSDK (SiFive Freedom Unleashed SDK) 2024.10.00 (2024November)"
CPE_NAME="cpe:/o:openembedded:freedom-u-sdk:2024.10.00"
There’s a fairly minimal Linux. There’s no apt-get
, no dpkg
, no opkg
. The wired Ethernet is called end0
and NOT eth0
.
Setup network:
sudo ip addr add 192.168.1.105/24 dev end0
sudo ip route add default via 192.168.1.1
echo "nameserver 8.8.8.8" | sudo tee /etc/resolv.conf
ping -c 4 8.8.8.8
There are however, all the essentials to bake your own cake: gcc
, make
, git
:
root@unmatched:~# which gcc
/usr/bin/gcc
root@unmatched:~# gcc --version
gcc (GCC) 14.2.0
Copyright (C) 2024 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
root@unmatched:~# which make
/usr/bin/make
root@unmatched:~# make --version
GNU Make 4.4.1
Built for riscv64-freedomusdk-linux-gnu
Copyright (C) 1988-2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
root@unmatched:~# which git
/usr/bin/git
root@unmatched:~# git --version
git version 2.47.0
I wrote a 5-part blog on using wolfSSL with RISC-V systems:
- Part 1: Ready for Integration: wolfSSL and RISC-V
- Part 2: Installing and Configuring wolfSSL on RISC-V
- Part 3: Sample Application: Integrating wolfSSL with a RISC-V
- Part 4: Customization and Advanced wolfSSL Features on RISC-V
- Part 5: 5 Real-World Use Cases and Troubleshooting
demo-coreip-cli-unmatched.rootfs.wic.xz
Other links:
- https://www.sifive.com/boards/hifive-unmatched
- https://forums.sifive.com/t/installing-ubuntu-21-04-on-the-hifive-unmatched/4710/12 *