Blame
|
1 | # NetBSD Port |
||||||
|
2 | |||||||
| 3 | > [!WARNING] |
|||||||
| 4 | > This page is very much a work in progress! |
|||||||
| 5 | ||||||||
| 6 | ||||||||
| 7 | ## Building |
|||||||
| 8 | I've forked a copy of the NetBSD sources. |
|||||||
| 9 | ### Kernel |
|||||||
| 10 | 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**. |
|||||||
| 11 | ||||||||
| 12 | ``` |
|||||||
| 13 | git clone https://github.com/znac049/netbsd-src.git |
|||||||
| 14 | cd netbsd-src |
|||||||
|
15 | ./build.sh -U -u -j4 -O ~/obj -m hb68k tools |
||||||
|
16 | ./build.sh -U -u -j4 -O ~/obj -m hb68k kernel=SBC3 |
||||||
| 17 | ./build.sh -U -u -j4 -O ~/obj -m hb68k distribution |
|||||||
| 18 | ``` |
|||||||
| 19 | ||||||||
|
20 | - The first step builds the tools (compiler etc) that will be used to build the kernel and userspace. |
||||||
| 21 | - The next step builds the kernel. |
|||||||
|
22 | - The final step takes a Long Time(tm) and builds the userspace, which will need to be added to the root filesystem. |
||||||
|
23 | |||||||
| 24 | I've still got to document how to build the root filesystem. |
|||||||