Jump to content

Trying to build Armbian for OrangePI Zero under Docker... No luck.


Recommended Posts

Hi,
I made a container based on xenial.
 

 ./compile.sh BOARD=orangepizero BRANCH=next KERNEL_ONLY=no RELEASE=stretch
[ o.k. ] Using config file [ config-default.conf ]
[ o.k. ] This script will try to update
remote: Counting objects: 10, done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 10 (delta 4), reused 6 (delta 4), pack-reused 0
Unpacking objects: 100% (10/10), done.
From https://github.com/armbian/build
   579e17a..e8906ed  development -> origin/development
Already up-to-date.
Already on 'master'
Your branch is up-to-date with 'origin/master'.
[ o.k. ] Command line: setting BOARD to [ orangepizero ]
[ o.k. ] Command line: setting BRANCH to [ next ]
[ o.k. ] Command line: setting KERNEL_ONLY to [ no ]
[ o.k. ] Command line: setting RELEASE to [ stretch ]
[ o.k. ] Preparing [ host ]
[ o.k. ] Build host OS release [ xenial ]
[ o.k. ] Running in container [ docker ]
mount: permission denied
mount: permission denied
update-binfmts: warning: Couldn't mount the binfmt_misc filesystem on /proc/sys/fs/binfmt_misc.
mount: permission denied
update-binfmts: warning: Couldn't mount the binfmt_misc filesystem on /proc/sys/fs/binfmt_misc.
[ .... ] Downloading [ gcc-linaro-arm-linux-gnueabihf-4.8-2014.04_linux ]
#################################################                         68.7%

I don't know if this information is meaningful:

[ o.k. ] Checking git sources [ u-boot v2017.11 ]
[ .... ] Remote URL does not match, removing existing local copy
[ .... ] Creating local copy
[ .... ] Fetching updates
fatal: dumb http transport does not support --depth
[ .... ] Checking out
error: pathspec 'FETCH_HEAD' did not match any file(s) known to git.

Because later on, I have

[ o.k. ] Cleaning output/debs for [ orangepizero next ]
[ o.k. ] Cleaning [ u-boot/v2017.11 ]
grep: /build/cache/sources/u-boot/v2017.11/Makefile: No such file or directory
grep: /build/cache/sources/u-boot/v2017.11/Makefile: No such file or directory
grep: /build/cache/sources/u-boot/v2017.11/Makefile: No such file or directory
grep: /build/cache/sources/u-boot/v2017.11/Makefile: No such file or directory
[ o.k. ] Compiling u-boot [ 0 ]
[ o.k. ] Compiler version [ arm-linux-gnueabihf-gcc 7.2.1 ]
[ .... ] Checking out sources
error: pathspec 'HEAD' did not match any file(s) known to git.
[ o.k. ] Cleaning [ u-boot/v2017.11 ]
[ o.k. ] Started patching process for [ u-boot sunxi-orangepizero-next ]
[ o.k. ] Looking for user patches in [ userpatches/u-boot/u-boot-sunxi ]
[ warn ] * [l][c] 0020-sunxi-call-fdt_fixup_ethernet-again-to-set-macaddr-f.patch [ failed ]
[ warn ] * [l][c] 4kfix-limit-screen-to-full-hd.patch [ failed ]
[ warn ] * [l][c] Add-A20-Olimex-SOM204-EVB-board.patch [ failed ]
[ warn ] * [l][c] add-a20-olinuxino-micro-emmc-support.patch [ failed ]
[ warn ] * [l][c] add-a20-optional-eMMC.patch [ failed ]
[ warn ] * [l][c] add-bananapi-bpi-m2-zero.patch [ failed ]
[ warn ] * [l][c] add-beelink-x2.patch [ failed ]
[ warn ] * [l][c] add-nanopi-air-emmc.patch [ failed ]
[ warn ] * [l][c] add-nanopi-duo.patch [ failed ]
[ warn ] * [l][c] add-nanopi-m1-plus2-emmc.patch [ failed ]
[ warn ] * [l][c] add-nanopineoplus2.patch [ failed ]
[ warn ] * [l][c] add-orangepi-plus2-emmc.patch [ failed ]
[ warn ] * [l][c] add-orangepi-zeroplus.patch [ failed ]
[ warn ] * [l][c] add-orangepi-zeroplus2_h3.patch [ failed ]
[ warn ] * [l][c] add-sunvell-r69.patch [ failed ]
[ warn ] * [l][c] add-tritium.patch [ failed ]
[ warn ] * [l][c] add_emmc_olinuxino_a64.patch [ failed ]
[ warn ] * [l][c] add_emmc_orangepiwin.patch [ failed ]
[ warn ] * [l][c] adjust-default-dram-clockspeeds.patch [ failed ]
[ warn ] * [l][c] adjust-small-boards-cpufreq.patch [ failed ]
[ warn ] * [l][c] enable-DT-overlays-support.patch [ failed ]
[ warn ] * [l][c] enable-autoboot-keyed.patch [ failed ]
[ warn ] * [l][c] fdt-setprop-fix-unaligned-access.patch [ failed ]
[ warn ] * [l][c] fix-mmc-phase-timings.patch [ failed ]
[ warn ] * [l][c] fix-sunxi-gpio-driver.patch [ failed ]
[ warn ] * [l][c] fix-usb1-vbus-opiwin.patch [ failed ]
[ warn ] * [l][c] h3-Fix-PLL1-setup-to-never-use-dividers.patch [ failed ]
[ warn ] * [l][c] h3-enable-power-led.patch [ failed ]
[ warn ] * [l][c] h3-set-safe-axi_apb-clock-dividers.patch [ failed ]
[ warn ] * [l][c] lower-default-DRAM-freq-A64-H5.patch [ failed ]
[ warn ] * [l][c] lower-default-cpufreq-H5.patch [ failed ]
[ warn ] * [l][c] sun8i-set-machid.patch [ failed ]
[ warn ] * [l][c] video-fix-vsync-polarity-bits.patch [ failed ]
[ warn ] * [l][b] workaround-reboot-is-poweroff-olimex-a20.patch [ failed ]
make: *** No rule to make target 'orangepi_zero_defconfig'.  Stop.
sed: can't read .config: No such file or directory
make: *** No targets specified and no makefile found.  Stop.
[ error ] ERROR in function compile_uboot [ compilation.sh:156 ]
[ error ] U-boot compilation failed
[ o.k. ] Process terminated

I have to work behind a corporate proxy, but I managed to clone U-boot. I don't know if these previous errors mean there was a problem with retrieving U-boot source code.

root@ac4835d78610:/build# git clone git://git.denx.de/u-boot.git
Cloning into 'u-boot'...
Checking connectivity... done.
root@ac4835d78610:/build# ll u-boot/
total 492
drwxr-xr-x  25 root root   4096 May 15 17:02 ./
drwxr-xr-x   1 root root   4096 May 15 16:54 ../
-rw-r--r--   1 root root    684 May 15 17:02 .checkpatch.conf
drwxr-xr-x   8 root root   4096 May 15 17:02 .git/
-rw-r--r--   1 root root    880 May 15 17:02 .gitignore
-rw-r--r--   1 root root   1383 May 15 17:02 .mailmap
-rw-r--r--   1 root root  13335 May 15 17:02 .travis.yml
drwxr-xr-x   3 root root   4096 May 15 17:02 Documentation/
-rw-r--r--   1 root root   1863 May 15 17:02 Kbuild
-rw-r--r--   1 root root  16062 May 15 17:02 Kconfig
drwxr-xr-x   2 root root   4096 May 15 17:02 Licenses/
-rw-r--r--   1 root root  14940 May 15 17:02 MAINTAINERS
-rw-r--r--   1 root root  59836 May 15 17:02 Makefile
-rw-r--r--   1 root root 182029 May 15 17:02 README
drwxr-xr-x   2 root root   4096 May 15 17:02 api/
drwxr-xr-x  15 root root   4096 May 15 17:02 arch/
drwxr-xr-x 186 root root   4096 May 15 17:02 board/
drwxr-xr-x   6 root root   4096 May 15 17:02 cmd/
drwxr-xr-x   5 root root   4096 May 15 17:02 common/
-rw-r--r--   1 root root   2256 May 15 17:02 config.mk
drwxr-xr-x   2 root root  65536 May 15 17:02 configs/
drwxr-xr-x   2 root root   4096 May 15 17:02 disk/
drwxr-xr-x  10 root root  12288 May 15 17:02 doc/
drwxr-xr-x  53 root root   4096 May 15 17:02 drivers/
drwxr-xr-x   2 root root   4096 May 15 17:02 dts/
drwxr-xr-x   2 root root   4096 May 15 17:02 env/
drwxr-xr-x   4 root root   4096 May 15 17:02 examples/
drwxr-xr-x  13 root root   4096 May 15 17:02 fs/
drwxr-xr-x  28 root root  16384 May 15 17:02 include/
drwxr-xr-x  16 root root   4096 May 15 17:02 lib/
drwxr-xr-x   2 root root   4096 May 15 17:02 net/
drwxr-xr-x   5 root root   4096 May 15 17:02 post/
drwxr-xr-x   6 root root   4096 May 15 17:02 scripts/
-rw-r--r--   1 root root     17 May 15 17:02 snapshot.commit
drwxr-xr-x  11 root root   4096 May 15 17:02 test/
drwxr-xr-x  14 root root   4096 May 15 17:02 tools/

 

Link to comment
Share on other sites

Today, I was able to build the kernel/u-boot for the ODroid XU4:

ll output/debs/
total 331688
drwxrwxr-x 4 root root      4096 May 17 14:02 ./
drwxrwxr-x 7 root root      4096 May 17 13:24 ../
drwxrwxr-x 2 root root      4096 May 15 13:32 extra/
-rw-r--r-- 1 root root     76886 May 17 14:00 linux-dtb-next-odroidxu4_5.41_armhf.deb
-rw-r--r-- 1 root root  10319274 May 17 14:00 linux-headers-next-odroidxu4_5.41_armhf.deb
-rw-r--r-- 1 root root  16401116 May 17 14:01 linux-image-next-odroidxu4_5.41_armhf.deb
-rw-r--r-- 1 root root 312550324 May 17 14:02 linux-source-next-odroidxu4_5.41_all.deb
-rw-r--r-- 1 root root    268070 May 17 13:58 linux-u-boot-next-odroidxu4_5.41_armhf.deb
drwxrwxr-x 2 root root      4096 May 17 13:46 stretch/

So I thought that my image was not good at building whole images, juste kernel/u-boot. I then gave a try to the OrangePI One kernel/u-boot building, and it also failed:

[ o.k. ] Cleaning [ u-boot/v2017.11 ]
grep: /build/cache/sources/u-boot/v2017.11/Makefile: No such file or directory
grep: /build/cache/sources/u-boot/v2017.11/Makefile: No such file or directory
grep: /build/cache/sources/u-boot/v2017.11/Makefile: No such file or directory
grep: /build/cache/sources/u-boot/v2017.11/Makefile: No such file or directory
[ o.k. ] Compiling u-boot [ 0 ]
[ o.k. ] Compiler version [ arm-linux-gnueabihf-gcc 7.2.1 ]
[ .... ] Checking out sources
error: pathspec 'HEAD' did not match any file(s) known to git.
[ o.k. ] Cleaning [ u-boot/v2017.11 ]
[ o.k. ] Started patching process for [ u-boot sunxi-orangepizero-next ]

 

Link to comment
Share on other sites

O2 compilation doesn't work either:

 

[ o.k. ] Downloading sources
[ o.k. ] Checking git sources [ u-boot v2017.11 ]
[ .... ] Remote URL does not match, removing existing local copy
[ .... ] Creating local copy
[ .... ] Fetching updates
fatal: dumb http transport does not support --depth
[ .... ] Checking out
error: pathspec 'FETCH_HEAD' did not match any file(s) known to git.
[ o.k. ] Checking git sources [ linux-mainline linux-4.14.y ]
[ .... ] Remote URL does not match, removing existing local copy
[ .... ] Creating local copy
[ .... ] Fetching updates
remote: Counting objects: 65206, done.
remote: Compressing objects: 100% (60889/60889), done.
remote: Total 65206 (delta 5987), reused 26047 (delta 3343)
Receiving objects: 100% (65206/65206), 172.40 MiB | 1.09 MiB/s, done.
Resolving deltas: 100% (5987/5987), done.
From https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable
 * branch            linux-4.14.y -> FETCH_HEAD
 * [new branch]      linux-4.14.y -> origin/linux-4.14.y
[ .... ] Checking out
[ o.k. ] Checking git sources [ sunxi-tools master ]
[ .... ] Up to date
[ o.k. ] Checking git sources [ rkbin-tools master ]
[ .... ] Up to date
[ o.k. ] Checking git sources [ marvell-tools A3700_utils-armada-17.10 ]
[ .... ] Up to date
[ o.k. ] Checking git sources [ odroidc2-blobs master ]
[ .... ] Up to date
[ o.k. ] Cleaning output/debs for [ odroidc2 next ]
[ o.k. ] Cleaning [ u-boot/v2017.11 ]
grep: /build/cache/sources/u-boot/v2017.11/Makefile: No such file or directory
grep: /build/cache/sources/u-boot/v2017.11/Makefile: No such file or directory
grep: /build/cache/sources/u-boot/v2017.11/Makefile: No such file or directory
grep: /build/cache/sources/u-boot/v2017.11/Makefile: No such file or directory
[ o.k. ] Compiling u-boot [ 0 ]
[ o.k. ] Compiler version [ aarch64-linux-gnu-gcc 7.2.1 ]
[ .... ] Checking out sources
error: pathspec 'HEAD' did not match any file(s) known to git.
[ o.k. ] Cleaning [ u-boot/v2017.11 ]
[ o.k. ] Started patching process for [ u-boot odroidc2-odroidc2-next ]
[ o.k. ] Looking for user patches in [ userpatches/u-boot/u-boot-odroidc2-next ]
make: *** No rule to make target 'odroid-c2_defconfig'.  Stop.
make: *** No targets specified and no makefile found.  Stop.
[ error ] ERROR in function compile_uboot [ compilation.sh:156 ]
[ error ] U-boot compilation failed
[ o.k. ] Process terminated
root@ac4835d78610:/build#

 

Link to comment
Share on other sites

  • gounthar changed the title to Trying to build Armbian for OrangePI Zero under Docker... No luck.
Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines