@Bio_TICFSL Thank you for the reference.
I tried the method and got following errors.
After expanding the partition (I expanded just a little as test) , I could not run the command
e2fsck -f /dev/mmcblk2p2
The tool complains about the partition being mounted.
Despite this, I tried expanding the rootfs using
resize2fs /dev/mmcblkp2
I got a message stating "There are errors in the filesystem, so online resizing is not allowed."
I have attached the error screenshot.
I have encountered this error previously as well. So I though it would be a good idea to resize the partition and rootfs through U-Boot.
Thank you!!