Error using make -f Makefile.e300artydevkit mcs


#1

Not sure where to go from here

dkhayes117@dkhayes117-Alienware-13-R2:~/freedom$ make -f Makefile.e300artydevkit mcs
make -C /home/dkhayes117/freedom/bootrom/xip romgen
make[1]: Entering directory '/home/dkhayes117/freedom/bootrom/xip'
/bin/riscv64-unknown-elf-gcc -march=rv32imac -mabi=ilp32 -O2 -std=gnu11 -Wall -I. -nostartfiles -fno-common -g -DXIP_TARGET_ADDR=0x20400000 -DDEVICE_TREE='"/home/dkhayes117/freedom/builds/e300artydevkit/sifive.freedom.everywhere.e300artydevkit.E300ArtyDevKitConfig.dtb"' -static -nostdlib -o /home/dkhayes117/freedom/builds/e300artydevkit/xip.elf xip.S
make[1]: /bin/riscv64-unknown-elf-gcc: Command not found
Makefile:17: recipe for target '/home/dkhayes117/freedom/builds/e300artydevkit/xip.elf' failed
make[1]: *** [/home/dkhayes117/freedom/builds/e300artydevkit/xip.elf] Error 127
make[1]: Leaving directory '/home/dkhayes117/freedom/bootrom/xip'
common.mk:68: recipe for target '/home/dkhayes117/freedom/builds/e300artydevkit/sifive.freedom.everywhere.e300artydevkit.E300ArtyDevKitConfig.rom.v' failed
make: *** [/home/dkhayes117/freedom/builds/e300artydevkit/sifive.freedom.everywhere.e300artydevkit.E300ArtyDevKitConfig.rom.v] Error 2

#2

I think i had the RISCV environment variable wrong, changed it and now get this error, and it seems to get further than before

dkhayes117@dkhayes117-Alienware-13-R2:~/freedom$ make -f Makefile.e300artydevkit mcs
make -C /home/dkhayes117/freedom/bootrom/xip romgen
make[1]: Entering directory '/home/dkhayes117/freedom/bootrom/xip'
/home/dkhayes117/riscv//bin/riscv64-unknown-elf-gcc -march=rv32imac -mabi=ilp32 -O2 -std=gnu11 -Wall -I. -nostartfiles -fno-common -g -DXIP_TARGET_ADDR=0x20400000 -DDEVICE_TREE='"/home/dkhayes117/freedom/builds/e300artydevkit/sifive.freedom.everywhere.e300artydevkit.E300ArtyDevKitConfig.dtb"' -static -nostdlib -o /home/dkhayes117/freedom/builds/e300artydevkit/xip.elf xip.S
/home/dkhayes117/riscv//bin/riscv64-unknown-elf-objcopy -O binary /home/dkhayes117/freedom/builds/e300artydevkit/xip.elf /home/dkhayes117/freedom/builds/e300artydevkit/xip.bin
od -t x4 -An -w4 -v /home/dkhayes117/freedom/builds/e300artydevkit/xip.bin > /home/dkhayes117/freedom/builds/e300artydevkit/xip.hex
/home/dkhayes117/freedom/rocket-chip/scripts/vlsi_rom_gen /home/dkhayes117/freedom/builds/e300artydevkit/sifive.freedom.everywhere.e300artydevkit.E300ArtyDevKitConfig.rom.conf /home/dkhayes117/freedom/builds/e300artydevkit/xip.hex > /home/dkhayes117/freedom/builds/e300artydevkit/rom.v
make[1]: Leaving directory '/home/dkhayes117/freedom/bootrom/xip'
mv /home/dkhayes117/freedom/builds/e300artydevkit/rom.v /home/dkhayes117/freedom/builds/e300artydevkit/sifive.freedom.everywhere.e300artydevkit.E300ArtyDevKitConfig.rom.v
echo /home/dkhayes117/freedom/rocket-chip/src/main/resources/vsrc/AsyncResetReg.v /home/dkhayes117/freedom/rocket-chip/src/main/resources/vsrc/plusarg_reader.v /home/dkhayes117/freedom/sifive-blocks/vsrc/SRLatch.v /home/dkhayes117/freedom/fpga-shells/xilinx/common/vsrc/PowerOnResetFPGAOnly.v /home/dkhayes117/freedom/builds/e300artydevkit/sifive.freedom.everywhere.e300artydevkit.E300ArtyDevKitConfig.rom.v /home/dkhayes117/freedom/builds/e300artydevkit/sifive.freedom.everywhere.e300artydevkit.E300ArtyDevKitConfig.v > /home/dkhayes117/freedom/builds/e300artydevkit/sifive.freedom.everywhere.e300artydevkit.E300ArtyDevKitConfig.vsrcs.F
cd /home/dkhayes117/freedom/builds/e300artydevkit; vivado \
	-nojournal -mode batch \
	-source /home/dkhayes117/freedom/fpga-shells/xilinx/common/tcl/vivado.tcl \
	-tclargs \
	-top-module "E300ArtyDevKitFPGAChip" \
	-F "/home/dkhayes117/freedom/builds/e300artydevkit/sifive.freedom.everywhere.e300artydevkit.E300ArtyDevKitConfig.vsrcs.F" \
	-ip-vivado-tcls "" \
	-board "arty"
/bin/sh: 1: vivado: not found
common.mk:81: recipe for target '/home/dkhayes117/freedom/builds/e300artydevkit/obj/E300ArtyDevKitFPGAChip.bit' failed
make: *** [/home/dkhayes117/freedom/builds/e300artydevkit/obj/E300ArtyDevKitFPGAChip.bit] Error 127

#3

Finally got the make file to work. I was using Vivado Lab which didn’t want to work. I downloaded Vivado HLx Webpack and it worked. Now I’m having trouble getting the board to show up in the hardware manager in Vivado. Any tricks for getting the board to show up via usb?


#4

Found this link https://www.xilinx.com/support/answers/54381.html?_ga=2.100043422.1680808084.1578187830-1613548186.1578187830 that shows how to do a clean re-install of the cable drivers, this fixed the problem