# HiFive Unleashed

**URL:** https://forums.sifive.com/c/hifive-unleashed/12.md

[Latest](https://forums.sifive.com/latest.md) · [Categories](https://forums.sifive.com/categories.md)

---

## [About the HiFive Unleashed category](https://forums.sifive.com/t/about-the-hifive-unleashed-category/1143)

<div class="topic-metadata">

**Author:** [@mhamrick](https://forums.sifive.com/u/mhamrick)\
**Replies:** 0\
**Last updated:** [October 29, 2020, 7:00am UTC](https://forums.sifive.com/t/about-the-hifive-unleashed-category/1143 "2020-10-29T07:00:00Z")

</div>

Discussions, News, and Information about the HiFive Unleashed board. https://www.sifive.com/boards/hifive-unleashed

---

## [U-boot FIT from scratch](https://forums.sifive.com/t/u-boot-fit-from-scratch/7617)

<div class="topic-metadata">

**Author:** [@timothyyohanan](https://forums.sifive.com/u/timothyyohanan)\
**Replies:** 0\
**Last updated:** [November 27, 2025, 4:25am UTC](https://forums.sifive.com/t/u-boot-fit-from-scratch/7617 "2025-11-27T04:25:08Z")

</div>

After a standard u-boot build: $ export CROSS\_COMPILE=riscv64-linux-gnu- $ export OPENSBI=/usr/share/qemu/opensbi-riscv64-generic-fw\_dynamic.bin $ make sifive\_unleashed\_defconfig $ make all We collect some of the ou…

---

## [Unable to connect to Debugger in Si-Fi](https://forums.sifive.com/t/unable-to-connect-to-debugger-in-si-fi/7526)

<div class="topic-metadata">

**Author:** [@vikramtrivedi](https://forums.sifive.com/u/vikramtrivedi)\
**Replies:** 0\
**Last updated:** [September 3, 2025, 9:14pm UTC](https://forums.sifive.com/t/unable-to-connect-to-debugger-in-si-fi/7526 "2025-09-03T21:14:56Z")

</div>

Error in final launch sequence: Failed to execute MI command: -target-select remote localhost:1234 Error message from debugger back end: Remote ‘g’ packet reply is too long (expected 272 bytes, got 364 bytes): 000000…

---

## [Help Needed: Customizing SiFive Freedom E SDK for New Board](https://forums.sifive.com/t/help-needed-customizing-sifive-freedom-e-sdk-for-new-board/7213)

<div class="topic-metadata">

**Author:** [@pasiho](https://forums.sifive.com/u/pasiho)\
**Replies:** 0\
**Last updated:** [April 18, 2025, 7:29am UTC](https://forums.sifive.com/t/help-needed-customizing-sifive-freedom-e-sdk-for-new-board/7213 "2025-04-18T07:29:15Z")

</div>

Hello all, I’m working on a project using the SiFive Freedom E SDK and trying to port it to a custom board based on the FE310 core. I’ve followed the docs and some example builds, but I’m running into a few roadblocks. …

---

## [Accessing SPI controller registers in u-boot command line](https://forums.sifive.com/t/accessing-spi-controller-registers-in-u-boot-command-line/6569)

<div class="topic-metadata">

**Author:** [@droptop](https://forums.sifive.com/u/droptop)\
**Replies:** 0\
**Last updated:** [October 4, 2024, 3:33pm UTC](https://forums.sifive.com/t/accessing-spi-controller-registers-in-u-boot-command-line/6569 "2024-10-04T15:33:21Z")

</div>

Hi everyone, When running U-Boot in M-Mode on the QEMU sifive\_u machine, I get a Load Access Fault when trying to access one of the SPI controllers (QSPI 2) using md.w 0x10050000 1. Any reason why this is happening?? I…

---

## [Cadence gem ethernet device driver for Zephyr](https://forums.sifive.com/t/cadence-gem-ethernet-device-driver-for-zephyr/6492)

<div class="topic-metadata">

**Author:** [@kwangbaeklee](https://forums.sifive.com/u/kwangbaeklee)\
**Replies:** 2\
**Last updated:** [July 24, 2024, 6:15am UTC](https://forums.sifive.com/t/cadence-gem-ethernet-device-driver-for-zephyr/6492 "2024-07-24T06:15:56Z")

</div>

Hi Folks, I’m looking for an ethernet device driver for Zephyr. Following is the one for Linux, but was not able to find for Zephyr. Please let me know if anyone has seen it or knows the way of getting it. Thank yo…

---

## [A dts file for Zephyr on QEMU (FU540)](https://forums.sifive.com/t/a-dts-file-for-zephyr-on-qemu-fu540/6484)

<div class="topic-metadata">

**Author:** [@kwangbaeklee](https://forums.sifive.com/u/kwangbaeklee)\
**Replies:** 2\
**Last updated:** [May 23, 2024, 4:34am UTC](https://forums.sifive.com/t/a-dts-file-for-zephyr-on-qemu-fu540/6484 "2024-05-23T04:34:40Z")

</div>

Dear folks, Would you mind sharing a dts file of Freedom Unleashed 540(FU540) for Zephyr v3.6.99? I’m trying to run an ethernet device driver with DMA on top of QEMU environment, but wasn’t able to find a dts file for …

---

## [Performance counters over Linux](https://forums.sifive.com/t/performance-counters-over-linux/6480)

<div class="topic-metadata">

**Author:** [@ApoCha](https://forums.sifive.com/u/ApoCha)\
**Replies:** 2\
**Last updated:** [May 11, 2024, 2:08pm UTC](https://forums.sifive.com/t/performance-counters-over-linux/6480 "2024-05-11T14:08:49Z")

</div>

Hello, I would like to ask how to access performance counters from userland Linux processes (since M mode privileges are required). If I have to build a custom kernel in which I set the mcounteren and scounteren regist…

---

## [Booting Linux](https://forums.sifive.com/t/booting-linux/6476)

<div class="topic-metadata">

**Author:** [@ApoCha](https://forums.sifive.com/u/ApoCha)\
**Replies:** 2\
**Last updated:** [May 8, 2024, 9:33am UTC](https://forums.sifive.com/t/booting-linux/6476 "2024-05-08T09:33:51Z")

</div>

Hello everyone. I am trying to boot Linux in Unleashed board but with no luck so far (yes I know that the old version is not maintained nowadays…). Every possible solution that i have tried from the Internet and github r…

---

## [Multiple glibc arches in the same image?](https://forums.sifive.com/t/multiple-glibc-arches-in-the-same-image/6367)

<div class="topic-metadata">

**Author:** [@Amit\_Cher](https://forums.sifive.com/u/Amit_Cher)\
**Replies:** 6\
**Last updated:** [January 26, 2024, 9:11am UTC](https://forums.sifive.com/t/multiple-glibc-arches-in-the-same-image/6367 "2024-01-26T09:11:18Z")

</div>

Hi, I wanted to know if it is possible to have more than one permutation of multilibs(glibc, libgcc, libstdc++…) in a single final image, or more specifically one compiled with -march=rv64imafdc -mabi=lp64d and the other…

---

## [Running RISCV linux on QEMU with machine model Sifive\_u](https://forums.sifive.com/t/running-riscv-linux-on-qemu-with-machine-model-sifive-u/6296)

<div class="topic-metadata">

**Author:** [@Swedha](https://forums.sifive.com/u/Swedha)\
**Replies:** 4\
**Last updated:** [October 12, 2023, 11:13pm UTC](https://forums.sifive.com/t/running-riscv-linux-on-qemu-with-machine-model-sifive-u/6296 "2023-10-12T23:13:13Z")

</div>

Hi, I want to run riscv64 linux on top of qemu with the machine model sifive\_u. I had a preinstalled server ubuntu-23.04.img, prebuilt u-boot image and qemu version 8.0.0. And in the qemu website itself they mentioned…

---

## [QEMU-Sifive\_u](https://forums.sifive.com/t/qemu-sifive-u/6298)

<div class="topic-metadata">

**Author:** [@Coder](https://forums.sifive.com/u/Coder)\
**Replies:** 1\
**Last updated:** [September 26, 2023, 9:37pm UTC](https://forums.sifive.com/t/qemu-sifive-u/6298 "2023-09-26T21:37:44Z")

</div>

How to emulate Sifive\_u machine model in qemu? Is there any particular steps to follow? Please let us know. Thank you

---

## [Booting Linux from UEFI on QEMU for U540 board](https://forums.sifive.com/t/booting-linux-from-uefi-on-qemu-for-u540-board/5965)

<div class="topic-metadata">

**Author:** [@palanivel](https://forums.sifive.com/u/palanivel)\
**Replies:** 9\
**Last updated:** [July 25, 2023, 8:15am UTC](https://forums.sifive.com/t/booting-linux-from-uefi-on-qemu-for-u540-board/5965 "2023-07-25T08:15:48Z")

</div>

Hi, I am trying to boot Linux OS on QEMU for U540 board. I have built EDK2 firmware for U540 board. I am getting UEFI Shell prompt when I run qemu. I would like to know how to boot the Linux directly from UEFI. I ha…

---

## [Check Main Memory Specifications](https://forums.sifive.com/t/check-main-memory-specifications/6217)

<div class="topic-metadata">

**Author:** [@plafratt](https://forums.sifive.com/u/plafratt)\
**Replies:** 1\
**Last updated:** [July 12, 2023, 10:11am UTC](https://forums.sifive.com/t/check-main-memory-specifications/6217 "2023-07-12T10:11:26Z")

</div>

I have a SiFive system, and I’m trying to determine the main memory specs (e.g. speed, number of channels) on the command line. My /proc/cpuinfo says, processor : 0 hart : 1 isa : rv64imafdc…

---

## [\[PLIC\] Interrupt does not occur when disabling in the ISR before complete](https://forums.sifive.com/t/plic-interrupt-does-not-occur-when-disabling-in-the-isr-before-complete/6075)

<div class="topic-metadata">

**Author:** [@padmaraob](https://forums.sifive.com/u/padmaraob)\
**Replies:** 4\
**Last updated:** [March 15, 2023, 5:31am UTC](https://forums.sifive.com/t/plic-interrupt-does-not-occur-when-disabling-in-the-isr-before-complete/6075 "2023-03-15T05:31:34Z")

</div>

Hi, Point 1 - The Interrupt is not working Point 2 - The Interrupt is working The SiFive PLIC is tested on the Microchip PolarFire SoC. 1). The Interrupt does not occur when disabling the interrupt before interrupt c…

---

## [Riscv E31 Arty example in Eclipse Error](https://forums.sifive.com/t/riscv-e31-arty-example-in-eclipse-error/6064)

<div class="topic-metadata">

**Author:** [@hparpinel](https://forums.sifive.com/u/hparpinel)\
**Replies:** 6\
**Last updated:** [March 14, 2023, 6:16am UTC](https://forums.sifive.com/t/riscv-e31-arty-example-in-eclipse-error/6064 "2023-03-14T06:16:19Z")

</div>

Hi, I am trying to run the Riscv E31 Arty example in Eclipse but I am getting the error below: make all Building file: …/xpacks/micro-os-plus-semihosting/src/syscalls-semihosting.cpp Invoking: GNU RISC-V Cross C++ Co…

---

## [Using the DMA controller on unleashed from Linux](https://forums.sifive.com/t/using-the-dma-controller-on-unleashed-from-linux/2460)

<div class="topic-metadata">

**Author:** [@kal](https://forums.sifive.com/u/kal)\
**Replies:** 1\
**Last updated:** [March 10, 2023, 5:17pm UTC](https://forums.sifive.com/t/using-the-dma-controller-on-unleashed-from-linux/2460 "2023-03-10T17:17:33Z")

</div>

I have a setup which includes unleashed plugged to vcu118 FPGA. Copying memory with cpu to the FPGA takes too long but I am not familiar with dma apis on Linux enough to do this using the (built-in ?) dma controller on u…

---

## [Freedom Studio project build errors](https://forums.sifive.com/t/freedom-studio-project-build-errors/6049)

<div class="topic-metadata">

**Author:** [@knfrey](https://forums.sifive.com/u/knfrey)\
**Replies:** 0\
**Last updated:** [February 21, 2023, 5:01pm UTC](https://forums.sifive.com/t/freedom-studio-project-build-errors/6049 "2023-02-21T17:01:29Z")

</div>

I created a basic project and it builds without any issues. When I make a change to the core.dts file, I get the following error messages. /usr/bin/make -f scripts/virtualenv.mk virtualenv make\[1\]: Entering directory …

---

## [TileLink Source and Sink Identifiers](https://forums.sifive.com/t/tilelink-source-and-sink-identifiers/5990)

<div class="topic-metadata">

**Author:** [@xianpei](https://forums.sifive.com/u/xianpei)\
**Replies:** 0\
**Last updated:** [January 13, 2023, 7:02am UTC](https://forums.sifive.com/t/tilelink-source-and-sink-identifiers/5990 "2023-01-13T07:02:18Z")

</div>

Hi All, tilelink\_spec\_1.8.1.pdf, the last row of Table 14. Summay of TileLink routing fields, I think for Channel E, response to slave- should be routed by e\_sink, other than e\_source.

---

## [Redistribute Compiler for Windows 7 as standalone zip](https://forums.sifive.com/t/redistribute-compiler-for-windows-7-as-standalone-zip/5959)

<div class="topic-metadata">

**Author:** [@rupy](https://forums.sifive.com/u/rupy)\
**Replies:** 6\
**Last updated:** [January 7, 2023, 10:44am UTC](https://forums.sifive.com/t/redistribute-compiler-for-windows-7-as-standalone-zip/5959 "2023-01-07T10:44:47Z")

</div>

Hi can I bundle this on whole or in part with my commercial product: I’m thinking just these files: libiconv-2.dll libwinpthread-1.dll riscv-none-elf-gcc.exe Or is anything else needed to compile? Edit: It says “…

---

## [Dram bandwidth?](https://forums.sifive.com/t/dram-bandwidth/2562)

<div class="topic-metadata">

**Author:** [@caorr1980](https://forums.sifive.com/u/caorr1980)\
**Replies:** 4\
**Last updated:** [August 13, 2022, 3:02pm UTC](https://forums.sifive.com/t/dram-bandwidth/2562 "2022-08-13T15:02:24Z")

</div>

Hi Is there anyone tested the dram bandwidth? I simply tested it by following command, it seems the dram bandwidth is so slow… From sysfs, I got the core frequency is about 1GHz, but what’s the dram clock frequency? F…

---

## [Qemu load OpenSBI debug error](https://forums.sifive.com/t/qemu-load-opensbi-debug-error/5753)

<div class="topic-metadata">

**Author:** [@NeoPi](https://forums.sifive.com/u/NeoPi)\
**Replies:** 0\
**Last updated:** [June 29, 2022, 6:21am UTC](https://forums.sifive.com/t/qemu-load-opensbi-debug-error/5753 "2022-06-29T06:21:06Z")

</div>

I am using QEMU to build sifive\_ U simulates the environment to debug opensbi, but when debugging through the GDB remote end, the code is stuck in the opensbi cold start code. When I separate GDB, QEMU can run normally O…

---

## [Compiling Kernel](https://forums.sifive.com/t/compiling-kernel/4716)

<div class="topic-metadata">

**Author:** [@banitos](https://forums.sifive.com/u/banitos)\
**Replies:** 13\
**Last updated:** [May 18, 2022, 3:28pm UTC](https://forums.sifive.com/t/compiling-kernel/4716 "2022-05-18T15:28:34Z")

</div>

Hello, How can I only compile the kernel for hifive unleashed + expansion board patches? Instead of using freedom-u-sdk,yocto or buildroot? Can someone guide me on how to build the kernel only? Thanks! …

---

## [Reading and writing mechanism of QSPI in hifive fu540 board](https://forums.sifive.com/t/reading-and-writing-mechanism-of-qspi-in-hifive-fu540-board/3452)

<div class="topic-metadata">

**Author:** [@HSong](https://forums.sifive.com/u/HSong)\
**Replies:** 1\
**Last updated:** [May 13, 2022, 6:44am UTC](https://forums.sifive.com/t/reading-and-writing-mechanism-of-qspi-in-hifive-fu540-board/3452 "2022-05-13T06:44:44Z")

</div>

Hello, all I have some questions about flash reading and writing. The code in funciton sifive\_spi\_transfer\_one in spi-sifive.c of Linux : static int sifive\_spi\_transfer\_one(struct spi\_master \*master, struct spi\_devic…

---

## [Is board U540 a board that has all the firmware open source?](https://forums.sifive.com/t/is-board-u540-a-board-that-has-all-the-firmware-open-source/5563)

<div class="topic-metadata">

**Author:** [@dkeoivnd](https://forums.sifive.com/u/dkeoivnd)\
**Replies:** 1\
**Last updated:** [January 18, 2022, 7:00am UTC](https://forums.sifive.com/t/is-board-u540-a-board-that-has-all-the-firmware-open-source/5563 "2022-01-18T07:00:38Z")

</div>

Is board U540 a board that has all the firmware open source? Which firmware is open source? Which firmware have free source code? Which firmware is proprietary? If the firmware does not have open or free code, is it …

---

## [Using assembly code, embedded in C code](https://forums.sifive.com/t/using-assembly-code-embedded-in-c-code/5529)

<div class="topic-metadata">

**Author:** [@Oren](https://forums.sifive.com/u/Oren)\
**Replies:** 1\
**Last updated:** [December 23, 2021, 8:16pm UTC](https://forums.sifive.com/t/using-assembly-code-embedded-in-c-code/5529 "2021-12-23T20:16:52Z")

</div>

Hello, I would like to get your help please, I’m trying to convert c function to assembly and use the assembly code instead c-code function. I convert the c function to asm by using -S, and use the generated ASM code…

---

## [Risc-v U540 inferencing is too slow](https://forums.sifive.com/t/risc-v-u540-inferencing-is-too-slow/5447)

<div class="topic-metadata">

**Author:** [@ouyy](https://forums.sifive.com/u/ouyy)\
**Replies:** 1\
**Last updated:** [November 25, 2021, 4:49pm UTC](https://forums.sifive.com/t/risc-v-u540-inferencing-is-too-slow/5447 "2021-11-25T16:49:26Z")

</div>

As SiFive official website “SiFive Essential™” down page write "U54 core can compare with A53 " so I speculate that when use cpu A53 and U54 to inference, if the software is almost the same including the glibc ve…

---

## [Android on u540](https://forums.sifive.com/t/android-on-u540/5288)

<div class="topic-metadata">

**Author:** [@ghalibkhan](https://forums.sifive.com/u/ghalibkhan)\
**Replies:** 1\
**Last updated:** [October 21, 2021, 3:41pm UTC](https://forums.sifive.com/t/android-on-u540/5288 "2021-10-21T15:41:27Z")

</div>

Hello, I have built RISC-V android images kernel, ramdisk, system and vendor for fu540 Board. Currently Know i need few suggestions how to create SD-card partition to boot up android images on fu540. Tnks in advance, …

---

## [How to select Ariane core in freedomstudio](https://forums.sifive.com/t/how-to-select-ariane-core-in-freedomstudio/5275)

<div class="topic-metadata">

**Author:** [@sree](https://forums.sifive.com/u/sree)\
**Replies:** 3\
**Last updated:** [October 14, 2021, 6:08pm UTC](https://forums.sifive.com/t/how-to-select-ariane-core-in-freedomstudio/5275 "2021-10-14T18:08:01Z")

</div>

Hi I am currently working on Ariane core and I wish to use freedom studio to debug and compile the program. Can you help me to set up freedom studio to work on Ariane core downloaded from below repo: Thanks in advance…

---

## [Ubuntu 20.04 LTS images for HiFive Unleashed & QEMU VMs](https://forums.sifive.com/t/ubuntu-20-04-lts-images-for-hifive-unleashed-qemu-vms/4429)

<div class="topic-metadata">

**Author:** [@xnox](https://forums.sifive.com/u/xnox)\
**Replies:** 19\
**Last updated:** [October 4, 2021, 11:22pm UTC](https://forums.sifive.com/t/ubuntu-20-04-lts-images-for-hifive-unleashed-qemu-vms/4429 "2021-10-04T23:22:10Z")

</div>

Ubuntu 20.04.2 LTS point release is out, and it adds a supported RISC-V preinstalled server image. See the link for it at https://cdimage.ubuntu.com/releases/20.04.2/release/ There are a few further documentation note…

[Next page](https://forums.sifive.com/c/hifive-unleashed/12.md?page=1)
