Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
The SBG6782
#10
This is local:

CM> dir

! ? REM call cd
dir find_command help history instances
ls man pwd sleep syntax
system_time usage
----
con_high cpuLoad cpuUtilization exit ipc_test
mbufShow memShow mutex_debug ping read_memory
reset routeShow run_app shell socket_debug
stackShow taskDelete taskInfo taskPrioritySet taskResume
taskShow taskSuspend taskSuspendAll taskTrace usfsShow
version write_memory zone
----
[80211_hal] [Console] [HeapManager] [HostDqm] [Moca] [avs] [cablemedea]
[cm_hal] [docsis_ctl] [dtp] [eRouter] [embedded_target] [enet_hal]
[event_log] [fam] [flash] [forwarder] [ftpLite] [ip_hal] [moca_hal] [msgLog]
[non-vol] [pingHelper] [power] [snmp] [snoop] [spectrum_analyzer]
CM>
---------------CM_read_memory--------------
CM> read_memory

COMMAND: read_memory

USAGE: read_memory [-p] [-c] [-s ElementSize{1..4}] [-n NumberOfBytes{1..16384
}] [StartAddress]

DESCRIPTION:
Displays the contents of memory (in hex and ASCII) to the console.

StartAddress : the address to start displaying (can be memory, registers,
etc).
-s : sets the element size to be read (1, 2, or 4 bytes). Most useful for
registers; defaults to 1.
-n : sets the number of bytes to be read. Defaults to 16. Note that this
will always be padded out to a multiple of the element size.
-c : increments the start address by the number of bytes before reading.
This is most useful for continuing the previous read (with the same
parameters).
-p : prints the current options (which would be used if not otherwise
supplied).

If no parameters are specified, it will perform the last read again.

NOTE - the parameters are remembered from one read to the next; e.g. if you
set the element size to 4 bytes, then all subsequent reads will use this,
unless explicitly overridden.

WARNING - it may be possible to make the system hang or crash if you read
from an illegal address!

EXAMPLES:
read_memory -s 4 -n 64 0x80001234 -- Reads 64 bytes as 32-bit values.
read_memory -n 32 0x80001234 -- Reads 32 bytes starting with the
specified address.
read_memory -c -- Reads the next 32 bytes, continuing
from the previous read.

---------------------------CM_read_memory END -------------------------------

=====================================flash================================
CM/Flash> dir

! ? REM call cd
dir find_command help history instances
ls man pwd sleep syntax
system_time usage
----
autoTest cfi_show close configRegion deinit
erase init open read readDirect
show write writeArray
----

CM/Flash>

CM/Flash> autoTest

COMMAND: autoTest

USAGE: autoTest bootloader|image1|image2|perm|dyn [BlockNumber]

DESCRIPTION:
DESCRIPTION:
region) to ensure that all of the flash driver functions work correctly.
NOTE: any data in the specified block will be erased! Choose a block that
is not being used for anything important! Use the 'show' command to list the
blocks and how they are allocated.

If you omit the BlockNumber parameter, the test will be run over all blocks
in the region (destroying any data that is in the blocks).

In July 2004, we had to change the flash driver in order to support multiple
flash devices. As a result, you can no longer just specify the block number;
you must also specify the region that the block is in (the region maps to a
flash device, and the block number within that device will be tested). If
you specify a region that does not contain the block, then the test will
fail.

EXAMPLES:
autoTest image2 33 -- Performs the test suite on block 33 (which is in the
image2 region)
autoTest image2 -- Performs the test suite on all blocks in the image2
region
CM/Flash> cfi_show

COMMAND: cfi_show

USAGE: cfi_show bootloader|image1|image2|perm|dyn

DESCRIPTION:
Displays the CFI database for the flash device associated with the specified
region (if the device is CFI-compliant).

EXAMPLES:
cfi_show image2 -- Displays CFI info for the flash device associated with
image2

CM/Flash> close

COMMAND: close

USAGE: close

DESCRIPTION:
Closes the flash driver, allowing the rest of the application to use it.
Calling this more than once has no effect.

EXAMPLES:
close --

CM/Flash> configRegion

COMMAND: configRegion

USAGE: configRegion bootloader|image1|image2|perm|dyn SizeBytes

DESCRIPTION:
Configures the minimum acceptable size for a region. This takes effect the
next time the driver is initialzied. Specifying a size of 0 restores the
default built in to the driver.

EXAMPLES:
configRegion perm 65536 -- Configures Perm NonVol to require a minimum of
64k
CM/Flash> deinit

COMMAND: deinit

USAGE: deinit

DESCRIPTION:
Deinitializes the flash driver, making it release resouces. Note that the
flash device will be unusable after this, until you run the init command.

EXAMPLES:
deinit --

CM/Flash> erase

COMMAND: erase

USAGE: erase [-b BlockNumber] [-a Offset] [-r]

DESCRIPTION:
Erases the flash block specified by the block number (-b), address offset
(-a) or erases all blocks in the region (-r).

EXAMPLES:
erase -b 3 -- Erases block number 3 (the fourth block)

CM/Flash> init

COMMAND: init

USAGE: init

DESCRIPTION:
Initializes the flash driver, making it detect the flash device. This is
usually done for you at system startup, but may be needed if you deinit the
driver. This command has no effect if the driver is already initialized.

EXAMPLES:
init --

CM/Flash> open

COMMAND: open

USAGE: open bootloader|image1|image2|perm|dyn

DESCRIPTION:
Opens the flash driver for use by the console (locking out the rest of the
application!) so that you can use the read/write/erase commands. NOTE: If
you do something that would cause the driver to be opened again (write
nonvol, dload an image, etc), then the operation will be blocked until you
run the close command, or it may fail.

EXAMPLES:
open image2 -- Opens the image2 region for read/write/erase

CM/Flash> read

COMMAND: read

USAGE: read Size{1..4} Number{1..8192} Offset

DESCRIPTION:
Uses the read functions to access data in the flash device, printing to the
console. You must specify the size of the read (1, 2, or 4 bytes), the
number of bytes to read, and the offset into the region to start. The offset
should be aligned correctly for the size specified.

EXAMPLES:
read 1 4 0 -- Reads 4 bytes at the beginning of the region
read 4 8 1024 -- Reads 2 dwords at offset 1k in the region

CM/Flash> readDirect

COMMAND: readDirect

USAGE: readDirect Number{1..8192} Offset

DESCRIPTION:
Uses the read direct function to access the flash memory data directly,
printing to the console. You must specify the number of bytes to read and
the offset into the region to start.

EXAMPLES:
readDirect 128 0 -- Reads 128 bytes at the beginning of the region
CM/Flash> show
COMMAND: show
USAGE: show
DESCRIPTION:
Causes the flash driver to display its internal state.
Reply


Messages In This Thread
The SBG6782 - by odeyin - 02-03-2014, 09:55 PM
RE: The SBG6782 - by drewmerc - 03-03-2014, 12:07 AM
RE: The SBG6782 - by teddyalmonds - 03-03-2014, 05:28 AM
RE: The SBG6782 - by odeyin - 03-03-2014, 03:53 PM
RE: The SBG6782 - by odeyin - 04-03-2014, 11:50 PM
RE: The SBG6782 - by thadpg - 24-12-2014, 01:31 PM
RE: The SBG6782 - by sb5101e - 28-01-2016, 12:42 AM
RE: The SBG6782 - by sb5101e - 25-12-2019, 02:32 PM
RE: The SBG6782 - by sb5101e - 25-12-2019, 02:53 PM
RE: The SBG6782 - by sb5101e - 25-12-2019, 03:01 PM
RE: The SBG6782 - by sb5101e - 25-12-2019, 03:19 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)