hypriot / image-builder-odroid-c2

Build SD card image for ODROID C2
http://blog.hypriot.com/post/how-to-get-docker-working-on-your-favourite-arm-board-with-hypriotos/
MIT License
36 stars 16 forks source link

Build fails when extracting the rootfs #14

Open shaleh opened 8 years ago

shaleh commented 8 years ago
docker run --rm --privileged -v /home/shaleh/repos/docker/image-builder-odroid-c2:/workspace -v /boot:/boot -v /lib/modules:/lib/modules -e VERSION image-builder-odroid-c2
+ '[' '!' -f /.dockerenv ']'
+ BUILD_RESULT_PATH=/workspace
+ BUILD_PATH=/build
+ HYPRIOT_OS_VERSION=v0.7.2
+ ROOTFS_TAR=rootfs-arm64-v0.7.2.tar.gz
+ ROOTFS_TAR_PATH=/workspace/rootfs-arm64-v0.7.2.tar.gz
+ ROOT_PARTITION_SIZE=800M
+ HYPRIOT_IMAGE_VERSION=dirty
+ HYPRIOT_IMAGE_NAME=sd-card-odroid-c2-dirty.img
+ IMAGE_ROOTFS_PATH=/image-rootfs.tar.gz
+ QEMU_ARCH=aarch64 
+ export HYPRIOT_IMAGE_VERSION
+ export DOCKER_ENGINE_VERSION=1.9.1-1
+ DOCKER_ENGINE_VERSION=1.9.1-1
+ export DOCKER_COMPOSE_VERSION=1.5.2-80
+ DOCKER_COMPOSE_VERSION=1.5.2-80
+ export DOCKER_MACHINE_VERSION=0.4.1-72
+ DOCKER_MACHINE_VERSION=0.4.1-72
+ rm -rf /build
+ mkdir -p /build
+ '[' '!' -f /workspace/rootfs-arm64-v0.7.2.tar.gz ']'
+ tar -xzf /workspace/rootfs-arm64-v0.7.2.tar.gz -C /build
make: *** [sd-image] Error 100
shaleh commented 8 years ago

Built on Ubuntu 14.04 using Docker from their deb repo.

StefanScherer commented 8 years ago

@shaleh Should not break at this point, but we use Docker running inside a Vagrant box because of guestfish. Don't know how it behaves on a Linux machine.

shaleh commented 8 years ago

That was my frustration too.It looks like a failure to unpack the tar. But I can use tar directly.

Suggestions on where to start debugging this?

al-sabr commented 7 years ago

Just tried the make sd-image on ubuntu server 16.04 and there is no problem at all.

shaleh commented 7 years ago

I gave up last summer. Thanks for the reminder to try again.

al-sabr commented 7 years ago

just try make sd-image and if you want to have the latest kernel v.4.12.0-rc7 I've made one available to make you life easier.

https://github.com/gdeverlant/image-builder-odroid-c2/releases/tag/v0.3.3

Enjoy !