diff --git a/.gitignore b/.gitignore index ae704ea..edb8023 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ Armbian* -armbian* boot rootfs diff --git a/makefile b/makefile index 131240e..74ca622 100644 --- a/makefile +++ b/makefile @@ -1,14 +1,16 @@ -rel := https://github.com/armbian/community/releases/download/24.5.0-trunk.433/Armbian_community_24.5.0-trunk.433_Aml-s9xx-box_bookworm_current_6.6.28_minimal.img.xz -sig := https://github.com/armbian/community/releases/download/24.5.0-trunk.433/Armbian_community_24.5.0-trunk.433_Aml-s9xx-box_bookworm_current_6.6.28_minimal.img.xz.asc +rel := https://k-space.ee.armbian.com/archive/aml-s9xx-box/archive/Armbian_23.11.1_Aml-s9xx-box_bookworm_current_6.1.63.img.xz +readme := https://k-space.ee.armbian.com/archive/aml-s9xx-box/archive/Armbian_23.11.1_Aml-s9xx-box_bookworm_current_6.1.63.img.txt +sig := https://k-space.ee.armbian.com/archive/aml-s9xx-box/archive/Armbian_23.11.1_Aml-s9xx-box_bookworm_current_6.1.63.img.xz.asc +sums := https://k-space.ee.armbian.com/archive/aml-s9xx-box/archive/Armbian_23.11.1_Aml-s9xx-box_bookworm_current_6.1.63.img.xz.sha image := $(shell echo $(rel) | sed 's/.*\///') raw := $(shell echo $(image) | sed 's/\.xz//') -git := $(shell git rev-parse --short HEAD) - $(image): - curl -L -O $(rel) - curl -L -O $(sig) + curl -O $(readme) + curl -O $(sig) + curl -O $(sums) + curl -O $(rel) verify: $(image) $(image).asc gpg --verify $(image).asc $(image) @@ -19,6 +21,8 @@ $(raw): $(image) mount: $(raw) umount mkdir -p ./rootfs mkdir -p ./boot + chmod 777 ./rootfs + chmod 777 ./boot sudo losetup /dev/loop1337 $(raw) sudo partprobe /dev/loop1337 sudo mount /dev/loop1337p2 ./rootfs @@ -36,19 +40,22 @@ umount: uboot: mount sudo cp boot/u-boot-s905x-s912 boot/u-boot.ext +# Replace ^FDT with ^#FDT in boot/extlinux/extlinux.conf +# Uncomment "#FDT /dtb/amlogic/meson-gxl-s905x-p212.dtb" extlinux: uboot - sudo sed -i '4iFDT /dtb/amlogic/meson-gxl-s905x-p212.dtb' boot/extlinux/extlinux.conf + sudo sed -i 's/^FDT/#FDT/' boot/extlinux/extlinux.conf + sudo sed -i 's/^#FDT \/dtb\/amlogic\/meson-gxl-s905x-p212.dtb/FDT \/dtb\/amlogic\/meson-gxl-s905x-p212.dtb/' boot/extlinux/extlinux.conf -armbian-$(git).img.zst: extlinux +armbian.img.zst: extlinux sudo dd if=/dev/loop1337 bs=1M | zstd -10 -fo $@ -build: armbian-$(git).img.zst +build: armbian.img.zst -sign: armbian-$(git).img.zst +sign: armbian.img.zst minisign -Sm $< # Imbus personal key -verify-build: +verify: minisign -Vm armbian.img.zst -P RWRzPhin2brRy61x/adSOnFyhdWRkC0i37VJrOrFjMy6M073Mdu7gZXO clean: umount