From owner-FreeBSD-users-jp@jp.freebsd.org  Wed Jun 13 20:50:51 2001
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id UAA74368;
	Wed, 13 Jun 2001 20:50:51 +0900 (JST)
	(envelope-from owner-FreeBSD-users-jp@jp.FreeBSD.org)
Received: from multi.al.rim.or.jp (multi.al.rim.or.jp [202.247.191.124])
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) with ESMTP id UAA74363
	for <FreeBSD-users-jp@jp.freebsd.org>; Wed, 13 Jun 2001 20:50:50 +0900 (JST)
	(envelope-from amadeus@yk.rim.or.jp)
Received: from shell.rim.or.jp
	by multi.al.rim.or.jp (3.7W/HMX-12) id UAA06060
	for <FreeBSD-users-jp@jp.freebsd.org>; Wed, 13 Jun 2001 20:50:49 +0900 (JST)
Received: from shell.al.rim.or.jp (amadeus_yk@localhost [127.0.0.1])
	by shell.rim.or.jp (8.9.3/3.7W/DI-2000071215) with ESMTP id UAA99598
	for <FreeBSD-users-jp@jp.freebsd.org>; Wed, 13 Jun 2001 20:50:49 +0900 (JST)
	(envelope-from amadeus@yk.rim.or.jp)
Message-Id: <200106131150.UAA99598@shell.rim.or.jp>
From: Takaaki Nomura (=?ISO-2022-JP?B?GyRCTG5CPDliTEAbKEI=?=)
    <amadeus@yk.rim.or.jp>
To: FreeBSD-users-jp@jp.freebsd.org
In-reply-to: Your message of "Tue, 12 Jun 2001 22:41:05 JST"
References: <010612224105.M0264121@mistral.imasy.or.jp> 
Mime-Version: 1.0
Content-Type: text/plain;charset="ISO-2022-JP"
Date: Wed, 13 Jun 2001 20:50:49 +0900
Reply-To: FreeBSD-users-jp@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+010328
X-Sequence: FreeBSD-users-jp 62255
Subject: [FreeBSD-users-jp 62255] Re: USB Card Reader and SCSI HDD 
Errors-To: owner-FreeBSD-users-jp@jp.freebsd.org
Sender: owner-FreeBSD-users-jp@jp.freebsd.org
X-Originator: amadeus@yk.rim.or.jp

$BLnB<!w(Binter.net $B$G$9!#(B

On Tue, 12 Jun 2001 22:41:05 +0900,
mistral@imasy.or.jp (Yoshihiko SARUMARU) wrote:
>2001-06-12($B2P(B) 20:05:07.$B:"!"(Baizu@navi.org$B$5$s$O=q$-$^$7$?!#(B
>> > $B%O%.%o%i%7%9%3%`$N(B PC $B%+!<%I%j!<%@!?%i%$%?(B FlashGate DUAL $B$r(B PC/AT
>> > $B8_495!$N(B USB $B%]!<%H$K@\B3$7$F$$$k$N$G$9$,!"(BFreeBSD 4.x $B$G(B SCSI HDD
>> > $B$HF1MM$K!"$7$+$b$=$l$h$jA0$K(B(i.e. da0 $B$H$7$F(B)$BG'<1$5$l$F$7$^$$!"(B
>> > FreeBSD $B$O(B SCSI HDD $B$KF~$l$F$$$k$N$G!"%G%#%9%/$NHV9f$,$:$l$F$7$^$$!"(B
>> > $B:$$C$F$$$^$9!#%V!<%H;~$K(B disable $B$b=PMh$J$$$N$G!"%$%s%9%H!<%k;~$K$O(B
>> > USB $B%]!<%H$+$iH4$-!"%$%s%9%H!<%k8e$O(B device umass $B$r:o=|$7$?%+!<%M(B
>> > $B%k$r:n$C$F85$KLa$7$F$$$^$9!#(B
>> > 
>> > SCSI HDD $B$N8e$KG'<1$5$l$k$h$&$K$J$i$J$$$G$7$g$&$+!)(B
>> 
>> device umass $B$rH4$$$?(B kernel $B$G5/F08e!"(B
>> kldload umass
>> $B$r<B9T$9$k$C$F$N$O%@%a$G$7$g$&$+!)(B
>> # $B$d$C$F$_$?$3$H$J$$$N$G!"$[$s$H$K$G$-$k$+<+?.$J$$$G$9$,(B...
>
>  LINT $B$K$O0J2<$N$h$&$K=q$$$F$"$j$^$9$,!"$3$s$J$3$H$C$F$G$-$J$$(B
>$B$s$G$7$g$&$+!)(B
>device        scbus0 at ahc0	#$B$?$H$($P(B ahc0
>device        da0 at scbus0
>
>
>$B0J2<(B LINT$B$h$j(B
># Beginning with FreeBSD 2.0.5 you can wire down your SCSI devices so
># that a given bus, target, and LUN always come on line as the same
># device unit.  In earlier versions the unit numbers were assigned
>($BN,(B)
># This old behavior is maintained as the default behavior.  The unit
># assignment begins with the first non-wired down unit for a device
># type.  For example, if you wire a disk as "da3" then the first
># non-wired disk will be assigned da4.
>
># The syntax for wiring down devices is:
>
># device        scbus0 at ahc0          # Single bus device
># device        scbus1 at ahc1 bus 0    # Single bus device
># device        scbus3 at ahc2 bus 0    # Twin bus device
># device        scbus2 at ahc2 bus 1    # Twin bus device
># device        da0 at scbus0 target 0 unit 0
># device        da1 at scbus3 target 1
># device        da2 at scbus2 target 3

$B%+!<%M%k$N%3%s%U%#%0$r(B

103,104c103,108
< device	scbus		# SCSI bus (required)
< device	da		# Direct Access (disks)
---
> device	scbus0		# SCSI bus (required)
> device	da0	at scbus0 target 0
> device	da1	at scbus0 target 1
> device	da2	at scbus0 target 2
> device	da3	at scbus0 target 5
> #device	da		# Direct Access (disks)
239c243
< #device	umass		# Disks/Mass storage - Requires scbus and da
---
> device	umass		# Disks/Mass storage - Requires scbus and da

$B$N$h$&$KJQ99$7$F$_$^$7$?$,!"M=A[$KH?$7$F!"(BUSB Card Reader/Writer $B$,(B da0 $B$H(B
$B$J$j!"(BSCSI HDD $B$O(B da4-da7 $B$K$J$C$F$7$^$$!"%G%#%9%/$N(B mount $B$G<:GT$7$^$7$?!#(B

camcontrol devlist $B$N=PNO$O!"<!$N$h$&$K$J$C$F$$$^$9!#(B($BA0$N%+!<%M%k$GN)$A>e(B
$B$2!"(Bfstab $B$r(B $B=q$-49$($F!":FEY?7$7$$%+!<%M%k$GN)$A>e$2$?8e$N$b$N$G$9!#(B)

<HAGIWARA FlashGate DUAL 1.00>     at scbus0 target 0 lun 0 (pass0,da0)
<IBM DPES-31080 S31Q>              at scbus1 target 0 lun 0 (pass1,da4)
<QUANTUM FIREBALL ST4.3S 0F0C>     at scbus1 target 1 lun 0 (pass2,da5)
<SEAGATE ST52160N 0344>            at scbus1 target 2 lun 0 (pass3,da6)
<FUJITSU M2513A 1500>              at scbus1 target 5 lun 0 (pass4,da7)

dmesg $B$N=PNO$bIU$1$^$9!#(B

Copyright (c) 1992-2001 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.3-RELEASE #0: Wed Jun 13 19:57:22 JST 2001
    nomura@gateway2000:/usr/src/sys/compile/gateway2000
Timecounter "i8254"  frequency 1193182 Hz
CPU: Pentium III/Pentium III Xeon/Celeron (597.41-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x683  Stepping = 3
  Features=0x387f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,PN,MMX,FXSR,SSE>
real memory  = 67096576 (65524K bytes)
avail memory = 61665280 (60220K bytes)
Preloaded elf kernel "kernel" at 0xc039c000.
Pentium Pro MTRR support enabled
md0: Malloc disk
apm0: <APM BIOS> on motherboard
apm: found APM BIOS v1.2, connected at v1.2
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Intel 82443BX (440 BX) host to PCI bridge> on motherboard
pci0: <PCI bus> on pcib0
pcib1: <Intel 82443BX (440 BX) PCI-PCI (AGP) bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <NVidia Riva Ultra Vanta TNT2 graphics accelerator> at 0.0 irq 11
isab0: <Intel 82371AB PCI to ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 ATA33 controller> port 0x1860-0x186f at device 7.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
uhci0: <Intel 82371AB/EB (PIIX4) USB controller> port 0x1840-0x185f irq 9 at device 7.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: Hagiwara Sys-Com SmartMedia and PCMCIA R/W, rev 1.10/1.00, addr 2
chip1: <Intel 82371AB Power management controller> port 0x7000-0x700f at device 7.3 on pci0
pcm0: <AudioPCI ES1371> port 0x1800-0x183f irq 10 at device 13.0 on pci0
ahc0: <Adaptec 2940 SCSI adapter> port 0x1000-0x10ff mem 0xf4000000-0xf4000fff irq 11 at device 14.0 on pci0
aic7870: Single Channel A, SCSI Id=7, 16/255 SCBs
pci0: <Matrox MGA G200 graphics accelerator> at 15.0 irq 5
sis0: <SiS 900 10/100BaseTX> port 0x1400-0x14ff mem 0xf4001000-0xf4001fff irq 9 at device 16.0 on pci0
sis0: Ethernet address: 00:40:26:b9:bd:32
miibus0: <MII bus> on sis0
ukphy0: <Generic IEEE 802.3u media interface> on miibus0
ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model Generic PS/2 mouse, device ID 0
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
ata1-slave: identify retries exceeded
ata0-master: DMA limited to UDMA33, non-ATA66 compliant cable
ad0: 9787MB <WDC WD102AA> [19885/16/63] at ata0-master UDMA33
ad1: 4110MB <QUANTUM FIREBALL SE4.3A> [14848/9/63] at ata0-slave UDMA33
acd0: DVD-ROM <_NEC DV-5700A> at ata1-master using PIO4
Waiting 15 seconds for SCSI devices to settle
Mounting root from ufs:/dev/da6s1a
da0 at umass-sim0 bus 0 target 0 lun 0
da0: <HAGIWARA FlashGate DUAL 1.00> Removable Direct Access SCSI-2 device 
da0: 650KB/s transfers
da0: 7MB (16000 512 byte sectors: 64H 32S/T 7C)
da4 at ahc0 bus 0 target 0 lun 0
da4: <IBM DPES-31080 S31Q> Fixed Direct Access SCSI-2 device 
da4: 10.000MB/s transfers (10.000MHz, offset 15), Tagged Queueing Enabled
da4: 1034MB (2118144 512 byte sectors: 64H 32S/T 1034C)
da7 at ahc0 bus 0 target 5 lun 0
da7: <FUJITSU M2513A 1500> Removable Optical SCSI-2 device 
da7: 10.000MB/s transfers (10.000MHz, offset 10)
da7: 606MB (310352 2048 byte sectors: 64H 32S/T 151C)
da6 at ahc0 bus 0 target 2 lun 0
da6: <SEAGATE ST52160N 0344> Fixed Direct Access SCSI-2 device 
da6: 10.000MB/s transfers (10.000MHz, offset 15)
da6: 2069MB (4238282 512 byte sectors: 64H 32S/T 2069C)
da5 at ahc0 bus 0 target 1 lun 0
da5: <QUANTUM FIREBALL ST4.3S 0F0C> Fixed Direct Access SCSI-2 device 
da5: 10.000MB/s transfers (10.000MHz, offset 15), Tagged Queueing Enabled
da5: 4136MB (8471232 512 byte sectors: 64H 32S/T 4136C)
