1 <!-- Copyright (C) 2003 Red Hat, Inc. -->
2 <!-- This material may be distributed only subject to the terms -->
3 <!-- and conditions set forth in the Open Publication License, v1.0 -->
4 <!-- or later (the latest version is presently available at -->
5 <!-- http://www.opencontent.org/openpub/). -->
6 <!-- Distribution of the work or derivative of the work in any -->
7 <!-- standard (paper) book form is prohibited unless prior -->
8 <!-- permission is obtained from the copyright holder. -->
13 ><meta name="MSSmartTagsPreventParsing" content="TRUE">
16 CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
19 TITLE="eCos Reference Manual"
20 HREF="ecos-ref.html"><LINK
22 TITLE="Common Commands"
23 HREF="common-commands.html"><LINK
26 HREF="channel-command.html"><LINK
29 HREF="disks-command.html"></HEAD
40 SUMMARY="Header navigation table"
49 >eCos Reference Manual</TH
57 HREF="channel-command.html"
71 HREF="disks-command.html"
82 NAME="CKSUM-COMMAND">cksum</H1
90 >cksum -- Compute POSIX checksums</DIV
92 CLASS="REFSYNOPSISDIV"
120 CLASS="INFORMALTABLE"
172 >Location in memory for stat of data.</TD
232 >Computes the POSIX checksum on a range of memory (either RAM or FLASH).
233 The values printed (decimal cksum, decimal length, hexadecimal cksum,
234 hexadecimal length) can be compared with the output from the Linux program 'cksum'.</P
257 >cksum -b 0x100000 -l 0x100</B
260 POSIX cksum = 3286483632 256 (0xc3e3c2b0 0x00000100)</PRE
267 >Checksum an area of memory after loading a file. Note that the base
268 address and length parameters are provided by the preceding
282 >load -r -b %{FREEMEMLO} redboot.bin</B
285 Raw file loaded 0x06012800-0x0602f0a8
292 Computing cksum for area 0x06012800-0x0602f0a8
293 POSIX cksum = 2092197813 116904 (0x7cb467b5 0x0001c8a8)</PRE
305 SUMMARY="Footer navigation table"
316 HREF="channel-command.html"
334 HREF="disks-command.html"
350 HREF="common-commands.html"