NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

mount 'target disk mode' Macbook as 1394 disk



I am trying to recover the disk drive on a Macbook by booting it into
'target disk mode' (which is supposed to emulate a firewire disk) and
mounting it on a NetBSD box.  The relevant kernel output follows
below.  This particular case comes from connecting a known good Mac
(in target disk mode) to the NetBSD box.  Thus, the 'not ready' errors
may not be related to any internal disk problems (the disk works fine
in this Mac), but rather to the firewire connection.  This was
supposed to be my positive control to demonstrate how to manage the
connection, but it doesn't work.

In case it helps, I also included a dump of the configuration ROMs for
both the NetBSD box and the Mac.

Does anyone have experience with working with firewire disks on NetBSD
and specifically with connecting to a Mac in this way?

Thanks alot for your help.

Cheers,
Brook

===============================  Kernel output  ===========================

NetBSD 5.0_BETA (TEST) #0: Sat Jan 17 16:29:38 MST 2009
        root@test:/usr/obj/sys/arch/i386/compile/TEST
LENOVO 7675CTO (ThinkPad X61)
fwohci0 at pci3 dev 0 function 1: vendor 0x1180 product 0x0832 (rev. 0x04)
fwohci0: interrupting at ioapic0 pin 17
fwohci0: OHCI version 1.10 (ROM=0)
fwohci0: No. of Isochronous channels is 4.
fwohci0: EUI64 00:1d:72:ff:ff:80:65:34
fwohci0: Phy 1394a available S400, 1 ports.
fwohci0: Link S400, max_rec 2048 bytes.
ieee1394if0 at fwohci0: IEEE1394 bus
fwohci0: Initiate bus reset
fwohci0: BUS reset
fwohci0: node_id=0xc800ffc1, gen=1, CYCLEMASTER mode
ieee1394if0: 2 nodes, maxhop <= 1, cable IRM = 1 (me)
ieee1394if0: bus manager 1 (me)
ieee1394if0: New S400 device ID:0019e3fffe25ffc0
sbp0 at ieee1394if0: SBP-2/SCSI over IEEE1394
scsibus0 at sbp0: 1 target, 0 luns per target
sd0 at scsibus0 target 0 lun 0: <AAPL, , > simplified direct removable
sbp0:0:0 No additional information to report
sd0: drive offline
sbp0:0:0 No additional information to report
sd0(sbp0:0:0:0):  Check Condition on CDB: 0x00 00 00 00 00 00
    SENSE KEY:  Not Ready
 COMMAND INFO:  -1609162557 (0xa01620c3)
     ASC/ASCQ:  Medium Not Present

sd0: unable to open device, error = 19
sbp0:0:0 No additional information to report
sd0(sbp0:0:0:0):  Check Condition on CDB: 0x00 00 00 00 00 00
    SENSE KEY:  Not Ready
 COMMAND INFO:  815602115 (0x309d19c3)
     ASC/ASCQ:  Medium Not Present

sbp0:0:0 No additional information to report
sd0(sbp0:0:0:0):  Check Condition on CDB: 0x00 00 00 00 00 00
    SENSE KEY:  Not Ready
   INFO FIELD:  9447619
 COMMAND INFO:  10496195 (0xa028c3)
     ASC/ASCQ:  Medium Not Present

sbp0:0:0 No additional information to report
sd0(sbp0:0:0:0):  Check Condition on CDB: 0x00 00 00 00 00 00
    SENSE KEY:  Not Ready
   INFO FIELD:  -2137253437
 COMMAND INFO:  16777216 (0x1000000)
     ASC/ASCQ:  Medium Not Present
     FRU CODE:  0x38

sbp0:0:0 No additional information to report
sd0(sbp0:0:0:0):  Check Condition on CDB: 0x00 00 00 00 00 00
    SENSE KEY:  Not Ready
   INFO FIELD:  1889278403
 COMMAND INFO:  16777216 (0x1000000)
     ASC/ASCQ:  Medium Not Present
     FRU CODE:  0x38

===========================  NetBSD configuration ROM  ====================

first quad: 0x043813df info_len=4 crc_len=56 crc=0x13df(OK)
bus_name: 0x31333934
irmc:1 cmc:1 isc:1 bmc:1 pmc:0
cyc_clk_acc:100 max_rec:10 max_rom:0
generation:3 link_spd:2
EUI64: 00-1d-72-ff-ff-80-65-34
root_directory: len=0x0007(7) crc=0xce5a(OK)
0c(I:0c) 0083c0 node_capabilities:
03(I:03) acde48 module_vendor_ID:
81(L:01) 000005 text_leaf: len=7 crc=0x4f84(OK) NetBSD Project
04(I:04) cd6500 hardware_version:
81(L:01) 00000b text_leaf: len=5 crc=0x811e(OK) test
d1(D:11) 000010 unit_directory: len=4 crc=0xbb7c(OK)
        12(I:12) 00005e unit_spec_ID:
        81(L:01) 000003 text_leaf: len=4 crc=0x9bde(OK) IANA
        13(I:13) 000001 unit_sw_version:
        81(L:01) 000006 text_leaf: len=4 crc=0x08db(OK) IPv4
d1(D:11) 00001e unit_directory: len=4 crc=0x55ae(OK)
        12(I:12) 00005e unit_spec_ID:
        81(L:01) 000003 text_leaf: len=4 crc=0x9bde(OK) IANA
        13(I:13) 000002 unit_sw_version:
        81(L:01) 000006 text_leaf: len=4 crc=0x4c58(OK) IPv6

===========================  Macbook configuration ROM  ===================

first quad: 0x04047682 info_len=4 crc_len=4 crc=0x7682(OK)
bus_name: 0x31333934
irmc:0 cmc:0 isc:0 bmc:0 pmc:0
cyc_clk_acc:0 max_rec:10 max_rom:0
generation:9 link_spd:2
EUI64: 00-19-e3-ff-fe-25-ff-c0
root_directory: len=0x0008(8) crc=0x0321(OK)
03(I:03) 000a27 module_vendor_ID:
81(L:01) 00000f text_leaf: len=3 crc=0xb542(OK) AAPL
0c(I:0c) 0083c0 node_capabilities:
04(I:04) 020000 hardware_version:
17(I:17) 54444d model_ID:
81(L:01) 00000f text_leaf: len=6 crc=0xa7ba(OK) Target Disk Mode
d1(D:11) 000015 unit_directory: len=7 crc=0x0907(OK)
        12(I:12) 00609e unit_spec_ID:
        13(I:13) 010483 unit_sw_version: SBP-2
        38(I:38) 00609e command_set_spec_ID:
        39(I:39) 0104d8 command_set:
        3a(I:3a) 401e08 unit_characteristics:
        14(I:14) 0e0000 logical_unit_number:
        54(C:14) 3bc400 management_agent: offset=0x3bc400(3916800)
d1(D:11) 00001c unit_directory: len=7 crc=0x6f65(OK)
        12(I:12) 00609e unit_spec_ID:
        13(I:13) 010483 unit_sw_version: SBP-2
        38(I:38) 00609e command_set_spec_ID:
        39(I:39) 0104d8 command_set:
        3a(I:3a) 401e08 unit_characteristics:
        14(I:14) 0e0000 logical_unit_number:
        54(C:14) 3bc600 management_agent: offset=0x3bc600(3917312)


Home | Main Index | Thread Index | Old Index