Hi Nick,
flash_erase /dev/mtd0 0 224
...
flash_erase /dev/mtd0 0 16
It always mtd0. There's too much repetition in the code so errors like this are likely to creep in. Consider the approach I suggested in https://www.earth.li/pipermail/e3-hacking/2019-April/001314.html Then the `0' of mtd0, etc., it only typed once.