Closed Sheng2216 closed 3 years ago
Hi @Sheng-IoT, we recently had some changes in the master
branch, can you try updating your local repository and building again?
thank you so much, so I can now build a Debian-like os with the master branch now? I don't need to switch to dev/rpi-debian branch anymore?
thank you so much, so I can now build a Debian-like os with the master branch now? I don't need to switch to dev/rpi-debian branch anymore?
Ah, sorry for misunderstanding, the Debian support for raspberry pi is still in the dev/rpi-debian
branch because it's a work in progress so we don't want to merge it in master
until it's fully functional. We had some bugfixes in master
branch and I have also rebased dev/rpi-debian
on top of master so the fixes are included in that branch well, so the build should work now.
Hi,I am using the most recent version of dev/rpi4-debootstrap branch to build the new image, but I still got an error:
`make DEBOOTSTRAP_INCLUDE=vim GENTOO_MIRRORS="https://mirrors.tuna.tsinghua.edu.cn/gentoo" J=6 TARGET_DISTRO=debian CTARGET=aarch64-unknown-linux-gnu package_rpi4
`
`=> ERROR [stage-0 11/15] RUN --mount=type=secret,id=env,target=/run/environment --mount 25.8s
------
> [stage-0 11/15] RUN --mount=type=secret,id=env,target=/run/environment --mount=type=cache,target=/var/cache/distfiles --mount=type=cache,target=/var/cache/ccache mv /usr/aarch64-unknown-linux-gnu/boot /usr/src/boot && mv /usr/aarch64-unknown-linux-gnu/lib/modules /usr/src/modules && rm -rf /usr/aarch64-unknown-linux-gnu/* && debootstrap --arch=${TPARCH} --no-merged-usr --cache-dir=/var/cache/distfiles --include="gpg,dirmngr,debian-keyring,fancontrol,vim" "stable" /usr/aarch64-unknown-linux-gnu "http://deb.debian.org/debian/":
#17 1.067 W: Cannot check Release signature; keyring file not available /usr/share/keyrings/debian-archive-keyring.gpg
#17 1.086 I: Retrieving InRelease
#17 2.675 I: Retrieving Packages
#17 6.782 I: Validating Packages
#17 7.917 I: Resolving dependencies of required packages...
#17 11.58 I: Resolving dependencies of base packages...
#17 16.26 I: Checking component main on http://deb.debian.org/debian...
#17 17.17 I: Validating libacl1 2.2.53-10
#17 17.19 I: Validating adduser 3.118
#17 17.21 I: Validating libapparmor1 2.13.6-10
...
#17 24.43 I: Extracting libuuid1...
#17 24.44 I: Extracting mount...
#17 24.46 I: Extracting util-linux...
#17 24.57 I: Extracting libxxhash0...
#17 24.57 I: Extracting liblzma5...
#17 24.59 I: Extracting zlib1g...
#17 25.04 W: Failure trying to run: chroot "/usr/aarch64-unknown-linux-gnu" /sbin/ldconfig
#17 25.05 W: See /usr/aarch64-unknown-linux-gnu/debootstrap/debootstrap.log for details
------
executor failed running [/bin/bash -l -c mv ${SYSROOT}/boot /usr/src/boot && mv ${SYSROOT}/lib/modules /usr/src/modules && rm -rf ${SYSROOT}/* && debootstrap --arch=${TPARCH} --no-merged-usr --cache-dir=/var/cache/distfiles --include="gpg,dirmngr,debian-keyring,fancontrol,vim" "stable" ${SYSROOT} "http://deb.debian.org/debian/"]: exit code: 1
make: *** [Makefile:141: build_rpi4] Error 1
rm targets/rpi4.cache
Did you set up the build environment prior to running the make
command? This could appear if you don't run
sudo docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
yes, I tried to run the commend you mentioned before I run the make command, sometimes it works just fine, but I still got the same error messages from time to time, which is kinda annoying.
> #17 25.04 W: Failure trying to run: chroot "/usr/aarch64-unknown-linux-gnu" /sbin/ldconfig
> #17 25.05 W: See /usr/aarch64-unknown-linux-gnu/debootstrap/debootstrap.log for details
> ------
@Sheng-IoT Hi, is this still a recurring issue?
@jsmolic it seems that this issue is resolved for now, thank you
Thanks, I'll close the issue then.
We followed the instructions given, switched to the new branch, and then executed the make command to build a new image. The only thing we changed is the repository address listed in replica-gentoo/replica/targets/rpi-docker file, we changed from _setdef(
__kernel_remote__',
https://github.com/raspberrypi/linux.git')dnl_ to https://github.com.cnpmjs.org/raspberrypi/firmware')dnl to get better download speed (it's a GitHub mirror website close to our location, otherwise we are stuck at the clone stage for hours just to download all the files), but then we got this error:ERROR: dev-util/shadowman-2::gentoo failed (unpack phase), and here is the logAdditional logs: