Forum Discussion

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

how to boot form flash

Dear all

Now I have a Vmlinux ,I can run it in ddram. using the "nios2-download -g vmlinux"

now I want to boot it from flash . i want to know how to create a flash of file ,which can boot when power on . the reset address have been set in flash(0x0000000). pls help me !

2 Replies

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

    Please check the wiki,

    http://nioswiki.jot.com/wikihome/operating...flashprogrammer (http://nioswiki.jot.com/wikihome/operatingsystems/%c2%b5clinux/flashprogrammer)

    0. base address and size of your flash, epcs ?

    1. how do you config fpga? from epcs or from cfi flash?

    2. where the nios2 boot? from epcs or cfi flash ?

    If you have epcs, you should use epcs to config fpga.

    If your epcs is big, you can store zImage in epcs.

    you can setup mtd partitions for epcs and flash.

    so that you may update your fpga, and linux.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I have reslove the problem .

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

    --- Quote Start ---

    # Creating .flash file for the project

    $SOPC_KIT_NIOS2/bin/elf2flash --base=0x00000000 --end=0xffffff --reset=0x0 --inp

    ut=vmlinux --output=ext_vmlinux.flash --boot=$SOPC_KIT_NIOS2/components/alter

    a_nios2/boot_loader_cfi.srec

    # Programming flash with the project

    $SOPC_KIT_NIOS2/bin/nios2-flash-programmer --base=0x00000000 ext_vmlinux.flash[/b]

    --- Quote End ---

    thanks hippo