Tweaking the NetBSD kernel

grab-binary | grab-source | kernel | cross | world | tweak

Kernel config

cd /usr/src/sys/arch/`uname -m`/conf/
cp -pi GENERIC PFALTQ
cp -pi XEN3_DOMU DOMU-PFALTQ

hard-code the securelevel

take the chance to disable the unsecure level

vi PFALTQ
vi DOMU-PFALTQ

#options        INSECURE

pfsync & carp

#pseudo-device  npf                     # NPF packet filter
pseudo-device pf              # PF packet filter
pseudo-device pflog           # PF log interface
pseudo-device pfsync

pseudo-device   carp                    # Common Address Redundancy Protocol

altq

enable ALTQ

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

Additional notes

multiboot

required for dom0 only

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

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 | LECTURES | LAB | SMTP HEALTH | HTML5 | CONTACT
Copyright © 2024 Pierre-Philipp Braun