frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Porting xv6 to HiFive Unmatched board

https://github.com/eyengin/xv6-riscv-unmatched
25•eyengin•1d ago
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.

iCloud Photos Downloader

https://github.com/icloud-photos-downloader/icloud_photos_downloader
57•reconnecting•54m ago•21 comments

A set of Idiomatic prod-grade katas for experienced devs transitioning to Go

https://github.com/MedUnes/go-kata
43•medunes•4d ago•6 comments

Gentoo Linux 2025 Review

https://www.gentoo.org/news/2026/01/05/new-year.html
247•akhuettel•8h ago•121 comments

"Scholars Will Call It Nonsense" the Structure of Erich von Däniken's Argument

https://www.penn.museum/sites/expedition/scholars-will-call-it-nonsense/
13•Kaibeezy•51m ago•3 comments

Ask HN: What are you working on? (January 2026)

75•david927•3h ago•269 comments

Meta announces nuclear energy projects

https://about.fb.com/news/2026/01/meta-nuclear-energy-projects-power-american-ai-leadership/
139•ChrisArchitect•1h ago•142 comments

Anthropic: Developing a Claude Code competitor using Claude Code is banned

https://twitter.com/SIGKITTEN/status/2009697031422652461
64•behnamoh•1h ago•29 comments

I'm making a game engine based on dynamic signed distance fields (SDFs) [video]

https://www.youtube.com/watch?v=il-TXbn5iMA
27•imagiro•3d ago•3 comments

Poison Fountain

https://rnsaffn.com/poison3/
131•atomic128•3h ago•88 comments

Perfectly Replicating Coca Cola [video]

https://www.youtube.com/watch?v=TDkH3EbWTYc
54•HansVanEijsden•3d ago•21 comments

Sampling at negative temperature

https://cavendishlabs.org/blog/negative-temperature/
4•ag8•16m ago•0 comments

guys why does armenian completely break Claude

https://twitter.com/dyushag/status/1993143599286886525
13•ag8•14m ago•3 comments

"Food JPEGs" in Super Smash Bros. & Kirby Air Riders

https://sethmlarson.dev/food-jpegs-in-super-smash-bros-and-kirby-air-riders
226•SethMLarson•5d ago•53 comments

Happy 50th Birthday KIM-1

https://github.com/netzherpes/KIM1-Demo
57•JKCalhoun•6h ago•18 comments

I dumped Windows 11 for Linux, and you should too

https://www.notebookcheck.net/I-dumped-Windows-11-for-Linux-and-you-should-too.1190961.0.html
576•smurda•8h ago•582 comments

Show HN: Epstein IM – Talk to Epstein clone in iMessage

https://epstein.im/
9•RyanZhuuuu•19h ago•9 comments

C++ std::move doesn't move anything: A deep dive into Value Categories

https://0xghost.dev/blog/std-move-deep-dive/
208•signa11•2d ago•159 comments

BasiliskII Macintosh 68k Emulator Ported to ESP32-P4 / M5Stack Tab5

https://github.com/amcchord/M5Tab-Macintosh
67•rcarmo•8h ago•9 comments

Show HN: Interactive California Budget (by Claude Code)

https://california-budget.com
6•sberens•3h ago•0 comments

Quake 1 Single-Player Map Design Theories (2001)

https://www.quaddicted.com/webarchive//teamshambler.planetquake.gamespy.com/theories1.html
8•Lammy•14h ago•1 comments

China applies to put 200K satellites in space after calling Starlink crash risk

https://www.scmp.com/news/china/science/article/3339493/china-applies-put-200000-satellites-space...
30•nkurz•6h ago•11 comments

Pigeon's Device (2009)

http://pigeonsnest.co.uk/stuff/pigeons-device.html
3•gaul•1h ago•0 comments

The Concise TypeScript Book

https://github.com/gibbok/typescript-book
195•javatuts•14h ago•44 comments

Instagram data breach reportedly exposed the personal info of 17.5M users

https://www.engadget.com/cybersecurity/an-instagram-data-breach-reportedly-exposed-the-personal-i...
158•IvanAchlaqullah•5h ago•53 comments

My Home Fibre Network Disintegrated

https://alienchow.dev/post/fibre_disintegration/
228•alienchow•15h ago•200 comments

You are not required to close your <p>, <li>, <img>, or <br> tags in HTML

https://blog.novalistic.com/archives/2017/08/optional-end-tags-in-html/
126•jen729w•1d ago•192 comments

HTML-only conditional lazy loading (via preload and media)

https://orga.cat/blog/html-conditional-lazy-loading/
74•netol•8h ago•12 comments

Vojtux – Unofficial Linux Distribution Aimed at Visually Impaired Users

https://github.com/vojtapolasek/vojtux
107•TheWiggles•4d ago•26 comments

KaraDAV – Lightweight Nextcloud compatible WebDAV server

https://github.com/kd2org/karadav
30•indigodaddy•7h ago•1 comments

Finding and fixing Ghostty's largest memory leak

https://mitchellh.com/writing/ghostty-memory-leak-fix
587•thorel•1d ago•123 comments