From 7852180dd99f0d8f0b8c0e42c9aa03c5236b08bd Mon Sep 17 00:00:00 2001 From: luigifcruz Date: Fri, 17 Dec 2021 12:04:22 -0300 Subject: [PATCH] Initial ARM64 Support --- scripts/common | 2 +- stage0/00-configure-apt/00-run.sh | 1 + stage0/00-configure-apt/files/sources.list | 10 +++++++--- stage0/prerun.sh | 2 +- stage1/00-boot-files/files/config.txt | 3 +++ 5 files changed, 13 insertions(+), 5 deletions(-) diff --git a/scripts/common b/scripts/common index 5b0df12..a0257cd 100644 --- a/scripts/common +++ b/scripts/common @@ -13,7 +13,7 @@ bootstrap(){ BOOTSTRAP_CMD=qemu-debootstrap fi - BOOTSTRAP_ARGS+=(--arch armhf) + BOOTSTRAP_ARGS+=(--arch arm64) BOOTSTRAP_ARGS+=(--components "main,contrib,non-free") BOOTSTRAP_ARGS+=(--keyring "${STAGE_DIR}/files/raspberrypi.gpg") BOOTSTRAP_ARGS+=(--exclude=info) diff --git a/stage0/00-configure-apt/00-run.sh b/stage0/00-configure-apt/00-run.sh index d10a49f..651d154 100755 --- a/stage0/00-configure-apt/00-run.sh +++ b/stage0/00-configure-apt/00-run.sh @@ -14,6 +14,7 @@ fi on_chroot apt-key add - < files/raspberrypi.gpg.key on_chroot << EOF +dpkg --add-architecture armhf apt-get update apt-get dist-upgrade -y EOF diff --git a/stage0/00-configure-apt/files/sources.list b/stage0/00-configure-apt/files/sources.list index 4a5dd8a..fa104b7 100644 --- a/stage0/00-configure-apt/files/sources.list +++ b/stage0/00-configure-apt/files/sources.list @@ -1,3 +1,7 @@ -deb http://raspbian.raspberrypi.org/raspbian/ RELEASE main contrib non-free rpi -# Uncomment line below then 'apt-get update' to enable 'apt-get source' -#deb-src http://raspbian.raspberrypi.org/raspbian/ RELEASE main contrib non-free rpi +deb http://deb.debian.org/debian RELEASE main contrib non-free +deb http://security.debian.org/debian-security RELEASE-security main contrib non-free +deb http://deb.debian.org/debian RELEASE-updates main contrib non-free +# Uncomment deb-src lines below then 'apt-get update' to enable 'apt-get source' +#deb-src http://deb.debian.org/debian RELEASE main contrib non-free +#deb-src http://security.debian.org/debian-security RELEASE-security main contrib non-free +#deb-src http://deb.debian.org/debian RELEASE-updates main contrib non-free \ No newline at end of file diff --git a/stage0/prerun.sh b/stage0/prerun.sh index d4dd0a1..e001309 100755 --- a/stage0/prerun.sh +++ b/stage0/prerun.sh @@ -1,5 +1,5 @@ #!/bin/bash -e if [ ! -d "${ROOTFS_DIR}" ] || [ "${USE_QCOW2}" = "1" ]; then - bootstrap ${RELEASE} "${ROOTFS_DIR}" http://raspbian.raspberrypi.org/raspbian/ + bootstrap ${RELEASE} "${ROOTFS_DIR}" http://deb.debian.org/debian/ fi diff --git a/stage1/00-boot-files/files/config.txt b/stage1/00-boot-files/files/config.txt index a976ef2..c81eb38 100644 --- a/stage1/00-boot-files/files/config.txt +++ b/stage1/00-boot-files/files/config.txt @@ -62,6 +62,9 @@ display_auto_detect=1 dtoverlay=vc4-kms-v3d max_framebuffers=2 +# Run in 64-bit mode +arm_64bit=1 + # Disable compensation for displays with overscan disable_overscan=1