Altera_Forum
Honored Contributor
21 years agoHow to reserve memory at fixed address
Hi,
I would like to reserve SDRAM memory for traces at a fixed address, so that I can examine this memory after an uncontrolled reboot of Linux. I used to set the option MEM=(totalMemory - MyTraceSize) in the kernel boot command with a "standard" Linux, in order to prevent Linux to access to the upper section of memory, reserving it for my traces. With µCLinux, this parameter seems to be ignored. So I tried to find out where the defines "na_ext_ram_end" or "na_ext_ram_size" were used. I found them only in "arch/nios2nommu/kernel/asm-offsets.c" : DEFINE(LINUX_SDRAM_END.... I change the value of the define, but it has no effect : when I dump /proc/meminfo, I have always 64Mb ! Where am I wrong ? Is there an other way to do it ?