crossystem: Add fw_other_slot_failed

Add a read-only crossystem property for VB2_NV_FW_OTHER_SLOT_FAILED,
which says whether the other firmware slot had failed when the device
last switched away from it. This helps debug A/B slot selection, e.g.
why a single failure leads to recovery instead of trying the other
slot.

Firmware without the field never sets the bit, so the property reads 0
there.

BRANCH=none
BUG=b:184304285
TEST=make run2tests USE_FLASHROM=0
TAG=agy
CONV=22503f2d-2161-4a37-9f9d-fe851ee04c47

Change-Id: I31ce1186a3993af465464b49aa220dd36a6a6964
Signed-off-by: Yu-Ping Wu <yupingso@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/8842419
Reviewed-by: Julius Werner <jwerner@chromium.org>
Commit-Queue: Yu-Ping Wu <yupingso@chromium.org>
Tested-by: Yu-Ping Wu <yupingso@chromium.org>
2 files changed