Using mtd to upgrade firmware

scp test@192.168.0.104:/home/test/carambola_tester/bin/ramips/openwrt-ramips-rt305x-carambola-squashfs-sysupgrade.bin /tmp
mtd -r write /tmp/openwrt-ramips-rt305x-carambola-squashfs-sysupgrade.bin firmware