Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UBOOT build fails with missing default configuration #26

Open
pwittich opened this issue Jun 16, 2020 · 4 comments
Open

UBOOT build fails with missing default configuration #26

pwittich opened this issue Jun 16, 2020 · 4 comments

Comments

@pwittich
Copy link

I'm trying to build an image for a Mars XU3 with the EB1 base board. The UBOOT build fails as follows. This is in a docker image based on Ubuntu 14.04 LTS with the packages as described in the user documentation.

The "Building Linux" step appears to be running ok.

Any help would be appreciated.

From the script:

builduser@adc77121fb2e:/bsp-xilinx$ ./build.sh -d Zynq-Ultrascale+/Mars_XU3/Mars_EB1/MMC
INFO: Enclustra Build Environment (v1.8.2-f8ef009)
Running under Python version 2.7.6.

Copyright (c) 2015-2017 Enclustra GmbH, Switzerland.
All rights reserved.


INFO: Fetching U-Boot
+git submodule init xilinx-uboot
+git submodule update --remote --depth 1 xilinx-uboot
+git fetch --depth 1 origin v1.8.2
+git checkout FETCH_HEAD
Target U-Boot fetched
INFO: Fetching Linux
+git submodule init xilinx-linux
+git submodule update --remote --depth 1 xilinx-linux
+git fetch --depth 1 origin v1.8.2
+git checkout FETCH_HEAD
Target Linux fetched
INFO: Fetching Buildroot
+git submodule init buildroot-rootfs
+git submodule update --remote --depth 1 buildroot-rootfs
+git fetch --depth 1 origin v1.8.2
+git checkout FETCH_HEAD
Target Buildroot fetched
+curl -O http://www.enclustra.com/binaries/enclustra-bsp/v1.8.2/arm-none-linux-gnueabi-static-i686.tar.bz2
+curl -O http://www.enclustra.com/binaries/enclustra-bsp/v1.8.2/aarch64-none-linux-gnueabi-static-i686.tar.gz
+curl -O http://www.enclustra.com/binaries/enclustra-bsp/v1.8.2/uboot-tools-i686-static.tar.gz
+curl -O http://www.enclustra.com/binaries/enclustra-bsp/v1.8.2/device-tree-compiler-i686-static.tar.gz
+curl -O http://www.enclustra.com/binaries/enclustra-bsp/v1.8.2/mkbootimage-e3796c3.tar.gz
INFO: Building U-Boot
+make CROSS_COMPILE="aarch64-none-linux-gnueabi-" CROSS32CC="arm-none-linux-gnueabi-gcc" enclustra_ebe_generated_defconfig -j4
ERROR: Error running make CROSS_COMPILE="aarch64-none-linux-gnueabi-" CROSS32CC="arm-none-linux-gnueabi-gcc" enclustra_ebe_generated_defconfig -j4 for U-Boot
+make CROSS_COMPILE="aarch64-none-linux-gnueabi-" CROSS32CC="arm-none-linux-gnueabi-gcc" -j4
ERROR: Error running make CROSS_COMPILE="aarch64-none-linux-gnueabi-" CROSS32CC="arm-none-linux-gnueabi-gcc" -j4 for U-Boot
+cat configs/enclustra_zynqmp_mars_xu3_defconfig configs/enclustra_env_on_sd.appendix > configs/enclustra_ebe_generated_defconfig
ERROR: Error running cat configs/enclustra_zynqmp_mars_xu3_defconfig configs/enclustra_env_on_sd.appendix > configs/enclustra_ebe_generated_defconfig for U-Boot
+mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n "Uboot mmc start script" -d bscripts/mmcboot-rootfs-us bscripts/uboot.scr
ERROR: Error running mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n "Uboot mmc start script" -d bscripts/mmcboot-rootfs-us bscripts/uboot.scr for U-Boot
+mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n "Uboot mmc ramdisk start script" -d bscripts/mmcboot-ramdisk-us bscripts/uboot_ramdisk.scr
ERROR: Error running mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n "Uboot mmc ramdisk start script" -d bscripts/mmcboot-ramdisk-us bscripts/uboot_ramdisk.scr for U-Boot

From the build log:

make CROSS_COMPILE="aarch64-none-linux-gnueabi-" CROSS32CC="arm-none-linux-gnueabi-gcc" enclustra_ebe_generated_defconfig -j4
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  SHIPPED scripts/kconfig/zconf.tab.c
  SHIPPED scripts/kconfig/zconf.lex.c
  SHIPPED scripts/kconfig/zconf.hash.c
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/conf
***
*** Can't find default configuration "arch/../configs/enclustra_ebe_generated_defconfig"!
***
make[1]: *** [enclustra_ebe_generated_defconfig] Error 1
make: *** [enclustra_ebe_generated_defconfig] Error 2
Error running make CROSS_COMPILE="aarch64-none-linux-gnueabi-" CROSS32CC="arm-none-linux-gnueabi-gcc" enclustra_ebe_generated_defconfig -j4 for U-Boot
make CROSS_COMPILE="aarch64-none-linux-gnueabi-" CROSS32CC="arm-none-linux-gnueabi-gcc" -j4
scripts/kconfig/conf  --silentoldconfig Kconfig
***
*** Configuration file ".config" not found!
***
*** Please run some configurator (e.g. "make oldconfig" or
*** "make menuconfig" or "make xconfig").
***
make[2]: *** [silentoldconfig] Error 1
make[1]: *** [silentoldconfig] Error 2
make: *** No rule to make target `include/config/auto.conf', needed by `include/config/uboot.release'.  Stop.
Error running make CROSS_COMPILE="aarch64-none-linux-gnueabi-" CROSS32CC="arm-none-linux-gnueabi-gcc" -j4 for U-Boot
@tholzsche
Copy link
Contributor

Hi,

Somehow it looks like the cause of the issue is based on the failure of the cat command. Can verify that the configuration files exist? And can you further supply the full build.log?

But I would suggest that you simply set up the docker image again and install the required packages as described in the docs (https://enclustra.github.io/ebe-docs/user-doc-xilinx/index_xilinx.html#ubuntu-14-04-lts) e.g.:

docker run -it ubuntu:trusty /bin/bash
~/# cat /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.6 LTS"
~/# apt update
~/# apt install -y autoconf bc build-essential curl git mercurial \
                    libc6-i386 python python-dialog unzip wget
~/# git clone https://github.com/enclustra-bsp/bsp-xilinx
~/#  cd bsp-xilinx
~/#  ./build.sh -d Zynq-Ultrascale+/Mars_XU3/Mars_EB1/MMC
...
INFO: Building U-Boot
+cat configs/enclustra_zynqmp_mars_xu3_defconfig configs/enclustra_env_on_sd.appendix > configs/enclustra_ebe_generated_defconfig
cat configs/enclustra_zynqmp_mars_xu3_defconfig configs/enclustra_env_on_sd.appendix > configs/enclustra_ebe_generated_defconfig completed successfully
+make CROSS_COMPILE="aarch64-none-linux-gnueabi-" CROSS32CC="arm-none-linux-gnueabi-gcc" enclustra_ebe_generated_defconfig -j7
make CROSS_COMPILE="aarch64-none-linux-gnueabi-" CROSS32CC="arm-none-linux-gnueabi-gcc" enclustra_ebe_generated_defconfig completed successfully
+make CROSS_COMPILE="aarch64-none-linux-gnueabi-" CROSS32CC="arm-none-linux-gnueabi-gcc" -j7
make CROSS_COMPILE="aarch64-none-linux-gnueabi-" CROSS32CC="arm-none-linux-gnueabi-gcc" completed successfully
+mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n "Uboot mmc start script" -d bscripts/mmcboot-rootfs-us bscripts/uboot.scr
mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n "Uboot mmc start script" -d bscripts/mmcboot-rootfs-us bscripts/uboot.scr completed successfully
+mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n "Uboot mmc ramdisk start script" -d bscripts/mmcboot-ramdisk-us bscripts/uboot_ramdisk.scr
mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n "Uboot mmc ramdisk start script" -d bscripts/mmcboot-ramdisk-us bscripts/uboot_ramdisk.scr completed successfully
INFO: Building Linux
...

Greets Till

@pwittich
Copy link
Author

Hi Till, Thanks for your response. I am attaching the full build log.
build.log
The docker was built with all those packages, but is a slightly older subversion of LTS 14.04:

builduser@adc77121fb2e:/bsp-xilinx$ cat /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.5 LTS"

Re that cat command failing, I can't really tell from where the command is being run, but a search of the file system suggests it doesn't exist.

@pwittich
Copy link
Author

pwittich commented Jun 18, 2020

I just deleted and re-did the git clone command and now it fails differently, see new build log also attached...
build.log

(base) ➜  Docker docker run -it --rm -v ~/src/bsp-xilinx:/bsp-xilinx pwittich/buildtools 
builduser@f4a8475b034c:/bsp-xilinx$ ./build.sh -d Zynq-Ultrascale+/Mars_XU3/Mars_EB1/MMC
Submodule 'buildscripts' (https://github.com/enclustra-bsp/enclustra-buildscripts) registered for path 'buildscripts'
Submodule 'sources/buildroot-rootfs' (https://github.com/enclustra-bsp/busybox-rootfs) registered for path 'sources/buildroot-rootfs'
Submodule 'sources/xilinx-linux' (https://github.com/enclustra-bsp/xilinx-linux) registered for path 'sources/xilinx-linux'
Submodule 'sources/xilinx-uboot' (https://github.com/enclustra-bsp/xilinx-uboot) registered for path 'sources/xilinx-uboot'
Cloning into 'buildscripts'...
remote: Enumerating objects: 6, done.
remote: Counting objects: 100% (6/6), done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 1447 (delta 0), reused 2 (delta 0), pack-reused 1441
Receiving objects: 100% (1447/1447), 1.33 MiB | 885.00 KiB/s, done.
Resolving deltas: 100% (859/859), done.
Checking connectivity... done.
Submodule path 'buildscripts': checked out '9fdb3be68b885d583258b56a88126b9c2ee77a85'
INFO: Enclustra Build Environment (v1.8.2-9fdb3be)
Running under Python version 2.7.6.

Copyright (c) 2015-2020 Enclustra GmbH, Switzerland.
All rights reserved.


INFO: Fetching U-Boot
+git submodule init xilinx-uboot
+git submodule update --remote --depth 1 xilinx-uboot
+git fetch --depth 1 origin v1.8.2
+git checkout FETCH_HEAD
Target U-Boot fetched
INFO: Fetching Linux
+git submodule init xilinx-linux
+git submodule update --remote --depth 1 xilinx-linux
+git fetch --depth 1 origin v1.8.2
+git checkout FETCH_HEAD
Target Linux fetched
INFO: Fetching Buildroot
+git submodule init buildroot-rootfs
+git submodule update --remote --depth 1 buildroot-rootfs
+git fetch --depth 1 origin v1.8.2
+git checkout FETCH_HEAD
Target Buildroot fetched
+curl -O http://www.enclustra.com/binaries/enclustra-bsp/v1.8.2/arm-none-linux-gnueabi-static-i686.tar.bz2
+curl -O http://www.enclustra.com/binaries/enclustra-bsp/v1.8.2/aarch64-none-linux-gnueabi-static-i686.tar.gz
ERROR: Failed to acquire toolchain, skipping build! [Errno 2] No such file or directory
INFO: --------------------------------------------------------------------------------
ERROR: BUILD FAILED
INFO: Device: Zynq-Ultrascale+ Mars XU3 Mars EB1 MMC 
INFO: Targets: U-Boot (fetch + build), Buildroot (fetch + build), Linux (fetch + build) 
INFO: Binaries: ZU3EG, Industrial Temp., Speed -2

@tholzsche
Copy link
Contributor

I'm sorry this looks like a docker problem. Either a fault in docker itself or an incorrect usage. Maybe this could help: https://docs.docker.com/storage/volumes/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants