Forum Discussion

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

Compact Flash (IDE) Support

Hello,

I'm using the Microtronix Stratix Development board and am trying to get the Nios II processor and all of the various peripherals working and I'm having problems with the compact flash card.

For using the compact flash card with the old Nios processor, an 'Interface to User Logic' was instantiated in SOPC builder which interfaced with the OCIDEC core. When configuring the linux kernel, OCIDEC support was selected and everything seemed to work OK.

For Nios II, I've tried the same approach, but when I build the linux kernel (through the Nios II IDE) I get the following error:

error: `na_ide_ide' undeclared (first use in this function)[/cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_0.1.5/linux-2.6.x/drivers/ide/ide.c] kernel_project line 218

Has anyone else encountered this problem or know how to work around it?

I've also noticed that the linux kernel configuration contains another option under the ""ATA/ATAPI/MFM/RLL support" section:

Altera CF (IDE mode) interface (Avalon bus) support (NEW)

This actually seems to be the default option when "Microtronix Stratix Board support" is selected.

What kind of support is required in SOPC builder for this "Altera CF (IDE mode) ... " to work?

Is there a specific Altera core that should be used for this? (I don't see any in SOPC builder)

Thanks,

Terry

3 Replies

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

    Hi Terry,

    The problem you're encountering with na_ide_ide errors is fairly common and will be rectified in the next release if all goes well.

    I'm going to get one of our hardware guys to answer your question regarding the compact flash interface because I'm really not to sure about the specifics. At a high level, there is a compact flash SOPC component that can be included in your design that works with the driver provided in the Nios II Linux distribution. Once that is built into your hardware design the kernel should build alright.

    Alternatively, in the kernel, you can always disable the ATA/ATAPI/MFM/RLL support, but I&#39;m guessing you want compact flash support. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/smile.gif

    Expect another response soon.