Есть модем Мегафон MR100-3 (он же Huawei E5372) и его нужно подключить к FreeBSD 9.1
В Ubuntu кое-как настроил, но нужно для FreeBSD 9.1
VID:PID 12D1:1506
Сначала подключаю к Ubuntu 14.04 и вижу
root@alexey-desktop:~# lsusb
Bus 002 Device 005: ID 12d1:14fe Huawei Technologies Co., Ltd.
Bus 002 Device 004: ID 1c4f:0002 SiGma Micro Keyboard TRACER Gamma Ivory
Bus 002 Device 003: ID 046d:c05a Logitech, Inc. M90/M100 Optical Mouse
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
root@alexey-desktop:~# ifconfig -a
eth0 Link encap:Ethernet HWaddr 50:46:5d:65:be:f9
inet6 addr: fe80::5246:5dff:fe65:bef9/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:470 errors:0 dropped:0 overruns:0 frame:0
TX packets:99 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:125126 (125.1 KB) TX bytes:17311 (17.3 KB)
lo Link encap:Локальная петля (Loopback)
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:50 errors:0 dropped:0 overruns:0 frame:0
TX packets:50 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4080 (4.0 KB) TX bytes:4080 (4.0 KB)
virbr0 Link encap:Ethernet HWaddr e6:48:81:e5:16:99
inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
dmesg
[ 42.739506] usb 2-1.5: new high-speed USB device number 5 using ehci-pci
[ 42.832912] usb 2-1.5: New USB device found, idVendor=12d1, idProduct=14fe
[ 42.832917] usb 2-1.5: New USB device strings: Mfr=2, Product=1, SerialNumber=0
[ 42.832920] usb 2-1.5: Product: HUAWEI Mobile
[ 42.832922] usb 2-1.5: Manufacturer: HUAWEI Technology
[ 42.868209] usb-storage 2-1.5:1.0: USB Mass Storage device detected
[ 42.868261] scsi6 : usb-storage 2-1.5:1.0
[ 42.868314] usb-storage 2-1.5:1.1: USB Mass Storage device detected
[ 42.868444] scsi7 : usb-storage 2-1.5:1.1
[ 42.868497] usbcore: registered new interface driver usb-storage
[ 43.868228] scsi 6:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2
[ 43.868330] scsi 7:0:0:0: Direct-Access HUAWEI TF CARD Storage 2.31 PQ: 0 ANSI: 2
[ 43.981577] sr1: scsi-1 drive
[ 43.982118] sr 6:0:0:0: Attached scsi CD-ROM sr1
[ 43.982291] sr 6:0:0:0: Attached scsi generic sg2 type 5
[ 43.983995] sd 7:0:0:0: Attached scsi generic sg3 type 0
[ 44.221706] sd 7:0:0:0: [sdb] Attached SCSI removable disk
root@alexey-desktop:~# ls -la /dev | grep -i usb
drwxr-x--- 3 root vboxusers 60 дек. 8 14:09 vboxusb
root@alexey-desktop:~# ls -la /dev | grep wdm
root@alexey-desktop:~#
root@alexey-desktop:~# ls -la /dev | grep sr
lrwxrwxrwx 1 root root 3 дек. 8 14:09 cdrom -> sr0
srw-rw-rw- 1 root root 0 дек. 8 14:09 log
brw-rw----+ 1 root cdrom 11, 0 дек. 8 14:09 sr0
brw-rw----+ 1 root cdrom 11, 1 дек. 8 14:09 sr1
Посылаю команду с помощью usb_modeswitch и вижу:
root@alexey-desktop:~# usb_modeswitch -v 12d1 -p 14fe -V 12d1 -P 1506 -M «55534243123456780000000000000011062000000100000000000000000000» -n 1
Look for target devices ...
No devices in target mode or class found
Look for default devices ...
product ID matched
Found devices in default mode (1)
Access device 005 on bus 002
Current configuration number is 1
Use interface number 0
Use endpoints 0x01 (out) and 0x81 (in)
USB description data (for identification)
-------------------------
Manufacturer: HUAWEI Technology
Product: HUAWEI Mobile
Serial No.: not provided
-------------------------
Looking for active driver ...
OK, driver detached
Set up interface 0
Use endpoint 0x01 for message sending ...
Trying to send message 1 to endpoint 0x01 ...
OK, message successfully sent
Read the response to message 1 (CSW) ...
Response reading failed (error -1)
Device is gone, skip any further commands
-> Run lsusb to note any changes. Bye!
Вот dmesg
[ 390.369359] usb 2-1.5: USB disconnect, device number 5
[ 390.634600] usb 2-1.5: new high-speed USB device number 6 using ehci-pci
[ 390.727927] usb 2-1.5: New USB device found, idVendor=12d1, idProduct=1506
[ 390.727932] usb 2-1.5: New USB device strings: Mfr=2, Product=1, SerialNumber=0
[ 390.727935] usb 2-1.5: Product: HUAWEI Mobile
[ 390.727937] usb 2-1.5: Manufacturer: HUAWEI Technology
[ 390.730353] usbserial_generic 2-1.5:1.0: The "generic" usb-serial driver is only for testing and one-off prototypes.
[ 390.730359] usbserial_generic 2-1.5:1.0: Tell linux-usb@vger.kernel.org to add your device to a proper driver.
[ 390.730363] usbserial_generic 2-1.5:1.0: generic converter detected
[ 390.730481] usb 2-1.5: generic converter now attached to ttyUSB0
[ 390.730529] usbserial_generic 2-1.5:1.1: Generic device with no bulk out, not allowed.
[ 390.730534] usbserial_generic: probe of 2-1.5:1.1 failed with error -5
[ 390.730567] usbserial_generic 2-1.5:1.2: The "generic" usb-serial driver is only for testing and one-off prototypes.
[ 390.730569] usbserial_generic 2-1.5:1.2: Tell linux-usb@vger.kernel.org to add your device to a proper driver.
[ 390.730571] usbserial_generic 2-1.5:1.2: generic converter detected
[ 390.730616] usb 2-1.5: generic converter now attached to ttyUSB1
[ 390.730653] usbserial_generic 2-1.5:1.3: The "generic" usb-serial driver is only for testing and one-off prototypes.
[ 390.730655] usbserial_generic 2-1.5:1.3: Tell linux-usb@vger.kernel.org to add your device to a proper driver.
[ 390.730656] usbserial_generic 2-1.5:1.3: generic converter detected
[ 390.730696] usb 2-1.5: generic converter now attached to ttyUSB2
[ 390.763516] usbcore: registered new interface driver cdc_ncm
[ 390.777028] usbcore: registered new interface driver cdc_wdm
[ 390.791448] huawei_cdc_ncm 2-1.5:1.1: MAC-Address: 0c:5b:8f:27:9a:64
[ 390.791512] huawei_cdc_ncm 2-1.5:1.1: cdc-wdm0: USB WDM device
[ 390.791732] huawei_cdc_ncm 2-1.5:1.1 wwan0: register 'huawei_cdc_ncm' at usb-0000:00:1d.0-1.5, Huawei CDC NCM device, 0c:5b:8f:27:9a:64
[ 390.791840] usbcore: registered new interface driver huawei_cdc_ncm
root@alexey-desktop:~# ls -la /dev | grep wdm
crw------- 1 root root 180, 0 дек. 8 14:15 cdc-wdm0
root@alexey-desktop:~# ls -la /dev | grep sr
lrwxrwxrwx 1 root root 3 дек. 8 14:09 cdrom -> sr0
srw-rw-rw- 1 root root 0 дек. 8 14:09 log
brw-rw----+ 1 root cdrom 11, 0 дек. 8 14:09 sr0
root@alexey-desktop:~# ls -la /dev | grep -i usb
crw-rw---- 1 root dialout 188, 0 дек. 8 14:15 ttyUSB0
crw-rw---- 1 root dialout 188, 1 дек. 8 14:15 ttyUSB1
crw-rw---- 1 root dialout 188, 2 дек. 8 14:15 ttyUSB2
drwxr-x--- 3 root vboxusers 60 дек. 8 14:09 vboxusb
Получаю по DHCP адрес
root@alexey-desktop:~# dhclient wwan0
root@alexey-desktop:~# route add default gw 192.168.8.1
root@alexey-desktop:~# ifconfig -a
eth0 Link encap:Ethernet HWaddr 50:46:5d:65:be:f9
inet6 addr: fe80::5246:5dff:fe65:bef9/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2390 errors:0 dropped:8 overruns:0 frame:0
TX packets:102 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:448723 (448.7 KB) TX bytes:18497 (18.4 KB)
lo Link encap:Локальная петля (Loopback)
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:258 errors:0 dropped:0 overruns:0 frame:0
TX packets:258 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:21656 (21.6 KB) TX bytes:21656 (21.6 KB)
virbr0 Link encap:Ethernet HWaddr e6:48:81:e5:16:99
inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
wwan0 Link encap:Ethernet HWaddr 0c:5b:8f:27:9a:64
inet addr:192.168.8.100 Bcast:192.168.8.255 Mask:255.255.255.0
inet6 addr: fe80::e5b:8fff:fe27:9a64/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:15 errors:0 dropped:0 overruns:0 frame:0
TX packets:54 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2121 (2.1 KB) TX bytes:794585 (794.5 KB)
root@alexey-sysadmin-desktop:~# nslookup ya.ru
Server: 192.168.8.1
Address: 192.168.8.1#53
Non-authoritative answer:
Name: ya.ru
Address: 213.180.193.3
Name: ya.ru
Address: 213.180.204.3
Name: ya.ru
Address: 93.158.134.3
Да и VID:PID поменялся
root@alexey-desktop:~# lsusb
Bus 002 Device 006: ID 12d1:1506 Huawei Technologies Co., Ltd. E398 LTE/UMTS/GSM Modem/Networkcard
Bus 002 Device 004: ID 1c4f:0002 SiGma Micro Keyboard TRACER Gamma Ivory
Bus 002 Device 003: ID 046d:c05a Logitech, Inc. M90/M100 Optical Mouse
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
И если отправить AT команду ATI:
То видно:
root@alexey-desktop:~# cat /dev/ttyUSB0
Manufacturer: huawei
Model: E5372
Revision: 21.270.09.01.209
И все работает.
А во FreeBSD не работает
bsd-0 # lsusb
Bus /dev/usb Device /dev/ugen1.3: ID 12d1:14fe Huawei Technologies Co., Ltd.
Bus /dev/usb Device /dev/ugen1.4: ID 04d9:1702 Holtek Semiconductor, Inc.
Bus /dev/usb Device /dev/ugen1.2: ID 8087:0024
Bus /dev/usb Device /dev/ugen0.2: ID 8087:0024
Bus /dev/usb Device /dev/ugen1.1: ID 0000:0000
Bus /dev/usb Device /dev/ugen0.1: ID 0000:0000
bsd-0 # ls /dev | grep -i cd
cd0
cd1
dmesg
ugen1.3: <HUAWEI Technology> at usbus1
umass0: <HUAWEI Technology HUAWEI Mobile, class 0/0, rev 2.00/1.02, addr 3> on usbus1
umass0: SCSI over Bulk-Only; quirks = 0x0100
umass0:7:0:-1: Attached to scbus7
umass1: <HUAWEI Technology HUAWEI Mobile, class 0/0, rev 2.00/1.02, addr 3> on usbus1
umass1: SCSI over Bulk-Only; quirks = 0x0100
umass1:8:1:-1: Attached to scbus8
cd1 at umass-sim0 bus 0 scbus7 target 0 lun 0
cd1: <HUAWEI Mass Storage 2.31> Removable CD-ROM SCSI-2 device
cd1: 40.000MB/s transfers
cd1: cd present [65536 x 2048 byte records]
da0 at umass-sim1 bus 1 scbus8 target 0 lun 0
da0: <HUAWEI TF CARD Storage 2.31> Removable Direct Access SCSI-2 device
da0: 40.000MB/s transfers
da0: Attempt to query device size failed: ILLEGAL REQUEST, Invalid field in CDB
(cd1:umass-sim0:0:0:0): READ(10). CDB: 28 0 0 0 ff c1 0 0 4 0
(cd1:umass-sim0:0:0:0): CAM status: SCSI Status Error
(cd1:umass-sim0:0:0:0): SCSI status: Check Condition
(cd1:umass-sim0:0:0:0): SCSI sense: MEDIUM ERROR asc:11,0 (Unrecovered read error)
(cd1:umass-sim0:0:0:0): Info: 0xffc1
(cd1:umass-sim0:0:0:0): Error 5, Unretryable error
(cd1:umass-sim0:0:0:0): cddone: got error 0x5 back
(cd1:umass-sim0:0:0:0): READ(10). CDB: 28 0 0 0 ff fe 0 0 1 0
(cd1:umass-sim0:0:0:0): CAM status: SCSI Status Error
(cd1:umass-sim0:0:0:0): SCSI status: Check Condition
(cd1:umass-sim0:0:0:0): SCSI sense: MEDIUM ERROR asc:11,0 (Unrecovered read error)
(cd1:umass-sim0:0:0:0): Info: 0xfffe
(cd1:umass-sim0:0:0:0): Error 5, Unretryable error
(cd1:umass-sim0:0:0:0): cddone: got error 0x5 back
(cd1:umass-sim0:0:0:0): READ(10). CDB: 28 0 0 0 ff fe 0 0 1 0
(cd1:umass-sim0:0:0:0): CAM status: SCSI Status Error
(cd1:umass-sim0:0:0:0): SCSI status: Check Condition
(cd1:umass-sim0:0:0:0): SCSI sense: MEDIUM ERROR asc:11,0 (Unrecovered read error)
(cd1:umass-sim0:0:0:0): Info: 0xfffe
(cd1:umass-sim0:0:0:0): Error 5, Unretryable error
(cd1:umass-sim0:0:0:0): cddone: got error 0x5 back
(cd1:umass-sim0:0:0:0): READ(10). CDB: 28 0 0 0 ff ff 0 0 1 0
(cd1:umass-sim0:0:0:0): CAM status: SCSI Status Error
(cd1:umass-sim0:0:0:0): SCSI status: Check Condition
(cd1:umass-sim0:0:0:0): SCSI sense: MEDIUM ERROR asc:11,0 (Unrecovered read error)
(cd1:umass-sim0:0:0:0): Info: 0xffff
(cd1:umass-sim0:0:0:0): Error 5, Unretryable error
(cd1:umass-sim0:0:0:0): cddone: got error 0x5 back
(cd1:umass-sim0:0:0:0): READ(10). CDB: 28 0 0 0 ff ff 0 0 1 0
(cd1:umass-sim0:0:0:0): CAM status: SCSI Status Error
(cd1:umass-sim0:0:0:0): SCSI status: Check Condition
(cd1:umass-sim0:0:0:0): SCSI sense: MEDIUM ERROR asc:11,0 (Unrecovered read error)
(cd1:umass-sim0:0:0:0): Info: 0xffff
(cd1:umass-sim0:0:0:0): Error 5, Unretryable error
(cd1:umass-sim0:0:0:0): cddone: got error 0x5 back
(cd1:umass-sim0:0:0:0): READ(10). CDB: 28 0 0 0 ff ff 0 0 1 0
(cd1:umass-sim0:0:0:0): CAM status: SCSI Status Error
(cd1:umass-sim0:0:0:0): SCSI status: Check Condition
(cd1:umass-sim0:0:0:0): SCSI sense: MEDIUM ERROR asc:11,0 (Unrecovered read error)
(cd1:umass-sim0:0:0:0): Info: 0xffff
(cd1:umass-sim0:0:0:0): Error 5, Unretryable error
(cd1:umass-sim0:0:0:0): cddone: got error 0x5 back
(cd1:umass-sim0:0:0:0): READ(10). CDB: 28 0 0 0 ff ff 0 0 1 0
(cd1:umass-sim0:0:0:0): CAM status: SCSI Status Error
(cd1:umass-sim0:0:0:0): SCSI status: Check Condition
(cd1:umass-sim0:0:0:0): SCSI sense: MEDIUM ERROR asc:11,0 (Unrecovered read error)
(cd1:umass-sim0:0:0:0): Info: 0xffff
(cd1:umass-sim0:0:0:0): Error 5, Unretryable error
(cd1:umass-sim0:0:0:0): cddone: got error 0x5 back
(cd1:umass-sim0:0:0:0): READ(10). CDB: 28 0 0 0 ff c1 0 0 4 0
(cd1:umass-sim0:0:0:0): CAM status: SCSI Status Error
(cd1:umass-sim0:0:0:0): SCSI status: Check Condition
(cd1:umass-sim0:0:0:0): SCSI sense: MEDIUM ERROR asc:11,0 (Unrecovered read error)
(cd1:umass-sim0:0:0:0): Info: 0xffc1
(cd1:umass-sim0:0:0:0): Error 5, Unretryable error
(cd1:umass-sim0:0:0:0): cddone: got error 0x5 back
(cd1:umass-sim0:0:0:0): READ(10). CDB: 28 0 0 0 ff fe 0 0 1 0
(cd1:umass-sim0:0:0:0): CAM status: SCSI Status Error
(cd1:umass-sim0:0:0:0): SCSI status: Check Condition
(cd1:umass-sim0:0:0:0): SCSI sense: MEDIUM ERROR asc:11,0 (Unrecovered read error)
(cd1:umass-sim0:0:0:0): Info: 0xfffe
(cd1:umass-sim0:0:0:0): Error 5, Unretryable error
(cd1:umass-sim0:0:0:0): cddone: got error 0x5 back
(cd1:umass-sim0:0:0:0): READ(10). CDB: 28 0 0 0 ff fe 0 0 1 0
(cd1:umass-sim0:0:0:0): CAM status: SCSI Status Error
(cd1:umass-sim0:0:0:0): SCSI status: Check Condition
(cd1:umass-sim0:0:0:0): SCSI sense: MEDIUM ERROR asc:11,0 (Unrecovered read error)
(cd1:umass-sim0:0:0:0): Info: 0xfffe
(cd1:umass-sim0:0:0:0): Error 5, Unretryable error
(cd1:umass-sim0:0:0:0): cddone: got error 0x5 back
(cd1:umass-sim0:0:0:0): READ(10). CDB: 28 0 0 0 ff ff 0 0 1 0
(cd1:umass-sim0:0:0:0): CAM status: SCSI Status Error
(cd1:umass-sim0:0:0:0): SCSI status: Check Condition
(cd1:umass-sim0:0:0:0): SCSI sense: MEDIUM ERROR asc:11,0 (Unrecovered read error)
(cd1:umass-sim0:0:0:0): Info: 0xffff
(cd1:umass-sim0:0:0:0): Error 5, Unretryable error
(cd1:umass-sim0:0:0:0): cddone: got error 0x5 back
(cd1:umass-sim0:0:0:0): READ(10). CDB: 28 0 0 0 ff ff 0 0 1 0
(cd1:umass-sim0:0:0:0): CAM status: SCSI Status Error
(cd1:umass-sim0:0:0:0): SCSI status: Check Condition
(cd1:umass-sim0:0:0:0): SCSI sense: MEDIUM ERROR asc:11,0 (Unrecovered read error)
(cd1:umass-sim0:0:0:0): Info: 0xffff
(cd1:umass-sim0:0:0:0): Error 5, Unretryable error
(cd1:umass-sim0:0:0:0): cddone: got error 0x5 back
(cd1:umass-sim0:0:0:0): READ(10). CDB: 28 0 0 0 ff ff 0 0 1 0
(cd1:umass-sim0:0:0:0): CAM status: SCSI Status Error
(cd1:umass-sim0:0:0:0): SCSI status: Check Condition
(cd1:umass-sim0:0:0:0): SCSI sense: MEDIUM ERROR asc:11,0 (Unrecovered read error)
(cd1:umass-sim0:0:0:0): Info: 0xffff
(cd1:umass-sim0:0:0:0): Error 5, Unretryable error
(cd1:umass-sim0:0:0:0): cddone: got error 0x5 back
bsd-0 # ls /dev | grep -i cu
cuau0
cuau0.init
cuau0.lock
cuau1
cuau1.init
cuau1.lock
bsd-0 # usb_modeswitch -v 12d1 -p 14fe -V 12d1 -P 1506 -M «55534243123456780000000000000011062000000100000000000000000000» -n
Далее VID:PID меняется
bsd-0 # lsusb
Bus /dev/usb Device /dev/ugen1.3: ID 12d1:1506 Huawei Technologies Co., Ltd.
Bus /dev/usb Device /dev/ugen1.4: ID 04d9:1702 Holtek Semiconductor, Inc.
Bus /dev/usb Device /dev/ugen1.2: ID 8087:0024
Bus /dev/usb Device /dev/ugen0.2: ID 8087:0024
Bus /dev/usb Device /dev/ugen1.1: ID 0000:0000
Bus /dev/usb Device /dev/ugen0.1: ID 0000:0000
dmesg
ugen1.3: <HUAWEI Technology> at usbus1 (disconnected)
umass0: at uhub3, port 4, addr 3 (disconnected)
(cd1:umass-sim0:0:0:0): lost device, 1 refs
(cd1:(pass4:umass-sim0:0:umass-sim0:0:0:0:0): removing device entry
0): passdevgonecb: devfs entry is gone
umass1: at uhub3, port 4, addr 3 (disconnected)
(da0:umass-sim1:1:0:0): lost device - 0 outstanding, 1 refs
(da0:(pass5:umass-sim1:1:umass-sim1:1:0:0:0): removing device entry
0): passdevgonecb: devfs entry is gone
ugen1.3: <HUAWEI Technology> at usbus1
umass0: <HUAWEI Technology HUAWEI Mobile, class 0/0, rev 2.00/1.02, addr 3> on usbus1
umass0: SCSI over Bulk-Only; quirks = 0x0000
umass0:7:0:-1: Attached to scbus7
umass1: <HUAWEI Technology HUAWEI Mobile, class 0/0, rev 2.00/1.02, addr 3> on usbus1
umass1: SCSI over Bulk-Only; quirks = 0x0000
umass1:8:1:-1: Attached to scbus8
cd1 at umass-sim0 bus 0 scbus7 target 0 lun 0
cd1: <HUAWEI Mass Storage 2.31> Removable CD-ROM SCSI-2 device
cd1: 40.000MB/s transfers
cd1: cd present [65536 x 2048 byte records]
da0 at umass-sim1 bus 1 scbus8 target 0 lun 0
da0: <HUAWEI TF CARD Storage 2.31> Removable Direct Access SCSI-2 device
da0: 40.000MB/s transfers
da0: Attempt to query device size failed: NOT READY, Medium not present
(cd1:umass-sim0:0:0:0): READ(10). CDB: 28 0 0 0 ff c1 0 0 4 0
(cd1:umass-sim0:0:0:0): CAM status: SCSI Status Error
(cd1:umass-sim0:0:0:0): SCSI status: Check Condition
(cd1:umass-sim0:0:0:0): SCSI sense: MEDIUM ERROR asc:11,0 (Unrecovered read error)
(cd1:umass-sim0:0:0:0): Info: 0xffc1
(cd1:umass-sim0:0:0:0): Error 5, Unretryable error
(cd1:umass-sim0:0:0:0): cddone: got error 0x5 back
(cd1:umass-sim0:0:0:0): READ(10). CDB: 28 0 0 0 ff fe 0 0 1 0
(cd1:umass-sim0:0:0:0): CAM status: SCSI Status Error
(cd1:umass-sim0:0:0:0): SCSI status: Check Condition
(cd1:umass-sim0:0:0:0): SCSI sense: MEDIUM ERROR asc:11,0 (Unrecovered read error)
(cd1:umass-sim0:0:0:0): Info: 0xfffe
(cd1:umass-sim0:0:0:0): Error 5, Unretryable error
(cd1:umass-sim0:0:0:0): cddone: got error 0x5 back
(cd1:umass-sim0:0:0:0): READ(10). CDB: 28 0 0 0 ff fe 0 0 1 0
(cd1:umass-sim0:0:0:0): CAM status: SCSI Status Error
(cd1:umass-sim0:0:0:0): SCSI status: Check Condition
(cd1:umass-sim0:0:0:0): SCSI sense: MEDIUM ERROR asc:11,0 (Unrecovered read error)
(cd1:umass-sim0:0:0:0): Info: 0xfffe
(cd1:umass-sim0:0:0:0): Error 5, Unretryable error
(cd1:umass-sim0:0:0:0): cddone: got error 0x5 back
(cd1:umass-sim0:0:0:0): READ(10). CDB: 28 0 0 0 ff ff 0 0 1 0
(cd1:umass-sim0:0:0:0): CAM status: SCSI Status Error
(cd1:umass-sim0:0:0:0): SCSI status: Check Condition
(cd1:umass-sim0:0:0:0): SCSI sense: MEDIUM ERROR asc:11,0 (Unrecovered read error)
(cd1:umass-sim0:0:0:0): Info: 0xffff
(cd1:umass-sim0:0:0:0): Error 5, Unretryable error
(cd1:umass-sim0:0:0:0): cddone: got error 0x5 back
(cd1:umass-sim0:0:0:0): READ(10). CDB: 28 0 0 0 ff ff 0 0 1 0
(cd1:umass-sim0:0:0:0): CAM status: SCSI Status Error
(cd1:umass-sim0:0:0:0): SCSI status: Check Condition
(cd1:umass-sim0:0:0:0): SCSI sense: MEDIUM ERROR asc:11,0 (Unrecovered read error)
(cd1:umass-sim0:0:0:0): Info: 0xffff
(cd1:umass-sim0:0:0:0): Error 5, Unretryable error
(cd1:umass-sim0:0:0:0): cddone: got error 0x5 back
(cd1:umass-sim0:0:0:0): READ(10). CDB: 28 0 0 0 ff ff 0 0 1 0
(cd1:umass-sim0:0:0:0): CAM status: SCSI Status Error
(cd1:umass-sim0:0:0:0): SCSI status: Check Condition
(cd1:umass-sim0:0:0:0): SCSI sense: MEDIUM ERROR asc:11,0 (Unrecovered read error)
(cd1:umass-sim0:0:0:0): Info: 0xffff
(cd1:umass-sim0:0:0:0): Error 5, Unretryable error
(cd1:umass-sim0:0:0:0): cddone: got error 0x5 back
(cd1:umass-sim0:0:0:0): READ(10). CDB: 28 0 0 0 ff ff 0 0 1 0
(cd1:umass-sim0:0:0:0): CAM status: SCSI Status Error
(cd1:umass-sim0:0:0:0): SCSI status: Check Condition
(cd1:umass-sim0:0:0:0): SCSI sense: MEDIUM ERROR asc:11,0 (Unrecovered read error)
(cd1:umass-sim0:0:0:0): Info: 0xffff
(cd1:umass-sim0:0:0:0): Error 5, Unretryable error
(cd1:umass-sim0:0:0:0): cddone: got error 0x5 back
(cd1:umass-sim0:0:0:0): READ(10). CDB: 28 0 0 0 ff c1 0 0 4 0
(cd1:umass-sim0:0:0:0): CAM status: SCSI Status Error
(cd1:umass-sim0:0:0:0): SCSI status: Check Condition
(cd1:umass-sim0:0:0:0): SCSI sense: MEDIUM ERROR asc:11,0 (Unrecovered read error)
(cd1:umass-sim0:0:0:0): Info: 0xffc1
(cd1:umass-sim0:0:0:0): Error 5, Unretryable error
(cd1:umass-sim0:0:0:0): cddone: got error 0x5 back
(cd1:umass-sim0:0:0:0): READ(10). CDB: 28 0 0 0 ff fe 0 0 1 0
(cd1:umass-sim0:0:0:0): CAM status: SCSI Status Error
(cd1:umass-sim0:0:0:0): SCSI status: Check Condition
(cd1:umass-sim0:0:0:0): SCSI sense: MEDIUM ERROR asc:11,0 (Unrecovered read error)
(cd1:umass-sim0:0:0:0): Info: 0xfffe
(cd1:umass-sim0:0:0:0): Error 5, Unretryable error
(cd1:umass-sim0:0:0:0): cddone: got error 0x5 back
(cd1:umass-sim0:0:0:0): READ(10). CDB: 28 0 0 0 ff fe 0 0 1 0
(cd1:umass-sim0:0:0:0): CAM status: SCSI Status Error
(cd1:umass-sim0:0:0:0): SCSI status: Check Condition
(cd1:umass-sim0:0:0:0): SCSI sense: MEDIUM ERROR asc:11,0 (Unrecovered read error)
(cd1:umass-sim0:0:0:0): Info: 0xfffe
(cd1:umass-sim0:0:0:0): Error 5, Unretryable error
(cd1:umass-sim0:0:0:0): cddone: got error 0x5 back
(cd1:umass-sim0:0:0:0): READ(10). CDB: 28 0 0 0 ff ff 0 0 1 0
(cd1:umass-sim0:0:0:0): CAM status: SCSI Status Error
(cd1:umass-sim0:0:0:0): SCSI status: Check Condition
(cd1:umass-sim0:0:0:0): SCSI sense: MEDIUM ERROR asc:11,0 (Unrecovered read error)
(cd1:umass-sim0:0:0:0): Info: 0xffff
(cd1:umass-sim0:0:0:0): Error 5, Unretryable error
(cd1:umass-sim0:0:0:0): cddone: got error 0x5 back
(cd1:umass-sim0:0:0:0): READ(10). CDB: 28 0 0 0 ff ff 0 0 1 0
(cd1:umass-sim0:0:0:0): CAM status: SCSI Status Error
(cd1:umass-sim0:0:0:0): SCSI status: Check Condition
(cd1:umass-sim0:0:0:0): SCSI sense: MEDIUM ERROR asc:11,0 (Unrecovered read error)
(cd1:umass-sim0:0:0:0): Info: 0xffff
(cd1:umass-sim0:0:0:0): Error 5, Unretryable error
(cd1:umass-sim0:0:0:0): cddone: got error 0x5 back
(cd1:umass-sim0:0:0:0): READ(10). CDB: 28 0 0 0 ff ff 0 0 1 0
(cd1:umass-sim0:0:0:0): CAM status: SCSI Status Error
(cd1:umass-sim0:0:0:0): SCSI status: Check Condition
(cd1:umass-sim0:0:0:0): SCSI sense: MEDIUM ERROR asc:11,0 (Unrecovered read error)
(cd1:umass-sim0:0:0:0): Info: 0xffff
(cd1:umass-sim0:0:0:0): Error 5, Unretryable error
(cd1:umass-sim0:0:0:0): cddone: got error 0x5 back
И CD-ROM не исчезает
bsd-0 # ls /dev | grep -i cd
cd0
cd1
bsd-0 # ls /dev | grep -i cu
cuau0
cuau0.init
cuau0.lock
cuau1
cuau1.init
cuau1.lock
Вот uname
bsd-0 # uname -a
FreeBSD 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Mon Jan 13 18:15:58 MSK 2014