Forum Discussion

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

Problem using the CompactFlash

Hi,

I'm trying to use the compact flash on my 2c35 DE board. I have done everything on the wiki page (http://www.nioswiki.com/operatingsystems/uclinux/compactflash) (even example code at the bottom). However, when I try to use my design (done with SOPC Builder) it doesn't work :

-> SOF example + zImage example works !

-> SOF example + my zImage works!

-> My SOF + my zImage doesn't work

Here is the only code that appear during the boot:

scsi0 : pata_platform
ata1: PATA max PIO0 mmio cmd 0x01000000 ctl 0x1000080 irq 9

I think the problem is that what is done in the wiki is for the altera_avalon_cf 5.0 and not the 9.0 that I use.

Does anybody have a idea ? ;)

2 Replies

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

    With a new hardware design, you should debug the hardware first. Add a small loop reading writing the CF registers. You can use signaltap to verify the io timing.

    - Hippo

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

    PROBLEM SOLVED

    Hi Hippo,

    thanks for you answer. However, the problem was that I didn't change the top level vhdl file (I've forget to do it.... :blink: ).

    In fact, something is missing for newbies who follow the CompactFlash tutorial:

    after you have modified your design on sopc builder (be careful with the clock of the cf controler), you have modify your top level file project to make the connections. :lol:

    Do you know an free vhdl or verilog code to interface the nios with an HDD via pata or sata ? Faster than the PIO mode 0 give with the SOPC builder ?

    Bye