Altera_Forum
Honored Contributor
15 years agoProblem building 2.6.34 for neek due to CPU_ prefix
Hi,
I'm new to NIOS but not embedded linux. I am using a neek and can succesfully boot the precompiled 2.6.34 image. I have got the latest 2.6.34 sources from GIT. Compîling for neek with CONFIG_NIOS2_NEEK_OCM works but crashes on boot (which is quite normal since it doesn't correspond to my design) However if I use CONFIG_NIOS2_CUSTOM_FPGA and put the result of sopc-create-header-files in arch/nios2/boards/neek/include/asm/custom_fpga.h the compilation fails with errors like:arch/nios2/kernel/asm-offsets.c:127: error: 'ICACHE_SIZE' undeclared (first use in this function) When I compare my custom_fpga.h with the original one it appears that a lot of the CPU related definitions are now prefixed with CPU_ (I am using v9.1sp2 of the Altera tools to do the generation) I can probably hack around this by adding some defines to nios.h but what is the right way - am I missing somethng? Thanks, Martin