Forum Discussion
Altera_Forum
Honored Contributor
15 years ago --- Quote Start --- Ok, bump into another problem. /usr/local/src/nios2-linux/linux-2.6/arch/nios2/kernel/asm-offsets.c: In function `main': /usr/local/src/nios2-linux/linux-2.6/arch/nios2/kernel/asm-offsets.c:134: error: `KERNEL_REGION_BASE' undeclared (first use in this function) /usr/local/src/nios2-linux/linux-2.6/arch/nios2/kernel/asm-offsets.c:134: error: (Each undeclared identifier is reported only once /usr/local/src/nios2-linux/linux-2.6/arch/nios2/kernel/asm-offsets.c:134: error: for each function it appears in.) /usr/local/src/nios2-linux/linux-2.6/arch/nios2/kernel/asm-offsets.c:136: error: `FAST_TLB_MISS_EXCEPTION_ADDR' undeclared (first use in this function) I've selected the niosnommu branch , and NEEK / Custom Board. There exists no SYS_TIMER problems anymore, but new problems here... --- Quote End --- Ok, you are venturing into unexplored territory for me but I will try to help... The noMMU branch is where all the NIOS linux work started but now all the active development is in the MMU branch. So your error message tells me that it is looking for components that are necessary for an MMU build (the translation look aside buffer, TLB ). So that means it is trying to build an MMU kernel. If you want to build a no MMU design, at the very first menu of "make menuconfig" you have to change the vendor / product selection from "nios2" to "nios2nommu". But it sounds like you have already done that. My guess is that you can't mix the old and new build methods. The no MMU branch did not use the custom FPGA method for getting hardware addresses into the build system, it used the "make VENDOR_HWSELECT" method detailed here (http://www.alterawiki.com/wiki/uclinuxdist) . I would suggest an mmu design though because it is more current and better supported and it is what I have finally got up and working. Good luck, David