Tweaking the NetBSD kernel

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

choose the right conf to begin with

screen -S build

cd /usr/src/sys/arch/amd64/conf/
#cd /usr/src/sys/arch/`uname -m`/conf/

cp -pi GENERIC PFALTQ
cp -pi XEN3_DOMU DOMU-PFALTQ

kernel=PFALTQ
kernel=DOMU-PFALTQ

vi $kernel

take the chance to disable the unsecure level

# remove
#options    INSECURE

enable good old OpenBSD Packet Filter and CARP – see pfsync & carp for more details

# remove
#pseudo-device npf

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

# already enabled
pseudo-device carp

enable good old ToS-based Quality of Service – see ALTQ for more details

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 notesAdditional 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

ResourcesResources

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
Licensed under MIT