octavosystems / osd32mp1-debian

OSD32MP1 Debian SDK - Develop Debian images for OSD32MP1
9 stars 6 forks source link

make all fails #2

Open cgommel opened 3 years ago

cgommel commented 3 years ago

After following every step of the tutorial everything worked until the late build phase:

# Copy custom files
cp -R files/* multistrap-debian-buster
touch .multistrap
# Configuring multistrap
cp /usr/bin/qemu-arm-static multistrap-debian-buster/usr/bin
cp multistrap.configscript multistrap-debian-buster/multistrap.configscript
mount -o bind /dev multistrap-debian-buster/dev
chroot multistrap-debian-buster /usr/bin/qemu-arm-static /bin/sh -c ./multistrap.configscript
/bin/sh: 1: ./multistrap.configscript: Exec format error
make[1]: *** [Makefile:17: .multistrap-config] Error 2
make[1]: Leaving directory '/home/docker/octavo-build/multistrap'
make: *** [Makefile:124: rootfs] Error 2

I've tried the procedure on freshly installed virtual cloud instances of ubuntu 18.04 and 20.04 (hosted at hetzner), both with the same result.

What is going wrong?

schef commented 2 years ago

Hi, i have the same issue. Building on Archlinux 5.16.16-arch1-1. Thanks

neerajdantu commented 2 years ago

Are you running the SDK with Docker as described in README? Look at https://ostechnix.com/fix-exec-format-error-when-running-scripts-with-run-parts-command/ for an explanation of the error. Should not be an issue because Docker takes care of dependencies. Also make sure you have all the dependencies listed in README installed

schef commented 2 years ago

I can confirm that I don't have this issue on latest Debian.