From b1c934abecf0e5a034cc233780ea9cae8b25727e Mon Sep 17 00:00:00 2001 From: Paul Kocialkowski Date: Tue, 4 Aug 2015 15:14:55 +0200 Subject: [PATCH] coreboot: Buspirate flasher support Signed-off-by: Paul Kocialkowski --- coreboot/coreboot-install.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/coreboot/coreboot-install.sh b/coreboot/coreboot-install.sh index a860dc8..f3103b0 100755 --- a/coreboot/coreboot-install.sh +++ b/coreboot/coreboot-install.sh @@ -1,3 +1,10 @@ #!/bin/sh -sudo flashrom -p ft2232_spi:type=openmoko -w coreboot-out/coreboot.rom +SERIAL="/dev/ttyUSB1" + +if [ "$1" = "buspirate" ] +then + sudo flashrom -p buspirate_spi:dev=$SERIAL,spispeed=8M -w coreboot-out/coreboot.rom +else + sudo flashrom -p ft2232_spi:type=openmoko -w coreboot-out/coreboot.rom +fi -- 2.11.0