Commit 26eeaf

2026-10-28 17:21:46 Bob Green: -/-
project ideas/operating system/netbsd port.md ..
@@ 1,1 1,22 @@
# NetBSD Port
+
+ > [!WARNING]
+ > This page is very much a work in progress!
+
+
+ ## Building
+ I've forked a copy of the NetBSD sources.
+ ### Kernel
+ NetBSD contains a port called **hb68k** which is designed for any 680x0 sbc type of board and I used that to create a variant for my SBC, which I've called **SBC3**.
+
+ ```
+ git clone https://github.com/znac049/netbsd-src.git
+ cd netbsd-src
+ ./build.sh -U -u -j4 -O ~/NetBSD-Port/obj -m hb68k tools
+ ./build.sh -U -u -j4 -O ~/obj -m hb68k kernel=SBC3
+ ./build.sh -U -u -j4 -O ~/obj -m hb68k distribution
+ ```
+
+ - The first step builds to tools (compiler etc) that will be used to build the kernel and userspace.
+ - The next step builds the kernel
+ - The final step takes a Long Time(tm) and builds the userspace, which will need to be added to the root filesystem.
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9