Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
21 years ago

kernel compilation error

I want to run linux on niosII system and the development board is altera stratix gx. There are three flash in gx development board. When I compile the kernel, the errors happen as this

<div class='quotetop'>QUOTE </div>

--- Quote Start ---

Kind Description Resource In Folder Location

Error *** [_all] Error 2 kernel_1s40

Error *** [arch/nios2nommu/kernel/asm-offsets.s] Error 1 kernel_1s40

Error *** [arch/nios2nommu/kernel/asm-offsets.s] Error 2 kernel_1s40

Error# error Sorry,you dont have na_stratix_gx_epc16_kernel or na_stratix_gx_epc16_kernel_end defined in the core.[/cygdrive/d/altera/nios/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_0.1.5/linux-2.6.x/arch/nios2nommu/kernel/asm-offsets.c] kernel_1s40 line 144

Error error: `na_stratix_gx_epc16&#39; undeclared (first use in this function)[/cygdrive/d/altera/nios/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_0.1.5/linux-2.6.x/arch/nios2nommu/kernel/asm-offsets.c] kernel_1s40

Error error: (Each undeclared identifier is reported only once[/cygdrive/d/altera/nios/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_0.1.5/linux-2.6.x/arch/nios2nommu/kernel/asm-offsets.c] kernel_1s40

Error error: `na_stratix_gx_epc16_end&#39; undeclared (first use in this function)[/cygdrive/d/altera/nios/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_0.1.5/linux-2.6.x/arch/nios2nommu/kernel/asm-offsets.c] kernel_1s40[/b]

--- Quote End ---

stratix_gx_epc16 is one of the three flashes in my nios sytem. What&#39;s wrong and how to correct it? Thank you !

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Just a (wild) guess, but have you run something along the following lines?

    $ make ARCH=nios2nommu CROSS_COMPILE=nios2-linux-uclibc- hwselect SYSPTF=std_1s10.ptf

    it is some kind of perl script that extracts a number of variables from the ptf file.