From c49d3b6c11ab8398513d326ef3ced26a8405b7be Mon Sep 17 00:00:00 2001 From: Martin Kepplinger Date: Thu, 17 May 2018 10:00:28 +0200 Subject: [PATCH] x230: run flashrom to find chipname if not given --- x230/flashrom_rpi_bottom_unlock.sh | 3 ++- x230/flashrom_rpi_top_write.sh | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/x230/flashrom_rpi_bottom_unlock.sh b/x230/flashrom_rpi_bottom_unlock.sh index 88809d9..7de1760 100755 --- a/x230/flashrom_rpi_bottom_unlock.sh +++ b/x230/flashrom_rpi_bottom_unlock.sh @@ -65,8 +65,9 @@ do done if [ ! "$have_chipname" -gt 0 ] ; then - echo "no chipname provided. to find it out, run:" + echo "no chipname provided. To get it, we run::" echo "flashrom -p linux_spi:dev=/dev/spidev0.0,spispeed=128" + flashrom -p linux_spi:dev=/dev/spidev0.0,spispeed=128 usage exit 1 fi diff --git a/x230/flashrom_rpi_top_write.sh b/x230/flashrom_rpi_top_write.sh index 6a664ac..1414b3e 100755 --- a/x230/flashrom_rpi_top_write.sh +++ b/x230/flashrom_rpi_top_write.sh @@ -64,8 +64,10 @@ if [ ! "$have_input_image" -gt 0 ] ; then fi if [ ! "$have_chipname" -gt 0 ] ; then - echo "no chipname provided. to find it out, run:" + echo "no chipname provided. To get it out, we run:" echo "flashrom -p linux_spi:dev=/dev/spidev0.0,spispeed=128" + flashrom -p linux_spi:dev=/dev/spidev0.0,spispeed=128 + usage exit 1 fi