beautypg.com

38 flashprogram, Flashprogram, Motload commands – Artesyn MOTLoad Firmware Package User's Manual (February 2015) User Manual

Page 100

background image

MOTLoad Commands

MOTLoad Firmware Package User’s Manual (6806800C24D)

100

3.1.38 flashProgram

Name

flashProgram—flashes an image into the specified Flash device on a given Artesyn single

board computer. The image is flashed (written) into the device’s flash ROM as specified by the
-d, -n, and -s parameters.

Synopsis

flashProgram [-d] [-i] [-n] [-o] [-s] [-v]

Parameters

-d Ps : Flash Memory Device Name (Default = /dev/flash0)

-i 0 : Disable Interactive Confirmation

-n Ph : Number of Bytes to Program (Default = $00100000)

-o Ph : Offset Address of Flash Memory (Default = $00000000)

-s Ph : Source Address (Default = User Download Buffer)

-v 0 : Verbose Mode

Example

The following example indicates a typical display when using the flashProgram command.

MOTLoad> tftpGet -c192.168.1.190 -s192.168.1.33 -d/dev/enet0 -

f/tmp/hxeb100.rom

MOTLoad> flashProgram -d/dev/flash0 -o0010000 -n00100000

Error Messages

flashProgram(): open() failed, errno =

Unable to open specified Flash device.

flashProgram(): ioctl(101) failed, errno =

Unable to read Flash configuration.

flashProgram(): ioctl(100) failed, errno =

Unable to invoke Flash driver.