We used the JAXI SOM with JetPack 5.1 on our project. But the default ROOTFS SIZE is 28GiB, and I tried to extend the ROOTFS SIZE to 58GiB with option -S, which caused fail to reflash EMMC.
can you try directly running again with sudo ./flash.sh ..., and without bash -x?
These control characters make the log very hard to read.
Also, are you able to flash it without the -S option?
It did not even enter the process where partitions were actually written into the storage device, so maybe the issue is not about the APP partition size.
it may be a bug in the partition layout file, and we can re-produce this issue on our side.
We’ll see if we can get it fixed, and report here given any update.