Thursday, May 22, 2014

FreeBSD Fix bug not connect to USB

root@freenas] ~# camcontrol devlist
          at scbus0 target 0 lun 0 (ada0,pass0)
          at scbus1 target 0 lun 0 (ada1,pass1)
          at scbus2 target 0 lun 0 (ada2,pass2)
          at scbus3 target 0 lun 0 (ada3,pass3)
          at scbus4 target 0 lun 0 (ada4,pass4)
          at scbus5 target 0 lun 0 (ada5,pass5)
        at scbus8 target 0 lun 0 (pass6,da0)
       at scbus9 target 0 lun 0 (da1,pass7)
       at scbus10 target 0 lun 0 (da2,pass8)


[root@freenas] ~# usbconfig
ugen0.1: at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE
ugen1.1: at usbus1, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE
ugen2.1: at usbus2, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE
ugen3.1: at usbus3, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE
ugen4.1: at usbus4, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE
ugen4.2:

at usbus4, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON
ugen0.2: at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=ON
ugen0.3: at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=ON
ugen4.3: at usbus4, cfg=255 md=HOST spd=HIGH (480Mbps) pwr=ON


[root@freenas] ~# usbconfig -u 4 -a 3 power_off
[root@freenas] ~# usbconfig
ugen0.1: at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE
ugen1.1: at usbus1, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE
ugen2.1: at usbus2, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE
ugen3.1: at usbus3, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE
ugen4.1: at usbus4, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE
ugen4.2:
at usbus4, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON
ugen0.2: at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=ON
ugen0.3: at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=ON
ugen4.3: at usbus4, cfg=255 md=HOST spd=HIGH (480Mbps) pwr=OFF

[root@freenas] ~# usbconfig -u 4 -a 3 power_on

[root@freenas] ~# camcontrol devlist
          at scbus0 target 0 lun 0 (ada0,pass0)
          at scbus1 target 0 lun 0 (ada1,pass1)
          at scbus2 target 0 lun 0 (ada2,pass2)
          at scbus3 target 0 lun 0 (ada3,pass3)
          at scbus4 target 0 lun 0 (ada4,pass4)
          at scbus5 target 0 lun 0 (ada5,pass5)
        at scbus8 target 0 lun 0 (pass6,da0)
       at scbus9 target 0 lun 0 (da1,pass7)
       at scbus10 target 0 lun 0 (da2,pass8)
        at scbus11 target 0 lun 0 (da3,pass9)
[root@freenas] ~#

No comments: