Saturday, October 23, 2010

Custom FreeBSD Kernel Reference






Custom FreeBSD Kernel Reference
Published: wxjoshua
Time: 2002/10/11 19:35:24


Custom FreeBSD Kernel Reference
meaculpa (2001-06-27 10:46:15)
#
# GENERIC - Generic Machine kernel
#

# # Console type i386, because FreeBSD is the only thing running in the X86
machine "i386"

# # CPU types, see themselves as almost 86 Well
# Cpu "I386_CPU" # 386 computer
# Cpu "I486_CPU" # 486 computer
cpu "I586_CPU" # 586 computer
# Cpu "I686_CPU" # 686 computer

# # Core identity, no special significance
ident GENERIC

# # Define some structure of the system should retain much of the memory space, usually
# # 16 or 32 is enough, unless you open stations, or run X, on the right with 64
# # Note that this value is always less than the number of your memory
maxusers 32

# # A user can limit the process of implementation
options CHILD_MAX = 256
# # A user can open files limit
options OPEN_MAX = 256

# # Turn on kernel debugging, it is generally less than
# Options DDB

# # Allow debug trace memory unit (see ktrace, kdump), or left to the kernel hackers to use it
# Options KTRACE # kernel tracing

# # No FPU (SX) friends use, with people who do not need the DX
# Options MATH_EMULATE # Support for x87 emulation

# # Do you have more than 64MB of memory when the amount specified, the unit is K. For example, 128MB RAM:
# Options "MAXMEM = (128 * 1024)"

# # Support network, there must be, what nonsense
options INET # InterNETworking

# # IPX-related protocols
# Options IPX # IPX / SPX communications protocols
# Options IPXIP # IPX in IP encapsulation (not available
# Options IPTUNNEL # 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 not, use the load when the kernel will use LKM
# # Note that the file system name with figures, use double quotation marks Oh, look at the following Linux file system will know
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 lease 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 # Union filesystem
# Options DEVFS # devices filesystem
# #
# # A LINUX file system, use the following line friends attention
# Options "EXT2FS" # ext2fs, only in 2.2-CURRENT

# # 4.3BSD compatibility, it is necessary, there may be some procedures will be used
options "COMPAT_43" # Compatible with BSD 4.3

# # Implementation of the Linux program files, even if you use LKM loading, you still need the parameter
# # You can modify / etc / sysconfig in linux = YES, or the implementation of the / usr / bin / linux
# # By the way, you must install the packages in the linux_lib
# Options "COMPAT_LINUX" # Linux Emulator

# # SCO binary simulation
# Options "IBCS2"

# # 1 boot device SCSI card will be prepared to wait several seconds for the slower SCSI devices
# # If the CDROM is concerned is needed, the minimum is 2, select the appropriate value you like the
options "SCSI_DELAY = 4" # Be pessimistic about Joe SCSI device

# # Allow users to intercept console information, procedures for xconsole like it is necessary
options UCONSOLE # Unix console

# # The maximum number of virtual console, Alt-F1 to Alt-F12 and so on, but only the definition of limit
# # Really can use the virtual console must see / etc / ttys defined vty number
# # The value of pre-determined 16
options "MAXCONS = 8" # Max number for virtual console

# # To WINE (MS-Windows Emulator) used
# Options USER_LDT # For WINE, MS-Windows Emulator

# # Use QUOTA limit
# Options QUOTA # For quotas

# # SYSV IPC / SHM (BBS with X-window and COMPAT_LINUX needed), it is necessary
options SYSVMSG, SYSVSEM, SYSVSHM # For SYSV-IPC

# # LKM's loader, it is necessary (after the 2.1.5R has been abolished, a pre-determined parameters)
# Options LKM # Loadable kernel module loader

# # If you use the ISA to SCSI card, there are more than 16MB of memory, required to open this, or not
# # Use> 16MB of memory. If you are using EISA / VL / PCI to SCSI card do not need a
# # Open it will reduce the speed a little bit, all right Do not open (of course without the use of IDE)
# Options BOUNCE_BUFFERS # include support for DMA bounce buffers

# # Only need to use IP-Firewall, you can load with LKM
# Options IPFIREWALL # Firewall code
# Options IPFIREWALL_VERBOSE # Print information about dropped packets
# Options IPACCT # Used with ipfirewall

# # Use IP-Firewall or should it be when the router
# # In the 2.2-960323-SNAP abolished after to sysctl open (see / etc / sysconfig)
# Options GATEWAY # Internetwork gateway

# # Multicast routing, router used to do more
# Options MROUTING # Multicast routing

# # Allow the number of swap device (default 20)
# Options NSWAPDEV = 20

# # Specify the root partition on the 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 the ISA bus
controller isa0

# # Use the EISA bus
# Controller eisa0

# # Use the PCI bus
controller pci0

# # Floppy controller
controller fdc0 at isa? port "IO_FD1" bio irq 6 drq 2 vector fdintr
# Floppy A
disk fd0 at fdc0 drive 0
# Floppy 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, IDE controller has access only to use the second
# 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 specification) CD-ROM
# Options ATAPI # Enable ATAPI support for IDE bus
# Options ATAPI_STATIC
# Device wcd0 # IDE CD-ROM

# # SCSI controller card, from / sys/i386/conf/LINT read details
# 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 uhaintr
# 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 necessary to use SCSI
# Controller scbus0

# # SCSI HD SCSI hard drive
# Device sd0 # Only need one of these, the code dynamically grows

# # SCSI CDROM SCSI drive
# Device cd0 # Only need one of these, the code dynamically grows

# # SCSI tape SCSI tape drive
# Device st0 # Only need one of these, the code dynamically grows

# # SCSI optical disk (MO) SCSI's MO drives
# Device od0 # Only need one of these, the code dynamically grows

# # SCSI media changers (Juke-Box)
# Device ch0 # Only need one of these, the code dynamically grows

#------------------ With the AT-bus drive (non-ATAPI, it is seldom a) ---------------
# # Mitsumi CDROM Mitsumi drive
# Controller mcd0 at isa? Port 0x300 bio irq 10 vector mcdintr

# # SONY CDROM drive Sony
# Controller scd0 at isa? Port 0x230 bio

# # Panasonic CDROM drive Panasonic
# 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 drivers, it is necessary, less will not start
device sc0 at isa? port "IO_KBD" tty irq 1 vector scintr

# # Call the FPU in the system, regardless of whether the FPU must have, are necessary
device npx0 at isa? port "IO_NPX" irq 13 vector npxintr

# # COM1 to COM4 serial devices 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 joystick device
# Device joy0 at isa? Port "IO_GAME"

# # If you have a Logitech or ATI InPort bus mouse card, would this open
# # Please note that most people use a serial mouse is not a bus mouse
# Device mse0 at isa? Port 0x23c tty irq 5 vector ms

# # To PS / 2 mouse using
# 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

# # Card, read / sys/i386/conf/LINT, pay attention to PCI cards do not specify the hardware resources, the 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, sound card other 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, sound card other 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 (sound card with the PC Speaker simulation, the effect crappier)
# Device pca0 at isa? Port IO_TIMER1 tty

# # Network circuit, it is necessary,
pseudo-device loop

# # Use the Ethernet interface, it is necessary
pseudo-device ether

# # Berkerley packet filter, tcpdump, dhcp needed, it is necessary
pseudo-device bpfilter 4

# # Syslogd needs, it is necessary
pseudo-device log

# # User tty limit the maximum login limit the number of pre-set limit of 256
pseudo-device pty 256

# # PC speaker, it is necessary
pseudo-device speaker

# # Can implement gzip program, it is necessary, but only to support a.out format programs
pseudo-device gzip # Exec gzipped a.out''s

# # Support for monitoring user tty
pseudo-device snp 4 # Snoop device - to look at pty / vty / etc ..

# # Simulate a file into a sub-drive, are generally used for the exchange of files or read files with the disk image
pseudo-device vn 4 # Vnode driver (turns a file into a device)

# # Kernel-level 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 rarely used
# Pseudo-device sl 2 # Serial Line IP

# # Virtual network card driver, free to write, read the information for the development of network-related programs, available LKM loading
# Pseudo-device disc # Discard device

# # Provides RAID-0 Striping, Mirroring, parity (not complete) of the function
# # Can effectively combine multiple SCSI disk, into a high-speed file system
# # For details, please man ccdconfig
# Pseudo-device ccd 4







Recommended links:



Pause slideshow TIPS



Jack Gao, became president of Autodesk China



Audio Encoders Or Decoders Report



Who cuts should be cut? Old staff or new staff?



How To Fake Brand-name Motherboard Identification



Themes And Wallpaper brief



ASF to AVI



ASF To MOV



Photoshop mouse painted illustration major combat (3): Draw Butterfly



FreeBSD Serial (49): access To X Window



Murdoch: Gone are the days BEFORE



Photoshop color change animation effects



How to transfer files from iphone to computer



How out of the trap of pseudo-BI



No comments:

Post a Comment