Forum Discussion

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

UCLinux build errors with DE2 Board 2C35.

Hi,

I installed the Nios II Linux v1.4 released.

System : XP, quartus v51, nios v51.

Board : DE2 with 2C35.

I do exactly what is say in the microtronix “Quick Start Quide.pdf” but I’ve got some errors when i build my linux kernel.

/cygdrive/c/altera/kits/nios2_51/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x/drivers/ide/ide.c: In function `init_hwif_default':
/cygdrive/c/altera/kits/nios2_51/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/c/altera/kits/nios2_51/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/c/altera/kits/nios2_51/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/c/altera/kits/nios2_51/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x/drivers/ide/ide.c: In function `init_ide_data':
/cygdrive/c/altera/kits/nios2_51/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: ***  Error 1
make: ***  Error 2
make: ***  Error 2
make: ***  Error 2
make: Leaving directory `/cygdrive/c/altera/kits/nios2_51/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x'

Does Nios II Linux v1.4 support DE2_Board ?

I think that my kernel configuration is good. Maybe one problem with the *.ptf but i don’t know exactly. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/blink.gif

Could u help me,

Thanks!

12 Replies

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

    In fact, for the moment i don&#39;t need the network fonctions. So I&#39;ve disable all in my config. Then I&#39;ve build my kernel perfectly.

    I&#39;ve download it in RAM and when i launch the terminal it says this log:

    nios2-terminal: log (http://c.beyls.free.fr/log-error.jpg)

    http://c.beyls.free.fr/log-error.JPG

    What do u think about it ?

    For the moment, I&#39;haven&#39;t load my filesystem. Do u think that my kernel is ok ?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    originally posted by pairin20@May 15 2006, 05:19 AM

    in fact, for the moment i don&#39;t need the network fonctions. so i&#39;ve disable all in my config. then i&#39;ve build my kernel perfectly.

    i&#39;ve download it in ram and when i launch the terminal it says this log:

    nios2-terminal: log (http://c.beyls.free.fr/log-error.jpg)

    http://c.beyls.free.fr/log-error.jpg

    what do u think about it ?

    for the moment, i&#39;haven&#39;t load my filesystem. do u think that my kernel is ok ?

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=15362)

    --- quote end ---

    --- Quote End ---

    You must have root file system to run Linux.

    If you want to use romfs on CFI for rootfs , you must modify the altera.c map file for mtd.

    Last advice, follow buildroot guide.

    There is a kernel image which you can try without compiling anything.