khadar
2008-12-18 14:08:53 UTC
Hi,
I want to use mmap() system call from User space to map the user
space file(/dev/mem) to memory and write some file at that address. I
have to write the file at Physical address 0x7000000. I have 128MB of
SDRAM memory.My task is to load file(hardware engine at Physical Addr
0x7000000 ).
But by mmap() what we put in arg1 is start address ,this is Virtual
address.
So how to convert Physical (0x7000000) to Virtual Address.
After Linux booting the linux kernel , i have to use this.
I am using 2.6.24 FC-7 , and board has 128 MB SD RAM.
Please help me , if anybody knows.
ThanQ
I want to use mmap() system call from User space to map the user
space file(/dev/mem) to memory and write some file at that address. I
have to write the file at Physical address 0x7000000. I have 128MB of
SDRAM memory.My task is to load file(hardware engine at Physical Addr
0x7000000 ).
But by mmap() what we put in arg1 is start address ,this is Virtual
address.
So how to convert Physical (0x7000000) to Virtual Address.
After Linux booting the linux kernel , i have to use this.
I am using 2.6.24 FC-7 , and board has 128 MB SD RAM.
Please help me , if anybody knows.
ThanQ