Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

Compact Flash (IDE) Support

Altera_Forum
Honored Contributor II
1,368 Views

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
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
531 Views

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.
0 Kudos
Altera_Forum
Honored Contributor II
531 Views

Hi, Dennis just informed me that the SOPC Compact Flash component available on the Nios Forum...  

 

sopc compact flash component (http://www.niosforum.com/forum/index.php?act=st&f=16&t=254&view=getlastpost

 

That component is what the driver was designed for. If you still encounter problems, let us know on this forum and we may be able to help out. 

 

Good luck!
0 Kudos
Altera_Forum
Honored Contributor II
531 Views

Ken, 

 

Thanks for the information. I&#39;ll give it a try. 

 

-- 

Terry
0 Kudos
Reply