| <<O>> Difference Topic HowToFormatVxWorksSCSI (r1.5 - 13 Sep 2007 - JoeBrandt) |
| Changed: | |
| < < | This command should return a non-zero pointer on success. |
| > > |
This command should return a non-zero pointer on success.
If That Doesn't WorkI have had mixed luck with the above procedure. However, I do have a 64MB sized partition image attached to this page. (See spareDsk.img.gz below.) To initialize a disk on a Linux machine:
|
| Added: | |
| > > | %META:FILEATTACHMENT{name="spareDsk.img.gz" attr="" comment="A compressed image of a bootable SCSI disk" date="1189720094" path="spareDsk.img.gz" size="1850903" user="JoeBrandt" version="1.1"}% |
| <<O>> Difference Topic HowToFormatVxWorksSCSI (r1.4 - 04 Feb 2005 - JoeBrandt) |
| Changed: | |
| < < | On most SCSI kernels, there is a global variable pSbd0, check for it: |
| > > | To format (i.e to re-write the filesystem, destroying the existing contents) run: |
| Changed: | |
| < < |
-> pSbd0
|
| > > |
-> dosFsMkfs("/sd0/", scsiPhysDevIdGet(0, 0, 0))
|
| Changed: | |
| < < |
_pSbd0 = 0xea648: value = 8199748 = 0x7d1e44
Good it is not null either. To format (i.e to re-write the filesystem, destroying the existing contents) run:
-> dosFsMkfs("/sd0/", pSbd0)
value = 8378768 = 0x7fd990
Note this should return a non-zero pointer on success.
|
| > > | This command should return a non-zero pointer on success. |
| Added: | |
| > > |
Other StuffIn order to support the use of hard disks, I've added a routine:scsi_DelayedSpinDown(int delay_minutes)
Which can be called from a startup script. The routine will send a SCSI command after a delay to spin down the disk. Useful for the CCU, because it only needs the disk spining during booting. |
| <<O>> Difference Topic HowToFormatVxWorksSCSI (r1.3 - 03 Feb 2005 - JoeBrandt) |
| Added: | |
| > > | or for the hard disk (spare): ID LUN VendorID? ProductID? Rev. Type Blocks BlkSize? pScsiPhysDev -- --- -------- ---------------- ---- ---- -------- ------- ------------ 0 0 SEAGATE ST51080N 0958 0 2109840 512 0x003d1eb4 |
| <<O>> Difference Topic HowToFormatVxWorksSCSI (r1.2 - 07 Jan 2005 - JoeBrandt) |
| Added: | |||||||||||||||||||||||||||
| > > |
Boot ConfigurationThe boot configuration magic should be:
| ||||||||||||||||||||||||||
| <<O>> Difference Topic HowToFormatVxWorksSCSI (r1.1 - 06 Jan 2005 - JoeBrandt) |
| Added: | |
| > > |
%META:TOPICINFO{author="JoeBrandt" date="1105052400" format="1.0" version="1.1"}%
%META:TOPICPARENT{name="MnCKnowledge"}%
ProblemHow to initialize a VxWorks SCSI disk .SolutionUsing a SCSI-enabled VxWorks kernel, boot the system and run the command: ->scsiShow
You should see something like: ID LUN VendorID ProductID Rev. Type Blocks BlkSize pScsiPhysDev -- --- -------- ---------------- ---- ---- -------- ------- ------------ 0 0 ADTRON S35CF R14011_012 2b06 0 125184 512 0x007d1eb4Then try: -> scsiPhysDevIdGet(0, 0, 0)
and you should get a non-null pointer:
value = 8199860 = 0x7d1eb4
On most SCSI kernels, there is a global variable pSbd0, check for it:
-> pSbd0
_pSbd0 = 0xea648: value = 8199748 = 0x7d1e44
Good it is not null either. To format (i.e to re-write the filesystem, destroying the existing contents) run:
-> dosFsMkfs("/sd0/", pSbd0)
value = 8378768 = 0x7fd990
Note this should return a non-zero pointer on success.
Caveats
|
| Topic HowToFormatVxWorksSCSI . { View | Diffs | r1.5 | > | r1.4 | > | r1.3 | More } |
|
Revision r1.1 - 06 Jan 2005 - 23:00 GMT - JoeBrandt Revision r1.5 - 13 Sep 2007 - 21:50 GMT - JoeBrandt |
Content copyright © 1999-2007 by the contributing authors. All material on this collaboration platform is the property of the contributing authors. |