Browse Source

x230: run flashrom to find chipname if not given

pull/35/head
Martin Kepplinger 6 years ago
parent
commit
c49d3b6c11
2 changed files with 5 additions and 2 deletions
  1. +2
    -1
      x230/flashrom_rpi_bottom_unlock.sh
  2. +3
    -1
      x230/flashrom_rpi_top_write.sh

+ 2
- 1
x230/flashrom_rpi_bottom_unlock.sh View File

@ -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


+ 3
- 1
x230/flashrom_rpi_top_write.sh View File

@ -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


Loading…
Cancel
Save