Remote Image Update via WLAN

Hi, I am a newbie and have not been able to find any information about this topic. I am interested in a remote “firmware” update of the BBB via WLAN connected to a remote web server. Ideally, there would be a fail safe such as the currently deployed image saved on the SD card until the new image has been confirmed running.

I would appreciate if someone could point me in the right direction. As a second choice, is it possible to do a firmware update through the USB to host computer without having to press the Boot button?

Why not have two rootfs partitions and then have some flag in your boot partition, along with a failed attempt counter, and have u-boot do the switchover.