關(guān)于我這FPGA上riscv跑linux的那些事

直接下載up的工程到執(zhí)行
make CONFIG=rocket64b2 BOARD=vc707 vivado-tcl
的時候報錯:
*****/vivado-risc-v/workspace/gcc/riscv/bin/../lib/gcc/risCV64-unknown-elf/7.2.0/../../../../risCV64-unknown-elf/bin/ld: *****/vivado-risc-v/workspace/gcc/riscv/bin/../libexec/gcc/risCV64-unknown-elf/7.2.0/liblto_plugin.so: error loading plugin: *****/vivado-risc-v/workspace/gcc/riscv/bin/../libexec/gcc/risCV64-unknown-elf/7.2.0/liblto_plugin.so: file too short?
把這個鏈接文件刪除后重新鏈接,問題解決:
rm *****/vivado-risc-v/workspace/gcc/riscv/bin/../libexec/gcc/risCV64-unknown-elf/7.2.0/liblto_plugin.so
ln -s *****/vivado-risc-v/workspace/gcc/riscv/bin/../libexec/gcc/risCV64-unknown-elf/7.2.0/liblto_plugin.so *****/vivado-risc-v/workspace/gcc/riscv/bin/../libexec/gcc/risCV64-unknown-elf/7.2.0/liblto_plugin.so
我不知道這是為什么,卡了兩天