I have an embedded linux system running on cortexA8.I understand the kernel symbol PHYS_OFFSET represents the physical start address of RAM http://www.kernelport.org/defines.html. I need the value of this symbol in user space for some validation purpose in some shell script that runs after kernel has booted up. The /proc filesystem doesnt have this info. Pls let me know if I can get this value by some means.
I have an embedded linux system running on cortexA8.I understand the kernel symbol PHYS_OFFSET
Share
You can try to utilize I/O memory map by reading
/proc/iomemwhich should tell aboutSystem RAM– all address iniomemis real / physical addresses.This is from my Android phone which has a 1GB ram (0xbfffffff – 0x80000000).
You somehow need to convert the range specified in System RAM to what you need.