From c21dc9ad068f8b1304d0903007a7ea67b95a04cb Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Thu, 5 Aug 2021 19:52:58 +0200 Subject: TARGET_RASPI and TARGET_ARCH=armhf: Disable 'arm_64bit=1' in config.txt files --- stage2/01-sys-tweaks/01-run.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'stage2') diff --git a/stage2/01-sys-tweaks/01-run.sh b/stage2/01-sys-tweaks/01-run.sh index dc78c31..6cd75d6 100755 --- a/stage2/01-sys-tweaks/01-run.sh +++ b/stage2/01-sys-tweaks/01-run.sh @@ -172,6 +172,10 @@ if [ "${ROOTFS_RO}" = "1" ] ; then install -m 644 files/boot/sys_arm64_000/cmdline-rootfs_ro.txt "${ROOTFS_DIR}/boot/sys_${TARGET_ARCH}_000/cmdline.txt" sed -i "s/sys_arm64_000/sys_${TARGET_ARCH}_000/g" "${ROOTFS_DIR}/boot/config.txt" sed -i "s/sys_arm64_000/sys_${TARGET_ARCH}_000/g" "${ROOTFS_DIR}/boot/sys_${TARGET_ARCH}_000/config.txt" + if [ "${TARGET_ARCH}" = "armhf" ]; then + sed -i "s/arm_64bit=1/# arm_64bit=1/g" "${ROOTFS_DIR}/boot/config.txt" + sed -i "s/arm_64bit=1/# arm_64bit=1/g" "${ROOTFS_DIR}/boot/sys_${TARGET_ARCH}_000/config.txt" + fi else install -m 644 files/grub/custom-rootfs_ro.cfg "${ROOTFS_DIR}/boot/grub/custom.cfg" sed -i "s/sys_amd64_000/sys_${TARGET_ARCH}_000/g" "${ROOTFS_DIR}/boot/grub/custom.cfg" -- cgit v1.2.3