天堂国产午夜亚洲专区-少妇人妻综合久久蜜臀-国产成人户外露出视频在线-国产91传媒一区二区三区

當前位置:主頁 > 論文百科 > 教案模板 >

怎么把uclinux下載到EPCS中

發(fā)布時間:2016-08-16 10:20

  本文關(guān)鍵詞:uclinux下載,由筆耕文化傳播整理發(fā)布。


怎么把uclinux下載到EPCS中

sof in EPCS, program in EPCS

Using Altera Nios Dev board, Cyclone II 2C35 , standard example, find out and change the sof path, and epcs base below.

# config the fpga nios2-configure-sof $SOPC_KIT_NIOS2/examples/verilog/niosII_cycloneII_2c35/standard/standard.sof # change to your uClinux image dir cd ~/uClinux-dist/images # Creating .flash file for the FPGA configuration sof2flash --epcs --input=$SOPC_KIT_NIOS2/examples/verilog/niosII_cycloneII_2c35/standard/standard.sof --output=standard.flash # Programming flash with the FPGA configuration nios2-flash-programmer --epcs --base=0x02200000 standard.flash # Creating .flash file for the project elf2flash --epcs --after=standard.flash --input=zImage --output=epcs_controller.flash --boot=$SOPC_KIT_NIOS2/components/altera_nios2/boot_loader_epcs.srec # Programming flash with the project nios2-flash-programmer --epcs --base=0x02200000 epcs_controller.flash

MMU example

sof2flash --epcs --input=NiosII_cycloneII_2c35_full_featured.sof --output=fpga.flash

nios2-flash-programmer --epcs --mmu --base=0x03200000 fpga.flash

elf2flash --epcs --after=fpga.flash --input=zImage --output=zImage.flash --boot=$SOPC_KIT_NIOS2/components/altera_nios2/boot_loader_epcs.srec

nios2-flash-programmer --epcs --mmu --base=0x03200000 zImage.flash

**************************************************************************************************************************

首先把SOF文件下載到FPGA中,我們可以打開Nios II Command Shell,用cd命令切換到你放工程的sof文件和uclinux的zImage文件里面,注意cd /cygdrive/路徑。再使用
nios2-configure-sof下載SOF文件,然后建立一個epcs.sh文件,比如:vim epcs.sh,輸入下面命令:

sof2flash --epcs --input=uclinux.sof --output=standard.flash

#將sof文件轉(zhuǎn)化為flash文件,uclinux.sof轉(zhuǎn)為standard.flash,名字根據(jù)實際情況決定
nios2-flash-programmer --epcs --base=0x00401800 standard.flash

#下載轉(zhuǎn)化sof的flash文件到epcs里面,0x00401800為epcs的基地址,為sopc里面epcs的基地址

elf2flash --epcs --after=standard.flash --input=zImage --output=epcs_controller.flash --boot SOPC_KIT_NIOS2/components/altera_nios2/boot_loader_epcs.srec

#在standard.flash后面,,將uclinux映像文件zImage文件轉(zhuǎn)為flash文件epcs_controller.flash

#boot后面是bootload文件,SOPC_KIT_NIOS2為Quartus II安裝目錄\nios2eds,比如:E:\altera\10.1\nios2eds

#boot_loader_epcs.srec為安裝目錄里面的bootload文件

 nios2-flash-programmer --epcs --base=0x00401800 epcs_controller.flash

#下載zImage轉(zhuǎn)化的flash到EPCS中,base=0x00401800問EPCS在SOPC中的基地址

**************************************************************************************************************************

改變epcs.sh shell文件的可執(zhí)行權(quán)限,比如:chmod 777 epcs.sh,然后運行:./epcs.sh

怎么把uclinux下載到EPCS中

現(xiàn)在可以把FPGA開發(fā)板斷電再開電,看uclinux系統(tǒng)斷電會不會消失。

再輸入:nios2-terminal命令

怎么把uclinux下載到EPCS中

怎么擦除EPCS芯片里的內(nèi)容

1、首先一定要關(guān)掉Nios II Command Shell

2、打開Quartus II工程,進入下載界面,選擇AS模式,Mode:Active Serial Programming,打開pof文件,選擇Erase,F(xiàn)PGA開發(fā)板選擇EPCS下載接口,點擊開始即可

 

怎么把uclinux下載到EPCS中

 

 

posted on


  本文關(guān)鍵詞:uclinux下載,由筆耕文化傳播整理發(fā)布。



本文編號:95235

資料下載
論文發(fā)表

本文鏈接:http://sikaile.net/wenshubaike/jajx/95235.html


Copyright(c)文論論文網(wǎng)All Rights Reserved | 網(wǎng)站地圖 |

版權(quán)申明:資料由用戶72cde***提供,本站僅收錄摘要或目錄,作者需要刪除請E-mail郵箱bigeng88@qq.com