gleam2003 Posted August 23, 2020 Posted August 23, 2020 In my customize-image.sh I need to dowload source via git and make it like user and not like root. Example of customize-image.sh: git clone https://github.com/xxx/xxx /home/pi/xxx su -c "sudo -S /home/pi/xxx/xxx.sh" - pi This work when I build image for OrangePi4 (and all other rk3399 board) It dosen't work when build image for sun8i board like OrangePi Lite. Both git and su command return error and compilation fail. This happen with legacy and mainline kernel, with ubuntu or debian.
Igor Posted August 29, 2020 Posted August 29, 2020 On 8/23/2020 at 11:14 AM, gleam2003 said: It dosen't work when build image for sun8i board like OrangePi Lite. Both git and su command return error and compilation fail. Strange. This looks like the problem is related to 32bit systems ... possible QEMU bug? Can you try to change build host? Bionic instead of Focal. Or some Debian?
gleam2003 Posted August 30, 2020 Author Posted August 30, 2020 I tried with Bionic and have the same issue. Yes, is probably Qemu problem, I have the same problem if I chroot manually and try to do the same thing. In Focal qemu version is 3, in Bionic qemu version is 4 and I have the same problem. I compile the version 5 on Focal but I can't successefull build the static version with softemmu. I will test the 5 from unstable branch on Bionic
gleam2003 Posted August 30, 2020 Author Posted August 30, 2020 Can I add that in past with old version of armbian on Ubuntu 16.04 the problem dosen't exist. Qemu version in this case, if I'm not wrong, is 2.5
jagmn Posted August 30, 2020 Posted August 30, 2020 I've recently been having the same issues, a segfault during git clone, when building focal on Ubuntu 18.04. I tried a few different versions of QEMU; QEMU 5.1.0 ended up solving my issue (when installed locally and then do a build with ROOT_FS_CREATE_ONLY=force to generate a local rootfs).
gleam2003 Posted August 30, 2020 Author Posted August 30, 2020 where find compiled quemu 5.1.0 for focal? I test to build but have error when link with "--static"
gleam2003 Posted August 30, 2020 Author Posted August 30, 2020 http://security.ubuntu.com/ubuntu/pool/main/q/qemu/qemu_5.0-5ubuntu6_amd64.deb Installed this on focal and now work
gleam2003 Posted August 30, 2020 Author Posted August 30, 2020 Now I have this error on end of build process: Quote [ o.k. ] Unmounting [ /home/vagrant/armbian/.tmp/rootfs-legacy-beelinkx2-buster-no-no ] qemu-arm-static: /build/qemu-aGGHr4/qemu-5.0/linux-user/elfload.c:2327: pgb_reserved_va: Assertion `addr == test' failed. /home/vagrant/armbian/lib/distributions.sh: line 597: 3795 Aborted (core dumped) chroot "${SDCARD}" /bin/bash -c "dpkg-divert --quiet --local --rename --remove /sbin/initctl" qemu-arm-static: /build/qemu-aGGHr4/qemu-5.0/linux-user/elfload.c:2327: pgb_reserved_va: Assertion `addr == test' failed. /home/vagrant/armbian/lib/distributions.sh: line 597: 3798 Aborted (core dumped) chroot "${SDCARD}" /bin/bash -c "dpkg-divert --quiet --local --rename --remove /sbin/start-stop-daemon"
Werner Posted August 30, 2020 Posted August 30, 2020 Quote vagrant Does this happen as well when building on Ubuntu Focal native or in a virtual environment (Virtualbox or similar)?
gleam2003 Posted August 30, 2020 Author Posted August 30, 2020 2 hours ago, Werner said: Does this happen as well when building on Ubuntu Focal native or in a virtual environment (Virtualbox or similar)? The error with qemu old version happen on both, native or virtual. The error after update qemu to 5.0 happen on vagrant, for now I don't test on native.
gleam2003 Posted August 30, 2020 Author Posted August 30, 2020 Finaly build with no error with this deb: http://ftp.br.debian.org/debian/pool/main/q/qemu/qemu-user-static_5.1+dfsg-3_amd64.deb 1
Recommended Posts