02.03.2014 Views

BSP Developer's Guide

BSP Developer's Guide

BSP Developer's Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

VxWorks 5.5<br />

<strong>BSP</strong> Developer’s <strong>Guide</strong><br />

4. Get the driver to select a SCSI peripheral device. A SCSI bus analyzer can<br />

clarify what is really happening on the bus, and a xxxShow( ) routine is also<br />

extremely helpful. Selecting a device is the next major milestone.<br />

5. Refine the driver using a standard programming step-wise process until the<br />

desired result is achieved.<br />

6. Run the standard Wind River SCSI tests in order to test various aspects of the<br />

SCSI bus, including multiple threads, multiple initiators, and multiple<br />

peripheral devices working concurrently as well as the performance and<br />

throughput of the driver.<br />

I.7 Test Suites<br />

The following sections list and describe the tests provided by Wind River. The<br />

source code for these test routines is located in the directory target/src/test/scsi.<br />

scsciDiskThruputTest( )<br />

This test partitions a 16MB block device into blocks of sizes 4,096, 65,536, or<br />

1,048,576 bytes. Sectors consist of blocks of 512 bytes. This test writes and reads the<br />

block size to the disk drive and calculates the time taken, thus computing the<br />

throughput.<br />

Invoke this test as follows:<br />

scsiDiskThruputTest "scsiBusId devLun numBlocks blkOffset"<br />

The individual parameters must fit the guidelines described below:<br />

scsBusId<br />

Target device ID<br />

devLun<br />

Device logical unit ID<br />

numBlocks<br />

Number of blocks in block device<br />

blkOffset<br />

Address of first block in volume<br />

360

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!