怎么把uclinux下載到EPCS中
本文關(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.flashMMU 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文件,然后建立一個(gè)epcs.sh文件,比如:vim epcs.sh,輸入下面命令:
sof2flash --epcs --input=uclinux.sof --output=standard.flash
#將sof文件轉(zhuǎn)化為flash文件,uclinux.sof轉(zhuǎn)為standard.flash,名字根據(jù)實(shí)際情況決定
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問(wèn)EPCS在SOPC中的基地址
**************************************************************************************************************************
改變epcs.sh shell文件的可執(zhí)行權(quán)限,比如:chmod 777 epcs.sh,然后運(yùn)行:./epcs.sh
現(xiàn)在可以把FPGA開發(fā)板斷電再開電,看uclinux系統(tǒng)斷電會(huì)不會(huì)消失。
再輸入:nios2-terminal命令
怎么擦除EPCS芯片里的內(nèi)容
1、首先一定要關(guān)掉Nios II Command Shell
2、打開Quartus II工程,進(jìn)入下載界面,選擇AS模式,Mode:Active Serial Programming,打開pof文件,選擇Erase,F(xiàn)PGA開發(fā)板選擇EPCS下載接口,點(diǎn)擊開始即可
posted on
本文關(guān)鍵詞:uclinux下載,由筆耕文化傳播整理發(fā)布。
本文編號(hào):95235
本文鏈接:http://sikaile.net/wenshubaike/jajx/95235.html