OLinuXino Lime 2 fails to boot after few powercuts

Started by Julien, May 24, 2023, 10:44:31 AM

Previous topic - Next topic

Julien

Hello,

We would like to use Lime 2 for an industrial project.

We are currently testing the board's power loss tolerance.
To do this, we are driving the power supply of a Lime 2 and generating power loss.
We are using an electrical relay.

For some unknown reason, the board stopped booting after a few power loss simulations. The image is not corrupted because if we restart the board (unplug/plug power supply), the board will boot.

The red LED near the socket is on when the board doesn't boot.

We are using an SD card (and we have tried several SD cards but the problem persists.

We have tried another Lime 2 board, but we have the same problem.

We are using the latest OlinuxIno image (A20-OLinuXino-bullseye-minimal-20230515-130040).

We think it's a power problem because Uboot won't boot (no logs on debug). Maybe our relay is generating a surge or something like that?

Have you ever had this problem before?

LubOlimex

#1
How fast do you toggle the power supply? If you toggle too fast some capacitors would remain charged and conflict situation would occur.

It is generally not a good practice to unplug the power supply and re-plug it. Eventually it would lead to Linux corruption or SD card corruption.

If you expect power downs, my advice is to incorporate a Li-Po battery (with maybe Li-Po battery charge monitoring and software shutdown).

> For some unknown reason, the board stopped booting after a few power loss simulations. The image is not corrupted because if we restart the board (unplug/plug power supply), the board will boot.

I am confused. Does it boot or not? Did you still try with another card with fresh image?

Sometimes the card might look like it alright but tiny part of it might be corrupted and you experience that corruption only in corner cases.
Technical support and documentation manager at Olimex

Julien

Thank you for your response.

> How fast do you toggle the power supply?
We wait 10 seconds after switching off before switching on.

> I am confused. Does it boot or not?
For example, it boots 4 times, but the fifth time it doesn't boot.

> Did you still try with another card with fresh image?
Yes, but the problem remains the same.

We are trying with the emmc, I will keep you informed.

LubOlimex

As I said this is generally a bad practice. These tests can't end up positive result.

Sudden loss of power supply is not something that is recommended to happen to the hardware. Sudden power downs will certainly lead to some problems.
Technical support and documentation manager at Olimex

Julien

We've identified the cause of the problem, it's the power module that's not starting properly. There is no 3.3V when the problem occurs.


> As I said this is generally a bad practice. These tests can't end up positive result.

In fact, it's a problem, as you say, we need to use a UPS system.