frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

We ran a Unix-like OS Xv6 on our home-built CPU with a home-built C compiler

https://fuel.edby.coffee/posts/how-we-ported-xv6-os-to-a-home-built-cpu-with-a-home-built-c-compiler/
127•AlexeyBrin•4h ago

Comments

layer8•3h ago
(2020)
djoldman•3h ago
Previously:

https://news.ycombinator.com/item?id=24680109

boricj•2h ago
That reminds me of a three week, three person group project I had back when I was in university. There were a couple of topics we could pick from, including writing a very simple operating system from scratch. I asked the professors if we could instead port MINIX3 to the Raspberry Pi (given that it already had an ARM port to the BeagleBoard) and they accepted.

What was supposed to be a reasonably straightforward project proved to be a huge challenge as we encountered numerous unforeseen technical difficulties. One particularly harrowing one was that the Raspberry Pi 3 booted into hypervisor mode instead of supervisor mode and QEMU's Raspberry Pi emulation accuracy was so abysmal back then to be borderline useless for osdev. I recall it took me an entire week of low-level hardware debugging just to figure that one out.

By the end, we pulled through and delivered a working port with UART, GPIO and framebuffer drivers that could run on the Raspberry Pi 2 and 3. We run our presentation with the port on real hardware, using a shell script that displayed bitmaps from the ramdisk and monitored GPIO pins to move slides forwards or backwards (I used a knife to short-circuit the pins as needed). It was by far the coolest presentation of all the groups just on originality alone and I think I still have the image of that SD card somewhere.

rustybolt•31m ago
Nice.

> I asked the professors if we could instead port MINIX3 to the Raspberry Pi

I think they were expecting you to fail.

> QEMU's Raspberry Pi emulation accuracy was so abysmal

When I did some hobby OS dev my strategy was to make it work on QEMU and then pray it would work on real hardware as well, which worked OK...

How did you handle the debugging the raspberry pi on real hardware?

Tepix•2h ago
Very impressive! Low end work is often tedious and time consuming, especially if you lack the essentials like a debugger.
73kl4453dz•1h ago
Until you've used an oscilloscopes to debug your buggy kprintf, you haven't lived.
tonyarkles•41m ago
LOL in my 4th year Advanced Operating Systems Concepts course we wrote a toy x86 OS from scratch. We obviously didn't have to make our own hardware, but uhhhh I definitely added a bunch of printfs inside QEMU to dump out CPU states when we couldn't figure out the chain of events that led to hard faults.

On the other side... have also definitely used a pair of LEDs to try to debug an RTOS on a microcontroller with no JTAG access...

dleslie•2h ago
We did this sort of thing at SFU some 25-30 years ago; though we stopped short of running an OS and compiler on it, and it wasn't a group project.

For those interesting in trying this sort of experiment, but wish to have some guidance and accessible tooling, I highly recommend Turing Complete; you'll go from a few gates to a full computer. Components can be shared with the community; where you'll find things like a RiscV core and such. Anyhow, it's great fun. Do recommend. It's on Steam:

https://store.steampowered.com/app/1444480/Turing_Complete/

s3graham•1h ago
That looks like the game-version of nand2tetris which I enjoyed doing a while back too (as another suggestion).
_sbrk•1h ago
Magic-1 and BMOW did similar, a while back. See: https://www.homebrewcpu.com/

The actual list of sites who have built their own CPUs: https://www.homebrewcpuring.org/

b0a04gl•1h ago
while building altogether cpu + compiler + os ,there's no platform under you. you're the platform.. every bug you hit is a law of your system.. most of us debug through layers someone else wrote. here, even the rules are homemade..op debugged his own rules

BusyBeaver(6) Is Quite Large

https://scottaaronson.blog/?p=8972
2•bdr•52s ago•0 comments

Yamtrack: A self-hosted media tracker

https://github.com/FuzzyGrim/Yamtrack
1•jrmann100•1m ago•0 comments

Canada's Trump-Fueled Brain Gain

https://www.nytimes.com/2025/06/28/world/canada/trump-universities-professors-toronto.html
1•_tk_•2m ago•0 comments

Have Claude Code consult o3/Gemini for complex problems via MCP

https://github.com/raine/consult-llm-mcp
1•rane•3m ago•0 comments

YouTube's mobile video editor is coming to iOS

https://techcrunch.com/2025/06/27/youtubes-mobile-video-editor-is-coming-to-ios/
1•Abubaker771•3m ago•0 comments

Is being bilingual good for your brain?

https://www.economist.com/science-and-technology/2025/06/27/is-being-bilingual-good-for-your-brain
2•Anon84•4m ago•0 comments

Improved pull request files changed experience now in public preview

https://github.blog/changelog/2025-06-26-improved-pull-request-files-changed-experience-now-in-public-preview/
1•e2e4•5m ago•1 comments

Tokenization for Beginners: How to Invest in Real‑World Assets on the Blockchain

https://thecryptojournal.substack.com/p/tokenization-for-beginners-how-to
1•muzikman1•5m ago•0 comments

Feds charge Chinese citizen with smuggling biological materials (C. elegans)

https://www.freep.com/story/news/local/michigan/2025/06/09/feds-charge-chinese-citizen-with-smuggling-biological-materials/84117678007/
1•perihelions•6m ago•0 comments

Conferences, Clarity, and Smokescreens

https://infrequently.org/2025/06/conferences-clarity-and-smokescreens/
1•robin_reala•6m ago•0 comments

Open Source License Obligations Checklists

https://www.osadl.org/OSADL-Open-Source-License-Checklists.oss-compliance-lists.0.html
1•Tomte•12m ago•0 comments

ODFM, an omics data resource from microorganisms associated with fermented foods

https://www.nature.com/articles/s41597-021-00895-x
1•Tomte•12m ago•0 comments

Circle on Canvas: An AI Story

https://playtechnique.io/blog/circle-on-a-canvas-an-ai-story.html
2•gwynforthewyn•13m ago•0 comments

Why is every successful tech founder an Ivy League graduate

2•moneyhungry•13m ago•4 comments

William James Sidis

https://en.wikipedia.org/wiki/William_James_Sidis
1•kevmo•14m ago•0 comments

Show HN: CopyTrack – un clipboard tracker invisibile e automatico per Windows

https://github.com/Loki3737/loki
1•loki3737•15m ago•1 comments

The Coming Technological Singularity, by Vernor Vinge (1993)

https://edoras.sdsu.edu/~vinge/misc/singularity.html
2•wyclif•19m ago•0 comments

Velocity Coding: going fast with AI

https://softerware.substack.com/p/tiger-mom-coding
1•benzguo•19m ago•0 comments

Why the US just can't quit Middle East wars

https://www.vox.com/world-politics/417710/mideast-wars-trump-iran
3•lr0•20m ago•0 comments

Ask HN: Personal Finances AI Tool

1•SMAAART•23m ago•0 comments

Jane Street's sneaky retention tactic

https://www.economist.com/finance-and-economics/2025/06/26/jane-streets-sneaky-retention-tactic
2•yawaramin•25m ago•1 comments

Jacobi Ellipsoid

https://en.wikipedia.org/wiki/Jacobi_ellipsoid
3•perihelions•26m ago•0 comments

Peter Thiel: Elon Musk has given up on Mars

https://unherd.com/newsroom/peter-thiel-elon-musk-has-given-up-on-mars/?us
10•elsewhen•31m ago•3 comments

Stars Passing Near the Sun Could Cause Planets to Collide or Be Ejected

https://www.nytimes.com/2025/06/28/science/sun-solar-system-collisions-stars.html
2•elsewhen•31m ago•0 comments

Three Siblings, One Fatal Gene: A Family's Fight Against Early-Onset Alzheimer's

https://www.wsj.com/health/pharma/early-onset-alzheimers-disease-fight-65273ed3
1•melling•32m ago•1 comments

Elite Dating Services Are Thriving as Love Defies Economic Woes

https://www.bloomberg.com/news/articles/2025-06-24/elite-dating-services-are-thriving-as-love-defies-economic-woes
1•LordAtlas•33m ago•0 comments

Show HN: ArchiveJump – Browser extension to instantly jump to archived articles

https://github.com/dhrm1k/ArchiveJump
2•dhrm1k•36m ago•0 comments

What makes Europe better than America?

https://www.thefp.com/p/what-makes-europe-better-than-america
3•zeroonetwothree•38m ago•0 comments

Rakuten accelerates development with Claude Code

https://www.anthropic.com/customers/rakuten
3•ksec•39m ago•0 comments

Device Tree Overlays on Jetson – Scary but Fun

https://jetsonhacks.com/2025/04/07/device-tree-overlays-on-jetson-scary-but-fun/
1•eaguyhn•40m ago•0 comments