SSH to EA0326GMP, backup everything, especially 'Factory' part.
Write new BL2:
mtd write openwrt-mediatek-filogic-nokia_ea0326gmp-preloader.bin BL2
Write new FIP:
mtd write openwrt-mediatek-filogic-nokia_ea0326gmp-bl31-uboot.fip FIP
Set static IP on your PC:
IP 192.168.1.254/24, GW 192.168.1.1
Serve OpenWrt initramfs image using TFTP server.
Cut off the power and re-engage, wait for TFTP recovery to complete.
After OpenWrt has booted, perform sysupgrade.
My router already has a custom uboot and a custom openwrt installed. I also can ssh to the router. Below is the partition information. For the above step# 1- 7, what step(s) that I can skip to get the official bl31-uboot.fip installed on the router? Can I only perform the step#7 in OpenWrt instead of in uboot?Thank you.
We have no idea what your current Chinese(?) custom u-boot & firmware actually does, so everything below is pure guess. The best advice you could get from people who from whom you have got the custom u-boot and firmware. Possibly @1715173329 , but might be somebody else.
As early bootloader is BL2 and actual u-boot is FIP, you need at least step 3 and likely also step 2 to be done from OpenWrt. Those are are actual u-boot flashing steps there.
Then you can use the TFTP recovery feature in the OpenWrt u-boot to get the proper OpenWrt flashed. (steps 4-7)
Ps.
And if those partitions BL2 and FIP are write-protected (like normally), you may also need to install kmod-mtd-rw first. Hopefully your custom firmware provider also provides that. (You can't install kmods from other download sources, so it needs to come from your custom firmware provider.
And if those partitions BL2 and FIP are write-protected (like normally), you may also need to install kmod-mtd-rw first. Hopefully your custom firmware provider also provides that. (You can't install kmods from other download sources, so it needs to come from your custom firmware provider.
And yes they're locked. So @roberthuang you have to compile a new firmware from souce and make sure you have kmod-mtd-rw included (or simply remove read-only properties from the dts).
One last question, once I have the official uboot and openwrt firmware installed on my router, for the future openwrt firmware sysupgrade, do I perform it in uboot or in openwrt?
Normally (with most routers that have internal flash), you use the OpenWrt sysupgrade routine to flash a new sysugrade image to get into new OpenWrt version.
Likely so also with your router.