LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   decoding /dev/mem (https://www.linuxquestions.org/questions/programming-9/decoding-dev-mem-413839/)

EkantoApon 02-10-2006 10:01 AM

decoding /dev/mem
 
Hi all,
I have started working on a project which involves decoding the physical memory image stored in /dev/mem file.The particular image is of the physical memory range 0x000f000 to 0x000ffff. This is where SMBIOS information is stored.Any idea how to get at the starting point(0x000f000) and then to decode the image till 0x000ffff ? I am using C in linux(Fedora 2).

jim mcnamara 02-10-2006 04:28 PM

open() the file O_RDONLY, then lseek(fd, 0xf000, SEEK_SET)

I do not know what you mean by 'decode the image'.

Do you know about /dev/cmos?

EkantoApon 02-10-2006 10:49 PM

Thanks
 
Hi there,

Thanks for your reply.

Eventhough I am not so sure if C supports that type of absolute addressing within a file, I would still give it a try.

The decoding is in regard to change the compressed form of physical memory(as one can see if he/she writes the /dev/mem file into an user-created file and then "cat"s that file from the shell) into a more legible form.

I am sorry, i don't know abt the /dev/cmos file. Has it anything to do with my current problem ?


All times are GMT -5. The time now is 01:58 PM.