Fix non-determinstic boot hang with crashdumps
Fix non-determinstic boot hang with crashdumps

On boot, if board_hardfault_init finds a hardfault stored in BBSRAM, it
checks if there is any data available on stdin to see if there is
somebody there to respond to a prompt. But on boards such as cubeorange
where there is not a serial console by default, the ioctl fails and
bytesWaiting is uninitialized. So it will non-deterministally hang the
boot process with no outside feedback if that value is not zero.

Signed-off-by: Alex Mikhalev <28611c3b13ccedbefa9bb293effac7d7b0ecd48b@gmail.com>

krbeverx/Firmware,acfloria/Firmware,krbeverx/Firmware,krbeverx/Firmware,acfloria/Firmware,acfloria/Firmware,acfloria/Firmware,acfloria/Firmware,krbeverx/Firmware,krbeverx/Firmware,acfloria/Firmware,krbeverx/Firmware,krbeverx/Firmware,acfloria/Firmware