nowfound

Life & fun · January 10, 2026

PX

Porting xv6 to HiFive Unmatched board

Hi HN, I ported the teaching OS xv6-riscv to HiFive Unmatched and got it running on real hardware, including passing usertests. I've been self-studying OS internals using the MIT 6.1810 materials. After finishing most of the labs, I was eager to see what it's like to run the OS on bare metal, rather than QEMU. The Unmatched may not have the latest RISC-V features, but it's well-documented, and the Rev B release has made it more affordable, which makes it a good learning platform. The porting process involved several interesting challenges: - Hardware Quirks: Handling things like enabling…

Visit github.comAlternativestop 15% of January 2026

In plain words

This project demonstrates a successful port of xv6-riscv, an educational operating system, to the HiFive Unmatched RISC-V board, running on actual hardware rather than emulation. Created by a self-taught OS developer working through MIT 6.1810 coursework, the port addresses real hardware challenges including interrupt handling, memory management quirks, and boot flow compatibility. It is for students and hobbyists learning operating system internals who want to run teaching OS code on actual RISC-V hardware. The work stands out for bridging the gap between theoretical OS concepts and practical bare-metal implementation.

written from the facts on this page · September 2026

From the sources

In the maker’s words, at launch

Hi HN, I ported the teaching OS xv6-riscv to HiFive Unmatched and got it running on real hardware, including passing usertests. I've been self-studying OS internals using the MIT 6.1810 materials. After finishing most of the labs, I was eager to see what it's like to run the OS on bare metal, rather than QEMU. The Unmatched may not have the latest RISC-V features, but it's well-documented, and the Rev B release has made it more affordable, which makes it a good learning platform. The porting process involved several interesting challenges: - Hardware Quirks: Handling things like enabling A/D bits in PTEs (the hardware doesn't set them automatically, causing page faults), proper handling of interrupts, and instruction cache synchronization. - Boot Flow: xv6 expects M-mode on startup, but standard RISC-V boot flows (typically via OpenSBI) jump to S-mode. To bridge this gap, I created a minimal U-Boot FIT image that contains only the xv6 kernel. This way, U-Boot SPL handles the complex CPU/DDR initialization, then hands control to xv6 in M-mode (skipping OpenSBI). - Drivers: Ported an SPI SD card driver, replacing the virtio disk driver. I wrote up implementation notes here: https://github.com/eyengin/xv6-riscv-unmatched/blob/unmatche... Hopefully, this is useful for others who are learning OS internals and want to try running their code on real RISC-V hardware.

More life & fun this month

the category →
  • TL

    Life & fun · 10d ago · louisabraham.github.io

  • Photosynthesis fires two of your iPhone

    Life & fun · 28d ago · photosynthesis.camera

  • SoloUno310

    Take control of hair pulling, nail biting & skin picking

    Life & fun · 28d ago · solouno.io

  • Scroll through all 43,252,003,274,489,856,000 reachable Rubik's Cube permutations.

    Life & fun · 26d ago · everycube.alen.is

  • The Interactive 3D Encyclopedia

    Life & fun · 21d ago · expeditione.fun

  • Hi HN, I built Eigendrum, a web tool that solves the 2D wave equation for arbitrary shapes so you can hear what they sound like as drums. How it works: * Solves -∇²u = λu using finite element analysis (Kφ = λMφ) on a triangle mesh. * Validated to <0.1% error against closed-form solutions for circles (Bessel zeros) and rectangles. * Sound model factors in strike location, Rayleigh damping, and mallet width. * Includes Kac drums I & II to demonstrate identical sound spectra from different geometries. * No frameworks, build steps, or dependencies. Repo and tests:…

    Life & fun · 27d ago · baselashraf81.github.io

Launched alongside, January 2026

the whole month →
  • IN

    Hey HN! I wanted to share something I built over the last few weeks: isometric.nyc is a massive isometric pixel art map of NYC, built with nano banana and coding agents. I didn't write a single line of code. Of course no-code doesn't mean no-engineering. This project took a lot more manual labor than I'd hoped! I wrote a deep dive on the workflow and some thoughts about the future of AI coding and creativity: http:&#x2F;&#x2F;cannoneyed.com&#x2F;projects&#x2F;isometric-nyc

    AI · Jan 2026 · cannoneyed.com

  • Cowork1,088

    Turn Claude into your digital coworker

    AI · Jan 2026 · claude.com

  • DataFast870

    Revenue-first analytics

    Growth · Jan 2026 · datafa.st

  • OpenClaw841

    The AI that actually does things

    AI · Jan 2026 · openclaw.ai

  • Automatic AI-powered code reviews the moment you open a PR

    Dev tools · Jan 2026 · kilo.ai

  • AI Content Maker, for Social Media Publishing

    AI · Jan 2026 · postsyncer.com