Fwd: Olympus C-1

2002-04-04 Thread Chad Kline


this is an email i got from someone,
i can't find USBS or 0x5342 in
the fbsd 4.5 kernel source ...  but
maybe it's coded another way?

i am wondering if this might give a hint
as to a fix for getting an olympus C-1Z/D-150
to work ...  please CC off the list ...

I will start with a disclaimer, I AM NOT A FREEBSD USER!
Having similar problems with connecting my C-1 to linux (Kernel 2.4.18) I
was searching google groups, and saw your post. Now having resolved my
problem I am wondering if this may help you?

According to a linux development list the C-1 gives out packets with an
incorrect magic number causing the usb-storage module to fail to
communicate. As the C-1 is my only USB device, I took the easy way out,
and changed the number in the headers. Apparantly windows ignores the
headers specified in the USB definition so everything works.

What the camera should send is : 0x53425355/* Spells out 'USBS' */
What the camera actually send's: 0x55425355
   ^
   Error!

If you grep through the sources for the first , and assuming the C-1 is
the only device you have , change the number.

Apologies if you have already tried this.

(My modified kernel now recognises /dev/sda1 as an msdos filesystem
mounted on /mnt/camera)


_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message



Fwd: Olympus C-1

2002-04-04 Thread Chad Kline


sorry - my grep -ir had a type - i will try this out
and post if it fixed things or not - sorry.

What the camera should send is : 0x53425355/* Spells out 'USBS' */
What the camera actually send's: 0x55425355
   ^
   Error!



_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message



usb storage class / umass.c

2002-04-02 Thread Chad Kline

i am having trouble with a storage class USB device.
the device is a Olympus C-1/D-150 camera with
a SmartMedia disk and a USB link.

i have tried changing OLYMPUS to Olympus
in the kernel source and various other things,
but have had no success mounting the SmartMedia disk.
from everything i understand and have read, there shouldn't
be any problem in connecting/accessing this device.  i was
referred to the hackers list for help - and would be happy
to do whatever i can to get this thing to work.  please
reply off the list!

Outer Connectors: USB interface (storage class)
Auto-connect USB: Yes

$ usbdevs
addr 1: OHCI root hub, OPTi
addr 2: C-1 Digital Camera, Olympus

$ dmesg
ohci0: OPTi 82C861 (FireLink) USB controller mem 0xe100-0xe1000fff irq 
10
at device 19.0 on pci0
usb0: OHCI version 1.0, legacy support
usb0: OPTi 82C861 (FireLink) USB controller on ohci0
usb0: USB revision 1.0
uhub0: OPTi OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
umass0: OLYMPUS C-1Z,D-150Z, rev 1.10/10.15, addr 2, SCSI over Bulk-Only
umass0: Max Lun is 0
umass-sim:0:-1:-1:XPT_PATH_INQ:.
umass0:0:0:-1: Attached to scbus0 as device 0
umass0: Attach finished
orm0: Option ROM at iomem 0xc-0xc7fff on isa0
...
umass-sim:0:-1:-1:XPT_PATH_INQ:.
umass-sim:0:-1:-1:XPT_PATH_INQ:.
umass-sim:0:-1:-1:XPT_PATH_INQ:.
umass0:0:0:0:XPT_PATH_INQ:.
umass0:0:0:0:XPT_PATH_INQ:.
umass0:0:0:0:XPT_SCSI_IO: cmd: 0x12, flags: 0x40, 6b cmd/36b data/18b sense
umass0: CBW 1: cmd = 6b (0x12002400), data = 36 bytes, dir = in
umass-sim:0:1:0:func_code 0x0004: Invalid target (no wildcard)
umass-sim:0:2:0:func_code 0x0004: Invalid target (no wildcard)
umass0: Handling BBB state 1 (BBB CBW), xfer=0xc07f1300, TIMEOUT
umass0: failed to send CBW
umass0: Bulk Reset
umass0: Handling BBB state 7 (BBB Reset), xfer=0xc07f7d80, TIMEOUT
umass0: BBB reset failed, TIMEOUT
umass0: Clear endpoint 0x82 stall
umass0: Handling BBB state 8 (BBB bulk-in clear stall), xfer=0xc07f7d00, 
TIMEOUT
umass0: BBB bulk-in clear stall failed, TIMEOUT


_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message



Re: olympus c-1 (d-150)

2002-03-26 Thread Chad Kline

i am being directed to this list for assistance.
the problem is an Olympus camera as follows:
(please Cc off list - i am not subscribed)

NO it is no in this line! Maybe its the same like the C-1, but the name
of it is D-150. So it gets detected by the next line of this file:

* Olympus digital cameras (D-370)
*/
   {T_DIRECT, SIP_MEDIA_REMOVABLE, OLYMPUS, D-*, *},
   /*quirks*/ DA_Q_NO_6_BYTE

And if you look closer you see that there's no DA_Q_NO_SYNC_CACHE.
Add it and try again.

ok - i have done as suggested as follows (before  after dmesg):
(i don't not any difference - camera is plugged in at boot time)
===
usbdevs -v reports:

Controller /dev/usb0:
addr 1: self powered, config 1, OHCI root hub(0x),
OPTi(0x), rev 0x0100 port 1
addr 2: self powered, config 1, C-1 Digital Camera(0x0102),
Olympus(0x07b4), rev 0x1015 port 2 powered

usbd -d reports:

usbd:doing timeout discovery on /dev/usb0
usbd:processing event queue due to timeout on /dev/usb

/etc/usbd.conf:

device SmartMedia
devname /dev/da0s1
attach /sbin/mount -t msdos /dev/da0s1 /mnt
===
/usr/src/sys/dev/usb/umass.c:

if (UGETW(dd-idVendor) == USB_VENDOR_OLYMPUS) { /*  */
/*  UGETW(dd-idProduct) == USB_PRODUCT_OLYMPUS_C1) { */
/*
 * The Olympus C-1 camera uses a different command-status
 * signature.
 */
sc-quirks |= WRONG_CSWSIG;
}

Copyright (c) 1992-2002 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD 4.5-RELEASE #5: Mon Mar 25 16:33:16 AKST 2002
[EMAIL PROTECTED]:/usr/src/sys/compile/MYKERN
Timecounter i8254  frequency 1193182 Hz
Timecounter TSC  frequency 167045919 Hz
CPU: Pentium/P54C (167.05-MHz 586-class CPU)
  Origin = GenuineIntel  Id = 0x52c  Stepping = 12
  Features=0x1bfFPU,VME,DE,PSE,TSC,MSR,MCE,CX8
real memory  = 33554432 (32768K bytes)
avail memory = 30072832 (29368K bytes)
Preloaded elf kernel kernel at 0xc02b6000.
Preloaded userconfig_script /boot/kernel.conf at 0xc02b609c.
Intel Pentium detected, installing workaround for F00F bug
Using $PIR table, 5 entries at 0xc00fdc70
npx0: math processor on motherboard
npx0: INT 16 interface
pcib0: Host to PCI bridge on motherboard
pci0: PCI bus on pcib0
isab0: Intel 82371FB PCI to ISA bridge at device 7.0 on pci0
isa0: ISA bus on isab0
atapci0: Intel PIIX ATA controller port 0xf000-0xf00f at device 7.1 on 
pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
pci0: Cirrus Logic GD5446 SVGA controller at 17.0
ohci0: OPTi 82C861 (FireLink) USB controller mem 0xe100-0xe1000fff irq 
10 at device 19.0 on pci0
usb0: OHCI version 1.0, legacy support
usb0: OPTi 82C861 (FireLink) USB controller on ohci0
usb0: USB revision 1.0
uhub0: OPTi OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
umass0: OLYMPUS C-1Z,D-150Z, rev 1.10/10.15, addr 2, SCSI over Bulk-Only
umass0: Max Lun is 0
umass-sim:0:-1:-1:XPT_PATH_INQ:.
umass0:0:0:-1: Attached to scbus0 as device 0
umass0: Attach finished
orm0: Option ROM at iomem 0xc-0xc7fff on isa0
sc0: System console on isa0
sc0: VGA 9 virtual consoles, flags=0x200
atkbdc0: Keyboard controller (i8042) at port 0x60,0x64 on isa0
atkbd0: AT Keyboard irq 1 on atkbdc0
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
sio0 at port 0x3f8-0x3ff irq 4 on isa0
sio0: type 16550A
ed0 at port 0x340-0x35f irq 9 on isa0
ed0: address 00:00:1b:35:06:76, type NE2000 (16 bit)
fdc0: NEC 765 or clone at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fd0: 1440-KB 3.5 drive on fdc0 drive 0
vga0: Generic ISA VGA at port 0x3c0-0x3df iomem 0xa-0xb on isa0
ppc0: Parallel port at port 0x378-0x37f irq 7 on isa0
ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
plip0: PLIP network interface on ppbus0
lpt0: Printer on ppbus0
lpt0: Interrupt-driven port
ppi0: Parallel I/O on ppbus0
ad0: 4112MB WDC AC14300R [8912/15/63] at ata0-master WDMA2
acd0: CDROM FX3400S at ata0-slave using PIO4
umass-sim:0:-1:-1:XPT_PATH_INQ:.
umass-sim:0:-1:-1:XPT_PATH_INQ:.
umass-sim:0:-1:-1:XPT_PATH_INQ:.
umass0:0:0:0:XPT_PATH_INQ:.
umass0:0:0:0:XPT_PATH_INQ:.
umass-sim:0:1:0:func_code 0x0004: Invalid target (no wildcard)
umass-sim:0:2:0:func_code 0x0004: Invalid target (no wildcard)
umass0:0:0:0:XPT_SCSI_IO: cmd: 0x12, flags: 0x40, 6b cmd/36b data/18b sense
umass0: CBW 1: cmd = 6b (0x12002400), data = 36 bytes, dir = in
umass0: Handling BBB state 1 (BBB CBW), xfer=0xc07f1300, TIMEOUT
umass0: failed to send CBW
umass0: Bulk Reset
umass0: Handling BBB state 7 (BBB Reset), xfer=0xc07f7d80, TIMEOUT
umass0: BBB reset failed, TIMEOUT
umass0: Clear endpoint 0x82 stall
umass0: Handling BBB state 8 (BBB bulk-in