Forum Discussion

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

nios2-download error with MMU

Hi,

I work on the nios2 kit 2C35. I would like to switch on linux with MMU after a µClinux Evalution.

I have met a problem during the flash programming. ("nios2-download -g linux.initramfs.gz").

I have an error during the verification.

"Verify failed between address 0xD0000000 and 0xD000FFFF".

It can't be a pinmap problem, I had the same during my evaluation of µClinux solution and when I use nios2-flash-programmer --debug, I can see my CFI Flash Table

Have you got an idea to explain my problem?

6 Replies

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

    the address 0xD0000000 and 0xD000FFFF is wrong

    try to change address to 0x0000000 and 0x0000FFFF in custom_fpga.h
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    You must use the (new) option '--mmu' in order to make nios2-flash-programmer correctly working with MMU cpu.

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

    Hi,

    I have the same problem.

    About the --mmu option, I've found it in nios2-programmer, but not in nios2-download at least in the version 9.0.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I don't think an option '--mmu' would be useful to 'nios2-download': the elf itself contains its loading address, which must be offset-ed with 0xc0000000 if I'm not wrong...

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

    --- Quote Start ---

    [...] its loading address, which must be offset-ed with 0xc0000000 if I'm not wrong...

    --- Quote End ---

    Do you know what means this offset ?

    I've found the problem, it was a bad timing on the SDRam. All seems OK now.