Forum Discussion
Altera_Forum
Honored Contributor
21 years ago<div class='quotetop'>QUOTE </div>
--- Quote Start --- No, this is not quite what I'm going for[/b] --- Quote End --- sorry. <div class='quotetop'>QUOTE </div> --- Quote Start --- I _think_ this can be mitigated by moving the kernel .DATA and .BSS segments to SDRAM[/b] --- Quote End --- sure you can go this way. Please note you also need to modify the bootstrap code (arch/nios2nommu/kernel/head.S) to copy .DATA section into a different place than immediately following .TEXT. <div class='quotetop'>QUOTE </div> --- Quote Start --- Another option is to modify the kernel to allocate socket buffers in SDRAM, but I forsee problems with this[/b] --- Quote End --- Can you tell me what problem you foresee? Currently the DMA zone is empty, you can put all your sdram into that zone and just remember to specify GFP_DMA when your driver wants memory. You don't need to change the memory management part of the kernel. I think this is easier than the first solution. To add sdram to dma zone, you need to modify function paging_init in file arch/nios2nommu/mm/init.c. Good luck. Let me know if there are problems, wentao Microtronix