* Problem to build u-boot
@ 2022-03-15 10:41 Sarmad Ahmad
2022-03-15 11:53 ` Fabio Estevam
0 siblings, 1 reply; 8+ messages in thread
From: Sarmad Ahmad @ 2022-03-15 10:41 UTC (permalink / raw)
To: u-boot
Hi,
i am stundent and try to build u-boot for board cora-z7-10
I build u-boot as follows
export ARCH=arm
export CROSS_COMPILE=gcc-7-arm-linux-gnueabihf-
export DEVICE_TREE="zynq-zc702"
make xilinx_zynq_virt_defconfig
make
I have also tried this export command from unfortunately also without success
CROSS_COMPILE=aarch64-linux-gnu
unfortunately i always get this error:
scripts/kconfig/conf --syncconfig Kconfig
CFG u-boot.cfg
GEN include/autoconf.mk
GEN include/autoconf.mk.dep
CFG spl/u-boot.cfg
GEN spl/include/autoconf.mk
CFGCHK u-boot.cfg
UPD include/generated/version_autogenerated.h
UPD include/generated/timestamp_autogenerated.h
UPD include/generated/dt.h
CC lib/asm-offsets.s
cc1: error: bad value (‘generic-armv7-a’) for ‘-mtune=’ switch
cc1: note: valid arguments to ‘-mtune=’ switch are: nocona core2 nehalem corei7 westmere sandybridge corei7-avx ivybridge core-avx-i haswell core-avx2 broadwell skylake skylake-avx512 cannonlake icelake-client icelake-server cascadelake tigerlake bonnell atom silvermont slm goldmont goldmont-plus tremont knl knm intel x86-64 eden-x2 nano nano-1000 nano-2000 nano-3000 nano-x2 eden-x4 nano-x4 k8 k8-sse3 opteron opteron-sse3 athlon64 athlon64-sse3 athlon-fx amdfam10 barcelona bdver1 bdver2 bdver3 bdver4 znver1 znver2 btver1 btver2 generic native
make[1]: *** [scripts/Makefile.build:143: lib/asm-offsets.s] Fehler 1
make: *** [Makefile:1869: prepare0] Fehler 2
unirtems@unirtems-Aspire-ES1-731:~/u-boot$ exp
thank you for your help
Sarmad
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Problem to build u-boot
2022-03-15 10:41 Problem to build u-boot Sarmad Ahmad
@ 2022-03-15 11:53 ` Fabio Estevam
2022-03-15 14:03 ` AW: " Sarmad Ahmad
0 siblings, 1 reply; 8+ messages in thread
From: Fabio Estevam @ 2022-03-15 11:53 UTC (permalink / raw)
To: Sarmad Ahmad; +Cc: u-boot
Hi Sarmad,
On Tue, Mar 15, 2022 at 8:43 AM Sarmad Ahmad <sarmad101@hotmail.com> wrote:
>
> Hi,
>
> i am stundent and try to build u-boot for board cora-z7-10
>
> I build u-boot as follows
>
>
>
> export ARCH=arm
>
> export CROSS_COMPILE=gcc-7-arm-linux-gnueabihf-
Try:
export ARCH=arm
export CROSS_COMPILE=/usr/bin/arm-linux-gnueabihf-
>
> export DEVICE_TREE="zynq-zc702"
No need for exporting this.
Regards,
Fabio Estevam
^ permalink raw reply [flat|nested] 8+ messages in thread
* AW: Problem to build u-boot
2022-03-15 11:53 ` Fabio Estevam
@ 2022-03-15 14:03 ` Sarmad Ahmad
2022-03-15 20:08 ` Fabio Estevam
0 siblings, 1 reply; 8+ messages in thread
From: Sarmad Ahmad @ 2022-03-15 14:03 UTC (permalink / raw)
To: Fabio Estevam; +Cc: u-boot
Hi,
first thank you for the fast answer
I have tried it but unfortunately still the same error.
The output of mlocate confirms that arm-linux-gnueabihf- is present in the path
/usr/bin/arm-linux-gnueabihf-addr2line
/usr/bin/arm-linux-gnueabihf-ar
/usr/bin/arm-linux-gnueabihf-as
/usr/bin/arm-linux-gnueabihf-c++filt
/usr/bin/arm-linux-gnueabihf-cpp
/usr/bin/arm-linux-gnueabihf-cpp-9
/usr/bin/arm-linux-gnueabihf-dwp
/usr/bin/arm-linux-gnueabihf-elfedit
/usr/bin/arm-linux-gnueabihf-g++
/usr/bin/arm-linux-gnueabihf-g++-9
/usr/bin/arm-linux-gnueabihf-gcc
/usr/bin/arm-linux-gnueabihf-gcc-9
/usr/bin/arm-linux-gnueabihf-gcc-ar
/usr/bin/arm-linux-gnueabihf-gcc-ar-9
/usr/bin/arm-linux-gnueabihf-gcc-nm
/usr/bin/arm-linux-gnueabihf-gcc-nm-9
/usr/bin/arm-linux-gnueabihf-gcc-ranlib
/usr/bin/arm-linux-gnueabihf-gcc-ranlib-9
/usr/bin/arm-linux-gnueabihf-gcov
/usr/bin/arm-linux-gnueabihf-gcov-9
/usr/bin/arm-linux-gnueabihf-gcov-dump
/usr/bin/arm-linux-gnueabihf-gcov-dump-9
/usr/bin/arm-linux-gnueabihf-gcov-tool
/usr/bin/arm-linux-gnueabihf-gcov-tool-9
/usr/bin/arm-linux-gnueabihf-gprof
/usr/bin/arm-linux-gnueabihf-ld
/usr/bin/arm-linux-gnueabihf-ld.bfd
/usr/bin/arm-linux-gnueabihf-ld.gold
/usr/bin/arm-linux-gnueabihf-nm
/usr/bin/arm-linux-gnueabihf-objcopy
/usr/bin/arm-linux-gnueabihf-objdump
/usr/bin/arm-linux-gnueabihf-ranlib
/usr/bin/arm-linux-gnueabihf-readelf
/usr/bin/arm-linux-gnueabihf-size
/usr/bin/arm-linux-gnueabihf-strings
/usr/bin/arm-linux-gnueabihf-strip
________________________________
Von: Fabio Estevam <festevam@gmail.com>
Gesendet: Dienstag, 15. März 2022 12:53
An: Sarmad Ahmad <sarmad101@hotmail.com>
Cc: u-boot@lists.denx.de <u-boot@lists.denx.de>
Betreff: Re: Problem to build u-boot
Hi Sarmad,
On Tue, Mar 15, 2022 at 8:43 AM Sarmad Ahmad <sarmad101@hotmail.com> wrote:
>
> Hi,
>
> i am stundent and try to build u-boot for board cora-z7-10
>
> I build u-boot as follows
>
>
>
> export ARCH=arm
>
> export CROSS_COMPILE=gcc-7-arm-linux-gnueabihf-
Try:
export ARCH=arm
export CROSS_COMPILE=/usr/bin/arm-linux-gnueabihf-
>
> export DEVICE_TREE="zynq-zc702"
No need for exporting this.
Regards,
Fabio Estevam
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Problem to build u-boot
2022-03-15 14:03 ` AW: " Sarmad Ahmad
@ 2022-03-15 20:08 ` Fabio Estevam
2022-03-16 6:21 ` AW: " Sarmad Ahmad
0 siblings, 1 reply; 8+ messages in thread
From: Fabio Estevam @ 2022-03-15 20:08 UTC (permalink / raw)
To: Sarmad Ahmad; +Cc: u-boot
On Tue, Mar 15, 2022 at 11:03 AM Sarmad Ahmad <sarmad101@hotmail.com> wrote:
>
> Hi,
> first thank you for the fast answer
> I have tried it but unfortunately still the same error.
Which U-Boot version are you using?
Please try a recent version, such as U-Boot 2022.01, and paste all
your commands.
^ permalink raw reply [flat|nested] 8+ messages in thread
* AW: Problem to build u-boot
2022-03-15 20:08 ` Fabio Estevam
@ 2022-03-16 6:21 ` Sarmad Ahmad
2022-03-16 12:50 ` Fabio Estevam
0 siblings, 1 reply; 8+ messages in thread
From: Sarmad Ahmad @ 2022-03-16 6:21 UTC (permalink / raw)
To: Fabio Estevam; +Cc: u-boot
I used the version 2021 now I used the 2022.01 unfortunately still the same error
followed the instructions on
https://u-boot.readthedocs.io/en/stable/build/source.html
1.
git clone https://github.com/u-boot/u-boot
2.
cd u-boot
3.
git checkout 2022.01
4.
sudo apt-get install gcc gcc-aarch64-linux-gnu
i also tried this
apt-get install crossbuild-essential-armhf
5.
sudo apt-get install bc bison build-essential coccinelle \
device-tree-compiler dfu-util efitools flex gdisk liblz4-tool \
libguestfs-tools libncurses-dev libpython3-dev libsdl2-dev libssl-dev \
lzma-alone openssl python3 python3-coverage python3-pyelftools \
python3-pytest python3-sphinxcontrib.apidoc python3-sphinx-rtd-theme swig
6.
export ARCH=arm
export CROSS_COMPILE=/usr/bin/arm-linux-gnueabihf-
also have export CROSS_COMPILE=arm-linux-gnueabihf-
also have export CROSS_COMPILE=gcc-7-arm-linux-gnueabihf-
make xilinx_zynq_virt_defconfig
make
when i do export -p i see the export in the terminal before i do make
TY
________________________________
Von: Fabio Estevam <festevam@gmail.com>
Gesendet: Dienstag, 15. März 2022 21:08
An: Sarmad Ahmad <sarmad101@hotmail.com>
Cc: u-boot@lists.denx.de <u-boot@lists.denx.de>
Betreff: Re: Problem to build u-boot
On Tue, Mar 15, 2022 at 11:03 AM Sarmad Ahmad <sarmad101@hotmail.com> wrote:
>
> Hi,
> first thank you for the fast answer
> I have tried it but unfortunately still the same error.
Which U-Boot version are you using?
Please try a recent version, such as U-Boot 2022.01, and paste all
your commands.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Problem to build u-boot
2022-03-16 6:21 ` AW: " Sarmad Ahmad
@ 2022-03-16 12:50 ` Fabio Estevam
2022-03-17 7:26 ` AW: " Sarmad Ahmad
0 siblings, 1 reply; 8+ messages in thread
From: Fabio Estevam @ 2022-03-16 12:50 UTC (permalink / raw)
To: Sarmad Ahmad; +Cc: u-boot
On Wed, Mar 16, 2022 at 3:21 AM Sarmad Ahmad <sarmad101@hotmail.com> wrote:
>
> I used the version 2021 now I used the 2022.01 unfortunately still the same error
> followed the instructions on
> https://u-boot.readthedocs.io/en/stable/build/source.html
>
> 1.
> git clone https://github.com/u-boot/u-boot
>
> 2.
> cd u-boot
>
> 3.
> git checkout 2022.01
>
> 4.
> sudo apt-get install gcc gcc-aarch64-linux-gnu
> i also tried this
> apt-get install crossbuild-essential-armhf
>
> 5.
> sudo apt-get install bc bison build-essential coccinelle \
> device-tree-compiler dfu-util efitools flex gdisk liblz4-tool \
> libguestfs-tools libncurses-dev libpython3-dev libsdl2-dev libssl-dev \
> lzma-alone openssl python3 python3-coverage python3-pyelftools \
> python3-pytest python3-sphinxcontrib.apidoc python3-sphinx-rtd-theme swig
>
> 6.
> export ARCH=arm
>
> export CROSS_COMPILE=/usr/bin/arm-linux-gnueabihf-
> also have export CROSS_COMPILE=arm-linux-gnueabihf-
> also have export CROSS_COMPILE=gcc-7-arm-linux-gnueabihf-
>
> make xilinx_zynq_virt_defconfig
> make
What is the output you get for the following commands?
/usr/bin/arm-linux-gnueabihf-gcc --version
export ARCH=arm
export CROSS_COMPILE=/usr/bin/arm-linux-gnueabihf-
make mrproper
make xilinx_zynq_virt_defconfig
make
^ permalink raw reply [flat|nested] 8+ messages in thread
* AW: Problem to build u-boot
2022-03-16 12:50 ` Fabio Estevam
@ 2022-03-17 7:26 ` Sarmad Ahmad
2022-03-17 11:05 ` Fabio Estevam
0 siblings, 1 reply; 8+ messages in thread
From: Sarmad Ahmad @ 2022-03-17 7:26 UTC (permalink / raw)
To: Fabio Estevam; +Cc: u-boot
this is the output of /usr/bin/arm-linux-gnueabihf-gcc --version
arm-linux-gnueabihf-gcc (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Thanks with make mrproper it works now is that so finally like make clean?
or can you tell me what the problem was just to understand it?
Thank you
________________________________
Von: Fabio Estevam <festevam@gmail.com>
Gesendet: Mittwoch, 16. März 2022 13:50
An: Sarmad Ahmad <sarmad101@hotmail.com>
Cc: u-boot@lists.denx.de <u-boot@lists.denx.de>
Betreff: Re: Problem to build u-boot
On Wed, Mar 16, 2022 at 3:21 AM Sarmad Ahmad <sarmad101@hotmail.com> wrote:
>
> I used the version 2021 now I used the 2022.01 unfortunately still the same error
> followed the instructions on
> https://u-boot.readthedocs.io/en/stable/build/source.html
>
> 1.
> git clone https://github.com/u-boot/u-boot
>
> 2.
> cd u-boot
>
> 3.
> git checkout 2022.01
>
> 4.
> sudo apt-get install gcc gcc-aarch64-linux-gnu
> i also tried this
> apt-get install crossbuild-essential-armhf
>
> 5.
> sudo apt-get install bc bison build-essential coccinelle \
> device-tree-compiler dfu-util efitools flex gdisk liblz4-tool \
> libguestfs-tools libncurses-dev libpython3-dev libsdl2-dev libssl-dev \
> lzma-alone openssl python3 python3-coverage python3-pyelftools \
> python3-pytest python3-sphinxcontrib.apidoc python3-sphinx-rtd-theme swig
>
> 6.
> export ARCH=arm
>
> export CROSS_COMPILE=/usr/bin/arm-linux-gnueabihf-
> also have export CROSS_COMPILE=arm-linux-gnueabihf-
> also have export CROSS_COMPILE=gcc-7-arm-linux-gnueabihf-
>
> make xilinx_zynq_virt_defconfig
> make
What is the output you get for the following commands?
/usr/bin/arm-linux-gnueabihf-gcc --version
export ARCH=arm
export CROSS_COMPILE=/usr/bin/arm-linux-gnueabihf-
make mrproper
make xilinx_zynq_virt_defconfig
make
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Problem to build u-boot
2022-03-17 7:26 ` AW: " Sarmad Ahmad
@ 2022-03-17 11:05 ` Fabio Estevam
0 siblings, 0 replies; 8+ messages in thread
From: Fabio Estevam @ 2022-03-17 11:05 UTC (permalink / raw)
To: Sarmad Ahmad; +Cc: u-boot
Hi Sarmad,
Please avoid top-posting in mailing lists.
On Thu, Mar 17, 2022 at 4:26 AM Sarmad Ahmad <sarmad101@hotmail.com> wrote:
> Thanks with make mrproper it works now is that so finally like make clean?
> or can you tell me what the problem was just to understand it?
It is a good practice to call 'make mrproper' to clean all previous
build artifacts and then
you can safely start a fresh one.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2022-03-17 11:05 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-15 10:41 Problem to build u-boot Sarmad Ahmad
2022-03-15 11:53 ` Fabio Estevam
2022-03-15 14:03 ` AW: " Sarmad Ahmad
2022-03-15 20:08 ` Fabio Estevam
2022-03-16 6:21 ` AW: " Sarmad Ahmad
2022-03-16 12:50 ` Fabio Estevam
2022-03-17 7:26 ` AW: " Sarmad Ahmad
2022-03-17 11:05 ` Fabio Estevam
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.