11 blkwr, Blkwr, Motload commands – Artesyn MOTLoad Firmware Package User's Manual (February 2015) User Manual

Page 54

Advertising
background image

MOTLoad Commands

MOTLoad Firmware Package User’s Manual (6806800C24D)

54

3.1.11 blkWr

Name

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

Synopsis

blkWr [-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 example indicates a typical display when using the blkVe command.

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

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

blkWr(): number of micro-seconds = 00000283 (&643)

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

Error Messages

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

Unable to open input device/node.

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

Unable to determine block size of device/node.

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

Unable to seek to specified starting block.

Advertising