editing irix.sm to configure SCSI cards

New to SGIs? Need help getting things going? This is the forum for you!
Forum rules
Any posts concerning pirated software or offering to buy/sell/trade commercial software are subject to removal.
ajw99uk
Posts: 160
Joined: Tue Apr 19, 2011 4:59 am
Location: Yorkshire, UK

editing irix.sm to configure SCSI cards

Unread postby ajw99uk » Tue Feb 28, 2012 6:58 am

I've been looking at irix.sm for a Fuel, hoping to configure the LSI20320 card to narrow-only operation (since with a 68/50 adapter and 50-way ribbon attached, it stiffs the boot sequence - I suspect problems with unterminated high bytes, as the machine boots normally when the adapter and ribbon are detached).

After the VECTOR lines for key hardware, irix.sm contains a lot of comments on configuration options for LSI and QLogic SCSI cards, using "DEVICE ADMIN" and "DRIVER ADMIN" entries.

According to the info I have found on hwgraph, the hardware matrix will take a configuration option for a device not yet established and if that device is initialised, apply the option. This implies that "DEVICE ADMIN" and "DRIVER ADMIN" entries should be placed in irix.sm before the VECTOR line for ls or ql modules. Is that correct?

Is there a command-line method of generating a report of options in use for given hardware? The IRIX help seems (to a novice) to give routines that might be embedded somewhere in a more complex piece of code, but not a command whose output would be "card X is running with options y set to value z".

TIA,
Andrew
Fuel; Indigo2; RiscPC Kinetic-StrongARM/448MB/RISCOS4.39 or Debian-woody; EspressoPC ViaC3/900MHz/256MB/Debian-testing; RPi B RISCOS5.21 or Raspbian-wheezy; A5000/33MHz/FPA11/8MB/RISCOS3.11; A540/25MHz/FPA10/16MB/RISCOS3.11 or RISCiX1.21; R140/35MHz/4MB/RISCOS3.11 or RISCiX1.21

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

Re: editing irix.sm to configure SCSI cards

Unread postby jan-jaap » Tue Feb 28, 2012 7:05 am

I just described the configuration mechanism here : viewtopic.php?f=3&t=16726073 :D

The tunable you're looking for is probably 'ls_scsi_force_narrow'.
Now this is a deep dark secret, so everybody keep it quiet :)
It turns out that when reset, the WD33C93 defaults to a SCSI ID of 0, and it was simpler to leave it that way... -- Dave Olson, in comp.sys.sgi

Currently in commercial service: Image :Onyx2:(2x) :O3x02L:
In the museum: almost every MIPS/IRIX system.
Wanted: GM1 board for Professional Series GT graphics (030-0076-003, 030-0076-004)

ajw99uk
Posts: 160
Joined: Tue Apr 19, 2011 4:59 am
Location: Yorkshire, UK

Re: editing irix.sm to configure SCSI cards

Unread postby ajw99uk » Tue Feb 28, 2012 8:55 am

jan-jaap wrote:I just described the configuration mechanism here : viewtopic.php?f=3&t=16726073 :D

The tunable you're looking for is probably 'ls_scsi_force_narrow'.


It is - and I had (honest! :) searched the forums for "irix.sm". For some reason that link did not show up, so thanks for the reminder. I had read your post on setting IDs, when it came out; it was that which set me on the trail of configuring narrowness in this way - many thanks for the inspiration.

So, key question: did you put your DEVICE_ADMIN lines before or after the VECTOR line for the QL12160 controller?

I suspect this will end in a bit of trial and error. I do have a kernel built with the force_narrow option ready to try, but attaching/detaching the cable is fiddly enough not to try testing in a hurry. I'm also keeping an eye out for a slim enough high-byte terminated 68/50 adapter as an alternative.

Andrew
Fuel; Indigo2; RiscPC Kinetic-StrongARM/448MB/RISCOS4.39 or Debian-woody; EspressoPC ViaC3/900MHz/256MB/Debian-testing; RPi B RISCOS5.21 or Raspbian-wheezy; A5000/33MHz/FPA11/8MB/RISCOS3.11; A540/25MHz/FPA10/16MB/RISCOS3.11 or RISCiX1.21; R140/35MHz/4MB/RISCOS3.11 or RISCiX1.21

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

Re: editing irix.sm to configure SCSI cards

Unread postby jan-jaap » Wed Feb 29, 2012 5:48 am

ajw99uk wrote:So, key question: did you put your DEVICE_ADMIN lines before or after the VECTOR line for the QL12160 controller?

In my irix.sm file I added the DEVICE_ADMIN lines in the comment section *below* the VECTOR line for the 'ls' controllers, and *before* the next section (for the 'ql' family). I suspect it doesn't matter since the option (e.g. 'ls_scsi_force_narrow') contains the module name ('ls').
Now this is a deep dark secret, so everybody keep it quiet :)
It turns out that when reset, the WD33C93 defaults to a SCSI ID of 0, and it was simpler to leave it that way... -- Dave Olson, in comp.sys.sgi

Currently in commercial service: Image :Onyx2:(2x) :O3x02L:
In the museum: almost every MIPS/IRIX system.
Wanted: GM1 board for Professional Series GT graphics (030-0076-003, 030-0076-004)

ajw99uk
Posts: 160
Joined: Tue Apr 19, 2011 4:59 am
Location: Yorkshire, UK

Re: editing irix.sm to configure SCSI cards

Unread postby ajw99uk » Wed Feb 29, 2012 7:22 am

jan-jaap wrote:
ajw99uk wrote:So, key question: did you put your DEVICE_ADMIN lines before or after the VECTOR line for the QL12160 controller?

In my irix.sm file I added the DEVICE_ADMIN lines in the comment section *below* the VECTOR line for the 'ls' controllers, and *before* the next section (for the 'ql' family). I suspect it doesn't matter since the option (e.g. 'ls_scsi_force_narrow') contains the module name ('ls').

Thanks - that what the position of the comments on options suggests. Time to re-open the box and try a proper test ...
Fuel; Indigo2; RiscPC Kinetic-StrongARM/448MB/RISCOS4.39 or Debian-woody; EspressoPC ViaC3/900MHz/256MB/Debian-testing; RPi B RISCOS5.21 or Raspbian-wheezy; A5000/33MHz/FPA11/8MB/RISCOS3.11; A540/25MHz/FPA10/16MB/RISCOS3.11 or RISCiX1.21; R140/35MHz/4MB/RISCOS3.11 or RISCiX1.21

ajw99uk
Posts: 160
Joined: Tue Apr 19, 2011 4:59 am
Location: Yorkshire, UK

Re: editing irix.sm to configure SCSI cards

Unread postby ajw99uk » Sun Aug 19, 2012 2:29 pm

For future reference / note to self: double-check the /hw path to the controller you are trying to configure! a dual channel card shows up as 1a and 1b, whereas you might expect 0 and 1.
Fuel; Indigo2; RiscPC Kinetic-StrongARM/448MB/RISCOS4.39 or Debian-woody; EspressoPC ViaC3/900MHz/256MB/Debian-testing; RPi B RISCOS5.21 or Raspbian-wheezy; A5000/33MHz/FPA11/8MB/RISCOS3.11; A540/25MHz/FPA10/16MB/RISCOS3.11 or RISCiX1.21; R140/35MHz/4MB/RISCOS3.11 or RISCiX1.21


Return to “Getting Started, Documentation, Tips & Tricks”

Who is online

Users browsing this forum: No registered users and 2 guests

cron