Kernel panic with USB stick
Alexandre Kardanev
Alexandre.Kardanev at ihep.su
Fri Sep 26 01:17:34 PDT 2003
Hi!
I have Compaq DeskPro P450 with additional NCR SCSI controller.
In 5.1-RELEASE, when I insert my USB stick I got this:
uhci0: <Intel 82371AB/EB (PIIX4) USB controller> port 0x1880-0x189f irq 11
at device 20.2 on pci0
usb0: <Intel 82371AB/EB (PIIX4) USB controller> on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
umass0: vendor 0x0c76 TS128MJFLASHA, rev 1.10/1.00, addr 2
da6 at umass-sim0 bus 0 target 0 lun 0
da6: < TS128MJFLASHA 1.00> Removable Direct Access SCSI-2 device
da6: 1.000MB/s transfers
da6: 123MB (253400 512 byte sectors: 64H 32S/T 123C)
(da6:umass-sim0:0:0:0): READ(6)/WRITE(6) not supported, increasing
minimum_cmd_size to 10.
umass0: at uhub0 port 1 (addr 2) disconnected
(da6:umass-sim0:0:0:0): lost device
(da6:umass-sim0:0:0:0): removing device entry
umass0: detached
And all works fine.
When I insert the same USB device in 4.9PRERELEASE (cvsup at 11:00 MSD,
Sep 26) I got continuous kernel panik with something like this:
Fatal trap 12, page fault in kernel...
Because there is no serial console I can not write hole message. I cannot
make core dump - during 20-30 second I repetedly (with 1secs interval) got
the same message after all comuter silently reboots...
here is from /var/log/message:
Sep 26 12:06:50 dru /kernel: umass0: TS128MJFLASHA, rev 1.10/1.00, addr 2
Sep 26 12:09:49 dru /kernel: Copyright (c) 1992-2003 The FreeBSD Project.
Sep 26 12:09:49 dru /kernel: Copyright (c) 1979, 1980, 1983, 1986, 1988,
1989, 1991, 1992, 1993, 1994
Sep 26 12:09:49 dru /kernel: The Regents of the University of
California. All rights reserved.
Sep 26 12:09:49 dru /kernel: FreeBSD 4.9-PRERELEASE #31: Fri Sep 26
11:09:32 MSD 2003
Sep 26 12:09:49 dru /kernel: root at dru.ihep.su:/usr/obj/usr/src/sys/dru
Sep 26 12:09:49 dru /kernel: Timecounter "i8254" frequency 1193182 Hz
Sep 26 12:09:49 dru /kernel: CPU: Pentium II/Pentium II Xeon/Celeron
(398.27-MHz 686-class CPU)
Sep 26 12:09:49 dru /kernel: Origin = "GenuineIntel" Id = 0x652 Stepping
= 2
Sep 26 12:09:49 dru
/kernel: Features=0x183f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR>
Sep 26 12:09:49 dru /kernel: real memory = 335544320 (327680K bytes)
Sep 26 12:09:49 dru /kernel: avail memory = 322539520 (314980K bytes)
Sep 26 12:09:49 dru /kernel: Preloaded elf kernel "kernel" at 0xc0374000.
Sep 26 12:09:49 dru /kernel: Preloaded elf module "usb.ko" at 0xc037409c.
Sep 26 12:09:49 dru /kernel: Preloaded elf module "umass.ko" at
0xc0374138.
I load usb and umass through loader.conf.
Hire is my config:
machine i386
#cpu I386_CPU
#cpu I486_CPU
#cpu I586_CPU
cpu I686_CPU
ident dru
maxusers 0
makeoptions DEBUG=-g
makeoptions CONF_CFLAGS=-fno-builtin
options INET #InterNETworking
options FFS #Berkeley Fast Filesystem
options FFS_ROOT #FFS usable as root device [keep this!]
options SOFTUPDATES #Enable FFS soft updates support
options UFS_DIRHASH #Improve performance on big directories
options MFS #Memory Filesystem
options MD_ROOT #MD is a potential root device
#options NFS #Network Filesystem
#options MSDOSFS #MSDOS Filesystem
#options CD9660 #ISO 9660 Filesystem
options PROCFS #Process filesystem
options COMPAT_43 #Compatible with BSD 4.3 [KEEP THIS!]
options SCSI_DELAY=8000 #Delay (in ms) before probing SCSI
options KTRACE #ktrace(1) support
options SYSVSHM #SYSV-style shared memory
options SYSVMSG #SYSV-style message queues
options SYSVSEM #SYSV-style semaphores
options P1003_1B #Posix P1003_1B real-time extensions
options _KPOSIX_PRIORITY_SCHEDULING
options KBD_INSTALL_CDEV # install a CDEV entry in /dev
#Firewall
options IPFIREWALL
options IPFIREWALL_VERBOSE #enable logging to syslogd(8)
options IPFIREWALL_VERBOSE_LIMIT=100 #limit verbosity
options IPDIVERT #divert sockets
options IPFW2
options RANDOM_IP_ID
options ICMP_BANDLIM #Rate limit bad replies
options TCP_DROP_SYNFIN #drop TCP packets with SYN+FIN
options DUMMYNET
device isa
#device eisa
device pci
# Floppy drives
device fdc0 at isa? port IO_FD1 irq 6 drq 2
device fd0 at fdc0 drive 0
device ata0 at isa? port IO_WD1 irq 14
device ata1 at isa? port IO_WD2 irq 15
device ata
device atadisk # ATA disk drives
device atapicd
device atapicam
options ATA_STATIC_ID #Static device numbering
# SCSI Controllers
device sym # NCR/Symbios Logic (newer chipsets)
options SYM_SETUP_LP_PROBE_MAP=0x40
# Allow ncr to attach legacy NCR devices when
# both sym and ncr are configured
# SCSI peripherals
device scbus # SCSI bus (required)
device da # Direct Access (disks)
device sa # Sequential Access (tape etc)
#device cd # CD
device pass # Passthrough device (direct SCSI access)
# atkbdc0 controls both the keyboard and the PS/2 mouse
device atkbdc0 at isa? port IO_KBD
device atkbd0 at atkbdc? irq 1 flags 0x1
device psm0 at atkbdc? irq 12
device vga0 at isa?
# splash screen/screen saver
pseudo-device splash
# syscons is the default console driver, resembling an SCO console
device sc0 at isa? flags 0x100
options MAXCONS=12 # number of virtual consoles
options SC_ALT_MOUSE_IMAGE # simplified mouse cursor in text mode
options SC_HISTORY_SIZE=600 # number of history buffer lines
options SC_MOUSE_CHAR=0x3 # char code for text mode mouse cursor
# The following options will let you change the default colors of syscons.
options SC_NORM_ATTR="(FG_GREEN|BG_BLACK)"
options SC_NORM_REV_ATTR="(FG_YELLOW|BG_GREEN)"
options SC_KERNEL_CONS_ATTR="(FG_RED|BG_BLACK)"
options SC_KERNEL_CONS_REV_ATTR="(FG_BLACK|BG_RED)"
# If you have a two button mouse, you may want to add the following option
# to use the right button of the mouse to paste text.
options SC_TWOBUTTON_MOUSE
# Floating point support - do not disable.
device npx0 at nexus? port IO_NPX irq 13
# Power management support (see LINT for more options)
device apm0 at nexus? flags 0x20 # Advanced Power Management
# Serial (COM) ports
device sio0 at isa? port IO_COM1 flags 0x10 irq 4
device sio1 at isa? port IO_COM2 irq 3
# Parallel port
device ppc0 at isa? irq 7
device ppbus # Parallel port bus (required)
device lpt # Printer
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 xl # 3Com 3c90x (``Boomerang'', ``Cyclone'')
# Pseudo devices - the number indicates how many units to allocate.
pseudo-device loop # Network loopback
pseudo-device ether # Ethernet support
#pseudo-device tun # Packet tunnel.
pseudo-device pty # Pseudo-ttys (telnet etc)
pseudo-device md # Memory "disks"
#pseudo-device gif # IPv6 and IPv4 tunneling
# The `bpf' pseudo-device enables the Berkeley Packet Filter.
# Be aware of the administrative consequences of enabling this!
pseudo-device bpf #Berkeley packet filter
options CPU_ENABLE_SSE
options CPU_SUSP_HLT
options COMPAT_43
options USER_LDT
#options PNPBIOS
device pcm
#device sbc0 at isa? port 0x220 irq 5 drq 1 flags 0x15
#device sbc
#sbc0: <ESS ES1869> at port 0x220-0x22f,0x388-0x38b,0x330-0x331 irq 5 drq 1,0 on
#isa0
#pcm0: <ESS 18xx DSP> on sbc0
#options EXT2FS
device vn
device smbus
device intpm
device smb
device alpm
device ichsmb
#device viapm
device iicbus # Bus support, required for ic/iic/iicsmb below.
device iicbb
device ic
device iic
device iicsmb # smb over i2c bridge
#device bktr
device agp
device mgadrm
#options DA_OLD_QUIRKS
----------------------------------------------------------------
Enabling DA_OLD_QUIRKS dosn't matter...
ABK2-RIPE
-------------------
"It's always easier to destroy than to create"
-Any general, any army, any age
More information about the freebsd-stable
mailing list