I have an a SanDisk 2Gb microsd with just u-boot (maybe 8 mo old) and a Kingston 8Gb microsd and just u-boot (2016-9).
Code:
Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1 2048 135167 133120 65M b W95 FAT32
Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1 2048 15351807 15349760 7.3G 83 Linux
Same thing on both no MTD offsets in /proc/mtd.
Code:
root@bpro10:/home/rick# cat /proc/mtd
dev: size erasesize name
root@bpro10:/home/rick#
I had found a blog where the fellow had calculated the sunxi offsets as
Code:
/dev/mmcblk0 0x88000 0x20000
but without the flash sector size. He said it worked for him. I put it in my /etc/fw_env.config.
The 8 gig card can't see a /dev/mtd
Code:
root@bpro9:/home/rick# fw_printenv
Cannot access MTD device /dev/mmcblk0: No such file or directory
The 8 gig card does a bit better
Code:
root@bpro10:/home/rick# fw_printenv
Warning: Bad CRC, using default environment
bootcmd=setenv bootargs ${console} ${mtdparts} ${bootargs_root}; ubi part root; ubifsmount ubi:rootfs; ubifsload 0x800000 ${kernel}; ubifsload 0x700000 ${fdt}; ubifsumount; fdt addr 0x700000; fdt resize; fdt chosen; bootz 0x800000 - 0x700000
bootdelay=3
baudrate=115200
preboot=
console=console=ttyS0,115200
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:896K(uboot),128K(uboot_env),-@1M(root)
kernel=/boot/zImage
fdt=/boot/guruplug-server-plus.dtb
bootargs_root=ubi.mtd=2 root=ubi0:rootfs rootfstype=ubifs rw
but I don't know where the 'fdt=/boot/guruplug-server-plus.dtb" comes from. I've either used your 'latest' u-boot, one from Debian, or this might be one I cross compiled awhile back.