i am writing a piece of code that needs to store 10k of memory located in specific physical address before the SOC shuts down.
My problem is that this physical address is not part of kernel space so i have to create an ad -hoc memory mapping so i can access this memory space.
i tried using io-remap but it doesn't (apparently) work on non-kernel space.
is there any API for doing this ? should i used kmap ?
Thanks in advance
ioremap()
has to be provided a physical address range. Beware that using the word "memory" without a virtual or physical qualifier can be ambiguous or confusing. Perhaps you need to revisit & analyze whyioremap()
did not seem to "work". Here's another Q&A involving carving out physical memory for kernel driver use: stackoverflow.com/questions/12516603/… – sawdust