Forum Discussion

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

flash usage

I'm trying to follow the Altera DE2-115 with Linux sample from this link (http://www.alterawiki.com/wiki/linux_with_mmu_on_veek/t-pad#unfortunately.2c_if_you_don.27t_have_veek.2ft-pad_kit.2c_but_you_have_de2-115...).

The first part works but then I get


$ nios2-flash-programmer --epcs --base=0x0a001800 tPad_Selector.flash --debug
Reading override file "/opt/intelFPGA_lite/16.1/nios2eds/bin/nios2-flash-override.txt"
Using cable "USB-Blaster ", device 1, instance 0x00
Resetting and pausing target processor: 
OK
Processor data bus width is 32 bits
Looking for EPCS registers at address 0x0A001800 (with 32bit alignment)
  Initial values: 0001703A 04C00074 9801483A 9CFFF804 983FFD1E 0000203A
  Not here: reserved fields are non-zero
Looking for EPCS registers at address 0x0A001900 (with 32bit alignment)
  Initial values: 92400237 4A40100C 483FFD26 90000135 92400237 4A40200C
  Not here: reserved fields are non-zero

Can you help me? Why doesn't it work?

12 Replies

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

    Thank you for the answers. I just feel that the instructions are misleading.

    "Here you can run Linux with your Altera DE2-115"-

    Really? But how?

    I beg your pardon that I was negative. I know it's not a perfect world. But I really tried everything and I'm a bit disappointed that there are no more ways to build the thing.

    I bought the Altera FPGA for my own money because I was enthusiastic. Now I feel disappointed. I'm not a noob with building source code. There are also others who had the same problem.

    I feel that the whole idea of sustainable software is just bogus if we can't use code just because it's a few years old.

    I really tried everything and I asked only when everything else failed. The manual isn't very good either: What is meant by "incorrect" and why did I buy something "incorrect"?

    I realize that many things must work to run an os with my Altera DE2-115. But I already could run the os from my instructor at the university with no problem whatsoever.

    Anyway it was good to learn but I would like to come the whole way and boot a somewhat mature shell, at least the sash shell and preferably a shell that is targeted for real usage.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    Add the following lines to your "nios2-flash-override.txt" file in your {QuartusInstalledFolder}\nios2eds\bin folder.
    # EPCS64N(lead-free)
    sector_size = 65536
    sector_count = 128
    If the file's not there create it.

    Alex

    --- Quote End ---

    Unfortunately, under Quartus 16.1 it doesn't work!!!

    I had this setup under Quartus 13 and it was working fine.

    I had to change computer and try now to migrate my projects to Quartus 16.1.

    So I copied my original nios2-flash-override.txt to the nio1eds/bin folder... and...

    Error: No EPCS layout data - looking for section [EPCS-010216]

    Any workaround?

    Thanks

    jylo