
On Fri, Jul 23, 2021 at 3:31 PM Antoine Naud antoine.naud@opsens.com wrote:
Okay ! Thanks for answering,
Here is the error I got when trying to compile using the command (make CROSS_COMPILE=arm-none-linux-gnueabihf- O=CSCM_build CSCM_defconfig all):
In file included from ../include/dm/of.h:11, from ../include/dm/ofnode.h:12, from ../include/asm-generic/gpio.h:10, from ../arch/arm/include/asm/gpio.h:4, from ../arch/arm/cpu/armv8/hisilicon/pinmux.c:10: ../include/dm/of.h: At top level: ../arch/arm/include/asm/global_data.h:117:58: error: invalid register name for ‘gd’ 117 | #define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("x18") | ^~ ../include/dm/of.h:86:1: note: in expansion of macro ‘DECLARE_GLOBAL_DATA_PTR’ 86 | DECLARE_GLOBAL_DATA_PTR; | ^~~~~~~~~~~~~~~~~~~~~~~ ../scripts/Makefile.build:253: recipe for target 'arch/arm/cpu/armv8/hisilicon/pinmux.o' failed make[4]: *** [arch/arm/cpu/armv8/hisilicon/pinmux.o] Error 1 ../scripts/Makefile.build:394: recipe for target 'arch/arm/cpu/armv8/hisilicon' failed make[3]: *** [arch/arm/cpu/armv8/hisilicon] Error 2 ../Makefile:1815: recipe for target 'arch/arm/cpu/armv8' failed make[2]: *** [arch/arm/cpu/armv8] Error 2 /home/antoine/tisdk/build/ti-u-boot/Makefile:551: recipe for target '__build_one_by_one' failed make[1]: *** [__build_one_by_one] Error 2 make[1]: Leaving directory '/home/antoine/tisdk/build/ti-u-boot/CSCM_build' Makefile:177: recipe for target 'sub-make' failed make: *** [sub-make] Error 2 antoine@ubuntu:~/tisdk/build/ti-u-boot$
thanks,
Antoine
-----Message d'origine----- De : Ramon Fried rfried.dev@gmail.com Envoyé : 22 juillet 2021 16:13 À : Antoine Naud antoine.naud@opsens.com Cc : u-boot@lists.denx.de Objet : Re: Help with TI-U-BOOT
On Thu, Jul 22, 2021 at 10:57 PM Antoine Naud antoine.naud@opsens.com wrote:
Hi,
I don't know if I will join someone, but I try anyway ! Can I ask a question about an error I have while compiling the bootloader ?
Thanks, Antoine
Yes, just ask.
Looks like you're using the wrong cross-compiler What instructions are you following for building the project ?