BSD 5.2 steigt bei eigenem Kernel aus

cat1510

Well-Known Member
Hallo Leutz,

immer wenn ich meinen Kernel backen moechte bekomme ich folenden tollen Text:

ing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -nostdinc -I- -I. -I/usr/src/sys -I/usr/src/sys/contrib/dev/acpica -I/usr/src/sys/contrib/ipfilter -I/usr/src/sys/contrib/dev/ath -I/usr/src/sys/contrib/dev/ath/freebsd -I/usr/src/sys/contrib/ngatm -D_KERNEL -include opt_global.h -fno-common -finline-limit=15000 -fno-strict-aliasing -mno-align-long-strings -mpreferred-stack-boundary=2 -ffreestanding -Werror vers.c
linking kernel
channel.o: In function `chn_setdir':
channel.o(.text+0x154a): undefined reference to `sndbuf_dmasetdir'
channel.o: In function `chn_trigger':
channel.o(.text+0x1c70): undefined reference to `sndbuf_dmabounce'
umass.o: In function `umass_cam_attach_sim':
umass.o(.text+0x17e3): undefined reference to `cam_simq_alloc'
umass.o(.text+0x1834): undefined reference to `cam_sim_alloc'
umass.o(.text+0x1843): undefined reference to `cam_simq_free'
umass.o(.text+0x1865): undefined reference to `xpt_bus_register'
umass.o: In function `umass_cam_rescan_callback':
umass.o(.text+0x1893): undefined reference to `xpt_free_path'
umass.o: In function `umass_cam_rescan':
umass.o(.text+0x1908): undefined reference to `xpt_periph'
umass.o(.text+0x1917): undefined reference to `xpt_create_path'
umass.o(.text+0x1933): undefined reference to `xpt_setup_ccb'
umass.o(.text+0x1950): undefined reference to `xpt_action'
umass.o: In function `umass_cam_detach_sim':
umass.o(.text+0x1a5c): undefined reference to `xpt_bus_deregister'
umass.o(.text+0x1a78): undefined reference to `cam_sim_free'
umass.o: In function `umass_cam_action':
umass.o(.text+0x1e60): undefined reference to `cam_calc_geometry'
umass.o(.text+0x1e71): undefined reference to `xpt_done'
umass.o: In function `umass_cam_cb':
umass.o(.text+0x1feb): undefined reference to `xpt_done'
umass.o: In function `umass_cam_sense_cb':
umass.o(.text+0x2154): undefined reference to `xpt_done'
umass.o: In function `umass_cam_quirk_cb':
umass.o(.text+0x218b): undefined reference to `xpt_done'
ppc.o: In function `ppcintr':
ppc.o(.text+0xf27): undefined reference to `isa_dmadone'
ppc.o: In function `ppc_write':
ppc.o(.text+0x10cd): undefined reference to `isa_dmastart'
ppc.o(.text+0x1134): undefined reference to `isa_dmadone'
ppc.o: In function `ppc_attach':
ppc.o(.text+0x1883): undefined reference to `isa_dma_acquire'
ppc.o(.text+0x1896): undefined reference to `isa_dmainit'
fd.o: In function `fdc_detach':
fd.o(.text+0xc0b): undefined reference to `isa_dma_release'
fd.o: In function `fdc_attach':
fd.o(.text+0xeb1): undefined reference to `isa_dma_acquire'
fd.o(.text+0xec4): undefined reference to `isa_dmainit'
fd.o: In function `fdstate':
fd.o(.text+0x25ac): undefined reference to `isa_dmastart'
fd.o(.text+0x27b0): undefined reference to `isa_dmadone'
fd.o(.text+0x2956): undefined reference to `isa_dmadone'
fd.o(.text+0x2a9c): undefined reference to `isa_dmadone'
fd.o(.text+0x2b02): undefined reference to `isa_dmadone'
*** Error code 1

Stop in /usr/obj/usr/src/sys/BYTEWORKER.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
2m59.32s real 2m11.25s user 34.98s sys
Exit 1

Nun hab ich keine Idee, was ich falsch mache. Ich habe den Generic bauen lassen und das geht auch. Wenn ich die GENERIC kopiere und meine eigene erstelle mit den Sachen, die ich benoetige bekomme ich wieder den Fehler.

Ich poste auch gerne meine KernelConfig.

MSI KT6Delta Athlon XP3000+ FreeBSD 5.2

MFG

CAT
 
isa auskommentiert?

das wird doch häufiger gebracuht, als man denkt. auch wenn man selbst keine isa-slots mehr hat. im Hintergrund läuft meist irgendwo noch was über isa.

und so sieht die Fehlermeldung auch aus
 
Könntest du deine eigene Konfiguration bitte mal posten.
Das könnte helfen.

Gruß pedro
 
Soo ich hab mal die Isa wieder einkommtentiert.
Mein Kernel soll so aussehen:

machine i386
cpu I686_CPU
ident GENERIC

#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

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 NFSCLIENT #Network Filesystem Client
options NFSSERVER #Network Filesystem Server
options NFS_ROOT #NFS usable as /, requires NFSCLIENT
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 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

options CPU_ENABLE_SSE
options CPU_ATHLON_SSE_HACK


device pci
device isa
device pcm

# Floppy drives
device fdc

# ATA and ATAPI devices
device ata
device atadisk # ATA disk drives
device atapicd # ATAPI CDROM drives
device atapist # ATAPI tape drives
options ATA_STATIC_ID #Static device numbering

# 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

# syscons is the default console driver, resembling an SCO console
device sc

# Enable this for the pcvt (VT220 compatible) console driver
#device vt
#options XSERVER # support for X server on a vt console
#options FAT_CURSOR # start with block cursor

device agp # support several AGP chipsets

# 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

# 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

# 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 bfe # Broadcom BCM440x 10/100 ethernet
device bge # Broadcom BCM570xx Gigabit Ethernet
device fxp # Intel EtherExpress PRO/100B (82557, 82558)
device re # RealTek 8139C+/8169/8169S/8110S
device rl # RealTek 8129/8139
device sf # Adaptec AIC-6915 (``Starfire'')
device vr # VIA Rhine, Rhine II
device xl # 3Com 3c90x (``Boomerang'', ``Cyclone'')

# 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"

# 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
 
# Floating point support - do not disable.
#device npx

hm... ich weiss jetzt nicht, ob man das generell drin lassen sollte, oder nur, wenn die fpu emuliert werden soll.
 
als ich es drin hatte meinte er ich soll es rausnehmen...

Hab jetzt ISA und npx wieder mit reingenommen, der Fehler bleibt der Gleiche.
 
Zuletzt bearbeitet:
Danke fuer den Tip.

Hmm da magst Du recht haben. Habe es schon entfernt. Problem ist der Fehler tritt weiterhin auf...
 
tritt der fehler schon bei make depend auf?
wenn ja, geht es ja recht schnell, nochmal den GENERIC zu nehmen und dann nach und nach Sachen raus zu nehmen...
 
Ist es denn noch die _gleiche_ Fehlermeldung?
Die Sachen mit cam_* und xpt_* sollten eigentlich nun verschwunden sein, oder?
 
@ Tulkas

Du hast recht. Die Meldung sieht nun ein wenig anders aus:

opt_global.h -fno-common -finline-limit=15000 -fno-strict-aliasing -mno-align-long-strings -mpreferred-stack-boundary=2 -ffreestanding -Werror vers.c
linking kernel
udbp.o: In function `udbp_attach':
udbp.o(.text+0x41a): undefined reference to `ng_newtype'
udbp.o(.text+0x448): undefined reference to `ng_make_node_common'
udbp.o(.text+0x48f): undefined reference to `ng_name_node'
udbp.o(.text+0x4ce): undefined reference to `dumpnode'
udbp.o(.text+0x4ea): undefined reference to `ng_unref_node'
udbp.o(.text+0x539): undefined reference to `dumpnode'
udbp.o: In function `udbp_detach':
udbp.o(.text+0x683): undefined reference to `ng_rmnode_self'
udbp.o(.text+0x6b8): undefined reference to `dumpnode'
udbp.o(.text+0x708): undefined reference to `dumpnode'
udbp.o(.text+0x724): undefined reference to `ng_unref_node'
udbp.o: In function `udbp_in_transfer_cb':
udbp.o(.text+0x877): undefined reference to `ng_package_data'
udbp.o(.text+0x89c): undefined reference to `ng_address_hook'
udbp.o(.text+0x8be): undefined reference to `ng_snd_item'
udbp.o: In function `ng_udbp_newhook':
udbp.o(.text+0xb3d): undefined reference to `dumpnode'
udbp.o(.text+0xba4): undefined reference to `dumphook'
udbp.o: In function `ng_udbp_rcvmsg':
udbp.o(.text+0xc10): undefined reference to `dumpnode'
udbp.o(.text+0xc92): undefined reference to `M_NETGRAPH_MSG'
udbp.o(.text+0xd8d): undefined reference to `ng_address_ID'
udbp.o(.text+0xdb4): undefined reference to `ng_snd_item'
udbp.o(.text+0xdd9): undefined reference to `dumpitem'
udbp.o(.text+0xdfb): undefined reference to `ng_free_item'
udbp.o(.text+0xe08): undefined reference to `M_NETGRAPH_MSG'
udbp.o: In function `ng_udbp_rcvdata':
udbp.o(.text+0xe5a): undefined reference to `dumphook'
udbp.o(.text+0xe9d): undefined reference to `dumpnode'
udbp.o(.text+0xf25): undefined reference to `dumpitem'
udbp.o(.text+0xf47): undefined reference to `ng_free_item'
udbp.o(.text+0x1029): undefined reference to `M_NETGRAPH_META'
udbp.o: In function `ng_udbp_rmnode':
udbp.o(.text+0x108f): undefined reference to `dumpnode'
udbp.o(.text+0x11fe): undefined reference to `dumpnode'
udbp.o(.text+0x121a): undefined reference to `ng_unref_node'
udbp.o(.text+0x122d): undefined reference to `ng_make_node_common'
udbp.o(.text+0x126a): undefined reference to `ng_name_node'
udbp.o(.text+0x12a9): undefined reference to `dumpnode'
udbp.o(.text+0x12cb): undefined reference to `ng_unref_node'
udbp.o(.text+0x1313): undefined reference to `dumpnode'
udbp.o: In function `ng_udbp_connect':
udbp.o(.text+0x138a): undefined reference to `dumphook'
udbp.o(.text+0x13ca): undefined reference to `dumphook'
udbp.o: In function `ng_udbp_disconnect':
udbp.o(.text+0x1429): undefined reference to `dumphook'
udbp.o(.text+0x146c): undefined reference to `dumpnode'
udbp.o(.text+0x14bb): undefined reference to `dumphook'
udbp.o(.text+0x14fe): undefined reference to `dumpnode'
udbp.o(.text+0x154d): undefined reference to `dumphook'
udbp.o(.text+0x1590): undefined reference to `dumpnode'
udbp.o(.text+0x15df): undefined reference to `dumphook'
udbp.o(.text+0x15f8): undefined reference to `ng_rmnode_self'
udbp.o(.rodata+0x4): undefined reference to `ng_parse_int32_type'
udbp.o(.rodata+0x10): undefined reference to `ng_parse_int32_type'
udbp.o(.rodata+0x24): undefined reference to `ng_parse_struct_type'
udbp.o(.rodata+0x60): undefined reference to `ng_parse_int32_type'
*** Error code 1

Stop in /usr/obj/usr/src/sys/BYTEWORKER.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
3m55.07s real 2m14.83s user 35.82s sys

Bin wohl ein bisschen zu nervoes heute. Sorry.
 
Zuletzt bearbeitet:
stimmt, brauchst du auch.

allerdings löst es nicht dieses problem...

er würde dann bei umass hängen. den fehler hatte ich selbst schon öfters ;)
 
in meiner /etc/make.conf steht:

cpu athlon-xp

Das hat auch keinen Einfluss ob es auskommentiert wird oder nicht.
Aber ich denke der Fehler ist gefunden. Habe den USB Device udpd
drin gehabt. Dachte das kann ich fuer mein Logitech MX Desktop verwenden, weil sich KB und Mouse einen USB Anschluss "teilen".

CAT
 
*g ich muss schon wieder posten.

Mein Kernel laeuft. Habe den upbd auskommentiert.
Ich kann aber kein Terminal mehr starten in meinem KDE oder Gnome.
Bei KDE sagt er, dass er kein Terminal oeffnen kann.
Gnome sagt gar nichts und steht nur mit blinkendem Cursor da.

Was hab ich denn nun kaputt gemacht?

CAT
 
Zurück
Oben