Page 1 of 1

mem tool help

Posted: Mon Jan 31, 2022 8:50 pm
by jsli
Hi folks, I got some problems when I using mem (memory changing tools). I tried two different ways, first I added mem tool when I compiled OpenWRT firmware 19.07.8.
It doesn't work when I try: mem 0x10000060. So, I changed i just prepare a new firmware and copy mem file into /bin folder in vocore2, but it doesn't work either.
Can someone help me with it? Thank you!

root@OpenWrt:/bin# mem 0X10000060
can not map memory.

Re: mem tool help

Posted: Thu Mar 03, 2022 4:09 am
by Vonger
Recently because of Linux kernel secure update, default /dev/mem is not enabled.
If you need to access memory in user mode. You need to enable it in source code and compile with /dev/mem enable.

In openwrt source code, make menuconfig, enable "Global build settings" => "Kernel build options" => select "/dev/mem virtual device support"