From 886a1a9a69fb8a26ffd9bd5f0fa4821f15afbdef Mon Sep 17 00:00:00 2001 From: janko888 <919519906@qq.com> Date: Mon, 10 Oct 2022 16:59:37 +0800 Subject: [PATCH] =?UTF-8?q?add=20mbh-m302a=20=EF=BC=88s905l3b/s905l3?= =?UTF-8?q?=EF=BC=89=20dtb?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../rootfs/etc/amlogic_model_database.conf | 1 + .../common-files/rootfs/usr/sbin/armbian-install | 13 ++++++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/build-armbian/common-files/rootfs/etc/amlogic_model_database.conf b/build-armbian/common-files/rootfs/etc/amlogic_model_database.conf index 1cfed8a962..52f43db057 100644 --- a/build-armbian/common-files/rootfs/etc/amlogic_model_database.conf +++ b/build-armbian/common-files/rootfs/etc/amlogic_model_database.conf @@ -26,6 +26,7 @@ 107:B860H:s905x:meson-gxl-s905x-b860h.dtb:u-boot-p212.bin:NA:NA 108:TBee:s905x:meson-gxl-s905x-tbee.dtb:u-boot-p212.bin:NA:NA 109:W95:s905w:meson-gxl-s905w-p281.dtb:u-boot-s905x-s912.bin:NA:NA +110:M302A:s905x:meson-gxl-s905l3b-m302a.dtb:u-boot-s905x-s912.bin:NA:NA # Amlogic GXM Family 201:Octopus Planet:s912:meson-gxm-octopus-planet.dtb:u-boot-zyxq.bin:NA:NA diff --git a/build-armbian/common-files/rootfs/usr/sbin/armbian-install b/build-armbian/common-files/rootfs/usr/sbin/armbian-install index 2f05f012c5..bee0e014ee 100755 --- a/build-armbian/common-files/rootfs/usr/sbin/armbian-install +++ b/build-armbian/common-files/rootfs/usr/sbin/armbian-install @@ -223,9 +223,16 @@ create_partition() { BOOT="512" BLANK2="220" elif [[ "${AMLOGIC_SOC}" == "s905x" ]]; then - BLANK1="700" - BOOT="160" - BLANK2="0" + if [[ "${boxid}" -eq "110" ]];then + # Compatible with Android 4 and Android 9 firmware + BLANK1="128" + BOOT="513" + BLANK2="720" + else + BLANK1="700" + BOOT="160" + BLANK2="0" + fi elif [[ "${AMLOGIC_SOC}" == "s905l3a" && "${boxid}" -eq "304" ]]; then BLANK1="570" # e900v22c/d: The first [ 570 MiB ] is not writable. BOOT="256"