Skip to content

Commit aa86e71

Browse files
authored
Merge pull request #615 from janko888/main
add mbh-m302a (s905l3b/s905l3) dtb
2 parents c37fb1d + f233f34 commit aa86e71

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

build-armbian/common-files/rootfs/etc/amlogic_model_database.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
107:B860H:s905x:meson-gxl-s905x-b860h.dtb:u-boot-p212.bin:NA:NA
2727
108:TBee:s905x:meson-gxl-s905x-tbee.dtb:u-boot-p212.bin:NA:NA
2828
109:W95:s905w:meson-gxl-s905w-p281.dtb:u-boot-s905x-s912.bin:NA:NA
29+
110:M302A:s905x:meson-gxl-s905l3b-m302a.dtb:u-boot-s905x-s912.bin:NA:NA
2930

3031
# Amlogic GXM Family
3132
201:Octopus Planet:s912:meson-gxm-octopus-planet.dtb:u-boot-zyxq.bin:NA:NA

build-armbian/common-files/rootfs/usr/sbin/armbian-install

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,9 +223,16 @@ create_partition() {
223223
BOOT="512"
224224
BLANK2="220"
225225
elif [[ "${AMLOGIC_SOC}" == "s905x" ]]; then
226-
BLANK1="700"
227-
BOOT="160"
228-
BLANK2="0"
226+
if [[ "${boxid}" -eq "110" ]];then
227+
# Compatible with Android 4 and Android 9 firmware
228+
BLANK1="128"
229+
BOOT="513"
230+
BLANK2="720"
231+
else
232+
BLANK1="700"
233+
BOOT="160"
234+
BLANK2="0"
235+
fi
229236
elif [[ "${AMLOGIC_SOC}" == "s905l3a" && "${boxid}" -eq "304" ]]; then
230237
BLANK1="570" # e900v22c/d: The first [ 570 MiB ] is not writable.
231238
BOOT="256"

0 commit comments

Comments
 (0)