Ubiquiti ER-X: create custom image

I've got an Ubiquiti ER-X flashing with Openwrt. I have made many changes and created modules.

Now, how to create a flashable image of openwrt (at the current state)?

This is the layout:

root@Openwrt:/# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00080000 00020000 "u-boot"
mtd1: 00060000 00020000 "u-boot-env"
mtd2: 00060000 00020000 "factory"
mtd3: 00300000 00020000 "kernel1"
mtd4: 00300000 00020000 "kernel2"
mtd5: 0f7c0000 00020000 "ubi"

I have try to boot (in RAM) mtd2, mtd3, mtd4, mtd5.
mtd4 actually boot with my customization (I tried it on the device itself).
mtd5 is big! 240MB

Any ideas?

1 Like

Does this help?

Sorry, my English is horrible :sweat_smile:

That's not what I meant to say.
I want to create a backup firmware (included all my modules, packages and configurations)
so that I will be able to flash another device and it will be ready.