pulp-platform / pulpino

An open-source microcontroller system based on RISC-V
http://www.pulp-platform.org
Other
899 stars 298 forks source link

Synthesis and run pulpino on Zedboard or Zybo board #325

Closed sunil3690 closed 5 years ago

sunil3690 commented 5 years ago

hi i am running pulpino on FPGA board selected as Zybo not externally connected.

set the environment variable BOARD. In the tcsh script file as steven BOARD "Zybo" also i did not specify the BOAD PART and BOARD NUMBER it will take default XILINX_PART "xc7z020clg484-1" XILINX_BOARD "em.avnet.com:zynq:zed:c" inside the environment variable set "RISCY_RV32F"

and set the vivado toolchain PATH and Xilinx SDK PATH as

export PATH=/root/pulpino/ri5cy_gnu_toolchain/install/bin:$PATH export LD_LIBRARY_PATH=/root/pulpino/Xilinx/Vivado/2019.1/lib/lnx64.o export PATH=/root/pulpino/Xilinx/Vivado/2019.1/bin:$PATH export PATH=/root/pulpino/Xilinx/SDK/2019.1/bin:$PATH export PATH=/root/pulpino/Xilinx/SDK/2019.1/gnu/microblaze/lin/bin:$PATH export PATH=/root/pulpino/Xilinx/SDK/2019.1/gnu/armr5/lin/gcc-arm-none-eabi/bin:$PATH export PATH=/root/pulpino/Xilinx/SDK/2019.1/gnu/microblaze/linux_toolchain/lin64_le/bin:$PATH export PATH=/root/pulpino/Xilinx/DocNav:$PATH

After this i type "make all" targated to "cmake_configure.riscvfloat.gcc.sh" in the fpga directory i am getting an error as root@sunil-Inspiron-3542:~/pulpino/fpga# make all make -C ips/xilinx_fp_fma/ clean all make[1]: Entering directory '/root/pulpino/fpga/ips/xilinx_fp_fma' rm -rf ip/ mkdir -p ip rm -rf xilinx_fp_fma.xpr rm -rf xilinx_fp_fma.hw rm -rf xilinx_fp_fma.data rm -rf xilinx_fp_fma.runs rm -rf xilinx_fp_fma.srcs rm -rf xilinx_fp_fma.cache rm -rf component.xml rm -rf vivado.jou rm -rf vivado.log rm -rf vivado.str rm -rf xgui vivado -mode batch -source tcl/run.tcl

** Vivado v2019.1 (64-bit) SW Build 2552052 on Fri May 24 14:47:09 MDT 2019 IP Build 2548770 on Fri May 24 18:01:18 MDT 2019 ** Copyright 1986-2019 Xilinx, Inc. All Rights Reserved.

source tcl/run.tcl

if { ![info exists ::env(XILINX_PART)] } {

set ::env(XILINX_PART) "xc7z020clg484-1"

}

if { ![info exists ::env(XILINX_BOARD)] } {

set ::env(XILINX_BOARD) "em.avnet.com:zynq:zed:c"

}

set partNumber $::env(XILINX_PART)

set boardName $::env(XILINX_BOARD)

create_project xilinx_fp_fma . -part $partNumber

ERROR: [Common 17-53] User Exception: Project already exists on disk, please use '-force' option to overwrite: /root/pulpino/fpga/ips/xilinx_fp_fma/xilinx_fp_fma.ip_user_files INFO: [Common 17-206] Exiting Vivado at Mon Oct 21 16:41:39 2019... Makefile:4: recipe for target 'all' failed make[1]: [all] Error 1 make[1]: Leaving directory '/root/pulpino/fpga/ips/xilinx_fp_fma' Makefile:33: recipe for target 'ips/xilinx_fp_fma/ip/xilinx_fp_fma.dcp' failed make: [ips/xilinx_fp_fma/ip/xilinx_fp_fma.dcp] Error 2

please let me know the issue. Thank you also please let know how to Prepare the SD card and the ZedBoard for booting via SD card and Extract the content of the rootfs.tar archive and put it on the second partition of the SD card

OR

it will enough to direct run the "Running applications on PULPino" please let me know Thank you

sunil3690 commented 5 years ago

hi i am running pulpino on FPGA board selected as Zybo not externally connected.

set the environment variable BOARD. In the tcsh script file as steven BOARD "Zybo" also i did not specify the BOAD PART and BOARD NUMBER it will take default XILINX_PART "xc7z020clg484-1" XILINX_BOARD "em.avnet.com:zynq:zed:c" inside the environment variable set "RISCY_RV32F"

and set the vivado toolchain PATH and Xilinx SDK PATH as

export PATH=/root/pulpino/ri5cy_gnu_toolchain/install/bin:$PATH export LD_LIBRARY_PATH=/root/pulpino/Xilinx/Vivado/2019.1/lib/lnx64.o export PATH=/root/pulpino/Xilinx/Vivado/2019.1/bin:$PATH export PATH=/root/pulpino/Xilinx/SDK/2019.1/bin:$PATH export PATH=/root/pulpino/Xilinx/SDK/2019.1/gnu/microblaze/lin/bin:$PATH export PATH=/root/pulpino/Xilinx/SDK/2019.1/gnu/armr5/lin/gcc-arm-none-eabi/bin:$PATH export PATH=/root/pulpino/Xilinx/SDK/2019.1/gnu/microblaze/linux_toolchain/lin64_le/bin:$PATH export PATH=/root/pulpino/Xilinx/DocNav:$PATH

After this i type "make all" targated to "cmake_configure.riscvfloat.gcc.sh" in the fpga directory i am getting an error as root@sunil-Inspiron-3542:~/pulpino/fpga# make all make -C ips/xilinx_fp_fma/ clean all make[1]: Entering directory '/root/pulpino/fpga/ips/xilinx_fp_fma' rm -rf ip/ mkdir -p ip rm -rf xilinx_fp_fma.xpr rm -rf xilinx_fp_fma.hw rm -rf xilinx_fp_fma.data rm -rf xilinx_fp_fma.runs rm -rf xilinx_fp_fma.srcs rm -rf xilinx_fp_fma.cache rm -rf component.xml rm -rf vivado.jou rm -rf vivado.log rm -rf vivado.str rm -rf xgui vivado -mode batch -source tcl/run.tcl

** Vivado v2019.1 (64-bit) SW Build 2552052 on Fri May 24 14:47:09 MDT 2019 IP Build 2548770 on Fri May 24 18:01:18 MDT 2019 ** Copyright 1986-2019 Xilinx, Inc. All Rights Reserved.

source tcl/run.tcl

if { ![info exists ::env(XILINX_PART)] } {

set ::env(XILINX_PART) "xc7z020clg484-1"

}

if { ![info exists ::env(XILINX_BOARD)] } {

set ::env(XILINX_BOARD) "em.avnet.com:zynq:zed:c"

}

set partNumber $::env(XILINX_PART)

set boardName $::env(XILINX_BOARD)

create_project xilinx_fp_fma . -part $partNumber

ERROR: [Common 17-53] User Exception: Project already exists on disk, please use '-force' option to overwrite: /root/pulpino/fpga/ips/xilinx_fp_fma/xilinx_fp_fma.ip_user_files INFO: [Common 17-206] Exiting Vivado at Mon Oct 21 16:41:39 2019... Makefile:4: recipe for target 'all' failed make[1]: [all] Error 1 make[1]: Leaving directory '/root/pulpino/fpga/ips/xilinx_fp_fma' Makefile:33: recipe for target 'ips/xilinx_fp_fma/ip/xilinx_fp_fma.dcp' failed make: [ips/xilinx_fp_fma/ip/xilinx_fp_fma.dcp] Error 2

please let me know the issue. Thank you also please let know how to Prepare the SD card and the ZedBoard for booting via SD card and Extract the content of the rootfs.tar archive and put it on the second partition of the SD card

OR

it will enough to direct run the "Running applications on PULPino" please let me know Thank you

sunil3690 commented 5 years ago

please anyone can reply