During a system halt (power down) what code actually blinks the act LED 10 times?
I've been perusing the code and what appears to happen during the processing of the halt command, but I don't see where the activity LED (led0) is blinked ten times before the actual halt (and it's part of halt itself - "halt -d -f -p" will indeed immediately halt the system with the ten blinks). Anyone happen to know the kernel/CPU code enough to say?
Note that I've been poring over the code in https://github.com/raspberrypi/linux but I'm not finding it there. It's been suggested it might be in the GPU blob but I'm not sure of that either.
Is there a good architectural description of a Pi's instance lifecycle, from power on to halt/power off? When the "blob" hands over to the kernel and when or if it resumes control before the halt?