mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-03-31 14:41:55 -07:00
Add initial Pocket ACE support
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user