pandax381
pandax381 on Hacker News
Thanks for asking! It's compiled with -march=rv64g, so it uses the standard general-purpose extensions (IMAFD) and doesn't rely on anything exotic. Running it on bare metal is definitely a challenge I'd like to try someday! For now, the virtio-net driver is tightly coupled with QEMU, so a different network driver would be needed for specific hardware.
Thank you! I completely agree, the complexity is definitely hidden by modern tools and abstractions. It's a challenging but rewarding project. You should give it a try, it's a fantastic way to learn!
Thank you for checking it out!
Thank you! And good luck with the labs, they're a great learning experience.
Yes, that's correct! Both TCP and UDP are implemented. There's a udpecho server included as a sample application you can use to test it out.
Thank you so much for the kind words! It really means a lot, especially from someone who understands the effort involved. I'm thrilled that it's resonating with fellow low-level systems fans.
Posted by
pandax381 on Tuesday August 26, 2025 @02:24AM
from the show-hn dept.
https://github.com/pandax381/xv6-riscv-net
Hi HN,To truly understand how operating systems and network protocols work, I decided to combine two classic learning tools: the xv6 teaching OS and a from-scratch TCP/IP stack.I'm excited to share the result: my own from-scratch TCP/IP networking stack running directly inside the xv6-riscv (https://github.com/pandax381/xv6-riscv-net) kernel.The project uses a modern virtio-net driver,...
Thanks for pointing that out, that's a great observation. It's a tricky one, because the LICENSE file is inherited from the upstream mit-pdos/xv6-riscv repository, which also isn't recognized as MIT by GitHub. I'll look into fixing it.
Posted by
pandax381 on Friday August 22, 2025 @04:43AM
from the show-hn dept.