Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

how to boot form flash

Altera_Forum
Colaborador Distinguido II
1.109 Vistas

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 !
0 kudos
2 Respuestas
Altera_Forum
Colaborador Distinguido II
331 Vistas

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
Colaborador Distinguido II
331 Vistas

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
Responder