Forum Discussion

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

Error while generating a uCLinux Kernel

Hello,

I want to generate a uCLinux kernel for my microtronix cyclone dev board.

But when generating i have this error message:

*******************************************************************

/cygdrive/d/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x/drivers/ide/ide.c:262: error: `na_ide_ide' undeclared (first use in this function)

/cygdrive/d/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x/drivers/ide/ide.c:262: error: (Each undeclared identifier is reported only once

/cygdrive/d/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x/drivers/ide/ide.c:262: error: for each function it appears in.)

/cygdrive/d/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x/drivers/ide/ide.c: In function `init_ide_data':

/cygdrive/d/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x/drivers/ide/ide.c:313: error: `na_ide_ide_irq' undeclared (first use in this function)

make[3]: *** [drivers/ide/ide.o] Error 1

make[2]: *** [drivers/ide] Error 2

make[1]: *** [drivers] Error 2

make: *** [_all] Error 2

make: Leaving directory `/cygdrive/d/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x'

********************************************************************

I use a Nios II Ide V 5.0 ...when configuring the kernel i choose the cyclone microtronix board. I use a quartus design provided by microtronix..

But , when i choose an altera board when configuring the kernel, my kernel is well generated whitout errors !! ... But i have a microtronix board so i cant uopload it to board..... http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/mad.gif

Thanks for helping me. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/rolleyes.gif

2 Replies

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

    It sounds like the Microtronix board default enables the CompactFlash interface, even though there isn&#39;t one in the design. You can turn this off by selecting:

    Device Drivers --> ATA/ATAPI/MFM/RLL Support

    then clearing the checkbox.

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

    Thanks for the answer...

    Device driver>>ATA/ATAPI/MFM/RLL support ( off )

    driver>>Network support>>network suppor>> Ethernet(10 or 100 Mbits)>>SMC 91111 support (off)

    After that , i succed to generate succesfully my uCLinux Kernel for my microtronix board. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/smile.gif