A problem about building kernel

li wei kkndguy at hotmail.com
Wed Aug 27 19:49:10 PDT 2003


Hi,Everybody:
	i want to build a custom kernel.That's my configuration

machine         i386
cpu             I686_CPU
ident           MYKERNEL

#To statically compile in device wiring instead of /boot/device.hints
#hints          "GENERIC.hints"         #Default places to look for 
devices.

#makeoptions    DEBUG=-g                #Build kernel with gdb(1) debug 
symbols

#Enable IPFW
options         IPFIREWALL
options         IPFIREWALL_VERBOSE

options         SCHED_4BSD              #4BSD scheduler
options         INET                    #InterNETworking
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         MD_ROOT                 #MD is a potential root device
options         MSDOSFS                 #MSDOS Filesystem
options         CD9660                  #ISO 9660 Filesystem
options         PROCFS                  #Process filesystem (requires 
PSEUDOFS)
options         PSEUDOFS                #Pseudo-filesystem framework
options         COMPAT_43               #Compatible with BSD 4.3 [KEEP 
THIS!]
options         COMPAT_FREEBSD4         #Compatible with FreeBSD4
options         KTRACE                  #ktrace(1) support
options         SYSVSHM                 #SYSV-style shared memory
options         SYSVMSG                 #SYSV-style message queues
options         SYSVSEM                 #SYSV-style semaphores
options         _KPOSIX_PRIORITY_SCHEDULING #Posix P1003_1B real-time 
extensions
options         KBD_INSTALL_CDEV        # install a CDEV entry in /dev
options         AHC_REG_PRETTY_PRINT    # Print register bitfields in debug
                                        # output.  Adds ~128k to driver.
options         AHD_REG_PRETTY_PRINT    # Print register bitfields in debug
                                        # output.  Adds ~215k to driver.
# Debugging for use in -current
#options        DDB                     #Enable the kernel debugger
#options        INVARIANTS              #Enable calls of extra sanity 
checking
options         INVARIANT_SUPPORT       #Extra sanity checks of internal 
structures, required by INVARIANTS
#options        WITNESS                 #Enable checks to detect deadlocks 
and cycles
#options        WITNESS_SKIPSPIN        #Don't run witness on spinlocks for 
speed

# To make an SMP kernel, the next two are needed
#options        SMP                     # Symmetric MultiProcessor Kernel
#options        APIC_IO                 # Symmetric (APIC) I/O

device          isa
device          eisa
device          pci

# Floppy drives
device          fdc

# atkbdc0 controls both the keyboard and the PS/2 mouse
device          atkbdc          # AT keyboard controller
device          atkbd           # AT keyboard
device          psm             # PS/2 mouse

device          vga             # VGA video card driver

device          splash          # Splash screen and screen saver support

# syscons is the default console driver, resembling an SCO console
device          sc
# Floating point support - do not disable.
device          npx

# Power management support (see NOTES for more options)
device          apm
# Add suspend/resume support for the i8254.
device          pmtimer
# Serial (COM) ports
device          sio             # 8250, 16[45]50 based serial ports

# Parallel port
device          ppc
device          ppbus           # Parallel port bus (required)
device          lpt             # Printer
device          plip            # TCP/IP over parallel
device          ppi             # Parallel port interface device
#device         vpo             # Requires scbus and da


# PCI Ethernet NICs.
device          de              # DEC/Intel DC21x4x (``Tulip'')
device          em              # Intel PRO/1000 adapter Gigabit Ethernet 
Card
device          txp             # 3Com 3cR990 (``Typhoon'')
device          vx              # 3Com 3c590, 3c595 (``Vortex'')

# PCI Ethernet NICs that use the common MII bus controller code.
# NOTE: Be sure to keep the 'device miibus' line in order to use these 
NICs!
device          miibus          # MII bus support
device          dc              # DEC/Intel 21143 and various workalikes
device          fxp             # Intel EtherExpress PRO/100B (82557, 
82558)
device          pcn             # AMD Am79C97x PCI 10/100 (precedence over 
'lnc')
device          rl              # RealTek 8129/8139
device          sf              # Adaptec AIC-6915 (``Starfire'')
device          sis             # Silicon Integrated Systems SiS 900/SiS 
7016
device          sk              # SysKonnect SK-984x and SK-982x gigabit 
ethernet
device          ste             # Sundance ST201 (D-Link DFE-550TX)
device          ste             # Sundance ST201 (D-Link DFE-550TX)
device          ti              # Alteon Networks Tigon I/II gigabit 
ethernet
device          tl              # Texas Instruments ThunderLAN
device          tx              # SMC EtherPower II (83c170 ``EPIC'')
device          vr              # VIA Rhine, Rhine II
device          wb              # Winbond W89C840F
device          xl              # 3Com 3c90x (``Boomerang'', ``Cyclone'')
device          bge             # Broadcom BCM570xx Gigabit Ethernet
# Pseudo devices - the number indicates how many units to allocate.
device          random          # Entropy device
device          loop            # Network loopback
device          ether           # Ethernet support
#device         sl              # Kernel SLIP
#device         ppp             # Kernel PPP
device          tun             # Packet tunnel.
device          pty             # Pseudo-ttys (telnet etc)
device          md              # Memory "disks"
device          gif             # IPv6 and IPv4 tunneling
device          faith           # IPv6-to-IPv4 relaying (translation)

# The `bpf' device enables the Berkeley Packet Filter.
# Be aware of the administrative consequences of enabling this!
device          bpf             # Berkeley packet filter
# USB support
#device         uhci            # UHCI PCI->USB interface
#device         ohci            # OHCI PCI->USB interface
device          usb             # USB Bus (required)
#device         udbp            # USB Double Bulk Pipe devices
device          ugen            # Generic
#device         uhid            # "Human Interface Devices"
device          ukbd            # Keyboard
#device         ulpt            # Printer
device          umass           # Disks/Mass storage - Requires scbus and 
da
device          ums             # Mouse
#device         urio            # Diamond Rio 500 MP3 player
#device         uscanner        # Scanners

      Then i run
      #config MYKERNEL
      #cd ../compile/MYKERNEL
      #make depend
      #make
      It's report Error here . The output info is like below:
  
umass.o: In function `umass_cam_attach_sim':
umass.o(.text+0x17c7): undefined reference to `cam_simq_alloc'
umass.o(.text+0x1818): undefined reference to `cam_sim_alloc'
umass.o(.text+0x1827): undefined reference to `cam_simq_free'
umass.o(.text+0x1847): undefined reference to `xpt_bus_register'
umass.o: In function `umass_cam_rescan_callback':
umass.o(.text+0x1883): undefined reference to `xpt_free_path'
umass.o: In function `umass_cam_rescan':
umass.o(.text+0x18f5): undefined reference to `xpt_periph'
umass.o(.text+0x1904): undefined reference to `xpt_create_path'
umass.o(.text+0x1920): undefined reference to `xpt_setup_ccb'
umass.o(.text+0x193d): undefined reference to `xpt_action'
umass.o: In function `umass_cam_detach_sim':
umass.o(.text+0x1a2c): undefined reference to `xpt_bus_deregister'
umass.o(.text+0x1a48): undefined reference to `cam_sim_free'
umass.o: In function `umass_cam_action':
umass.o(.text+0x1ebd): undefined reference to `xpt_done'
umass.o: In function `umass_cam_cb':
umass.o(.text+0x202b): undefined reference to `xpt_done'
umass.o: In function `umass_cam_sense_cb':
umass.o(.text+0x2191): undefined reference to `xpt_done'
umass.o: In function `umass_cam_quirk_cb':
umass.o(.text+0x21bb): undefined reference to `xpt_done'
*** Error code 1

  I don't understand those message means. So help me !



¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡kkndguy at hotmail.com
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡2003-08-28

_________________________________________________________________
Ãâ·ÑÏÂÔØ MSN Explorer:   http://explorer.msn.com/lccn/  



More information about the freebsd-questions mailing list