8 blkrd, Blkrd, Motload commands – Artesyn MOTLoad Firmware Package User's Manual (February 2015) User Manual

Page 49

Advertising
background image

MOTLoad Commands

MOTLoad Firmware Package User’s Manual (6806800C24D)

49

3.1.8

blkRd

Name

blkRd—reads the number of blocks, specified by the user, from the specified device to a
memory address. This command only operates on ’block devices’.

Synopsis

blkRd [-d] [-m] [-n] [-s] [-t]

Parameters

-d Ps: Device Name (Default = /dev/fd0)

-m Ph: Memory Address (Default = User Download Buffer)

-n Ph: Number of Blocks (Default = 1)

-s Ph: Starting Block Number (Default = 0)

-t 0 : Display Elapsed Time

Example

The following examples shows a typical response from entering the blkRd command.

MOTLoad> blkRd -d/dev/ide0/hdisk0 -n20 -t

blkRd( ): number of bytes = 00004000 (&16384)

blkRd( ): number of micro-seconds = 00004170 (&16752)

blkRd( ): bytes/second = (not measurable)

Error Messages

blockRead(): open(<device/node>) failed, errno = <value>

Unable to open input device.

blockRead(): ioctl(103) failed, errno = <value>

Unable to determine block size of device/node.

blockRead(): bseek() failed, errno = <value>

Unable to seek to specified starting block.

Advertising