Summary: Introduced the meaning of the FreeBSD kernel parameters, give us a custom-compliant FreeBSD kernel to provide reference #
# Generic - Generic Machine Kernel
#
## Host type I386 Because FreeBSD is running on x86
Machine "i386"
## CPU Type Look at yourself a few 86
#CPU "i386_cpu" # 386's computer
#CPU "i486_cpu" # 486's computer
CPU "i586_cpu" # 586's computer
#CPU "i686_cpu" # 686's computer
## 内 Nuclear ID No special meaning
Ident generic
## Defines how much the structure of the system should retain how much memory space, usually
## 16 or 32 is enough, unless you open, or use 64
## Pay attention to this value is less than your memory number
MAXUSERS 32
## A number of processes that users can perform
Options child_max = 256
## A file limit that users can open
OPTION OPEN_MAX = 256
## Open the kernel debugging, the average person can not use
#options ddb
## Allow debugging memory cells (seek KTRACE, KDUMP for details), or leave it to the kernel hacker
#options Ktrace #kernel Tracing
## No FPU (SX) friends, people with dx are not available
#oPtions Math_emulate #support for x87 emulation
## You have 64MB or more, specified units are k, for example, 128MB RAM
#options "MaxMem = (128 * 1024)"
## Support the network, must have a nonsense
Options inet #interneetworking
## i i 相关 相关 agreement
#options ipx # ipx / spx communications protocols
#options ipxip #ipx in ip encapsulation (Not Available
#options ptunnel #ip in ipx encapsulation (Not Available
#options ipxprintfs = 0 # ipx / spx console debugging information
#options ipx_errprintfs = 0 # ipx / spx console debugging information
## File System Settings
## Only UFS is required, the other can do not have to use the Kernel to load with LKM.
## Note that the file system is named with a double quotes, and see the Linux file system below.
Options FFS #Berkeley Fast FileSystem
#options NFS #Network FileSystem
#options NFS_NOSERVER #disable the NFS-Server Code.
#options msdosfs # msdos FileSystem
#options "CD9660" #iso 9660 FileSystem
#options procfs #Process FileSystem
#options kernfs #kernel FileSystem
#options nqnfs #enable nqnfs lese checking
#options fdesc #file descriptor FileSystem
#options LFS #Log FileSystem
#options MFS #Memory File System
#options Nullfs #Null FileSystem
#options portal #portal FileSystem # Options umapfs #uid map FileSystem
#options union # ion filesystem
#options devfs #devices FileSystem
##
## Friends with Linux file systems pay attention to use the following line
#options "ext2fs" # ext2fs, only in 2.2-current
## 4.3BSD compatibility, this is necessary, some programs can be used
Options "compat_43" #compatible with BSD 4.3
## Execute Linux program file Even if you use LKM to load, you still need this parameter.
## You can modify Linux = Yes in / etc / sysconfig or execute / usr / bin / linux
## Pair you must install Linux_lib in package
#options "compat_linux" #Linux Emulator
## SCO Binary Simulation
#options "ibcs2"
## When starting, the SCSI card will wait for the equipment to prepare for a few seconds, for some slow SCSI devices,
## If the CDROM is needed, the minimum is 2, choose the right value for you.
Options "SCSI_DELAY = 4" #be Pessimistic About Joe SCSI Device
## Allow users to intercept console information for the procedures for Xconsole, are necessary
Options uconsole #unix console
## Virtual console maximum, Alt-f1 to ALT-F12, etc., just define the upper limit
## Virtual console required to see / etc / ttys definition Vty
## This value is 16
Options "Maxcons = 8" #max number for Virtual Console
## For Wine (MS-Windows Emulator)
#options user_ldt #for Wine, MS-Windows Emulator
## Use the quota limit
#options quota #for quotas
## sysv ipc / shm (BBS needs to be used with X-window and compat_linux), this is necessary
Options sysvmsg, sysvsem, sysvshm #for SYSV-IPC
## LKM loader, this is necessary (abolished in 2.1.5r has been abolished into an internal parameter)
#options Lkm #Loadable Kernel Module Loader
## If you use the ISA's SCSI card, there is more than 16MB of memory, you must open this item, otherwise you can't
## Use> 16MB memory. If you are using the SCSI card of Eisa / VL / PCI, you don't need it.
## Open it will reduce a little speed, nothing, don't open (it is not available with IDE)
#options bounce_buffers #include support for Dma Bounce Buffers
## To use ip-firewall, you can use LKM to load
#options ipfirewall #firewall code
#oPtions ipfirewall_verbose #print Information About Dropped Packets
#oPtions ipacct #used with ipfirewall
## To use ip-firewall or as Router
## After 2.2-960323-SNAP, it has been abolished and opened in sysctl (see / etc / sysconfig)
#options Gateway #InterneTwork Gateway
## Multicast Routing, use #options MROUTING #Multicast Routing when doing multiple routers
## Allow SWAP DEVICE (internal 20)
#options nswaPDev = 20
## Specify root partition on that hard disk
# On the first SCSI HD
Config kernel root on SD0
# On the first IDE HD
#config kernel root on wd0 dumps on wd0
## Use ISA bus
Controller ISA0
## Using the EISA bus
#Controller Eisa0
## Using the PCI bus
Controller PCI0
## 软驱 drive controller
Controller FDC0 AT ISA? Port "IO_FD1" BIO IRQ 6 DRQ 2 Vector FDINTR
# 软 驱 A
Disk FD0 AT FDC0 Drive 0
# 软 驱 B
# Disk FD1 AT FDC0 Drive 1
## IDE Hard Disk Controller
Controller WDC0 AT ISA? Port "IO_WD1" BIO IRQ 14 Vector WDINTR
Disk WD0 AT WDC0 DRIVE 0
Disk WD1 AT WDC0 Drive 1
## The second IDE hard disk controller, only when there is a second IDE controller
#Controller WDC1 AT ISA? Port "IO_WD2" BIO IRQ 15 Vector WDINTR
#disk WD2 AT WDC1 Drive 0
#disk WD3 AT WDC1 Drive 1
## IDE (ATAPI Specifications) CD-ROM
#oPtions atapi #enable atapi support for IDE BUS
#options atapi_static
#device wcd0 #ide CD-ROM
## SCSI control card, please read the detailed description from / SYS / I386 / Conf / LINT
#Controller AHC0
#Controller NCR0
#Controller BT0 AT ISA? Port "IO_BT0" BIO IRQ? Vector Btintr
#Controller uha0 AT ISA? Port "IO_UHA0" BIO IRQ? DRQ 5 Vector UHINTR
#CONTROLLER AHC1 AT ISA? BIO IRQ? Vector Ahcintr
#Controller AHB0 AT ISA? BIO IRQ? Vector AHBINTR
#Controller AHA0 AT ISA? Port "IO_AHA0" BIO IRQ? DRQ 5 Vector AHAINTR
#Controller aic0 AT ISA? Port 0x340 BIO IRQ 11 Vector aicintr
#Controller NCA0 AT ISA? Port 0x1F88 BIO IRQ 10 Vector NCAINTR
#Controller NCA1 AT ISA? Port 0x350 Bio IRQ 5 Vector NCAINTR
#Controller Sea0 AT ISA? BIO IRQ 5 iomem 0xc8000 iosiz 0x2000 Vector Seaintr
## SCSI bus support, use SCSI essential
#Controller scbus0
## SCSI HD SCSI hard disk
#Device sd0 #only Need ONE, The code Dynamically Grows
## SCSI CDROM SCSI Channel
#Device cd0 #only Need one of these, The code Dynamically Grows ## SCSI Tape SCSI tape drive
# de-one of these, The code Dynamically Grows
## SCSI Optical Disk (MO) SCSI MO Driver
#Device odd0 #only nesed one of these, The code Dynamically Grows
## SCSI Media Changers (Juke-Box)
#Device ch0 #only Need ONE, The Code Dynamically Grows
# ------------------ Use the AT-bus's optical drive (non-ATAPI now very few now) ---------------
## mitsumi CDROM Beauty
#Controller MCD0 AT ISA? Port 0x300 Bio IRQ 10 Vector MCDIntr
## Sony CDROM Sony Optics
#CONTROLLER SCD0 AT ISA? Port 0x230 Bio
## Panasonic CDROM Panasonic Channel
#CONTROLLER MATCD0 AT ISA? Port?
## qic tape qic tape drive
#DEVICE WT0 AT ISA? Port 0x300 Bio IRQ 5 DRQ 1 Vector WTINTR
## Console screen driver, this is a must have less startup
DEVICE SC0 AT ISA? Port "IO_KBD" TTY IRQ 1 Vector SCINTR
## The mechanism of calling the FPU, whether there is no FPU, it is necessary
DEVICE NPX0 AT ISA? Port "IO_NPX" IRQ 13 Vector NPXINTR
## COM1 to COM4 serial port equipment 1-4
DEVICE SIO0 AT ISA? Port "IO_COM1" TTY IRQ 4 Vector SioIntr
DEVICE SIO1 AT ISA? Port "IO_COM2" TTY IRQ 3 Vector SioIntr
#DEVICE SIO2 AT ISA? Port "IO_COM3" TTY IRQ 5 Vector SioIntr
#DEVICE SIO3 AT ISA? Port "IO_COM4" TTY IRQ 9 Vector SioIntr
## Joystick Heritter Equipment
#Device joy0 at isa? Port "IO_GAME"
## If you have a logitech or ati inport bus mouse card, you will open this.
## Please pay attention to the average person is Serial Mouse is not bus mouse
#DEVICE MSE0 AT ISA? Port 0x23c Tty IRQ 5 Vector MS
## Give PS / 2 MOUSE
#DEVICE PSM0 AT ISA? Port "IO_KBD" Conflicts Tty IRQ 12 Vector PSMintr
#oPtions psm_no_reset
## Printer Port
DEVICE LPT0 AT ISA? Port? Tty IRQ 7 Vector LPTINTR
#DEVICE LPT1 AT ISA? Port? Tty
#DEVICE LPT2 AT ISA? Port? Tty
## 网卡, read / SYS / I386 / Conf / LINT Note PCI card does not specify the hardware resource system will self-test
#DEVICE ED0 AT ISA? Port 0x280 Net IRQ 5 IOMEM 0xD8000 Vector Edintr # Device ED1 AT ISA? Port 0x300 Net IRQ 5 iomem 0xD8000 Vector Edintr
#DEVICE EG0 AT ISA? Port 0x310 Net IRQ 5 Vector EGINTR
#DEVICE EP0 AT ISA? Port 0x300 Net IRQ 10 Vector Epintr
#DEVICE IE0 AT ISA? Port 0x360 Net IRQ 7 iomem 0xd0000 Vector IEINTR
#DEVICE IX0 AT ISA? Port 0x300 NET IRQ 10 iomem 0xd0000 iosiz 32768 Vector IXINTR
#DEVICE LE0 AT ISA? Port 0x300 NET IRQ 5 IOMEM 0xD0000 Vector Le_INTR
#DEVICE LNC0 AT ISA? Port 0x280 Net IRQ 10 DRQ 0 Vector LNCINTR
#DEVICE LNC1 AT ISA? Port 0x300 NET IRQ 10 DRQ 0 Vector LNCINTR
#DEVICE ZE0 AT ISA? Port 0x300 Net IRQ 5 iomem 0xd8000 Vector Zeintr
#DEVICE ZP0 AT ISA? Port 0x300 NET IRQ 10 IOMEM 0xD8000 Vector Zpintr
#Device de0 #PCI --- Dec Chip 21x4x Series (SUCH AS DE530CT )
#Device vx0
#Device fpa0
#Device fxp0 #pci --- Intel Chip
## SB16 Sound Card, other sound card reference / SYS / I386 / Conf / LINT
#Controller SND0
#DEVICE SB0 AT ISA? Port 0x220 IRQ 5 Conflicts DRQ 1 Vector Sbintr
#DEVICE SBXVI0 AT ISA? DRQ 5
#DEVICE SBMIDI0 AT ISA? Port 0x330
#DEVICE OPL0 AT ISA? Port 0x388
## SB32 / AWE32 / AWE64 sound card, other sound card reference / SYS / I386 / Conf / Lint
#Controller SND0
#DEVICE SB0 AT ISA? Port 0x220 IRQ 5 Conflicts DRQ 1 Vector Sbintr
#DEVICE SBXVI0 AT ISA? DRQ 5
#DEVICE SBMIDI0 AT ISA? Port 0x330
#DEVICE OPL0 AT ISA? Port 0x388
#DEVICE AWE0 AT ISA? Port 0x620
## PC Speaker Audio (with PC Speaker to simulate the sound card effect is very bad)
#DEVICE PCA0 AT ISA? Port IO_TIMER1 TTY
## Network loop, this is a must
Pseudo-Device Loop
## Use the Ethernet interface, this is a must
Pseudo-Device Ether
## Berkerley pack filter, TCPDUMP, DHCP needs, this is a must
Pseudo-Device Bpfilter 4
## syslogd needs, this is a must
Pseudo-Device log
## Users TTY upper limit, limit the maximum number of logins, preset upper limit 256
Pseudo-Device Pty 256
## pc speaker, this is a must
Pseudo-Device Speaker
## You can directly execute Gzip's program, which is essential but only supports A.out format Pseudo-device gzip # exec Gzipped a.out's
## Support Monitor TTY users
Pseudo-Device SNP 4 # Snoop Device - To Look At Pty / Vty / etc ..
## Take a file into a pivot drive, usually used as a swap file or read disk image file
Pseudo-Device VN 4 #VNODE Driver (Turns A File Into A Device)
## 内 核 PPP (Man PPPD) Available LKM loading
# pseudo-device PPP 2 # Point-to-Point Protocol
## User-level PPP (Man PPP) Available LKM loading
# Pseudo-Device Tun 1 #Tunnel Driver (User Process PPP)
## Slip Available LKM loading now very little
# Pseudo-Device SL 2 # Serial Line IP
## Virtual Net Card Driver, write, read information, used to develop network related programs available LKM load
# Pseudo-Device Disc #discard Device
## Provide RAID-0 Striping Mirroring Parity (Not Complete)
## Can effectively merge multiple SCSI disks into a high-speed file system
## Details Please man ccdconfig
# Pseudo-Device CCD 4