Forum Discussion

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

USB/Ethernet Example

I am trying to use a microtronix ethernet/usb daughter card with the Cyclone II DSP Development Board.

There seem to be linux core examples for a lot of boards (cyclone 1c20, stratix 1s10, etc...) but not for the cyclone II DSP (2c35) .

Is there an example core for this board out there somewhere?

3 Replies

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

    --- Quote Start ---

    originally posted by daniellew@Aug 5 2006, 03:32 AM

    i am trying to use a microtronix ethernet/usb daughter card with the cyclone ii dsp development board.

    there seem to be linux core examples for a lot of boards (cyclone 1c20, stratix 1s10, etc...) but not for the cyclone ii dsp (2c35) .

    is there an example core for this board out there somewhere?

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

    --- quote end ---

    --- Quote End ---

    No, there&#39;s no ready-made core out there. However, I have been working with this board. You just need to use the Nios sample project which is included, add a CFI Flash using SOPC builder (don&#39;t wire up the pins), and then build Linux using the PTF file.

    Let me know if I can help.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    originally posted by jmarshall@Aug 7 2006, 09:14 PM

    no, there&#39;s no ready-made core out there. however, i have been working with this board. you just need to use the nios sample project which is included, add a cfi flash using sopc builder (don&#39;t wire up the pins), and then build linux using the ptf file.

    let me know if i can help.

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

    --- quote end ---

    --- Quote End ---

    I used the "standard" Nios core example that came with the DSP board and copied the flash programmer description to the Nios components directory (as the readme instructions suggested). When I open the SOPC builder however, EPCS serial flash controller is already added to the project. This serial flash uses U17 as its reference designator, and i can therefore not add CFI flash (which needs the same ref. des.).

    Even if the CFI was able to be inserted, how would the kernel get booted to SDRAM from it without a pinout? Or is this to fake the IDE uClinux kernel project into thinking there is CFI so that you can boot it directly, via nios2-terminal?

    **EDIT**

    I found your post from July 19 about this same issue. I will try it that way and see if that solves these problems.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    originally posted by daniellew@Aug 9 2006, 07:07 AM

    i used the "standard" nios core example that came with the dsp board and copied the flash programmer description to the nios components directory (as the readme instructions suggested). when i open the sopc builder however, epcs serial flash controller is already added to the project. this serial flash uses u17 as its reference designator, and i can therefore not add cfi flash (which needs the same ref. des.).

    --- Quote End ---

    Yes, you have to deselect the board description at the top of the SOPC builder window.

    <div class='quotetop'>QUOTE </div>

    --- Quote Start ---

    Even if the CFI was able to be inserted, how would the kernel get booted to SDRAM from it without a pinout?

    Or is this to fake the IDE uClinux kernel project into thinking there is CFI so that you can boot it directly, via nios2-terminal?

    **EDIT**

    I found your post from July 19 about this same issue. I will try it that way and see if that solves these problems.[/b]

    --- Quote End ---

    Download the kernel using "nios2-download -g zImage".

    The only way to add a real CFI would be to buy the Microtronix CF interface, or make your own. This isn&#39;t really needed, as once the design is finished, you can tack the zImage onto the end of the .sof file as is described in the wiki.

    I&#39;ve also found that the easiest way to keep your SOPC description (.ptf file) syncronised between the Linux build system and your Quartus project is to keep the CFI component in SOPC, but just untick it before generating the system.