r/RISCV • • 8h ago

Librem 5 v2 (RISC-V phone) switches to SpacemiT K3

23 Upvotes

Previously mentioned here: https://www.reddit.com/r/RISCV/comments/1xwssay/crowdfunding_purism_librem_5_v2_riscv_spacemit_k1/

A new post says they will switch to K3: https://puri.sm/posts/purism-to-bring-risc-v-k3-to-the-librem-5-v2-at-no-additional-cost/

"On battery, mobile mode will use four CPU cores, prioritizing efficient everyday operation. When docked, desktop mode will make all eight CPU cores available, providing additional processing capacity for a larger-screen, desktop-style experience."


r/RISCV • • 7h ago

Standards RISC-V ELF psABI 2.0 rc1 Released

Thumbnail
github.com
6 Upvotes

It adds the big endian and RV64ILP32 ABI variants, vector register calling convention, some clarification in calling convention, additional rules in C++ name mangling, new and updated relocation, etc.

Existing (psABI 1.0) binary is basically psABI 2.0-compatible, though the removal of RVC_LUI and the change of GOT_HI20 offset calculation may affect.


r/RISCV • • 13h ago

Hardware Running RV32IMA Linux 6.6 (Sv32 MMU) on a 20K-LUT Gowin FPGA over a single USB-C cable with a pure-Verilog USB Ethernet NIC

10 Upvotes

GitHub: https://github.com/potats0/gw2a-riscv-linux-soc

I got a full RISC-V Linux 6.6 SoC running on a low-cost Gowin GW2A-LV18 (20K LUT) FPGA board (Lichuang LogicPi FPGA-G1), booting to a persistent ext4 rootfs and SSH shell over a single USB Type-C cable (power + networking, debugger unplugged).

To be completely upfront: Gemini did a lot of the work for me on this project. I have no prior hardware or Verilog background, and

Gemini wrote most of the SoC RTL, the pure-Verilog USB 1.1 PHY and CDC-ECM virtual NIC, the Linux kernel drivers, timing constraints, and build scripts. My job was setting the goals, wiring and flashing the board, running real-hardware tests, and iterating through bugs together until it ran stably on physical silicon.

RISC-V & SoC Architecture:

  • -CPU Core: VexRiscv RV32IMA + Sv32 MMU + zicntr hardware rdtime @ 60 MHz (actual Fmax 71.22 MHz, 0 ns TNS)
  • L1 Caches: 8 KiB 2-way VIPT I-Cache + 8 KiB 2-way VIPT D-Cache (64B lines, 16-word Wishbone bursts)
  • Boot & Interrupts: Custom RV32 BootROM -> OpenSBI v1.5.1 -> Linux 6.6.63, standard CLINT (1 MHz mtime) and PLIC (7 IRQ sources)
  • Memory & Storage: 256 MiB DDR3 (using Gowin's DDR3 IP), 8 MiB W25Q64 SPI Flash, persistent ext4 rootfs on MicroSD via an onboard GD32F303 4 KiB batched SPI bridge
  • Single-Cable USB NIC: Pure-Verilog USB 1.1 Full-Speed soft PHY (48 MHz 4x oversampling DPLL, NRZI, bit-stuffing) + hardware

auto-enumerating CDC-ECM Ethernet controller over just 3 regular GPIO pins (D+, D-, 1.5k pull-up), recognized driverlessly on Linux/macOS via mainline cdc_ether

Real-Hardware Results:

  • Cold boot to persistent ext4 shell: 7.49 s (Run /init at 5.24 s)
  • USB Virtual NIC: ~4.18 ms ping RTT, 0% packet loss, Dropbear 2024.86 SSH/SCP (Ed25519)
  • DDR3 + Cache stress test: >100 MiB continuous random MD5 verification, 0 bit flips, 0 kernel warnings
  • GW2A-LV18 Utilization: 51% LUT (10,548 / 20,736), 45% FF (7,195 / 16,173), 37 / 46 BSRAM (81%), 4 / 24 DSP, 3 / 4 rPLL

Everything except the Gowin DDR3 memory controller IP is open source (MIT for RTL/firmware/scripts, GPL-2.0 for the Linux drivers), including Verilator testbenches for both the SoC and the USB CDC-ECM unit.

With ~49% of the LUTs, 9 BSRAMs, and 1 rPLL still free, I'm considering trying dual-core SMP Linux (VexRiscvLitexSmpCluster_Cc2 with 4K+4K caches) next. Feedback, critiques, or RTL tips are very welcome!


r/RISCV • • 16h ago

Standards The Branch with Immediate (Zibi) Extension Ratified and Merged into the Manual

Thumbnail
github.com
13 Upvotes

The extension adds two instructions, BEQI and BNEI. They compare a register with a small immediate value and branch if condition is met. They can replace a sequence of LI and BEQ / BNE with one less live register, which means less register spill and reload. Immediate value 0 represents -1, as you can always compare with zero using the x0 register without the LI instruction.


r/RISCV • • 1d ago

Standards Is the Confidential VM / with IO (Non‑ISA) Extensions is like Intel's Management Engine or AMD's Platform Security Processor are not to be trusted for security or "NSA" (being a backdoor and a privacy) concerns? :|

9 Upvotes

r/RISCV • • 2d ago

Airbus and Starlab powered up the 100× faster processor that will one day run commercial space stations as well as future Artemis missions.

Thumbnail
linkedin.com
17 Upvotes

Airbus Defense and Space team brought up the RISC-V based PIC64-HPSC evaluation platform for the first time, with engineers from Microchip and Starlab (The folks behind the commercial space station replacement).

HPSC comes from a NASA/JPL effort to replace spacecraft processors whose architectures are often decades old (BAE RAD750). Microchip is targeting roughly 100× the computing capacity of today’s space processors.


r/RISCV • • 1d ago

Help wanted Need beginner-friendly online resources for RISC-V ISA

4 Upvotes

I have an exam today covering the RISC-V Instruction Set Architecture (ISA), and I’m starting completely from scratch with zero prior knowledge.

Since I'm on a super tight deadline, I’m looking for the best beginner-friendly, fast-paced online resources—like crash course videos, concise cheat sheets, interactive simulators, or clear articles—that explain the core concepts (registers, instruction formats, basic assembly operations, etc.) quickly.


r/RISCV • • 2d ago

Software RustDesk now supports RISC-V (riscv64 Linux)

Thumbnail reddit.com
11 Upvotes

r/RISCV • • 3d ago

Software felix86 26.12 – felix86 – Run x86 and x86-64 games on RISC-V

Thumbnail
felix86.com
68 Upvotes

r/RISCV • • 3d ago

Discussion Where will Chinese RISC-V SoC's be made, and on what process node ?

24 Upvotes

While Donald, Vladimir and Xi were meeting in China, new sanctions were imposed on China (2026-11-19). (ref: https://ca.finance.yahoo.com/news/tsmc-tightens-china-ai-chip-124653283.html ) - "... world's largest contract chipmaker has instructed that affected orders using manufacturing processes of 16 nanometres and below be halted unless customers obtain US export licences ..."

As I see it there are two, possibly three, options:

  • Go back to 22 nm, 28 nm or 40 nm process nodes, with higher power and/or lower clock.
  • Try to get access to their SMIC 14nm (TSMC 16FF+ / Samsung 14LPP) or SMIC N+17nm (~TSMC 10nm / Samsung 8nm) or SMIC N+2 7nm (~TSMC N7 - 7nm DUV) or Hua Hong 7nm class (DUV multi-patterning logic - HLMC Fab 6), both which I am guessing have extremely limited capacity, that is probably being used for AI/military right now and at worst only have a 50% yield per silicon wafer.
  • If the SoC's are for Smartphone & Edge SoCs (not for AI or data center servers) there might be a complex way for the fab to request a US export licence, but this will add months of delay while being processed.

What do you think the most likely outcome before China has home grown EUV ?


r/RISCV • • 2d ago

Any information about RosaicLabs?

8 Upvotes

I recently got an offer from Rosaic Labs and was wondering if anyone in the industry has heard much about them. I haven't been able to find much information online, and they were pretty reluctant to discuss what they're working on during the interview process.

Does anyone know what they're doing differently from other AI chip startups? How promising is their approach, and do they have a realistic shot at competing in this space?

I'm also curious whether people think it would be a good place to start a career vs a more established semi company.

Thanks!


r/RISCV • • 3d ago

Anyone here into bare-metal C & Assembly (RISC-V / microcontrollers) and want to team up on small projects?

23 Upvotes

Hey guys, I spend most of my time writing bare-metal C and Assembly - mostly custom bootloaders, register-level code, and low-level security tools without heavy OS layers. Looking for a few chill people to team up with. Doesn't matter if you already work close to hardware or you're a total beginner; I genuinely enjoy mentoring how registers, memory, and hardware actually work from scratch, so we can split ideas and build small projects at our own pace. Drop a comment or DM me if you're down.


r/RISCV • • 3d ago

Information RISC-V Vector Bit Compress/Expand Project - by FPRox

Thumbnail
fprox.substack.com
7 Upvotes

r/RISCV • • 3d ago

Haiku riscv64 on Milk-V Titan with NVIDIA GPU and hardware video decode

Post image
22 Upvotes

r/RISCV • • 4d ago

Linux 7.5 On Track For Landing Initial Tenstorrent Atlantis Platform Support

Thumbnail
phoronix.com
30 Upvotes

Ok, so what about the hardware?


r/RISCV • • 4d ago

Other ISAs 🔥🏪 LoongArch Architecture Translator (LAT) Is Now Open-source

Thumbnail
github.com
9 Upvotes

r/RISCV • • 4d ago

Is coreboot / libreboot available for risc-v socs and sbcs?

Thumbnail reddit.com
3 Upvotes

r/RISCV • • 5d ago

Software xv6 running on real hardware: StarFive VisionFive V1 (JH7100)

Post image
3 Upvotes

I had a VisionFive V1 sitting unused because almost nothing is published for it any more, so I ported MIT's xv6 teaching OS to it. Upstream xv6 only targets QEMU's virt machine.

It boots from the factory U-Boot (OpenSBI in M-mode, xv6 in S-mode) to a shell on the serial console, and `usertests -q` passes on the board.

What had to change:

- S-mode entry at 0x80200000 via U-Boot's `go`, no M-mode setup

- timer through SBI `set_timer`, since the U74 has no sstc

- DesignWare APB UART instead of the 8-bit 16550 (32-bit registers, busy-detect interrupt)

- PLIC with 133 sources

- kernel sets A/D bits in PTEs, because the U74 faults instead of setting them

- RAM disk in place of virtio

The bug that cost the most time: the kernel printed fine with polling but hung on its first interrupt-driven write. U-Boot on this board runs on hart 1, not hart 0, so I had enabled the UART interrupt in the wrong hart's PLIC context. U-Boot leaves its hart id in `tp`, which is how the port finds it now.

Single hart and RAM-backed filesystem for now. Next on the list are the second hart via SBI HSM and an SD driver for the dw_mmc controller.

Built with some AI assistance. Repo, with boot steps and the full diff against upstream:

https://github.com/HackHobby-Lab/xv6-visionfive-v1

If anyone else still has a V1 and tries it, I'd like to hear whether it boots on your firmware version.


r/RISCV • • 5d ago

NextSilicon Arbel RISC-V CPU Shown at SC26

Thumbnail
servethehome.com
35 Upvotes

r/RISCV • • 6d ago

Pico 2 / RP2350 at 624 MHz – 4× Overclock, RISC-V Beats Arm | RP2350 #23

Thumbnail
youtube.com
26 Upvotes

r/RISCV • • 7d ago

I made a thing! Booting Linux on a simple custom RISC-V core

Thumbnail
github.com
11 Upvotes

Hello everyone.

I am a master’s student, and in my spare time, I built a RISC-V processor on a $30 FPGA that runs Linux.

The goal of this project is not to create an elaborate, high-performance multi-threaded processor, but rather to develop a modern processor capable of running the world’s most widely used operating system—all while keeping hardware requirements, the instruction set architecture (ISA), and the principles of their interaction as lean as possible.

The project includes a processor with a 3-stage pipeline, support for atomic instructions, virtual memory, and a cache. Peripherals include an SD card interface, CLINT, PLIC, and UART.

I welcome any feedback—whether it’s a star on GitHub, a contribution to the project, or simply a question.

The project documentation can be found in the `doc/arch/` directory as Markdown files. If you are developing your own processor cores—whether for study or professional work—and your goal is to understand how Linux operates on logic gates, this project is for you.


r/RISCV • • 8d ago

An RV32IM CPU implemented entirely as curl config files: one `curl` process per instruction (it runs DOOM)

Post image
44 Upvotes

Every instruction is one curl -K next.cfg process. curl's --expand-variable can read a file whose path comes from earlier variables, and since 8.12 it can slice variables by byte range. Together that's enough for a straight-line program of dependent table lookups, covering fetch, decode, execute, next pc, and decoding the next instruction.

  • State: one file per 32-bit word. Registers and pc are files too, 8 hex digits each.
  • ALU: byte-wise lookup tables (764,341 files). add is a carry chain through lut/adc/C/A/B. Branches compute both targets and pick one with a range a comparison table returns. x0 writes go to a sink file.
  • M extension: mul sums byte products from a table. div/rem are restoring division unrolled into 32 rounds, 354 lookups in one process, with div-by-zero and overflow coming out per the spec with no special cases.
  • Next instruction: a 4-step decoder automaton over the next instruction's bytes picks one of 51 templates, and the step copies it over next.cfg.
  • Verification: a C reference emulator passes rv32ui/rv32um, and a simulator of the exact curl subset runs in lockstep with it. Real curl passes the same suites, and every frame is hash-checked against the simulator.

It runs doomgeneric at ~2 ms per instruction, so ~40 minutes per frame.

Live: https://doom.vashiru.tech · Write-up: https://vashiru.tech/doom-computed-by-curl/ · Source: https://github.com/Vashiru/curl-doom

Disclosure: Claude (AI) wrote the code from my brief; I set the rules and made the calls.


r/RISCV • • 8d ago

Haiku with Web Browser Now Boots from SD on VisionFive2 and VF2Lite

Thumbnail
gallery
28 Upvotes

https://github.com/spacemonkeyboom/Beacon-OS

Full USB and HDMI audio support and onboard wifi for equipped boards. One image boots VF2/Lite and OrangePi RV from an SD card without the need for USB swapping or firmware updates, I hope to have that up later on today. I hope this helps other Haiku distros, onward to full desktop functionality on RV!


r/RISCV • • 7d ago

QBao (variant of Bao), resource partitioning hypervisor, booting Linux and QSOE on K3

Thumbnail
youtube.com
8 Upvotes