If there's something strange in your FW/400 ...

For friendly off topic discussion not covered in a forum above.
Forum rules
No politics, please.
shutitalldown
Posts: 133
Joined: Sat Feb 10, 2018 3:28 am

If there's something strange in your FW/400 ...

Unread postby shutitalldown » Sun Apr 15, 2018 8:45 am

Who you gonna call? (ghostbusters?)

Got a Firewire400 to PATA adapter, and installed an Hitachi hard drive.
When plugged the hard drive is correctly identified, you can see the partition map.

Code: Select all

scsi host4: SBP-2 IEEE-1394
firewire_core 0001:10:15.0: created device fw2: GUID 0001a35000012035, S400
firewire_core 0001:10:15.0: phy config: new root=ffc0, gap_count=5
firewire_sbp2 fw2.0: logged in to LUN 0000 (0 retries)
scsi 4:0:0:0: Direct-Access     HITACHI_ DK229A-10        0.01 PQ: 0 ANSI: 0
sd 4:0:0:0: [sda] 19640880 512-byte logical blocks: (10.1 GB/9.37 GiB)
sd 4:0:0:0: [sda] Write Protect is off
sd 4:0:0:0: [sda] Mode Sense: 03 00 00 00
sd 4:0:0:0: [sda] No Caching mode page found
sd 4:0:0:0: [sda] Assuming drive cache: write through
sd 4:0:0:0: [sda] Attached SCSI disk
sd 4:0:0:0: [sda] Mac Partition Table [ sda1, sda2, sda3 ]


The Bad-clusters and IO diagnostic took two hours, but it didn't report any errors/warnings

Code: Select all

disktest /dev/sda


but when you try to format ...

Code: Select all

mkfs.ext3 /dev/sda2


Code: Select all

SBP-2_abort, IO error
SBP-2_abort, IO error
SBP-2_abort, IO error
SBP-2_abort, IO error
SBP-2_abort, IO error
SBP-2_abort, IO error
SBP-2_abort, IO error
SBP-2_abort, IO error
SBP-2_abort, IO error


:shock:


(the hard drive results fully working when tested with an USB-PATA adapter, and the PCI-FW400 card results fully working when tested with an FW400 hard drive box made by Lacie)
Pointless reminders of the human ego:
  • arguing that you don't care about the right to privacy
  • because you have nothing to hide
  • is no different than saying you don't care about free speech
  • because you have nothing to say

robespierre
Posts: 1678
Joined: Mon Sep 12, 2011 2:28 pm
Location: Boston

Re: If there's something strange in your FW/400 ...

Unread postby robespierre » Sun Apr 15, 2018 8:59 am

Are you sure you have a 1394 to ATA adapter, and not 1394 to ATAPI? They are different.
:PI: :O2: :Indigo2IMP: :Indigo2IMP:

shutitalldown
Posts: 133
Joined: Sat Feb 10, 2018 3:28 am

Re: If there's something strange in your FW/400 ...

Unread postby shutitalldown » Sun Apr 15, 2018 9:11 am

if we *trust* what it's written on the box, it's "1394 to ATA adapter", and the adapter is made to accommodate a mini 2.5" hard drive.

with a modern Kernel 4.16.0 (compiled with SBP2_DEBUG=1):

Code: Select all

sd 4:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x03 driverbyte=0x00
sd 4:0:0:0: [sda] tag#0 CDB: opcode=0x2a 2a 00 00 00 04 40 00 04 00 00
print_req_error: I/O error, dev sda, sector 1088
Buffer I/O error on dev sda2, logical block 128, lost async page write
Buffer I/O error on dev sda2, logical block 129, lost async page write
Buffer I/O error on dev sda2, logical block 130, lost async page write
Buffer I/O error on dev sda2, logical block 131, lost async page write
Buffer I/O error on dev sda2, logical block 132, lost async page write
Buffer I/O error on dev sda2, logical block 133, lost async page write
Buffer I/O error on dev sda2, logical block 134, lost async page write
Buffer I/O error on dev sda2, logical block 135, lost async page write
Buffer I/O error on dev sda2, logical block 136, lost async page write
Buffer I/O error on dev sda2, logical block 137, lost async page write
Pointless reminders of the human ego:
  • arguing that you don't care about the right to privacy
  • because you have nothing to hide
  • is no different than saying you don't care about free speech
  • because you have nothing to say

User avatar
hamei
Posts: 10487
Joined: Tue Feb 24, 2004 4:10 pm
Location: over the rainbow

Re: If there's something strange in your FW/400 ...

Unread postby hamei » Sun Apr 15, 2018 8:11 pm

This doesn't look like Irix but for future searches, in Irix with firewire you must use 6.5.30 or you will have all kinds of strange behavior with disks. And I think there was stuff they never got into the overlay stream, too. Even at 6.5.30 my system would crash reliably on Sunday morning at 3:00 a.m. if the firewire disk was attached. I have heard that there is a fix for that out there somewhere .... but no one I know has it.
I don't want to be found dead in Utah.

shutitalldown
Posts: 133
Joined: Sat Feb 10, 2018 3:28 am

Re: If there's something strange in your FW/400 ...

Unread postby shutitalldown » Sun Apr 15, 2018 11:21 pm

hamei wrote:This doesn't look like Irix but for future searches


yes, it was linux v2.6.39 and v4.16.0, and it was also in my plan for Irix v6.5.27.
I have a fw400 card in my Tezro-rack-brick. But I won't try. It doesn't look a good idea.
Pointless reminders of the human ego:
  • arguing that you don't care about the right to privacy
  • because you have nothing to hide
  • is no different than saying you don't care about free speech
  • because you have nothing to say

User avatar
jan-jaap
Donor
Donor
Posts: 5032
Joined: Thu Jun 17, 2004 11:35 am
Location: Wijchen, The Netherlands
Contact:

Re: If there's something strange in your FW/400 ...

Unread postby jan-jaap » Mon Apr 16, 2018 12:08 am

hamei wrote:This doesn't look like Irix but for future searches, in Irix with firewire you must use 6.5.30 or you will have all kinds of strange behavior with disks. And I think there was stuff they never got into the overlay stream, too. Even at 6.5.30 my system would crash reliably on Sunday morning at 3:00 a.m. if the firewire disk was attached. I have heard that there is a fix for that out there somewhere .... but no one I know has it.

Yes, there's a patch for that. You have a weekly cronjob which runs fsr and the disk I/O it generates will trigger a bug. I'll go digging and report back if I find it.
shutitalldown wrote:I have a fw400 card in my Tezro-rack-brick. But I won't try. It doesn't look a good idea.

It works (with that patch I mentioned at least), except for one important bit: don't try to hot-plug anything on the Firewire bus or you *will* crash the system. Which is counter intuitive for external harddisks. Ah, well.

User avatar
jan-jaap
Donor
Donor
Posts: 5032
Joined: Thu Jun 17, 2004 11:35 am
Location: Wijchen, The Netherlands
Contact:

Re: If there's something strange in your FW/400 ...

Unread postby jan-jaap » Mon Apr 16, 2018 1:15 am

jan-jaap wrote:I'll go digging and report back if I find it.

As it turns out, there are no FireWire / SPB2 related patches for IRIX 6.5.30. So it was probably XFS, possibly this one:

Code: Select all

Bug #957285 - tlbmiss in xfs_bmbt_get_blockcount while running fsr

Fixed in the XFS rollup patch for IRIX 6.5.30 (patch 7214 > 7229 > 7245).

shutitalldown
Posts: 133
Joined: Sat Feb 10, 2018 3:28 am

Re: If there's something strange in your FW/400 ...

Unread postby shutitalldown » Tue Apr 17, 2018 3:24 am

I'd like to study the firewire in detail.
Both software and hardware side.
Are there good Books or papers?
Pointless reminders of the human ego:
  • arguing that you don't care about the right to privacy
  • because you have nothing to hide
  • is no different than saying you don't care about free speech
  • because you have nothing to say

User avatar
jan-jaap
Donor
Donor
Posts: 5032
Joined: Thu Jun 17, 2004 11:35 am
Location: Wijchen, The Netherlands
Contact:

Re: If there's something strange in your FW/400 ...

Unread postby jan-jaap » Tue Apr 17, 2018 3:27 am



Return to “Everything Else”

Who is online

Users browsing this forum: No registered users and 1 guest