Accessing a Macbook in TargetMode

Sean Bruno sbruno at miralink.com
Thu Jan 10 00:17:37 PST 2008


Sean Bruno wrote:
> I placed a shiny new MacBook into Firewire target mode while connected 
> to my RELENG_6_2 box and was suprised to see that FreeBSD can't really 
> access the disk via sbp().  I'm fairly certain that we don't have 
> access to the filesystem under FreeBSD(Apple is hfs?).
>
> Anyone else care to give this a try and report please?
>
Does any firewire disk work with FreeBSD?

Hmmm...not much going on with a MacBook.  Here's a little log trace from 
sbp with debug = 1.

source # ls -la /dev/da*
crw-r-----  1 root  operator    0,  94 Jan 10 11:24 /dev/da0
source # fdisk /dev/da0
sbp0:0:0 ORB status src:1 resp:0 dead:1 len:2 stat:0 orb:0002ce634
sbp0:0:0 No additional information to report
sbp0:0:0 XPT_SCSI_IO: cmd: 25 00 00 00 00 00 00 00 00 00, flags: 0x40, 
10b cmd/8b data/32b sense
sbp0:0:0 SCSI status 2 sfmt 0 valid 0 key 2 code 3a qlfr 0 len 2
sbp0:0:0 sbp_agent_reset
(da0:sbp0:0:0:0): error 6
(da0:sbp0:0:0:0): Unretryable Error
Opened disk da0 -> 6
fdisk: cannot open disk /dev/da0: Device not configured
source # fwohci0: BUS reset
sbp_post_busreset
fwohci0: node_id=0xc800ffc0, gen=5, CYCLEMASTER mode
firewire0: 1 nodes, maxhop <= 0, cable IRM = 0 (me)
firewire0: bus manager 0 (me)
sbp_post_explore (sbp_cold=0)
sbp_post_explore: EUI:001d4ffffe78600c not attached, state=3.
target 0 lun 0 found
target 0 lun 0 found
sbp0:0:0 lost target
fwohci0: BUS reset
sbp_post_busreset
fwohci0: node_id=0x8800ffc0, gen=6, non CYCLEMASTER mode
firewire0: 2 nodes, maxhop <= 1, cable IRM = 0 (me)
firewire0: root node is not cycle master capable
firewire0: bus manager 0 (me)
fwohci0: too many cycle lost, no cycle master presents?
sbp_post_explore (sbp_cold=0)
sbp_post_explore: EUI:001d4ffffe78600c attached
target 0 lun 0 found
target 0 lun 0 found
sbp0:0:0 ordered:0 type:14 EUI:001d4ffffe78600c node:1 speed:2 maxrec:0
sbp0:0:0 'AAPL' '' ''
sbp0:0:0 RECONNECT
sbp0:0:0 mgm orb: 002ce76c
sbp0:0:0 reconnect failed
sbp_login: sec = 0 usec = 679651 ticks = 679
sbp0:0:0 LOGIN
sbp0:0:0 mgm orb: 002ce8a4
sbp0:0:0 login: len 16, ID 1, cmd 0000fffff0ef1020, recon_hold 0
sbp0:0:0 sbp_busy_timeout
sbp0:0:0 sbp_agent_reset
sbp0:0:0 sbp_do_attach
sbp0:0:0 sbp_cam_scan_target
sbp0:0:0 ORB status src:1 resp:0 dead:1 len:2 stat:0 orb:0002ce9dc
sbp0:0:0 No additional information to report
sbp0:0:0 XPT_SCSI_IO: cmd: 00 00 00 00 00 00 00 00 00 00, flags: 0xc0, 
6b cmd/0b data/32b sense
sbp0:0:0 SCSI status 2 sfmt 0 valid 0 key 2 code 3a qlfr 0 len 2
sbp0:0:0 sbp_agent_reset
(probe0:sbp0:0:0:0): error 6
(probe0:sbp0:0:0:0): Unretryable Error
sbp0:0:0 ORB status src:1 resp:0 dead:1 len:2 stat:0 orb:0002ced84
sbp0:0:0 No additional information to report
sbp0:0:0 XPT_SCSI_IO: cmd: 12 01 80 00 ff 00 00 00 00 00, flags: 0x40, 
6b cmd/255b data/18b sense
sbp0:0:0 SCSI status 2 sfmt 0 valid 0 key 5 code 24 qlfr 0 len 2
sbp0:0:0 sbp_agent_reset
(probe0:sbp0:0:0:0): error 22
(probe0:sbp0:0:0:0): Unretryable Error
sbp0:0:0 sbp_cam_scan_lun


Sean


More information about the freebsd-firewire mailing list