From above I can see there's indeed something funny with partitioning; hence I asked what command "sfdisk --json /devmmcblk1" shows. (you forgot the --json part...) That command will tell what is the type of partition it does not recognize....