Wednesday, June 12, 2013

Tips and Tricks for NetBSD - Custom Kernel

.: Custom Kernel on NetBSD :.

If you want to discuss more about the BSD kernel implementation, sorry, but this is meant to be a quick guide for those who want to make simple adjustments and build a custom kernel. Feel free to go further.

Just follow the 10 steps bellow:

  1. cd /usr/src 
  2. wget http://mirror/netbsd/NetBSD-5.1/source/sets/syssrc.tgz
  3. tar zxvf sys.tar.gz -C /usr/src 
  4. cd /usr/src/sys/arch/i386/conf 
  5. cp GENERIC MYKERNEL (and edit MYKERNEL as you need ;-P)
  6. config MYKERNEL
  7. cd ../compile/MYKERNEL
  8. make depend && make && mv /netbsd /netbsd.original 
  9. cp netbsd / 
  10. reboot
Hum! That was fast and easy, wasn't it? :)
Keep practicing with different configurations!

See ya!

No comments:

Post a Comment