1

after a while of my headless Pi being on it usually crashes so that I then have to psychically unplug power. I have noticed that after a crash, red light is gone but the green LED ACT is blinking at a constant rate, never stopping. What does this mean?

user4191887
  • 129
  • 3

2 Answers2

1

The big picture here is that this is a response to critical firmware or software not being found on the first partition of the SD card.

This means the card is being read, and is formatted correctly at least to the extent that the first partition has been found. If instead the formatting is completely wrong/corrupted, the response would be the same as if no card is inserted -- either the green ACT light will be off, or else it will be on solid, depending on model (and possibly updates to/revision of the onboard firmware).

Different boards also differ with regard to the pattern occurring just once, or being repeated with a short delay. Yours sounds like the latter but the relevance is the same in both cases.

The elinux.org troubleshooting page has an evolving section about this, and since the meaning of the number blinks is prone to change and the distinction between "start.elf not found" and "start.elf not launched" is probably not relevant to most people asking this question, I'll summarize the issue further:

  • The first, small (50-60 MB), vfat formatted partition contains a handful of firmware or binary executable programs required to start the system usefully. This generally includes an operating system kernel.

  • If any of these is missing, mismatched, or corrupted, the boot will fail and a pattern of blinks used as an indicator.

The easy solution would be to replace the entire contents of the first partition from a fresh image. You could do this by burning the image to another card and copying, or by mounting the image and copying out directly.

Beware that this may produce a situation where you do not have the correct kernel modules installed in the second partition, however, that problem will not prevent the boot itself (it will mean that wifi and other things may not work), and you won't get the blinking pattern. If that happens you should be able to correct the situation by updating the OS.

The cause...

May be a serious complication, because it's almost certainly some form of corruption, and that may also have affected the root filesystem, which will be difficult or impossible to fix if you do not have a backup. However, that problem will not produce a steady blinking pattern from the ACT led, so getting there is getting somewhere (although it may not matter if you have to reburn the whole card in the end anyway).

"Corruption" of this sort could occur if the card is worn out or damaged, so if you are sure you haven't been yanking the cord too much, try a new card. It could also lead to random crashes, which is what seems to have lead you into this predicament in the first place.

goldilocks
  • 60,325
  • 17
  • 117
  • 234
0

If the PWR LED is not lit there is inadequate power. Full stop.

This LED is controlled by simple hardware on the Pi2.

Even if it is lit power may be inadequate.

Until you resolve the power issue anything else is a waste of time.

PS The Pi2/3 MAY appear to run with low voltage, as the Pi itself has an on-board regulator, and runs on 3.3V & 1.8V. This should not be considered normal operation.

Milliways
  • 62,573
  • 32
  • 113
  • 225