Forum Discussion
Altera_Forum
Honored Contributor
9 years agoHi,
--- Quote Start --- I'm trying to boot linux on nios2 with 2GB of ram having some problem. All the examples I saw are using 128MB of memory which fits in the low 512MB of physical memory region. 2GB of memory can be placed only at low 2GB or high 2GB physical and this is kind of causing problems. If I use low 2GB space, then it covers the entire low 512MB which I cannot place other peripherals and if I put at high 2GB space then I don't know where to put reset vector and exception vector. Is there anyone who successfully booted linux with more than 1GB of memory? --- Quote End --- Because of the features of Nios 2's MMU and the current implementation of Linux kernel, the kernel code must be placed lower than the address 0x20000000 of physical memory. Furthermore, the amount of memory that can be used as the main memory for the kernel is further restricted, since the same location must be shared with memory mapped IO. Therefore, trying to use a single 2GB DDR3 memory for this purpose (and coupled with stubborn specifications of Qsys), we must waste most of the memory. Although you can pretend that a single memory has more than one memory space via an appropriate adapter, you have to suffer the additional latency. I recommend to use other SRAMs on your DE5Net for the kernel, if possible. Kazu