Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Jul 2008 14:34:09 -0700
From:      Sean Bruno <sbruno@miralink.com>
To:        Stephen Bader <sbader@comcast.net>
Cc:        freebsd-firewire@freebsd.org
Subject:   Re: Western Digital 1TB My Book Studio
Message-ID:  <48810C51.8020708@miralink.com>
In-Reply-To: <071820082029.21468.4880FD440005BA24000053DC22007348409D0A0B0E0D9C@comcast.net>
References:  <071820082029.21468.4880FD440005BA24000053DC22007348409D0A0B0E0D9C@comcast.net>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------070006070403050809090409
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Stephen Bader wrote:
> ->  camcontrol devlist -v
> scbus0 on sbp0 bus 0:
> <  >                               at scbus0 target -1 lun -1 ()
> scbus-1 on xpt0 bus 0:
> <  >                               at scbus-1 target -1 lun -1 (xpt0)
>
>
>  -------------- Original message ----------------------
> From: Sean Bruno <sbruno@miralink.com>
>   
>> Stephen Bader wrote:
>>     
>>> No, it only has a single drive in it. 
>>>
>>> -Steve
>>>
>>>  -------------- Original message ----------------------
>>> From: Sean Bruno <sbruno@miralink.com>
>>>   
>>>       
>>>> Stephen Bader wrote:
>>>>     
>>>>         
>>>>> Here is the output with the sysctl variables set. I'm at work right now, so 
>>>>>           
>> I 
>>     
>>>>>       
>>>>>           
>>>> couldn't physically disconnect and reconnect, but I did issue a 'fwcontrol 
>>>>         
>> -r' 
>>     
>>>> to get this output. If you need an actual disconnect/reconnect, it'll have to 
>>>> wait a few hours.
>>>>     
>>>>         
>>>>> -Steve
>>>>>
>>>>> fwohci0: Initiate bus reset
>>>>> fwohci0: BUS reset
>>>>> fwohci0: node_id=0xc800ffc1, gen=15, CYCLEMASTER mode
>>>>> firewire0: 2 nodes, maxhop <= 1, cable IRM = 1 (me)
>>>>> firewire0: bus manager 1 (me)
>>>>> sbp0:0:0 request timeout(mgm orb:0x2e10b154) ... reset start
>>>>> fwohci0: Initiate bus reset
>>>>> fwohci0: fwphy_rddata: 0x1 loop=1, retry=0
>>>>> fwohci0: fwphy_rddata: 0x1 loop=1, retry=0
>>>>> fwohci0: BUS reset
>>>>> sbp_post_busreset
>>>>> fwohci0: node_id=0xc800ffc1, gen=16, CYCLEMASTER mode
>>>>> firewire0: 2 nodes, maxhop <= 1, cable IRM = 1 (me)
>>>>> fwohci0: fw_set_bus_manager: 1->1 (loop=0)
>>>>> firewire0: bus manager 1 (me)
>>>>> send phy_config root_node=1 gap_count=5
>>>>> fwohci0: start AT DMA status=72
>>>>> node0: crom unchanged
>>>>> fw_explore: node 2, err = 0
>>>>> bus_explore done
>>>>> sbp_post_explore (sbp_cold=0)
>>>>> sbp_post_explore: EUI:0090a9341b93f349 attached
>>>>> target 0 lun 0 found
>>>>> target 0 lun 1 found
>>>>> sbp0:0:0 ordered:1 type:0 EUI:0090a9341b93f349 node:0 speed:3 maxrec:0 new!
>>>>> sbp0:0:0 'WD' 'My Book' '001025'
>>>>> sbp_login: sec = 0 usec = 683278 ticks = 683
>>>>> sbp0:0:1 ordered:1 type:13 EUI:0090a9341b93f349 node:0 speed:3 maxrec:0 new!
>>>>> sbp0:0:1 'WD' 'My Book' '001025'
>>>>> sbp_login: sec = 0 usec = 682496 ticks = 682
>>>>> sbp0:0:1 LOGIN
>>>>> sbp: alloc 3 xfer
>>>>> sbp0:0:1 mgm orb: 2c4ad28c
>>>>> sbp0:0:0 LOGIN
>>>>> sbp0:0:1 request timeout(mgm orb:0x2c4ad28c) ... reset start
>>>>> sbp0:0:1 sbp_reset_start
>>>>>
>>>>>
>>>>>  -------------- Original message ----------------------
>>>>> From: Sean Bruno <sbruno@miralink.com>
>>>>>   
>>>>>       
>>>>>           
>>>>>> Stephen Bader wrote:
>>>>>>     
>>>>>>         
>>>>>>             
>>>>>>> Is there anything I can do to help you out? I'd hate for you to go buy a 
>>>>>>>           
>>>>>>>               
>>>> drive 
>>>>     
>>>>         
>>>>>>>       
>>>>>>>           
>>>>>>>               
>>>>>> just to help me get mine working.
>>>>>>     
>>>>>>         
>>>>>>             
>>>>>>> -Steve
>>>>>>>
>>>>>>>  -------------- Original message ----------------------
>>>>>>> From: Sean Bruno <sbruno@miralink.com>
>>>>>>>   
>>>>>>>       
>>>>>>>           
>>>>>>>               
>>>>>>>> Stephen Bader wrote:
>>>>>>>>     
>>>>>>>>         
>>>>>>>>             
>>>>>>>>                 
>>>>>>>>> Here is a link to the manufacturers site for the drive:
>>>>>>>>>
>>>>>>>>> http://www.westerndigital.com/en/products/products.asp?driveid=374
>>>>>>>>>
>>>>>>>>> Thanks,
>>>>>>>>>
>>>>>>>>> -Steve
>>>>>>>>>
>>>>>>>>>  -------------- Original message ----------------------
>>>>>>>>> From: Sean Bruno <sbruno@miralink.com>
>>>>>>>>>   
>>>>>>>>>       
>>>>>>>>>           
>>>>>>>>>               
>>>>>>>>>                   
>>>>>>>>>>> It works just fine in Windows and on Mac. I haven't tried linux yet, 
>>>>>>>>>>> but if it comes down to it, I can probably find a live CD somewhere 
>>>>>>>>>>> and try it out.
>>>>>>>>>>>
>>>>>>>>>>> Here is the output of 'fwcontrol -p'.
>>>>>>>>>>>
>>>>>>>>>>> Thanks,
>>>>>>>>>>>
>>>>>>>>>>> -Steve
>>>>>>>>>>>
>>>>>>>>>>>       
>>>>>>>>>>>           
>>>>>>>>>>>               
>>>>>>>>>>>                   
>>>>>>>>>>>                       
>>>>>>>>>> Let me see what "beta mode" means.
>>>>>>>>>>
>>>>>>>>>> Also, can you link me to the manufacturer's web site for the specific 
>>>>>>>>>> model you have?
>>>>>>>>>>
>>>>>>>>>>     
>>>>>>>>>>         
>>>>>>>>>>             
>>>>>>>>>>                 
>>>>>>>>>>                     
>>>>>>>>>>> === base register ===
>>>>>>>>>>> 0x07 0x85 0xe3 0xe2 0xc4 0x03 0x10 0x00
>>>>>>>>>>> Physical_ID:1  R:1  CPS:1
>>>>>>>>>>> RHB:1  IBR:0  Gap_Count:5
>>>>>>>>>>> Extended:7 Num_Ports:3
>>>>>>>>>>> PHY_Speed:7 Delay:2
>>>>>>>>>>> LCtrl:1 C:1 Jitter:0 Pwr_Class:4
>>>>>>>>>>> WDIE:0 ISBR:0 CTOI:0 CPSI:0 STOI:0 PEI:0 EAA:1 EMC:1
>>>>>>>>>>> Max_Legacy_SPD:0 BLINK:1 Bridge:0
>>>>>>>>>>> Page_Select:0 Port_Select0
>>>>>>>>>>>
>>>>>>>>>>> === page 0 port 0 ===
>>>>>>>>>>> 0xf8 0x60 0x3b 0x00 0x00 0x00 0x00 0x00
>>>>>>>>>>> Astat:3 BStat:3 Ch:1 Con:0 RXOK:0 Dis:0
>>>>>>>>>>> Negotiated_speed:3 PIE:0 Fault:0 Stanby_fault:0 Disscrm:0 B_Only:0
>>>>>>>>>>> DC_connected:0 Max_port_speed:3 LPP:1 Cable_speed:3
>>>>>>>>>>> Connection_unreliable:0 Beta_mode:0
>>>>>>>>>>> Port_error:0x0
>>>>>>>>>>> Loop_disable:0 In_standby:0 Hard_disable:0
>>>>>>>>>>>
>>>>>>>>>>> === page 0 port 1 ===
>>>>>>>>>>> 0xfe 0x60 0x3b 0x08 0x00 0x00 0x00 0x00
>>>>>>>>>>> Astat:3 BStat:3 Ch:1 Con:1 RXOK:1 Dis:0
>>>>>>>>>>> Negotiated_speed:3 PIE:0 Fault:0 Stanby_fault:0 Disscrm:0 B_Only:0
>>>>>>>>>>> DC_connected:0 Max_port_speed:3 LPP:1 Cable_speed:3
>>>>>>>>>>> Connection_unreliable:0 Beta_mode:1
>>>>>>>>>>> Port_error:0x0
>>>>>>>>>>> Loop_disable:0 In_standby:0 Hard_disable:0
>>>>>>>>>>>
>>>>>>>>>>> === page 0 port 2 ===
>>>>>>>>>>> 0xf8 0x60 0x3b 0x00 0x00 0x00 0x00 0x00
>>>>>>>>>>> Astat:3 BStat:3 Ch:1 Con:0 RXOK:0 Dis:0
>>>>>>>>>>> Negotiated_speed:3 PIE:0 Fault:0 Stanby_fault:0 Disscrm:0 B_Only:0
>>>>>>>>>>> DC_connected:0 Max_port_speed:3 LPP:1 Cable_speed:3
>>>>>>>>>>> Connection_unreliable:0 Beta_mode:0
>>>>>>>>>>> Port_error:0x0
>>>>>>>>>>> Loop_disable:0 In_standby:0 Hard_disable:0
>>>>>>>>>>>
>>>>>>>>>>> === page 1 ===
>>>>>>>>>>> 0x02 0x00 0x08 0x00 0x28 0x83 0x13 0x04
>>>>>>>>>>> Compliance:2
>>>>>>>>>>> Vendor_ID:0x080028
>>>>>>>>>>> Product_ID:0x831304
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>       
>>>>>>>>>>>           
>>>>>>>>>>>               
>>>>>>>>>>>                   
>>>>>>>>>>>                       
>>>>>>>>>>>> -- 
>>>>>>>>>>>> Sean Bruno
>>>>>>>>>>>> MiraLink Corporation
>>>>>>>>>>>> 6015 NE 80th Ave, Ste 100
>>>>>>>>>>>> Portland, OR 97218
>>>>>>>>>>>> Cell 503-358-6832
>>>>>>>>>>>> Phone 503-621-5143
>>>>>>>>>>>> Fax 503-621-5199
>>>>>>>>>>>> MSN: sbruno@miralink.com
>>>>>>>>>>>> Google:  seanwbruno@gmail.com
>>>>>>>>>>>>
>>>>>>>>>>>>         
>>>>>>>>>>>>             
>>>>>>>>>>>>                 
>>>>>>>>>>>>                     
>>>>>>>>>>>>                         
>>>>>>>>>> -- 
>>>>>>>>>> Sean Bruno
>>>>>>>>>> MiraLink Corporation
>>>>>>>>>> 6015 NE 80th Ave, Ste 100
>>>>>>>>>> Portland, OR 97218
>>>>>>>>>> Cell 503-358-6832
>>>>>>>>>> Phone 503-621-5143
>>>>>>>>>> Fax 503-621-5199
>>>>>>>>>> MSN: sbruno@miralink.com
>>>>>>>>>> Google:  seanwbruno@gmail.com
>>>>>>>>>>
>>>>>>>>>>     
>>>>>>>>>>         
>>>>>>>>>>             
>>>>>>>>>>                 
>>>>>>>>>>                     
>>>>>>>>>   
>>>>>>>>>       
>>>>>>>>>           
>>>>>>>>>               
>>>>>>>>>                   
>>>>>>>> Thanks.  I _think_ that my local CostCo has them in stock. 
>>>>>>>>
>>>>>>>> Sean
>>>>>>>>
>>>>>>>> -- 
>>>>>>>> Sean Bruno
>>>>>>>> MiraLink Corporation
>>>>>>>> 6015 NE 80th Ave, Ste 100
>>>>>>>> Portland, OR 97218
>>>>>>>> Phone 503-621-5143
>>>>>>>> Fax 503-621-5199
>>>>>>>> MSN: sbruno@miralink.com
>>>>>>>> Google:  seanwbruno@gmail.com
>>>>>>>>
>>>>>>>>     
>>>>>>>>         
>>>>>>>>             
>>>>>>>>                 
>>>>>>>   
>>>>>>>       
>>>>>>>           
>>>>>>>               
>>>>>> Maybe this well give me a clue.  Set a couple of sysctl variables and 
>>>>>> then send me the output when connecting the hard drive:
>>>>>> debug.sbp_debug --> 1
>>>>>> debug.firewire_debug --> 1
>>>>>>
>>>>>> Sean
>>>>>>
>>>>>>
>>>>>> -- 
>>>>>> Sean Bruno
>>>>>> MiraLink Corporation
>>>>>> 6015 NE 80th Ave, Ste 100
>>>>>> Portland, OR 97218
>>>>>> Phone 503-621-5143
>>>>>> Fax 503-621-5199
>>>>>> MSN: sbruno@miralink.com
>>>>>> Google:  seanwbruno@gmail.com
>>>>>>
>>>>>>     
>>>>>>         
>>>>>>             
>>>>>   
>>>>>       
>>>>>           
>>>> Does this device actually have 2 drives in it?
>>>>
>>>> Sean
>>>>
>>>> -- 
>>>> Sean Bruno
>>>> MiraLink Corporation
>>>> 6015 NE 80th Ave, Ste 100
>>>> Portland, OR 97218
>>>> Phone 503-621-5143
>>>> Fax 503-621-5199
>>>> MSN: sbruno@miralink.com
>>>> Google:  seanwbruno@gmail.com
>>>>
>>>>     
>>>>         
>>>   
>>>       
>> what do you get with a "camcontol devlist -v"?
>>
>> Sean
>>
>> -- 
>> Sean Bruno
>> MiraLink Corporation
>> 6015 NE 80th Ave, Ste 100
>> Portland, OR 97218
>> Phone 503-621-5143
>> Fax 503-621-5199
>> MSN: sbruno@miralink.com
>> Google:  seanwbruno@gmail.com
>>
>>     
>
>   
Try this patch.  I've created it against RELENG_7


This should skip the "type" 13 device that the hard drive is reporting.

-- 
Sean Bruno
MiraLink Corporation
6015 NE 80th Ave, Ste 100
Portland, OR 97218
Phone 503-621-5143
Fax 503-621-5199
MSN: sbruno@miralink.com
Google:  seanwbruno@gmail.com


--------------070006070403050809090409
Content-Type: text/x-patch;
 name="sbp.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="sbp.patch"

Index: sbp.c
===================================================================
--- sbp.c       (revision 5540)
+++ sbp.c       (working copy)
@@ -738,6 +738,18 @@
                sdev = target->luns[i];
                if (sdev == NULL)
                        continue;
+               /*
+                * if a Firewire device reports some kind
+                * of other device, that is not a drive
+                * then skip it
+                */
+               if (sdev->type != T_SEQUENTIAL) {
+SBP_DEBUG(0)
+                       printf("%s: detected non sequential access device(%d).  skipping\n",
+                               __func__, sdev->type);
+END_DEBUG
+                       continue;
+               }
                if (alive && (sdev->status != SBP_DEV_DEAD)) {
                        if (sdev->path != NULL) {
                                SBP_LOCK(sbp);
@@ -855,7 +867,7 @@
        /* traverse device list */
        STAILQ_FOREACH(fwdev, &sbp->fd.fc->devices, link) {
 SBP_DEBUG(0)
-               printf("sbp_post_explore: EUI:%08x%08x ",
+               printf("%s: EUI:%08x%08x ", __func__,
                                fwdev->eui.hi, fwdev->eui.lo);
                if (fwdev->status != FWDEVATTACHED)
                        printf("not attached, state=%d.\n", fwdev->status);


--------------070006070403050809090409--



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