Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Apr 2009 02:29:10 -0500 (CDT)
From:      Lars Eighner <lars@larseighner.com>
To:        freebsd-usb@freebsd.org
Subject:   Olympus D-540 camera + umass = crash
Message-ID:  <20090405020705.R69328@qroenaqrq.6qbyyneqvnyhc.pbz>

next in thread | raw e-mail | index | archive | help

A number of upgrade cycles ago, when I loaded umass, I could plug in my
Olympus D-540 camera.  It would be recognized as a da device and could be
mounted as a FAT drive (i.e. msdosfs).

I had to load umass after boot because I had an HP printer which had to
attach as ugen, but umass would grab it if umass were loaded at boot time.
Eventually the HPLIP driver was improved to the point that the card reader
on the printer would read the camera SD card in its card slot.  Life was
good.  I could get my photos either way.

Eventually the HPLIP driver was improved to the point that it broke the
scan, fax, and card reader functions.  But it still works as a printer.
Meanwhile it seems umass was upgraded to the point that it can no longer use
the camera.  So I cannot get photos out of my camera either way.

It appears that downgrading is my only option.  So I want to know how far
back I have to downgrade my system to get umass functional again.  I expect
downgrading to be difficult and perilous, so I would like to get it right
the first time.

I have tried with the GENERIC kernel (which prevents me from using the
printer), with the custom kernel + umass loaded by loader.conf (which also
breaks the printer) and with the custom kernel + umass loaded manually after
boot.  All three of these methods produce the same result: Fatal Trap 12.
All three of these worked for getting at the camera at some time in the
past.

Here is one example from vmcore which seems to me to be typical 
(huge core dump omitted):

Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
 	The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 7.1-RELEASE-p2 #1: Sat Jan 24 19:02:57 CST 2009
     toor@debranded.6dollardialup.com:/usr/obj/usr/src/sys/JAN09
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: AMD Sempron(tm) Processor 3400+ (1803.77-MHz 686-class CPU)
   Origin = "AuthenticAMD"  Id = 0x40ff2  Stepping = 2
   Features=0x78bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2>
   Features2=0x2001<SSE3,CX16>
   AMD Features=0xea500800<SYSCALL,NX,MMX+,FFXSR,RDTSCP,LM,3DNow!+,3DNow!>
   AMD Features2=0x19<LAHF,ExtAPIC,CR8>
real memory  = 468647936 (446 MB)
avail memory = 440373248 (419 MB)
ACPI APIC Table: <HP-CPC AWRDACPI>
ioapic0 <Version 1.1> irqs 0-23 on motherboard
kbd1 at kbdmux0
acpi0: <HP-CPC AWRDACPI> on motherboard
acpi0: [ITHREAD]
acpi0: Power Button (fixed)
acpi0: reservation of 0, a0000 (3) failed
acpi0: reservation of 100000, 1bdf0000 (3) failed
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0
acpi_button0: <Power Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pci0: <memory, RAM> at device 0.0 (no driver attached)
pci0: <memory, RAM> at device 0.1 (no driver attached)
pci0: <memory, RAM> at device 0.2 (no driver attached)
pci0: <memory, RAM> at device 0.3 (no driver attached)
pci0: <memory, RAM> at device 0.4 (no driver attached)
pci0: <memory, RAM> at device 0.5 (no driver attached)
pci0: <memory, RAM> at device 0.6 (no driver attached)
pci0: <memory, RAM> at device 0.7 (no driver attached)
pcib1: <ACPI PCI-PCI bridge> at device 2.0 on pci0
pci1: <ACPI PCI bus> on pcib1
pcib2: <ACPI PCI-PCI bridge> at device 4.0 on pci0
pci2: <ACPI PCI bus> on pcib2
vgapci0: <VGA-compatible display> mem 0xfb000000-0xfbffffff,0xe0000000-0xefffffff,0xfc000000-0xfcffffff irq 16 at device 5.0 on pci0
nvidia0: <GeForce 6150 LE> on vgapci0
vgapci0: child nvidia0 requested pci_enable_busmaster
vgapci0: child nvidia0 requested pci_enable_io
vgapci0: child nvidia0 requested pci_enable_io
nvidia0: [GIANT-LOCKED]
nvidia0: [ITHREAD]
pci0: <memory, RAM> at device 9.0 (no driver attached)
isab0: <PCI-ISA bridge> at device 10.0 on pci0
isa0: <ISA bus> on isab0
pci0: <serial bus, SMBus> at device 10.1 (no driver attached)
pci0: <memory, RAM> at device 10.2 (no driver attached)
ohci0: <OHCI (generic) USB controller> mem 0xfe02f000-0xfe02ffff irq 21 at device 11.0 on pci0
ohci0: [GIANT-LOCKED]
ohci0: [ITHREAD]
usb0: OHCI version 1.0, legacy support
usb0: <OHCI (generic) USB controller> on ohci0
usb0: USB revision 1.0
uhub0: <nVidia OHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb0
uhub0: 8 ports with 8 removable, self powered
ehci0: <EHCI (generic) USB 2.0 controller> mem 0xfe02e000-0xfe02e0ff irq 22 at device 11.1 on pci0
ehci0: [GIANT-LOCKED]
ehci0: [ITHREAD]
usb1: EHCI version 1.0
usb1: companion controller, 8 ports each: usb0
usb1: <EHCI (generic) USB 2.0 controller> on ehci0
usb1: USB revision 2.0
uhub1: <nVidia EHCI root hub, class 9/0, rev 2.00/1.00, addr 1> on usb1
uhub1: 8 ports with 8 removable, self powered
atapci0: <nVidia nForce MCP51 UDMA133 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xf400-0xf40f at device 13.0 on pci0
ata0: <ATA channel 0> on atapci0
ata0: [ITHREAD]
ata1: <ATA channel 1> on atapci0
ata1: [ITHREAD]
atapci1: <nVidia nForce MCP51 SATA300 controller> port 0x9f0-0x9f7,0xbf0-0xbf3,0x970-0x977,0xb70-0xb73,0xe000-0xe00f mem 0xfe02d000-0xfe02dfff irq 23 at device 14.0 on pci0
atapci1: [ITHREAD]
ata2: <ATA channel 0> on atapci1
ata2: [ITHREAD]
ata3: <ATA channel 1> on atapci1
ata3: [ITHREAD]
atapci2: <nVidia nForce MCP51 SATA300 controller> port 0x9e0-0x9e7,0xbe0-0xbe3,0x960-0x967,0xb60-0xb63,0xcc00-0xcc0f mem 0xfe02c000-0xfe02cfff irq 20 at device 15.0 on pci0
atapci2: [ITHREAD]
ata4: <ATA channel 0> on atapci2
ata4: [ITHREAD]
ata5: <ATA channel 1> on atapci2
ata5: [ITHREAD]
pcib3: <ACPI PCI-PCI bridge> at device 16.0 on pci0
pci3: <ACPI PCI bus> on pcib3
pcm0: <Creative EMU10K1> port 0xac00-0xac1f irq 16 at device 8.0 on pci3
pcm0: <SigmaTel STAC9721/23 AC97 Codec>
pcm0: [ITHREAD]
sio0: configured irq 18 not in bitmap of probed irqs 0
sio0: port may not be enabled
sio0: configured irq 18 not in bitmap of probed irqs 0
sio0: port may not be enabled
sio0: <3COM PCI FaxModem> port 0xa400-0xa407 irq 18 at device 10.0 on pci3
sio0: moving to sio4
sio4: type 16550A
sio4: [FILTER]
pci0: <bridge> at device 20.0 (no driver attached)
acpi_tz0: <Thermal Zone> on acpi0
fdc0: <floppy drive controller> port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0
fdc0: [FILTER]
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
atkbd0: [ITHREAD]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: [ITHREAD]
psm0: model IntelliMouse, device ID 3
cpu0: <ACPI CPU> on acpi0
powernow0: <PowerNow! K8> on cpu0
pmtimer0 on isa0
orm0: <ISA Option ROM> at iomem 0xd0000-0xd17ff pnpid ORM0000 on isa0
ppc0: parallel port not found.
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio0: configured irq 4 not in bitmap of probed irqs 0
sio0: port may not be enabled
sio0: configured irq 4 not in bitmap of probed irqs 0
sio0: port may not be enabled
can't re-use a leaf (%desc)!
can't re-use a leaf (%driver)!
can't re-use a leaf (%location)!
can't re-use a leaf (%pnpinfo)!
can't re-use a leaf (%parent)!
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 8250 or not responding
sio0: [FILTER]
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Timecounter "TSC" frequency 1803773838 Hz quality 800
Timecounters tick every 1.000 msec
ad1: 3077MB <Seagate ST33232A 0.42> at ata0-slave UDMA33
acd0: CDRW <LITE-ON COMBO SOHC-4836K/SPJ2> at ata1-master UDMA33
acd1: CDROM <SAMSUNG CD-ROM SC-148C/B103> at ata1-slave UDMA33
ad6: 114473MB <Seagate ST3120213AS 3.AHH> at ata3-master SATA150
GEOM_LABEL: Label for provider acd0 is iso9660/AUS4Q08N.
GEOM_LABEL: Label for provider ad1s1 is msdosfs/FREEDOS.
acd1: FAILURE - INQUIRY ILLEGAL REQUEST asc=0x24 ascq=0x00 
acd0: FAILURE - INQUIRY ILLEGAL REQUEST asc=0x24 ascq=0x00 
acd1: FAILURE - INQUIRY ILLEGAL REQUEST asc=0x24 ascq=0x00 
acd0: FAILURE - INQUIRY ILLEGAL REQUEST asc=0x24 ascq=0x00 
cd0 at ata1 bus 0 target 0 lun 0
cd0: <LITE-ON COMBO SOHC-4836K SPJ2> Removable CD-ROM SCSI-0 device 
cd0: 33.000MB/s transfers
cd0: cd present [184671 x 2048 byte records]
cd1 at ata1 bus 0 target 1 lun 0
cd1: <SAMSUNG CD-ROM SC-148C B103> Removable CD-ROM SCSI-0 device 
cd1: 33.000MB/s transfers
cd1: Attempt to query device size failed: NOT READY, Medium not present
Trying to mount root from ufs:/dev/ad6s1a
WARNING: / was not properly dismounted
<118>Loading configuration files.
<118>kernel dumps on /dev/ad6s1b
<118>Entropy harvesting:
<118> interrupts
<118> ethernet
<118> point_to_point
<118> kickstart
<118>.
<118>swapon: adding /dev/ad6s1b as swap device
<118>Starting file system checks:
<118>/dev/ad6s1a: 3104 files, 155485 used, 351002 free (930 frags, 43759 blocks, 0.2% fragmentation)
<118>/dev/ad6s1e: DEFER FOR BACKGROUND CHECKING
<118>/dev/ad6s1f: DEFER FOR BACKGROUND CHECKING
<118>/dev/ad6s1d: DEFER FOR BACKGROUND CHECKING
<118>Mounting local file systems:
WARNING: /tmp was not properly dismounted
WARNING: /usr was not properly dismounted
WARNING: /var was not properly dismounted
<118>.
<118>Setting hostname: debranded.6dollardialup.com.
<118>net.inet6.ip6.auto_linklocal: 
<118>1
<118> -> 
<118>0
<118>
<118>kern.module_path: 
<118>/boot/kernel;/boot/modules
<118> -> 
<118>/boot/kernel;/boot/modules;/usr/local/modules
<118>
<118>compat.linux.osrelease: 
<118>2.4.2
<118> -> 
<118>2.6.16
<118>
<118>/etc/rc: WARNING: Values of network_interfaces other than AUTO are deprecated
<118>Loading /lib/libalias_cuseeme.so
<118>Loading /lib/libalias_ftp.so
<118>Loading /lib/libalias_irc.so
<118>Loading /lib/libalias_nbt.so
<118>Loading /lib/libalias_pptp.so
<118>Loading /lib/libalias_skinny.so
<118>Loading /lib/libalias_smedia.so
<118>Working in auto mode
<118>Using interface: tun0
<118>lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
<118>	inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1 
<118>	inet6 ::1 prefixlen 128 
<118>	inet 127.0.0.1 netmask 0xff000000 
<118>tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> metric 0 mtu 1500
<118>	inet 10.0.0.1 --> 10.0.0.2 netmask 0xffffff00 
<118>	Opened by PID 254
<118>Additional routing options:
<118>.
<118>Starting devd.
<118>hw.acpi.cpu.cx_lowest: 
<118>C1
<118>
<118>sysctl: 
<118>hw.acpi.cpu.cx_lowest
<118>: 
<118>Invalid argument
<118>Additional IP options:
<118>.
<118>Mounting NFS file systems:
<118>.
<118>ELF ldconfig path: /lib /usr/lib /usr/lib/compat /usr/local/lib /usr/local/lib/compat/pkg /usr/local/kde4/lib /usr/local/lib /usr/local/lib/compat /usr/local/lib/compat/pkg /usr/local/lib/evolution/2.24 /usr/local/lib/gcc-4.2.5 /usr/local/lib/gegl-0.0 /usr/local/lib/graphviz /usr/local/lib/mysql /usr/local/lib/nss /usr/local/lib/portaudio2 /usr/local/lib/pth /usr/local/lib/qt4 /usr/local/lib/wine
<118>a.out ldconfig path: /usr/lib/aout /usr/lib/compat/aout
<118>Clearing /tmp (X related).
<118>Creating and/or trimming log files:
<118>.
<118>Starting syslogd.
<118>Checking for core dump on /dev/ad6s1b...
<118>savecore: no dumps found
<118>Initial i386 initialization:
<118>.
<118>Additional ABI support:
<118> linux
<118>.
<118>Starting local daemons:
<118>.
<118>Updating motd
<118>.
<118>Mounting late file systems:
<118>.
<118>Starting mysql.
<118>Starting hpssd.
<118>Starting default moused:
<118>.
<118>Starting dbus.
<118>Configuring syscons:
<118> keymap
<118> cursor
<118> font8x16
<118> font8x14
<118> font8x8
<118> blanktime
<118> screensaver
<118>.
<118>Starting sendmail.
<118>Starting cupsd.
<118>Performing sanity check on apache22 configuration:
<118>Syntax OK
<118>Starting apache22.
<118>Starting cron.
<118>Local package initialization:
<118> GNUstep
<118>.
<118>Starting background file system checks in 60 seconds.
<118>
<118>Sat Apr  4 06:35:59 CDT 2009
<118>Apr  4 06:36:05 debranded login: ROOT LOGIN (toor) ON ttyv0
<118>Apr  4 06:36:30 debranded login: ROOT LOGIN (toor) ON ttyv2
<118>Apr  4 06:36:47 debranded login: ROOT LOGIN (toor) ON ttyva
<3>sio4: 11 more interrupt-level buffer overflows (total 11)
<118>Apr  4 06:39:22 debranded kernel: sio4: 11 more interrupt-level buffer overflows (total 11)
<118>Apr  4 06:43:39 debranded login: ROOT LOGIN (toor) ON ttyv9
<3>sio4: 37 more interrupt-level buffer overflows (total 48)
<118>Apr  4 06:55:10 debranded kernel: sio4: 37 more interrupt-level buffer overflows (total 48)
<3>sio4: 182 more interrupt-level buffer overflows (total 230)
<118>Apr  4 07:23:12 debranded kernel: sio4: 182 more interrupt-level buffer overflows (total 230)
<3>sio4: 126 more interrupt-level buffer overflows (total 356)
<118>Apr  4 08:31:49 debranded kernel: sio4: 126 more interrupt-level buffer overflows (total 356)
<3>sio4: 44 more interrupt-level buffer overflows (total 400)
<118>Apr  4 09:01:02 debranded kernel: sio4: 44 more interrupt-level buffer overflows (total 400)
<3>sio4: 27 more interrupt-level buffer overflows (total 427)
<118>Apr  4 12:56:19 debranded kernel: sio4: 27 more interrupt-level buffer overflows (total 427)
<3>sio4: 21 more interrupt-level buffer overflows (total 448)
<118>Apr  4 13:18:12 debranded kernel: sio4: 21 more interrupt-level buffer overflows (total 448)
<3>sio4: 213 more interrupt-level buffer overflows (total 661)
<118>Apr  4 15:10:23 debranded kernel: sio4: 213 more interrupt-level buffer overflows (total 661)
<3>sio4: 336 more interrupt-level buffer overflows (total 997)
<118>Apr  4 17:42:14 debranded kernel: sio4: 336 more interrupt-level buffer overflows (total 997)
<3>sio4: 30 more interrupt-level buffer overflows (total 1027)
<118>Apr  4 18:07:06 debranded kernel: sio4: 30 more interrupt-level buffer overflows (total 1027)
<3>sio4: 129 more interrupt-level buffer overflows (total 1156)
<118>Apr  4 20:45:13 debranded kernel: sio4: 129 more interrupt-level buffer overflows (total 1156)
<118>Apr  4 20:57:01 debranded login: ROOT LOGIN (toor) ON ttyv8
umass0: <OLYMPUS X100,D540Z,C310Z, class 0/0, rev 2.00/1.00, addr 2> on uhub0


Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address	= 0x0
fault code		= supervisor read, page not present
instruction pointer	= 0x20:0x0
stack pointer	        = 0x28:0xd2e54698
frame pointer	        = 0x28:0xd2e546d8
code segment		= base 0x0, limit 0xfffff, type 0x1b
 			= DPL 0, pres 1, def32 1, gran 1
processor eflags	= interrupt enabled, resume, IOPL = 0
current process		= 13 (swi4: clock sio)
trap number		= 12
panic: page fault
cpuid = 0
Uptime: 14h22m35s
Physical memory: 430 MB
Dumping 100 MB: 85 69 53 37 21 5 <bunch of nulls, etc.>


-- 
Lars Eighner
http://www.larseighner.com/index.html
8800 N IH35 APT 1191 AUSTIN TX 78753-5266




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