我是参考https://www.cnblogs.com/DoreenLiu/p/14392442.html安装的 ubuntu-18.04.6-desktop-amd64.iso)

接着参考Intel的 SD卡 image 设计的教程 (https://rocketboards.org/foswiki/Documentation/EmbeddedLinuxBeginnerSGuide) ,遇到问题找不到arm-altera-eabi-gcc参考https://www.cnblogs.com/DoreenLiu/p/15747755.html 解决了。

但是在soceds编译Preloader的时候输入make提示:

/software/spl_bsp/uboot-socfpga/arch/arm/cpu/armv7/socfpga undefined reference ”...“

make[2]: *** [Makefile:178:/home/doreen/DE10_NANO_SoC_FB/software/spl_bsp/uboot-socfpga/spl/u-boot-spl] 错误 1
make[2]: 离开目录“/home/doreen/DE10_NANO_SoC_FB/software/spl_bsp/uboot-socfpga/spl”
make[1]: *** [Makefile:611:spl/u-boot-spl.bin] 错误 2
make[1]: 离开目录“/home/doreen/DE10_NANO_SoC_FB/software/spl_bsp/uboot-socfpga”
make: *** [Makefile:187:uboot-socfpga/spl/u-boot-spl.bin] 错误 2

 

这个原因可能是之前的bsp是在windows系统下产生的 或者是低版本软件下产生的,把之前的\DE10_NANO_SoC_GHRD\software\spl_bsp  删掉了 重新再来  就好了。

 

注:我是直接拿CD 里面的工程DE10_NANO_SoC_GHRD在 Ubuntu他18.04.6 的18.1下编译, 这个工程之前是基于16.0 的 我没有进行任何IP 更新。   我直接在soceds里面 bsp-editor 以后 generate, 然后我在终端 输入make 去编译preloader 的时候 有如上提示。