coreboot: Buspirate flasher support
authorPaul Kocialkowski <contact@paulk.fr>
Tue, 4 Aug 2015 13:14:55 +0000 (15:14 +0200)
committerPaul Kocialkowski <contact@paulk.fr>
Tue, 4 Aug 2015 13:14:55 +0000 (15:14 +0200)
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
coreboot/coreboot-install.sh

index a860dc8..f3103b0 100755 (executable)
@@ -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