This program allows any memory area in a Prosody processor to be modified.
Go to directory $(TiNG)/diag/tmwrite.
There is no need to have downloaded any firmware - not even the kernel. The only requirement is that the driver be loaded.
Run tmwrite with the appropriate options (the program is
gen-LINUX/tmwrite,
gen-SOL_32/tmwrite, or
gen-WINNT/tmwrite
depending on which operating system you are using).
Command line options are:
-v
| Show the version code of tmwrite |
-c card
| Specifies the card on which is the module whose memory is to be modified |
-m module
| Specifies the module whose memory is to be modified (default 0). |
address=value
| memory location to modify |
Numbers can be specified in three ways:
0x followed by hexadecimal digits
0 followed by octal digits
For example,
gen-WINNT/tmwrite -c Prosody_123456 12=0x12345678 13=7
would write the value 0x12345678 (305419896) to location 12 and write the value 7 to location 13.
The source code for this program is provided (tmwrite.c), however it uses API facilities which not part of the published API specification and which can therefore change without notice. If you want to modify memory locations in a program of your own, you should do so by running the tmwrite program, rather than by copying the technique it uses.
This is one of the Prosody diagnostic programs .