Tweaking the NetBSD kernel

HARD-CODED SECURELEVEL

Take the chance to disable securelevel -1

vi $kernel

#options        INSECURE

MULTIBOOT

Make it Multiboot-compliant

options MULTIBOOT

CONSOLE COLOR

And in case this is bare-metal and not a XEN nor serial console

grep WSCOL /usr/src/sys/dev/wscons/wsdisplayvar.h

options         WS_KERNEL_FG=WSCOL_BROWN
#options         WS_KERNEL_FG=WSCOL_RED

ALTQ

kernel=ALTQ
#kernel=INSTALLMULTI
#kernel=GENERICMULTI
#kernel=SMALLPLUS

cd /usr/src/sys/arch/`uname -m`/conf/
cp -pi GENERIC $kernel
#cp -pi XEN3_DOMU $kernel

Enable ALTQ

#sample from netbsd-8
options         ALTQ            # Manipulate network interfaces' output queues
options         ALTQ_BLUE       # Stochastic Fair Blue
options         ALTQ_CBQ        # Class-Based Queueing
options         ALTQ_CDNR       # Diffserv Traffic Conditioner
options         ALTQ_FIFOQ      # First-In First-Out Queue 
options         ALTQ_FLOWVALVE  # RED/flow-valve (red-penalty-box)
options         ALTQ_HFSC       # Hierarchical Fair Service Curve
options         ALTQ_LOCALQ     # Local queueing discipline
options         ALTQ_PRIQ       # Priority Queueing 
options         ALTQ_RED        # Random Early Detection
options         ALTQ_RIO        # RED with IN/OUT
options         ALTQ_WFQ        # Weighted Fair Queueing

NFE NIC

cd /usr/src/sys/arch/i386/conf
cp -pi DISKLESS NFE
#cp -pi INSTALL_SMALL NFE
cat >> LESSPLUS <<-EOF
nfe*    at pci? dev ? function ?        # NVIDIA nForce Ethernet
#viaide*         at pci? dev ? function ?        # VIA/AMD/Nvidia IDE controllers
EOF

Resources

nfe

http://netbsd.gw.com/cgi-bin/man-cgi?nfe+4

http://netbsd.gw.com/cgi-bin/man-cgi?piixide

https://www.netbsd.org/docs/guide/en/chap-net-practice.html#chap-net-practice-kernel-options


HOME | GUIDES | BENCHMARKS | html