Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Nov 2005 00:14:37 +0100 (CET)
From:      Wojciech Puchar <wojtek@tensor.3miasto.net>
To:        freebsd-questions@freebsd.org
Subject:   FreeBSD GENERIC kernel&modules
Message-ID:  <20051123001005.E37502@chylonia.3miasto.net>

next in thread | raw e-mail | index | archive | help
i have no idea why almost EVERYTHING is kld-modularized, and once again in
generic kernel.

below is my "almost generic" kernel taking 4 times less space, the only 
difference is that some modules have to be loaded at boot (by 
loader.conf).

wouldn't it be better for true "generic kernel"? just install by default 
loader.conf that loads almost everything, and then in most cases just 
deleting some lines will be enough instead of recompiling!



my loader.conf and kernel config below:
autoboot_delay="2"
if_fxp_load="YES"
geom_gpt="YES"
atapci_load="YES"
atadisk_load="YES"
random_load="YES"
fdc_load="YES"
sio_load="YES"
puc_load="YES"
atapicd_load="YES"
cam_load="YES"
atapicam_load="YES"
if_tun_load="YES"
nfsserver_load="YES"
sysvshm_load="YES"
sysvsem_load="YES"
sysvmsg_load="YES"
usb_load="YES"
umass_load="YES"
linux_load="YES"

and my kernel.

ident           SMP-686
options         SMP                     # Symmetric MultiProcessor Kernel
machine         i386
cpu             I686_CPU

#options        SCHED_ULE               # ULE scheduler
options         SCHED_4BSD              # 4BSD scheduler
options         PREEMPTION              # Enable kernel thread preemption
options         INET                    # InterNETworking
options         INET6                   # IPv6 communications protocols
options         QUOTA
options         FFS                     # Berkeley Fast Filesystem
options         SOFTUPDATES             # Enable FFS soft updates support
options         UFS_ACL                 # Support for access control lists
options         UFS_DIRHASH             # Improve performance on big directories
options         COMPAT_43               # Compatible with BSD 4.3 [KEEP THIS!]
options         COMPAT_FREEBSD4         # Compatible with FreeBSD4
options         COMPAT_FREEBSD5         # Compatible with FreeBSD5
options         SCSI_DELAY=2000         # Delay (in ms) before probing SCSI
options         KTRACE                  # ktrace(1) support
options         _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions
options         ADAPTIVE_GIANT          # Giant mutex is adaptive.

device          apic                    # I/O APIC
device          pci

device          atkbdc          # AT keyboard controller
device          atkbd           # AT keyboard
device          psm             # PS/2 mouse

device          vga             # VGA video card driver
device          sc

# Pseudo devices.
device          loop            # Network loopback
device          ether           # Ethernet support
device          pty             # Pseudo-ttys (telnet etc)

# The `bpf' device enables the Berkeley Packet Filter.
# Be aware of the administrative consequences of enabling this!
# Note that 'bpf' is required for DHCP.
device          bpf             # Berkeley packet filter






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051123001005.E37502>