Add initial Pocket ACE support

This commit is contained in:
Philippe Simons
2025-07-22 09:15:07 +02:00
parent 30b0f88a62
commit 7e92c0bf87
111 changed files with 3926 additions and 10 deletions

View File

@@ -10,5 +10,6 @@ DisableDisplayHW = false
[Linux]
Image = "/boot/u-boot-nodtb.bin"
initrd = "/boot/u-boot-nodtb.bin"
devicetree = "/boot/u-boot.dtb"
devicetree = "/boot/u-boot-odin2.dtb"
#devicetree = "/boot/u-boot-pocket-ace.dtb"
cmdline = "nodtbo"

View File

@@ -57,6 +57,12 @@ menuentry 'AYN Odin2 Mini' \$menuentry_id_option 'odin2mini' {
linux /KERNEL boot=LABEL=${DISTRO_BOOTLABEL} disk=LABEL=${DISTRO_DISKLABEL} grub_portable ${EXTRA_CMDLINE}
devicetree /${DEVICE_DTB[2]}.dtb
}
menuentry 'AYANEO Pocket ACE' \$menuentry_id_option 'pocketace' {
savedefault
search --set -f /KERNEL
linux /KERNEL boot=LABEL=${DISTRO_BOOTLABEL} disk=LABEL=${DISTRO_DISKLABEL} grub_portable ${EXTRA_CMDLINE}
devicetree /${DEVICE_DTB[3]}.dtb
}
menuentry 'AYN Odin2 RECOVERY' \$menuentry_id_option 'odin2-recovery' {
search --set -f /KERNEL
@@ -73,5 +79,10 @@ menuentry 'AYN Odin2 Mini RECOVERY' \$menuentry_id_option 'odin2mini-recovery' {
linux /KERNEL boot=LABEL=${DISTRO_BOOTLABEL} disk=LABEL=${DISTRO_DISKLABEL} grub_portable ${EXTRA_CMDLINE} recovery
devicetree /${DEVICE_DTB[2]}.dtb
}
menuentry 'AYANEO Pocket ACE RECOVERY' \$menuentry_id_option 'pocketace-recovery' {
search --set -f /KERNEL
linux /KERNEL boot=LABEL=${DISTRO_BOOTLABEL} disk=LABEL=${DISTRO_DISKLABEL} grub_portable ${EXTRA_CMDLINE} recovery
devicetree /${DEVICE_DTB[3]}.dtb
}
EOF

View File

@@ -49,10 +49,16 @@ if [ -f "$SYSTEM_ROOT/usr/share/bootloader/boot/u-boot-nodtb.bin" ]; then
cp -p $SYSTEM_ROOT/usr/share/bootloader/boot/u-boot-nodtb.bin $BOOT_ROOT/boot
fi
if [ -f "$SYSTEM_ROOT/usr/share/bootloader/boot/u-boot.dtb" ]; then
if [ -f "$SYSTEM_ROOT/usr/share/bootloader/boot/u-boot-odin2.dtb" ]; then
mkdir -p $BOOT_ROOT/boot
echo "Updating u-boot.dtb..."
cp -p $SYSTEM_ROOT/usr/share/bootloader/boot/u-boot.dtb $BOOT_ROOT/boot
echo "Updating u-boot-odin2.dtb..."
cp -p $SYSTEM_ROOT/usr/share/bootloader/boot/u-boot-odin2.dtb $BOOT_ROOT/boot
fi
if [ -f "$SYSTEM_ROOT/usr/share/bootloader/boot/u-boot-pocket-ace.dtb" ]; then
mkdir -p $BOOT_ROOT/boot
echo "Updating u-boot-pocket-ace.dtb..."
cp -p $SYSTEM_ROOT/usr/share/bootloader/boot/u-boot-pocket-ace.dtb $BOOT_ROOT/boot
fi
# mount $BOOT_ROOT ro

Some files were not shown because too many files have changed in this diff Show More