The size of system_r3521_APP.img is 7014133868.
The size of system_r3521_APP.img.raw is 62090379264.
The size of original bootloader/system.img is 5705757844.
The size of original bootloader/system.img.raw is 59055800320.
which size should I try?
Do I need to replace the file bootloader/system.img.raw?
No need, -S parameter for flash.sh is used to declare the size of rootfs.
If you don’t set this parameter, it would just use the default size (ROOTFSSIZE) and that wrong size might cause your issue.