Forum Discussion
Altera_Forum
Honored Contributor
21 years agouClinux .data segment in SDRAM?
For a number of reasons, I'd like to run my kernel in SRAM but allocate data memory (i.e. socket buffers) in SDRAM. This seems possible with a NIOS 'Hello World' application, or the like...
Altera_Forum
Honored Contributor
21 years ago<div class='quotetop'>QUOTE </div>
--- Quote Start --- go to arch/nios2nommu/kernel/setup.c, after the call of init_bootmem_node , put a free_bootmem for your SDRAM. This will label your SDRAM as free memory[/b] --- Quote End --- I did this (after the first free_bootmem call) as below:free_bootmem(0x0,0x08000000); ...and got the same result as before (page allocation error on kmalloc(2048,GFP_DMA)). Did I miss something? Ryan