- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
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 ?Link kopiert
2 Antworten
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
There is one line in the kernel linker script (arch/nios2nommu/kernel/vmlinux.lds.S):
eram : ORIGIN = nasys_program_mem_end, LENGTH = 0
or you can modify memory_end in arch/nios2nommu/kernel/setup.c to make it smaller.
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
OK,
thanks for the info. It works fine.
Antworten
Themen-Optionen
- RSS-Feed abonnieren
- Thema als neu kennzeichnen
- Thema als gelesen kennzeichnen
- Diesen Thema für aktuellen Benutzer floaten
- Lesezeichen
- Abonnieren
- Drucker-Anzeigeseite