VIM3 uboot make fail

aarch64-linux-gnu-cpp: error: unrecognized command line option ‘-mthumb’
aarch64-linux-gnu-cpp: error: unrecognized command line option ‘-mno-sched-prolog’
Makefile:112: recipe for target ‘/home/george/Documents/01_uboot/u-boot-khadas-vims-pie/build/scp_task/user_task.lds’ failed
make[2]: *** [/home/george/Documents/01_uboot/u-boot-khadas-vims-pie/build/scp_task/user_task.lds] Error 1
/home/george/Documents/01_uboot/u-boot-khadas-vims-pie/Makefile:864: recipe for target ‘bl301.bin’ failed
make[1]: *** [bl301.bin] Error 2
Makefile:147: recipe for target ‘sub-make’ failed
make: *** [sub-make] Error 2

Please refer to the below picture.

Have you installed the toolchains?

yes. I can build uboot for VIM2 at the same environment.

Hello @Terry @jasonl @goenjoy

Please help to check this issue.

How did you build uboot for VIM3?

$ cd bootloader/uboot
$ ./mk kvim3
1 Like

thanks. your method works.

1 Like