Hi,
I am trying to build ver1.4 for arm64 to run VyOS on a Raspberry Pi. I am using GitHub - runborg/vyos-pi-builder for convenience.
I have run the following command:
sudo docker run -it --privileged -v "$(pwd)":/vyos -v /dev:/dev -w /vyos --sysctl net.ipv6.conf.lo.disable_ipv6=0 vyos/vyos-build:current-arm64 sudo bash -x build-image.sh
The result is as follows:
Current UID/GID: 1000/1000
+ set -x
+ set -e
++ pwd
+ ROOTDIR=/vyos
+ rm -rf vyos-build
+ git clone http://github.com/vyos/vyos-build vyos-build
Cloning into 'vyos-build'...
warning: redirecting to https://github.com/vyos/vyos-build/
remote: Enumerating objects: 11133, done.
remote: Counting objects: 100% (589/589), done.
remote: Compressing objects: 100% (280/280), done.
remote: Total 11133 (delta 309), reused 471 (delta 275), pack-reused 10544
Receiving objects: 100% (11133/11133), 7.40 MiB | 7.60 MiB/s, done.
Resolving deltas: 100% (6600/6600), done.
++ find build -type f -name '*.deb'
++ grep -v -e -dbgsym_ -e libnetfilter-conntrack3-dbg
find: ‘build’: No such file or directory
+ cd vyos-build
+ echo 'Copy new default configuration to the vyos image'
Copy new default configuration to the vyos image
+ cp /vyos/config.boot.default data/live-build-config/includes.chroot/opt/vyatta/etc/config.boot.default
+ VYOS_BUILD_FLAVOR='data/generic-arm64.json ./configure'
+ make iso
[2022-12-17 03:23:05] lb clean
P: Cleaning chroot
set -o pipefail
./build-vyos-image iso
exit 0
I: Checking if packages required for VyOS image build are installed
build/config
I: Cleaning the build workspace
[2022-12-17 03:23:06] lb clean
P: Cleaning chroot
I: Setting up additional APT entries
I: Configuring live-build
[2022-12-17 03:23:06] lb config noauto --architectures amd64 --bootappend-live boot=live components hostname=vyos username=live nopersistence noautologin nonetworking union=overlay console=ttyS0,115200 console=tty0 net.ifnames=0 biosdevname=0 --bootappend-live-failsafe live components memtest noapic noapm nodma nomce nolapic nomodeset nosmp nosplash vga=normal console=ttyS0,115200 console=tty0 net.ifnames=0 biosdevname=0 --linux-flavours amd64-vyos --linux-packages linux-image-5.15.82 --bootloader syslinux,grub-efi --binary-images iso-hybrid --checksums sha256 md5 --debian-installer none --distribution bullseye --iso-application VyOS --iso-publisher root@82255319fe13 --iso-volume VyOS --debootstrap-options --variant=minbase --exclude=isc-dhcp-client,isc-dhcp-common,ifupdown --include=apt-utils,ca-certificates,gnupg2 --mirror-bootstrap http://deb.debian.org/debian --mirror-chroot http://deb.debian.org/debian --mirror-chroot-security http://deb.debian.org/debian-security --mirror-binary http://deb.debian.org/debian --mirror-binary-security http://deb.debian.org/debian-security --archive-areas main contrib non-free --firmware-chroot false --firmware-binary false --updates true --security true --backports true --apt-recommends false --apt-options --yes -oAPT::Get::allow-downgrades=true --apt-indices false
P: Updating config tree for a debian/bullseye/amd64 system
P: Symlinking hooks...
I: Starting image build
[2022-12-17 03:23:07] lb build
P: live-build 20210407
P: Building for a debian/bullseye/amd64 system
[2022-12-17 03:23:07] lb bootstrap
P: Setting up clean exit handler
[2022-12-17 03:23:08] lb bootstrap_cache restore
W: skipping /usr/lib/live/build/bootstrap_cache, foreign architecture(s).
[2022-12-17 03:23:08] lb bootstrap_debootstrap
W: skipping /usr/lib/live/build/bootstrap_debootstrap, foreign architecture(s).
[2022-12-17 03:23:08] lb bootstrap_cache save
W: skipping /usr/lib/live/build/bootstrap_cache, foreign architecture(s).
[2022-12-17 03:23:08] lb chroot_prep install all-except-archives
E: the following stage is required to be done first: bootstrap
E: An unexpected failure occurred, exiting...
+ cd /vyos
+ bash build-u-boot.sh
Cloning into 'u-boot'...
remote: Enumerating objects: 895136, done.
remote: Counting objects: 100% (895136/895136), done.
remote: Compressing objects: 100% (132519/132519), done.
remote: Total 895136 (delta 752336), reused 894630 (delta 751902)
Receiving objects: 100% (895136/895136), 175.41 MiB | 4.22 MiB/s, done.
Resolving deltas: 100% (752336/752336), done.
Updating files: 100% (19209/19209), done.
Configuring u-boot for PI4
Building u-boot for PI4
Cleaning up
+ DEVTREE=bcm2711-rpi-cm4
+ PIVERSION=4
+ bash build-pi-image.sh vyos-build/build/live-image-arm64.hybrid.iso
Using uboot from ./u-boot.bin
VYOS Raspberry Pi3/4 image builder
Using input file: vyos-build/build/live-image-arm64.hybrid.iso
Using output file: vyos-bcm2711-rpi-cm4.img
losetup: vyos-build/build/live-image-arm64.hybrid.iso: failed to set up loop device: No such file or directory
OOOPS!!! we crashed.. :/ starting a crude cleanup.
I think maybe the live-build failed and did not create the live-image-arm64.hybrid.iso file, but I don’t know why.
Does anyone have a solution?