Altera_Forum
Honored Contributor
16 years agouClinux trouble with making kernel
I've tried to follow the five steps at nioswiki but get some errors when i'm trying to make my own uClinux kernel. I created a new sopc-builder file and copied it to the kernel directory the following way:
$ sopc-create-header-files --single custom_fpga.hsopc-create-header-files: Using SOPC design file ./linux_sopc.sopcinfo found in .
swinfo2header: Creating C-header file 'custom_fpga.h' for module 'cpu'
~/studier/IL2207_SoC_Architectures/lab1/sopc2
$ cp custom_fpga.h /home/erik/studier/uClinux/nios2-linux/linux-2.6/arch/nios2/include/asm/
cp: overwrite `/home/erik/studier/uClinux/nios2-linux/linux-2.6/arch/nios2/include/asm/custom_fpga.h'? y
After that i do : make menuconfig In Vendor/Product selection i choose "Altera" and "nios2" In Kernel/Library/Defaults selections i choose "customize kernel settings" When the next screen appears i choose NiosII configuration-->NiosII FPGA configuration and then choose "custom FPGA" When i then run make i get the following error: /home/erik/studier/uClinux/nios2-linux/linux-2.6/arch/nios2/kernel/asm-offsets.c:122: error: 'DDR2_TOP_BASE' undeclared (first use in this function)
/home/erik/studier/uClinux/nios2-linux/linux-2.6/arch/nios2/kernel/asm-offsets.c:122: error: (Each undeclared identifier is reported only once
/home/erik/studier/uClinux/nios2-linux/linux-2.6/arch/nios2/kernel/asm-offsets.c:122: error: for each function it appears in.)
/home/erik/studier/uClinux/nios2-linux/linux-2.6/arch/nios2/kernel/asm-offsets.c:123: error: 'DDR2_TOP_SPAN' undeclared (first use in this function)
Anyone who knows why i get this error? Do i have to include a DDR2? I have included the sdram.. Info: I've succefully downloaded the the prebuilt "TryOutuClinux"-files to my DE2 board. The only time i have been able to compile a kernel was when i used default setting with mmu. I'm running the prebuild binary toolchain on ubuntu 9.10 /Erik