[Android Stick & Console AMLogic based Computers] beta.0:
Still gets stuck on boot logo after unpacking and repacking to aml upgrade package with the test build.

I think I found the problem. When repacking the message "Status: (level1) Making system sparse image..." only shows for 2 to 3 seconds and then skips to the next command.

So it seems like it's not converting the system image to sparse format before repacking. In the log it doesn't even show a line for img2simg, just simg2img during the unpacking phase. We should see a sparse conversion with img2simg right after the make_ext4fs command for the system partition:

[SHELL] : make_ext4fs -L system -T 1548525880.96948 -S "tmp\level2\file_contexts" -l 2147483648 -a system "tmp\level2\system.img" "tmp\level2\system"

If I uncheck "Add platform configuration to firmware" the status indicator shows "Status: (level1) Making system sparse image..." for slightly longer (~10 secs) than without it checked (~3 sec) but it still results in no boot/stuck on boot logo.

Anything else I can try? I've already disable my antivirus in case that was the culprit but it was added to Trusted apps anyway.

Log:

DEBUG INFO -----------------------------------------------------------------------
Windows name: Microsoft Windows 10 Home
x64 Architecture: True
PC Architecture: AMD64
Path of the program: C:\Users\[username]\Desktop\CtoolTest\
----------------------------------------------------------------------------------

[CUSTOMIZATION_TOOL] : Unpacking D:\#Android Boxes\#Firmware\Mini M8S Pro S912\2G-16G 3G-32G\Beelink GT1 DDR4 D0\GT1_709D0_20180702.img to level 2..
[CUSTOMIZATION_TOOL] : Rescursive delete "C:\Users\[username]\Desktop\CtoolTest\tmp"
[CUSTOMIZATION_TOOL] : LEVEL 1 ---------------------------------------
[CUSTOMIZATION_TOOL] : Splitting partitions from package..
[UNPACKER] : Unpacking upgrade package
[SHELL] : AmlImagePack -d "D:\#Android Boxes\#Firmware\Mini M8S Pro S912\2G-16G 3G-32G\Beelink GT1 DDR4 D0\GT1_709D0_20180702.img" "tmp\level1"
[CUSTOMIZATION_TOOL] : LEVEL 2 ---------------------------------------
[CUSTOMIZATION_TOOL] : Attempting dtb unpack
[UNPACKER] : Unpacking DTB partition
[UNPACKER] : [BITSPLIT] : Splitting tmp\level1\_aml_dtb.PARTITION.tmp from 0 to 2047 with output to tmp\level2\dtb\aml_head
[UNPACKER] : [BITSPLIT] : Splitting tmp\level1\_aml_dtb.PARTITION.tmp from 2048 to 47103 with output to tmp\level2\dtb\1.dtb
[UNPACKER] : [BITSPLIT] : Splitting tmp\level1\_aml_dtb.PARTITION.tmp from 47104 to 94207 with output to tmp\level2\dtb\2.dtb
[UNPACKER] : [BITSPLIT] : Splitting tmp\level1\_aml_dtb.PARTITION.tmp from 94208 to 141311 with output to tmp\level2\dtb\3.dtb
[SHELL] : dtc -I dtb -O dts -o "tmp\level2\dtb\dtb_1" "tmp\level2\dtb\1.dtb"
[SHELL] : dtc -I dtb -O dts -o "tmp\level2\dtb\dtb_2" "tmp\level2\dtb\2.dtb"
[SHELL] : dtc -I dtb -O dts -o "tmp\level2\dtb\dtb_3" "tmp\level2\dtb\3.dtb"
[UNPACKER] : Storing DTB lengths
[UNPACKER] : Success
[CUSTOMIZATION_TOOL] : Attempting kernel unpack
[UNPACKER] : Unpacking kernel based partition
[SHELL] : unpackbootimg -i "tmp\level1\boot.PARTITION" -o "tmp\level2\boot"
[SHELL] : cmd.exe /C ""bin\gzip.exe" -dcv ..\ramdisk.gz | "bin\cpio.exe" -i"
[UNPACKER] : Success
[CUSTOMIZATION_TOOL] : Attempting recovery unpack
[UNPACKER] : Unpacking kernel based partition
[SHELL] : unpackbootimg -i "tmp\level1\recovery.PARTITION" -o "tmp\level2\recovery"
[SHELL] : cmd.exe /C ""bin\gzip.exe" -dcv ..\ramdisk.gz | "bin\cpio.exe" -i"
[UNPACKER] : Success
[CUSTOMIZATION_TOOL] : Atempting system unpack
[UNPACKER] : Unpacking system partition
[UNPACKER] : Rescursive delete "C:\Users\[username]\Desktop\CtoolTest\tmp\level2\system"
[SHELL] : simg2img "tmp\level1\system.PARTITION" "tmp\level1\system.PARTITION.raw.img"
[UNPACKER] : Detected size of system partition = 2147483648
[SHELL] : ImgExtractor "tmp\level1\system.PARTITION.raw.img" "tmp\level2\system"
[UNPACKER] : Success
[UNPACKER] : Generating correct file contexts
[UNPACKER] : Converting contexts
[SHELL] : sefcontext_decompile -o "tmp\level2\file_contexts" "tmp\level2\boot\ramdisk\file_contexts.bin"
[UNPACKER] : Success
[CUSTOMIZATION_TOOL] : Unpack complete
[CUSTOMIZATION_TOOL] : Creating upgrade package D:\#Android Boxes\#Firmware\Mini M8S Pro S912\2G-16G 3G-32G\Beelink GT1 DDR4 D0\repack_test.img
[CUSTOMIZATION_TOOL] : LEVEL 2 ---------------------------------------
[CUSTOMIZATION_TOOL] : Attempting rebuild of kernel..
[UNPACKER] : Repacking kernel based partition
[SHELL] : cmd.exe /C ""bin\mkbootfs.exe" ramdisk | "bin\gzip.exe" -c -9 > ramdisk.gz"
[UNPACKER] : Read data "tmp\level2\boot\board" -
[UNPACKER] : Read data "tmp\level2\boot\base" - 01078000
[UNPACKER] : Read data "tmp\level2\boot\base" - 01078000
[UNPACKER] : Read data "tmp\level2\boot\pagesize" - 2048
[UNPACKER] : Read data "tmp\level2\boot\pagesize" - 2048
[UNPACKER] : Read data "tmp\level2\boot\cmdline" - buildvariant=userdebug
[UNPACKER] : Read data "tmp\level2\boot\cmdline" - buildvariant=userdebug
[UNPACKER] : Read data "tmp\level2\boot\kerneloff" - 00008000
[UNPACKER] : Read data "tmp\level2\boot\kerneloff" - 00008000
[UNPACKER] : Read data "tmp\level2\boot\ramdiskoff" - fff88000
[UNPACKER] : Read data "tmp\level2\boot\ramdiskoff" - fff88000
[UNPACKER] : Read data "tmp\level2\boot\tagsoff" - fef88100
[UNPACKER] : Read data "tmp\level2\boot\tagsoff" - fef88100
[SHELL] : mkbootimg.exe --kernel "zImage" --ramdisk "ramdisk.gz" --pagesize "2048" --base 0x01078000 --kernel_offset 0x00008000 --ramdisk_offset 0xfff88000 --tags_offset "0xfef88100" --cmdline "buildvariant=userdebug" -o "tmp\level2\boot.img"
[UNPACKER] : Success
[CUSTOMIZATION_TOOL] : Attempting rebuild of recovery..
[UNPACKER] : Repacking kernel based partition
[SHELL] : cmd.exe /C ""bin\mkbootfs.exe" ramdisk | "bin\gzip.exe" -c -9 > ramdisk.gz"
[UNPACKER] : Read data "tmp\level2\recovery\board" -
[UNPACKER] : Read data "tmp\level2\recovery\base" - 01078000
[UNPACKER] : Read data "tmp\level2\recovery\base" - 01078000
[UNPACKER] : Read data "tmp\level2\recovery\pagesize" - 2048
[UNPACKER] : Read data "tmp\level2\recovery\pagesize" - 2048
[UNPACKER] : Read data "tmp\level2\recovery\cmdline" - buildvariant=userdebug
[UNPACKER] : Read data "tmp\level2\recovery\cmdline" - buildvariant=userdebug
[UNPACKER] : Read data "tmp\level2\recovery\kerneloff" - 00008000
[UNPACKER] : Read data "tmp\level2\recovery\kerneloff" - 00008000
[UNPACKER] : Read data "tmp\level2\recovery\ramdiskoff" - fff88000
[UNPACKER] : Read data "tmp\level2\recovery\ramdiskoff" - fff88000
[UNPACKER] : Read data "tmp\level2\recovery\tagsoff" - fef88100
[UNPACKER] : Read data "tmp\level2\recovery\tagsoff" - fef88100
[SHELL] : mkbootimg.exe --kernel "zImage" --ramdisk "ramdisk.gz" --pagesize "2048" --base 0x01078000 --kernel_offset 0x00008000 --ramdisk_offset 0xfff88000 --tags_offset "0xfef88100" --cmdline "buildvariant=userdebug" -o "tmp\level2\recovery.img"
[UNPACKER] : Success
[CUSTOMIZATION_TOOL] : Kernel rebuilt successfully
[CUSTOMIZATION_TOOL] : Recovery rebuilt successfully
[CUSTOMIZATION_TOOL] : Attempting rebuild of dtb..
[UNPACKER] : Repacking dtb partition
[SHELL] : dtc -I dts -O dtb -o "tmp\level2\dtb\converted_dtb_1" "tmp\level2\dtb\dtb_1"
[UNPACKER] : [SIZEINFLATER] : Inflating tmp\level2\dtb\converted_dtb_1 from 44742B to 45056B
[UNPACKER] : [APPEND] : converted_dtb_1 to dtb.img
[SHELL] : dtc -I dts -O dtb -o "tmp\level2\dtb\converted_dtb_2" "tmp\level2\dtb\dtb_2"
[UNPACKER] : [SIZEINFLATER] : Inflating tmp\level2\dtb\converted_dtb_2 from 45136B to 47104B
[UNPACKER] : [APPEND] : converted_dtb_2 to dtb.img
[SHELL] : dtc -I dts -O dtb -o "tmp\level2\dtb\converted_dtb_3" "tmp\level2\dtb\dtb_3"
[UNPACKER] : [SIZEINFLATER] : Inflating tmp\level2\dtb\converted_dtb_3 from 45136B to 47104B
[UNPACKER] : [APPEND] : converted_dtb_3 to dtb.img
[UNPACKER] : Success
[CUSTOMIZATION_TOOL] : Dtb rebuilt successfully
[CUSTOMIZATION_TOOL] : Attempting repack of system..
[UNPACKER] : Repacking system partition
[SHELL] : make_ext4fs -L system -T 1548525880.96948 -S "tmp\level2\file_contexts" -l 2147483648 -a system "tmp\level2\system.img" "tmp\level2\system"
[UNPACKER] : Success
[CUSTOMIZATION_TOOL] : System repacked successfully
[CUSTOMIZATION_TOOL] : LEVEL 1 ---------------------------------------
[CUSTOMIZATION_TOOL] : Building upgrade package structured img
[UNPACKER] : Adding platform configuration
[UNPACKER] : Repacking upgrade package
[SHELL] : AmlImagePack -r "tmp\level1\image.cfg" "tmp\level1" "D:\#Android Boxes\#Firmware\Mini M8S Pro S912\2G-16G 3G-32G\Beelink GT1 DDR4 D0\repack_test.img"
[UNPACKER] : Success
[CUSTOMIZATION_TOOL] : Successfully built upgrade package