.TH "memedit" "1" "0.6.0" "Pengutronix" "Development Tools" .SH "NAME" .LP memedit \- view and edit memory patterns .SH "SYNTAX" .LP memedit [\fIoption\fP] <\fIfilename\fP> .br .SH "DESCRIPTION" .LP This program allows you to quickly display and change memory content for testing purpose as well as for various other development tasks. .SH "OPTIONS" .LP .TP \fB\-\-startfile | \-s\fR <\fIbatchfile\fP> Use <\fIbatchfile\fP> as startfile. .br This will execute all commands in <\fIbatchfile\fP> during startup. Output is written to stdout. .br You may set Variables, map memory regions, load files, etc. Use of comments is possible anywhere in your startfile: Everything starting with a "#" up to the end of the line is treated as a comment. E.g.: .br .br # .br # Some Register .br # .br SR0 = 0x0 # Some Control / Status Register .br .br .TP \fB\-\-readback | \-r\fR readback on write (default on) .TP \fB\-\-help | \-h\fR Output help information and exit. .TP \fB\-\-verbose | \-V \fR Generate more verbose Output. .TP \fB\-\-version | \-v\fR Output version information and exit. .SH "COMMANDS" .LP memedit was built with libreadline support. So you can recall commands by typing \fIshift-up\fP/\fIshift-down\fP. See readline(3) for Details. memedit commands: .TP \fBo, open\fR <\fIfile\fP> open .TP \fBc, close\fR close currently opened file .TP \fBmap\fR <\fIstart\fP> <\fIsize\fP> map memory starting at physical address into working buffer .TP \fBunmap\fR unmap memory from working buffer .TP \fBmd\fR [[@] []] mem display from current position or from for .TP \fBmd.b\fR [[@] []] see md - byte access .TP \fBmd.w\fR [[@] []] see md - word access .TP \fBmd.l\fR [[@] []] see md - long word access .TP \fBmm\fR .. modify from value .TP \fBmm.b\fR [[@] []] see mm - byte access .TP \fBmm.w\fR [[@] []] see mm - word access .TP \fBmm.l\fR [[@] []] see mm - long word access .TP \fBmf\fR fill from for with , can also be used with .b, .w, .l .TP \fBe, env, printenv\fR print all currently defined variables .TP \fB = \fR set variable to .TP \fB\fR print variable .TP \fB add \fR | \fB + \fR add variables .TP \fB sub \fR | \fB - \fR substract variables .TP \fB mul \fR | \fB * \fR multiplicate variables .TP \fB div \fR | \fB / \fR divide variables .TP \fB mod \fR | \fB % \fR divide variables and return the remainder. .TP \fB rshift \fR | \fB >> \fR shift right .TP \fB lshift \fR | \fB shift \fR | \fB << \fR shift left .TP Variables can be entered as decimals (without prefix), hex (prefixed with 0x) oct (0o) or bin (0b). .TP \fBq, x, exit, quit\fR Leave application .TP \fBh, help\fR show this help text .SH "FILES" .LP \fI$PREFIX/bin/memedit\fP .br .SH "EXAMPLES" .LP To run this program the standard way type: .LP memedit /dev/mem .br memedit /tmp/foo .LP Alternativly you can run it with a startfile: .LP memedit \-s pxa\-regs /dev/mem .SH "AUTHORS" .LP Primary author: Benedikt Spranger .br Maintainer: Robert Schwebel .br Contributor: Sascha Hauer .br Documentation: Bjoern Buerger .SH "SEE ALSO" .LP fpga\-edit(1) readline(3)