OK, so I think you have managed to partition the sdcard so that it is not recognized correctly. What does the command "sfdisk --json /dev/mmcblk1" output? (you need to run it as devel-su)