mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-28 02:35:28 +00:00
For chromeos devices with the stm32 EC we write the firmware via uart. Often developers are connected to this UART for console I/O which causes flash_ec to fail. This change looks for any pids currently attached to the UART and forcibly kills them prior to attempting to write the firmware. Signed-off-by: Todd Broch <tbroch@chromium.org> BRANCH=spring BUG=none TEST=manual, ./util/flash_ec --board spring ... Forcibly grabs UART from both: cu -l /dev/pts/<num> minicom -p /dev/pts/<num> Change-Id: Ie2a2b7aaf437c2cedd1d16e399c63068f2b02da3 Reviewed-on: https://gerrit.chromium.org/gerrit/45217 Reviewed-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-by: Vincent Palatin <vpalatin@chromium.org> Commit-Queue: Todd Broch <tbroch@chromium.org> Tested-by: Todd Broch <tbroch@chromium.org>