coreboot: Buspirate flasher support
[embedded-freedom-scripts.git] / coreboot / coreboot-install.sh
1 #!/bin/sh
2
3 SERIAL="/dev/ttyUSB1"
4
5 if [ "$1" = "buspirate" ]
6 then
7         sudo flashrom -p buspirate_spi:dev=$SERIAL,spispeed=8M -w coreboot-out/coreboot.rom
8 else
9         sudo flashrom -p ft2232_spi:type=openmoko -w coreboot-out/coreboot.rom
10 fi