root@OpenWrt:/mnt# mtd erase /dev/mtd0
Could not open mtd device: /dev/mtd0
Could not open mtd device: /dev/mtd0
root@OpenWrt:/mnt# cat /proc/mtd
dev: size erasesize name
mtd0: 00200000 00020000 "bl2"
mtd1: 07e00000 00020000 "ubi"
But if I want to boot something else in NAND and install an OpenWRT directly to emmc anyone know which is the procedure?
I’m having trouble with the bl31-uboot as well. I tried with mmcblk0p4 and mmcblk0p3 without success.
all these images are loaded in the sdcard - using the uboot menu you can choose an option to copy the files to the nand, and then from the nand to the emmc
if you want to change the default images names you need to change the uboot env variables or otherwise look at the package uboot-mediatek there will be patches (450-add-bpi-r4.patch) there that set the env variables for each device