riskable Posted November 30, 2016 Posted November 30, 2016 I'm doing a build inside a Docker container (Ubuntu Xenial 16.04; started with --privileged) and I've tried several builds but all of them fail. The .img file gets created but after copying to the SD card they always fail (unrecognized file system). Here's the output of compile.sh: [ o.k. ] Creating board support package [ orangepizero default ][ .... ] Fingerprinting [ o.k. ] Building package [ linux-xenial-root-orangepizero ] [ o.k. ] Starting rootfs and image building process for [ orangepizero xenial ] [ o.k. ] Extracting xenial-ng-armhf.50a...4c9.tgz [ 0 days old ] xenial-ng-armhf.50a...4c9.tgz: 75.6MiB [ 204MiB/s] [====================================================================================================================================================================================================================>] 100%[ o.k. ] Applying distribution specific tweaks for [ xenial ] sed: can't read /root/armbian-devel/output/cache/sdcard-default-orangepizero-xenial/etc/ssh/sshd_config: No such file or directory[ o.k. ] Applying common tweaks /root/armbian-devel/lib/distributions.sh: line 37: /root/armbian-devel/output/cache/sdcard-default-orangepizero-xenial/etc/modprobe.d/orangepizero.conf: No such file or directorysed: can't read /root/armbian-devel/output/cache/sdcard-default-orangepizero-xenial/etc/default/console-setup: No such file or directorychage: the shadow password file is not present[ o.k. ] Installing kernel [ linux-image-sun8i ] [ o.k. ] Installing u-boot [ linux-u-boot-orangepizero ] [ o.k. ] Installing headers [ linux-headers-sun8i ] [ o.k. ] Installing generic firmware [ armbian-firmware ] [ o.k. ] Installing board support package [ orangepizero ] sed: can't read /root/armbian-devel/output/cache/sdcard-default-orangepizero-xenial/etc/lirc/hardware.conf: No such file or directorysed: can't read /root/armbian-devel/output/cache/sdcard-default-orangepizero-xenial/etc/lirc/hardware.conf: No such file or directorysed: can't read /root/armbian-devel/output/cache/sdcard-default-orangepizero-xenial/etc/lirc/hardware.conf: No such file or directorycp: cannot create regular file '/root/armbian-devel/output/cache/sdcard-default-orangepizero-xenial/etc/lirc/lircd.conf': No such file or directoryqemu: Unsupported syscall: 384Created symlink /etc/systemd/system/getty.target.wants/serial-getty@ttyGS0.service, pointing to /lib/systemd/system/serial-getty@.service.[ o.k. ] Installing extra applications and drivers [ o.k. ] Installing linux firmware [ 5.24 ] dpkg: warning: parsing file '/var/lib/dpkg/status' near line 75 package 'dpkg':missing descriptiondpkg: warning: parsing file '/var/lib/dpkg/status' near line 75 package 'dpkg':missing maintainerdpkg: warning: parsing file '/var/lib/dpkg/status' near line 75 package 'dpkg':missing architecture[ o.k. ] Installing additional driver [ MT7601U ] [ o.k. ] Checking git sources [ mt7601 old ] [ .... ] Creating local copy [ .... ] Fetching updates remote: Counting objects: 264, done.remote: Compressing objects: 100% (207/207), done.remote: Total 264 (delta 54), reused 255 (delta 53), pack-reused 0Receiving objects: 100% (264/264), 1.29 MiB | 681.00 KiB/s, done.Resolving deltas: 100% (54/54), done.From https://github.com/igorpecovnik/mt7601* branch old -> FETCH_HEAD* [new branch] old -> origin/old[ .... ] Checking out /root/armbian-devel/lib/extras/mt7601.sh: line 71: depmod: command not found[ o.k. ] Installing additional driver [ RT8192 ] [ o.k. ] Checking git sources [ rt8192cu master ] [ .... ] Creating local copy [ .... ] Fetching updates remote: Counting objects: 201, done.remote: Compressing objects: 100% (177/177), done.remote: Total 201 (delta 43), reused 71 (delta 21), pack-reused 0Receiving objects: 100% (201/201), 1.17 MiB | 0 bytes/s, done.Resolving deltas: 100% (43/43), done.From https://github.com/dz0ny/rt8192cu* branch master -> FETCH_HEAD* [new branch] master -> origin/master[ .... ] Checking out /root/armbian-devel/lib/extras/rtl8192cu.sh: line 56: depmod: command not found[ o.k. ] Installing [ armbian-tools-xenial_5.24_armhf.deb ] dpkg: warning: parsing file '/var/lib/dpkg/status' near line 75 package 'dpkg':missing descriptiondpkg: warning: parsing file '/var/lib/dpkg/status' near line 75 package 'dpkg':missing maintainerdpkg: warning: parsing file '/var/lib/dpkg/status' near line 75 package 'dpkg':missing architecturedpkg: dependency problems prevent configuration of armbian-tools-xenial:armbian-tools-xenial depends on libc6 (>= 2.10); however: Package libc6 is not installed.armbian-tools-xenial depends on libusb-1.0-0 (>= 2:1.0.8); however: Package libusb-1.0-0 is not installed.armbian-tools-xenial depends on libusb-0.1-4; however: Package libusb-0.1-4 is not installed.armbian-tools-xenial depends on libudev1; however: Package libudev1 is not installed.dpkg: error processing package armbian-tools-xenial (--install):dependency problems - leaving unconfiguredErrors were encountered while processing:armbian-tools-xenial[ o.k. ] Installing additional application [ USB redirector ] cp: target '/root/armbian-devel/output/cache/sdcard-default-orangepizero-xenial/usr/local/bin/' is not a directorycp: cannot create regular file '/root/armbian-devel/output/cache/sdcard-default-orangepizero-xenial/usr/local/bin/': No such file or directory/tmp/install.sh: line 3: apt-get: command not found/tmp/install.sh: line 12: apt-get: command not found/tmp/install.sh: line 13: apt-get: command not found[ o.k. ] Calling image customization script [ customize-image.sh ] dpkg-divert: warning: parsing file '/var/lib/dpkg/status' near line 88 package 'dpkg':missing descriptiondpkg-divert: warning: parsing file '/var/lib/dpkg/status' near line 88 package 'dpkg':missing maintainerdpkg-divert: warning: parsing file '/var/lib/dpkg/status' near line 88 package 'dpkg':missing architecturedpkg-divert: warning: parsing file '/var/lib/dpkg/status' near line 88 package 'dpkg':missing descriptiondpkg-divert: warning: parsing file '/var/lib/dpkg/status' near line 88 package 'dpkg':missing maintainerdpkg-divert: warning: parsing file '/var/lib/dpkg/status' near line 88 package 'dpkg':missing architecture[ o.k. ] Preparing image file for rootfs [ orangepizero xenial ] [ o.k. ] Current rootfs size [ 237 MiB ] [ o.k. ] Creating blank image for rootfs [ 461 MiB ] 461MiB [ 331MiB/s] [===================================================================================================================================================================================================================================================>] 100%[ o.k. ] Creating partitions [ root: ext4 ] mknod: /dev/loop0: File exists[ .... ] Creating rootfs [ ext4 ] mknod: 1: File existsThe file /dev/loop0p1 does not exist and no size was specified.tune2fs: No such file or directory while trying to open /dev/loop0p1Couldn't find valid filesystem superblock.mount: special device /dev/loop0p1 does not exist[ o.k. ] Copying files to image [ .raw ] 201.34M 99% 158.79MB/s 0:00:01 (xfr#16403, to-chk=0/21755)sent 202.52M bytes received 335.03K bytes 135.24M bytes/sectotal size is 202.62M speedup is 1.00[ o.k. ] Copying files to /boot partition [ .raw ] 8.93M 99% 530.38MB/s 0:00:00 (xfr#47, to-chk=0/50)sent 8.94M bytes received 921 bytes 17.87M bytes/sectotal size is 8.93M speedup is 1.00[ o.k. ] Free space: [ SD card ] tmpfs 1.5G 237M 1.3G 16% /root/armbian-devel/output/cache/sdcard-default-orangepizero-xenial[ o.k. ] Writing U-boot bootloader [ /dev/loop0 ] umount: /root/armbian-devel/output/cache/mount-default-orangepizero-xenial: not mounted[ o.k. ] Done building [ /root/armbian-devel/output/images/Armbian_5.24_Orangepizero_Ubuntu_xenial_3.4.113.img ] [ o.k. ] Runtime [ 8 min ] root@f01fb9beeb7e:~/armbian-devel#
Igor Posted November 30, 2016 Posted November 30, 2016 I am not sure if everything works fine under docker yet but one is for sure. Deboostrap process failed: [ o.k. ] Extracting xenial-ng-armhf.50a...4c9.tgz [ 0 days old ] xenial-ng-armhf.50a...4c9.tgz: 75.6MiB [ 204MiB/s] Cache files are more than 200M in size. This process can fail due to some network troubles even in native environment. It's an rear even, but happen. Removing roofs cache solves this.
zador.blood.stained Posted November 30, 2016 Posted November 30, 2016 There were problems during previous run, please delete rootfs cache (files in output/cache/rootfs). Also Docker support is still experimental, but, thanks to your log, I found some issues and they should be fixed now. So please try again and provide output if things still don't work.
riskable Posted November 30, 2016 Author Posted November 30, 2016 Everything is OK now! I did as you suggested and basically just deleted everything and started over from scratch. I've now got a working build. ...and eth0 has an IPv6 address so building custom fixed *that* problem too! 1
Recommended Posts