Raspberry Pi stuck in u-boot after mender update

Hi,

We have been using mender as our update platform for 3 months now and we are quite happy about it.

But we recently encounter more and more player stuck in “Rebooting” state (99%) on mender UI and on the player, u-boot keep looping with message:

Saving Environment to MMC... Writing to redundant MMC(0)... WARNING at drivers/mmc/bcm2835_sdhost.c:408/bcm835_send_command()!
WARNING at drivers/mmc/bcm2835_sdhost.c:408/bcm835_send_command()!
WARNING at drivers/mmc/bcm2835_sdhost.c:408/bcm835_send_command()!
WARNING at drivers/mmc/bcm2835_sdhost.c:408/bcm835_send_command()!
WARNING at drivers/mmc/bcm2835_sdhost.c:408/bcm835_send_command()!
WARNING at drivers/mmc/bcm2835_sdhost.c:408/bcm835_send_command()!
failed
Failed (1)

A power reset fixes the problem and the raspberry boots in the upgraded rootfs.

Has anyone seen this or have any hints about it ?

Thank you very much !

After using serial to debug u-boot, I’ve got another debug line:

Saving Environment to MMC... Writing to redundant MMC(0)... wait_transfer_complete - still waiting after 100001 retries
mmc write failed

The failure is at a very low level and looks to me like an hardware problem, e.g an issue with the SD cards or power supply.