Compare commits
No commits in common. "722284712421941211d2bc629e52aecbfb0150bf" and "9d6fbe48e88a04f7a931cd54a4993012494f55e6" have entirely different histories.
7222847124
...
9d6fbe48e8
2 changed files with 18 additions and 12 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,4 +1,3 @@
|
||||||
Armbian*
|
Armbian*
|
||||||
armbian*
|
|
||||||
boot
|
boot
|
||||||
rootfs
|
rootfs
|
||||||
|
|
29
makefile
29
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
|
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
|
||||||
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
|
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/.*\///')
|
image := $(shell echo $(rel) | sed 's/.*\///')
|
||||||
raw := $(shell echo $(image) | sed 's/\.xz//')
|
raw := $(shell echo $(image) | sed 's/\.xz//')
|
||||||
|
|
||||||
git := $(shell git rev-parse --short HEAD)
|
|
||||||
|
|
||||||
$(image):
|
$(image):
|
||||||
curl -L -O $(rel)
|
curl -O $(readme)
|
||||||
curl -L -O $(sig)
|
curl -O $(sig)
|
||||||
|
curl -O $(sums)
|
||||||
|
curl -O $(rel)
|
||||||
|
|
||||||
verify: $(image) $(image).asc
|
verify: $(image) $(image).asc
|
||||||
gpg --verify $(image).asc $(image)
|
gpg --verify $(image).asc $(image)
|
||||||
|
@ -19,6 +21,8 @@ $(raw): $(image)
|
||||||
mount: $(raw) umount
|
mount: $(raw) umount
|
||||||
mkdir -p ./rootfs
|
mkdir -p ./rootfs
|
||||||
mkdir -p ./boot
|
mkdir -p ./boot
|
||||||
|
chmod 777 ./rootfs
|
||||||
|
chmod 777 ./boot
|
||||||
sudo losetup /dev/loop1337 $(raw)
|
sudo losetup /dev/loop1337 $(raw)
|
||||||
sudo partprobe /dev/loop1337
|
sudo partprobe /dev/loop1337
|
||||||
sudo mount /dev/loop1337p2 ./rootfs
|
sudo mount /dev/loop1337p2 ./rootfs
|
||||||
|
@ -36,19 +40,22 @@ umount:
|
||||||
uboot: mount
|
uboot: mount
|
||||||
sudo cp boot/u-boot-s905x-s912 boot/u-boot.ext
|
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
|
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 $@
|
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 $<
|
minisign -Sm $<
|
||||||
|
|
||||||
# Imbus personal key
|
# Imbus personal key
|
||||||
verify-build:
|
verify:
|
||||||
minisign -Vm armbian.img.zst -P RWRzPhin2brRy61x/adSOnFyhdWRkC0i37VJrOrFjMy6M073Mdu7gZXO
|
minisign -Vm armbian.img.zst -P RWRzPhin2brRy61x/adSOnFyhdWRkC0i37VJrOrFjMy6M073Mdu7gZXO
|
||||||
|
|
||||||
clean: umount
|
clean: umount
|
||||||
|
|
Loading…
Reference in a new issue