This is a nice example: using netcat to receive and update the firmware:
netcat -l 10000 | dd of=/dev/mtd
If you are in a cave for the last few months and dont know, nxboot is a bootloader based on NuttX RTOS. The idea to develop nxboot came from a NuttX developer Michal Lenc when he suggested some improvement to MCUBoot project and they rejected it. Instead of forking MCUBoot project he realized that NuttX could be even smaller than MCUBoot and decided to create NXBoot.