Embedded_linux [SOLVED]: Working with memory on an embedded devices

Embedded_linux [SOLVED]: Working with memory on an embedded devices

Home Forums Embedded Linux Embedded_linux [SOLVED]: Working with memory on an embedded devices

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #4353

    Anonymous

    QuestionQuestion

    Embedded device running Linux. As common, the MTD device file subsystem is used for interacting with flash memory.

    I have a few questions about memory managing on such devices. Device memory map specification is not available.
    There us few methods to access memory on an embedded device, on of them is direct call to memory address, for example, when directly write some value to memory address when debug, or use command to read at physical address:

    show <hex address> <number of words to display>
    

    Does this command perform accessing to the NVRAM NOR flash memory or RAM memory of device?
    Does it possible do reverse this process, i.e. to find memory address where “lives” a particular setting? Assuming we know a specific value and we know that value is stored somewhere is memory. Is it ever possible to find address?

    #4354

    Anonymous

    Accepted AnswerAnswer

    Does this command perform accessing to the NVRAM NOR flash memory or
    RAM memory of device?

    Yes, the command works for both types of memory, and usually any other memory that is listed in the OS memory map (i.e., PCI device memory).

    Does it possible do reverse this process, i.e. to find memory address
    where “lives” a particular setting? Assuming we know a specific value
    and we know that value is stored somewhere is memory. Is it ever
    possible to find address?

    Yes, if you have control of the compilation, there are tools like objdump and nm that allow you to decompose the binary. If you only have the deployed system, you want to look into reverse engineering.

    Source: http://stackoverflow.com/questions/42437875/working-with-memory-on-an-embedded-devices
    Author: P.S.
    Creative Commons License
    This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.