| 1 | This tool can be handy if direct memory address modification is needed based on a change desired after reading the processor reference manual available on Freescale's Website [http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=i.MX6Q&fpsp=1&tab=Documentation_Tab Link] |
| 2 | |
| 3 | devmem is a powerful, yet dangerous tool for modifying memory addresses. |
| 4 | {{{ |
| 5 | root@OpenWrt:/# devmem |
| 6 | BusyBox v1.19.4 (2013-10-02 00:06:48 PDT) multi-call binary. |
| 7 | |
| 8 | Usage: devmem ADDRESS [WIDTH [VALUE]] |
| 9 | |
| 10 | Read/write from physical address |
| 11 | |
| 12 | ADDRESS Address to act upon |
| 13 | WIDTH Width (8/16/...) |
| 14 | VALUE Data to be written |
| 15 | |
| 16 | |
| 17 | }}} |
| 18 | |
| 19 | Example Writing: |
| 20 | {{{ |
| 21 | root@OpenWrt:/# devmem 0x20e05cc 32 0x1b0b8 |
| 22 | }}} |
| 23 | |
| 24 | Example Reading: |
| 25 | {{{ |
| 26 | root@OpenWrt:/# devmem 0x20E06CC 32 |
| 27 | 0x0001B0B1 |
| 28 | |
| 29 | }}} |
| 30 | |
| 31 | = Laguna = |
| 32 | devmem is inside of the busybox package. |
| 33 | |
| 34 | Please enable devmem in the OpenWrt build by using make menuconfig and then re-installing busybox onto the target. |