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
Thanks, but emmc handles the translation. I don’t think ubi is used here. ubi works well for flash memories like NAND.
Regarding the boot menu that’s what I was trying to avoid. Not having to flash NAND again, and directly flash a new verison to test to EMMC.
Anyways I was able to make it work with something like this:
Sorry,misunderstood…thought you wanted nand installation…yes for emmc it should work like you posted. Did not know that gpt binary is also available from openwrt imagebuilder to be flashed.