From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8CDBEC4338F for ; Fri, 23 Jul 2021 20:54:31 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 91BB660C51 for ; Fri, 23 Jul 2021 20:54:30 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 91BB660C51 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D965582D96; Fri, 23 Jul 2021 22:54:27 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="O8YLFz77"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7FFBA82DB1; Fri, 23 Jul 2021 22:54:25 +0200 (CEST) Received: from mail-oi1-x234.google.com (mail-oi1-x234.google.com [IPv6:2607:f8b0:4864:20::234]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 69FA782D93 for ; Fri, 23 Jul 2021 22:54:21 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=rfried.dev@gmail.com Received: by mail-oi1-x234.google.com with SMTP id o20so3161273oiw.12 for ; Fri, 23 Jul 2021 13:54:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=xi1t0M5c5otUAuEkFHYRG5dI1rgBunUIK+SfD1I5Pvk=; b=O8YLFz779gkdoo/cZ1AgBO46jf2+LTxAKc03Fqm57dkO76R8ST1UwD/m3cqoGsMkcq tc/+iSPxiDazI3swQC3MQ9eWoVPWp+5KMR6/2nInbtQFq3CkVEvdDCVNSg0cBpDw08Y9 p35u4BLBzc9R0ik/w9fhR1tPvjMZsrscG/o2m9UiMc92gB5bsACPgYVyrVzjZzSTtECo 24BBhLp93whUXVtu5XOL9uAJT+Hg2o5NssX92bAtN0da5vvG3A9KvWZurBTzKAHsDM/q a3PkV/KMJzMaLxMRVKs+3UNUevctMfI6Y0bsLDvdN8mKO6O1q5FNFWz/Sm88iU6xXO1i 1psA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=xi1t0M5c5otUAuEkFHYRG5dI1rgBunUIK+SfD1I5Pvk=; b=b3MZXBW0HDEruAjQaxnzLtNdKSAZ5WwGg2qSizTSD3W0CYDile3R4dlxUy/ak4pIV0 Q2r8JvuTsNYywfBoMv7/GGO+n+h2/zj+USjvXmR9MkfaqN3+JtNOkbRTgfxOzKFlEKRi 4qwrCP/GNOOKDCMi0iTcNynf/2hQvzHlIhbmDib/OgCEbLqGg2h8GzO3fnzMz9EXBofk yWDwX1hAPmTejw7f9J+nmoBseyO4icUmcCHSlbvqWtGBzzvhFrsA22YrpaLDjTSnMXlD r+C54hxRfzmjhOB8fK/Ic2IBznM8lffuiwsRbEjuw4lzqnDkHfQ1USGYL9a7s0kLUYTk PNOg== X-Gm-Message-State: AOAM5320l0vhDFbwVhH9P6w/I43KpF73mQNMGYr2PZ2LVHuNzJ7JMu3l ihdSgfoAcNSddvWSDODCr1sw+mpneABlNuY3lGs= X-Google-Smtp-Source: ABdhPJwUZOwLLxn1rXReImJvxfGe7kbaBa9nMc4fcdlQC9wOj72B6kixzoTqs21sIu7LfKPTk0fH0/6OzaB7veQYofY= X-Received: by 2002:a05:6808:140c:: with SMTP id w12mr1494363oiv.22.1627073659454; Fri, 23 Jul 2021 13:54:19 -0700 (PDT) MIME-Version: 1.0 References: <410550feefdb4927bfd8c41ebe7fd282@SVOExch.Opsens.local> <0a61a99c0fd248d89f79b9d3cd8ee216@SVOExch.Opsens.local> In-Reply-To: From: Ramon Fried Date: Fri, 23 Jul 2021 23:54:08 +0300 Message-ID: Subject: Re: Help with TI-U-BOOT To: Antoine Naud Cc: "u-boot@lists.denx.de" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean On Fri, Jul 23, 2021 at 5:17 PM Antoine Naud wrot= e: > > 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 libss= l-dev bc u-boot-tools python diffstat texinfo gawk chrpath dos2unix wget un= zip 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.1= 2/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.1= 2/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=3D$HOME/gcc-arm-9.2-2019.12-x86_64-arm-none= -linux-gnueabihf > $ export TOOLCHAIN_PATH_ARMV8=3D$HOME/gcc-arm-9.2-2019.12-x86_64-aarch64-= none-linux-gnu > $ MACHINE=3Dadm437x-evm ARAGO_RT_ENABLE=3D1 bitbake tisdk-base-image > > $ git clone git://git.ti.com/ti-u-boot/ti-u-boot.git > $ make CROSS_COMPILE=3Darm-linux-gnueabihf- O=3DCSCM_build CSCM_defconfig= all > > -----Message d'origine----- > De : Ramon Fried > Envoy=C3=A9 : 23 juillet 2021 10:06 > =C3=80 : Antoine Naud > Cc : u-boot@lists.denx.de > Objet : Re: Help with TI-U-BOOT > > On Fri, Jul 23, 2021 at 3:31 PM Antoine Naud wr= ote: > > > > Okay ! Thanks for answering, > > > > Here is the error I got when trying to compile using the command (make = CROSS_COMPILE=3Darm-none-linux-gnueabihf- O=3DCSCM_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 n= ame for =E2=80=98gd=E2=80=99 > > 117 | #define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm= ("x18") > > | ^~ > > ../include/dm/of.h:86:1: note: in expansion of macro =E2=80=98DECLARE_G= LOBAL_DATA_PTR=E2=80=99 > > 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_bu= ild' > > 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 Envoy=C3=A9 : 22 juillet 2021 1= 6:13 > > =C3=80 : Antoine Naud Cc : u-boot@lists.denx.= de > > Objet : Re: Help with TI-U-BOOT > > > > On Thu, Jul 22, 2021 at 10:57 PM Antoine Naud = 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 bootlo= ader ? > > > > > > Thanks, > > > Antoine > > Yes, just ask. > Looks like you're using the wrong cross-compiler What instructions are yo= u following for building the project ? You're using a vendor specific build flow, please take it with them.