Browse Source

Upgrade to 64-bit Umbrel OS (#43)

swap
Aaron Dewes 5 years ago
committed by GitHub
parent
commit
6d20ab70d6
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      depends
  2. 4
      export-image/00-allow-rerun/00-run.sh
  3. 11
      scripts/common
  4. 3
      stage0/00-configure-apt/00-run.sh
  5. 10
      stage0/00-configure-apt/files/sources.list
  6. BIN
      stage0/files/debian.gpg
  7. BIN
      stage0/files/raspberrypi.gpg
  8. 2
      stage0/prerun.sh
  9. 4
      stage1/00-boot-files/files/config.txt
  10. 1
      stage2/00-copies-and-fills/01-packages
  11. 6
      stage2/00-copies-and-fills/02-run.sh
  12. 0
      stage2/00-sys-tweaks/00-debconf
  13. 0
      stage2/00-sys-tweaks/00-packages
  14. 0
      stage2/00-sys-tweaks/00-packages-nr
  15. 0
      stage2/00-sys-tweaks/00-patches/01-useradd.diff
  16. 0
      stage2/00-sys-tweaks/00-patches/02-swap.diff
  17. 0
      stage2/00-sys-tweaks/00-patches/04-inputrc.diff
  18. 0
      stage2/00-sys-tweaks/00-patches/05-path.diff
  19. 0
      stage2/00-sys-tweaks/00-patches/07-resize-init.diff
  20. 0
      stage2/00-sys-tweaks/00-patches/series
  21. 0
      stage2/00-sys-tweaks/01-run.sh
  22. 0
      stage2/00-sys-tweaks/files/50raspi
  23. 0
      stage2/00-sys-tweaks/files/90-qemu.rules
  24. 0
      stage2/00-sys-tweaks/files/console-setup
  25. 0
      stage2/00-sys-tweaks/files/rc.local
  26. 0
      stage2/00-sys-tweaks/files/resize2fs_once
  27. 0
      stage2/00-sys-tweaks/files/ttyoutput.conf
  28. 0
      stage2/01-net-tweaks/00-packages
  29. 0
      stage2/01-net-tweaks/01-run.sh
  30. 0
      stage2/01-net-tweaks/files/wait.conf
  31. 0
      stage2/01-net-tweaks/files/wpa_supplicant.conf
  32. 0
      stage2/02-accept-mathematica-eula/00-debconf
  33. 2
      stage2/05-docker-compose/01-run.sh

4
depends

@ -1,7 +1,7 @@
quilt
parted
realpath:coreutils
qemu-arm-static:qemu-user-static
qemu-aarch64-static:qemu-user-static
debootstrap
zerofree
zip
@ -16,4 +16,4 @@ xxd
file
git
lsmod:kmod
bc
bc

4
export-image/00-allow-rerun/00-run.sh

@ -1,7 +1,7 @@
#!/bin/bash -e
if [ ! -x "${ROOTFS_DIR}/usr/bin/qemu-arm-static" ]; then
cp /usr/bin/qemu-arm-static "${ROOTFS_DIR}/usr/bin/"
if [ ! -x "${ROOTFS_DIR}/usr/bin/qemu-aarch64-static" ]; then
cp /usr/bin/qemu-aarch64-static "${ROOTFS_DIR}/usr/bin/"
fi
if [ -e "${ROOTFS_DIR}/etc/ld.so.preload" ]; then

11
scripts/common

@ -9,17 +9,18 @@ bootstrap(){
export http_proxy=${APT_PROXY}
if [ "$(dpkg --print-architecture)" != "armhf" ] && [ "$(dpkg --print-architecture)" != "aarch64" ]; then
if [ "$(dpkg --print-architecture)" != "arm64" ]; then
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+=(--include gnupg)
BOOTSTRAP_ARGS+=(--keyring "${STAGE_DIR}/files/debian.gpg")
BOOTSTRAP_ARGS+=("$@")
printf -v BOOTSTRAP_STR '%q ' "${BOOTSTRAP_ARGS[@]}"
setarch linux32 capsh --drop=cap_setfcap -- -c "'${BOOTSTRAP_CMD}' $BOOTSTRAP_STR" || true
capsh --drop=cap_setfcap -- -c "'${BOOTSTRAP_CMD}' $BOOTSTRAP_STR" || true
if [ -d "$2/debootstrap" ]; then
rmdir "$2/debootstrap"
@ -90,7 +91,7 @@ on_chroot() {
mount --bind /sys "${ROOTFS_DIR}/sys"
fi
setarch linux32 capsh --drop=cap_setfcap "--chroot=${ROOTFS_DIR}/" -- -e "$@"
capsh --drop=cap_setfcap "--chroot=${ROOTFS_DIR}/" -- -e "$@"
}
export -f on_chroot

3
stage0/00-configure-apt/00-run.sh

@ -12,6 +12,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
EOF

10
stage0/00-configure-apt/files/sources.list

@ -1,3 +1,7 @@
deb http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi
deb http://deb.debian.org/debian buster main contrib non-free
deb http://deb.debian.org/debian-security/ buster/updates main contrib non-free
deb http://deb.debian.org/debian buster-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 buster main contrib non-free
#deb-src http://deb.debian.org/debian-security/ buster/updates main contrib non-free
#deb-src http://deb.debian.org/debian buster-updates main contrib non-free

BIN
stage0/files/debian.gpg

Binary file not shown.

BIN
stage0/files/raspberrypi.gpg

Binary file not shown.

2
stage0/prerun.sh

@ -1,5 +1,5 @@
#!/bin/bash -e
if [ ! -d "${ROOTFS_DIR}" ]; then
bootstrap buster "${ROOTFS_DIR}" http://raspbian.raspberrypi.org/raspbian/
bootstrap buster "${ROOTFS_DIR}" http://deb.debian.org/debian/
fi

4
stage1/00-boot-files/files/config.txt

@ -56,10 +56,8 @@
# Enable audio (loads snd_bcm2835)
dtparam=audio=on
[pi4]
# Enable DRM VC4 V3D driver on top of the dispmanx display stack
dtoverlay=vc4-fkms-v3d
max_framebuffers=2
[all]
#dtoverlay=vc4-fkms-v3d
arm_64bit=1

1
stage2/00-copies-and-fills/01-packages

@ -1 +0,0 @@
raspi-copies-and-fills

6
stage2/00-copies-and-fills/02-run.sh

@ -1,6 +0,0 @@
#!/bin/bash -e
if [ -f "${ROOTFS_DIR}/etc/ld.so.preload" ]; then
mv "${ROOTFS_DIR}/etc/ld.so.preload" "${ROOTFS_DIR}/etc/ld.so.preload.disabled"
fi

0
stage2/01-sys-tweaks/00-debconf → stage2/00-sys-tweaks/00-debconf

0
stage2/01-sys-tweaks/00-packages → stage2/00-sys-tweaks/00-packages

0
stage2/01-sys-tweaks/00-packages-nr → stage2/00-sys-tweaks/00-packages-nr

0
stage2/01-sys-tweaks/00-patches/01-useradd.diff → stage2/00-sys-tweaks/00-patches/01-useradd.diff

0
stage2/01-sys-tweaks/00-patches/02-swap.diff → stage2/00-sys-tweaks/00-patches/02-swap.diff

0
stage2/01-sys-tweaks/00-patches/04-inputrc.diff → stage2/00-sys-tweaks/00-patches/04-inputrc.diff

0
stage2/01-sys-tweaks/00-patches/05-path.diff → stage2/00-sys-tweaks/00-patches/05-path.diff

0
stage2/01-sys-tweaks/00-patches/07-resize-init.diff → stage2/00-sys-tweaks/00-patches/07-resize-init.diff

0
stage2/01-sys-tweaks/00-patches/series → stage2/00-sys-tweaks/00-patches/series

0
stage2/01-sys-tweaks/01-run.sh → stage2/00-sys-tweaks/01-run.sh

0
stage2/01-sys-tweaks/files/50raspi → stage2/00-sys-tweaks/files/50raspi

0
stage2/01-sys-tweaks/files/90-qemu.rules → stage2/00-sys-tweaks/files/90-qemu.rules

0
stage2/01-sys-tweaks/files/console-setup → stage2/00-sys-tweaks/files/console-setup

0
stage2/01-sys-tweaks/files/rc.local → stage2/00-sys-tweaks/files/rc.local

0
stage2/01-sys-tweaks/files/resize2fs_once → stage2/00-sys-tweaks/files/resize2fs_once

0
stage2/01-sys-tweaks/files/ttyoutput.conf → stage2/00-sys-tweaks/files/ttyoutput.conf

0
stage2/02-net-tweaks/00-packages → stage2/01-net-tweaks/00-packages

0
stage2/02-net-tweaks/01-run.sh → stage2/01-net-tweaks/01-run.sh

0
stage2/02-net-tweaks/files/wait.conf → stage2/01-net-tweaks/files/wait.conf

0
stage2/02-net-tweaks/files/wpa_supplicant.conf → stage2/01-net-tweaks/files/wpa_supplicant.conf

0
stage2/03-accept-mathematica-eula/00-debconf → stage2/02-accept-mathematica-eula/00-debconf

2
stage2/05-docker-compose/01-run.sh

@ -33,7 +33,7 @@ IMAGES=$(grep '^\s*image' docker-compose.yml | sed 's/image://' | sed 's/\"//g'
echo "List of images to download: $IMAGES"
while IFS= read -r image; do
docker pull --platform=linux/arm/v7 $image
docker pull --platform=linux/arm64 $image
done <<< "$IMAGES"
mkdir -p ${ROOTFS_DIR}/var/lib/docker

Loading…
Cancel
Save