Help with TI-U-BOOT

Antoine Naud antoine.naud at opsens.com
Fri Jul 23 16:17:47 CEST 2021


Here is the full list of my commands:

$ sudo apt-get update
$ sudo apt-get install git-core
$ sudo apt-get install build-essential autoconf automake bison flex libssl-dev bc u-boot-tools python diffstat texinfo gawk chrpath dos2unix wget unzip socat doxygen libc6:i386 libncurses5:i386 libstdc++6:i386 libz1:i386 g++-multilib
$ sudo apt-get update
$ sudo apt-get install python3.8
$ sudo apt-get install python3-distutils
$ sudo apt-get update
$ sudo dpkg-reconfigure dash

$ wget https://developer.arm.com/-/media/Files/downloads/gnu-a/9.2-2019.12/binrel/gcc-arm-9.2-2019.12-x86_64-arm-none-linux-gnueabihf.tar.xz
$ tar -Jxvf gcc-arm-9.2-2019.12-x86_64-arm-none-linux-gnueabihf.tar.xz -C $HOME
$ wget https://developer.arm.com/-/media/Files/downloads/gnu-a/9.2-2019.12/binrel/gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu.tar.xz
$ tar -Jxvf gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu.tar.xz -C $HOME

$ git clone git://arago-project.org/git/projects/oe-layersetup.git tisdk
$ cd tisdk
$ ./oe-layertool-setup.sh -f configs/coresdk/coresdk-07.03.00.005-config.txt
$ cd build
$ . conf/setenv
$ export TOOLCHAIN_PATH_ARMV7=$HOME/gcc-arm-9.2-2019.12-x86_64-arm-none-linux-gnueabihf
$ export TOOLCHAIN_PATH_ARMV8=$HOME/gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu
$ MACHINE=adm437x-evm ARAGO_RT_ENABLE=1 bitbake tisdk-base-image

$ git clone git://git.ti.com/ti-u-boot/ti-u-boot.git
$ make CROSS_COMPILE=arm-linux-gnueabihf- O=CSCM_build CSCM_defconfig all

-----Message d'origine-----
De : Ramon Fried <rfried.dev at gmail.com> 
Envoyé : 23 juillet 2021 10:06
À : Antoine Naud <antoine.naud at opsens.com>
Cc : u-boot at lists.denx.de
Objet : Re: Help with TI-U-BOOT

On Fri, Jul 23, 2021 at 3:31 PM Antoine Naud <antoine.naud at 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 at ubuntu:~/tisdk/build/ti-u-boot$
>
> thanks,
>
> Antoine
>
> -----Message d'origine-----
> De : Ramon Fried <rfried.dev at gmail.com> Envoyé : 22 juillet 2021 16:13 
> À : Antoine Naud <antoine.naud at opsens.com> Cc : u-boot at lists.denx.de 
> Objet : Re: Help with TI-U-BOOT
>
> On Thu, Jul 22, 2021 at 10:57 PM Antoine Naud <antoine.naud at 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 ?


More information about the U-Boot mailing list