I have an A95x max, use S905X2 too, 64G ROM, 4G RAM.
I use firmware "Armbian_5.99_Aml-g12_Ubuntu_bionic_dev_5.4.0-rc6_20191110.img" and config "meson-g12a-x96-max.dtb", It seems to work well in USB drive.
But after I run “install.sh” to install to my internal flash. the tvbox has probability bricked when i write more filesystem.
I use reset button to recovery the boot config. It can boot. I check the file, and found some files are changed.
I think armbian partition may overlaps with the uboot's config position.
I modify file “install.sh” form:
parted -s "${DEV_EMMC}" mkpart primary fat32 700M 828M
parted -s "${DEV_EMMC}" mkpart primary ext4 829M 100%
to:
parted -s "${DEV_EMMC}" mkpart primary fat32 3072M 3200M
parted -s "${DEV_EMMC}" mkpart primary ext4 3201M 100%
and reinstall to internal flash, it works fine.
I wan't to know the accurate offset for uboot config.
I went to the official Android system to check the partition and got the results:
major minor #blocks name
252 0 512000 zram0
179 0 61071360 mmcblk0
179 1 4096 mmcblk0p1
179 2 65536 mmcblk0p2
179 3 1146880 mmcblk0p3
179 4 8192 mmcblk0p4
179 5 8192 mmcblk0p5
179 6 24576 mmcblk0p6
179 7 8192 mmcblk0p7
179 8 8192 mmcblk0p8
179 9 8192 mmcblk0p9
179 10 16384 mmcblk0p10
179 11 16384 mmcblk0p11
179 12 16384 mmcblk0p12
179 13 32768 mmcblk0p13
179 14 262144 mmcblk0p14
179 15 262144 mmcblk0p15
179 16 1900544 mmcblk0p16
179 17 57126912 mmcblk0p17
179 96 4096 mmcblk0rpmb
179 64 4096 mmcblk0boot1
179 32 4096 mmcblk0boot0
But I can't understand it.