Forum Discussion

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

how to resolve such errors??

hello!!

I recently installed Quartus II 4.2, NIOS2 devkit 1.1, and Linux 1.3 successfully. But i use a custom dev board. According to the file"Linux Quick Start Guide", I create a kernel project and build it, but got following errors:

error: `na_button_pio' undeclared here (not in a function)[/cygdrive/f/niosIIIDEforinstall/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_0.1.5/linux-2.6.x/drivers/char/altera_pio_button.c]

error: (near initialization for `button_work.timer.lock')[/cygdrive/f/niosIIIDEforinstall/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_0.1.5/linux-2.6.x/drivers/char/altera_pio_button.c] kernel_1c40 line 86

note:f/niosIIIDEforinstall is a installation directory where i install NIOS2 devkit 1.1

Why i have such errors? How to sovle?

Any help much appreciated!!

2 Replies

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

    Hi fodywang,

    > Why i have such errors? How to sovle?

    Disable the altera pio button driver in your kernel configuration, or add a "button"

    pio to your design. To disable:

    Device Drivers -> Character devices -> Nios PIO buttons support

    Regards,

    --Scott