I have been using mfgtool "L4.9.11_1.0.0-ga_mfg-tools" pretty safely till now. I was creating 3 partitions in my image by modifying "mksdcard.sh.tar" for a 2 GB emmc card. Now i have changed to 4GB emmc card and somehow i am not able to fix the offsets used in ucl2.xml to erase the emmc. I have also increased the partition size. Due to which it seems some of the partitions are not getting cleared and i see crash on my wifi driver probing emmc.
Attach is the ucl2.xml and mksdcard.sh for reference. Please help!