sysutils/flashrom: update to 1.1

PR:		239800
Submitted by:	Michael Zhilin <mizhka@gmail.com> (maintainer)
This commit is contained in:
Steve Wills 2019-09-02 21:32:45 +00:00
parent a432d98d9d
commit 79358d09ec
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=510852
3 changed files with 5 additions and 34 deletions

View File

@ -2,10 +2,10 @@
# $FreeBSD$
PORTNAME= flashrom
PORTVERSION= 1.0
PORTREVISION= 1
PORTVERSION= 1.1
CATEGORIES= sysutils
MASTER_SITES= https://download.flashrom.org/releases/
DISTVERSIONPREFIX= v
MAINTAINER= mizhka@gmail.com
COMMENT= Utility for reading, writing, verifying, and erasing flash ROM chips
@ -29,7 +29,6 @@ PORTDOCS= *
OPTIONS_DEFINE= BUSPIRATE DOCS FTDI
OPTIONS_DEFINE_amd64= DMIDECODE
OPTIONS_DEFINE_i386= DMIDECODE
OPTIONS_DEFAULT= FTDI
OPTIONS_DEFAULT_amd64= DMIDECODE
OPTIONS_DEFAULT_i386= DMIDECODE

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1514932004
SHA256 (flashrom-1.0.tar.bz2) = 3702fa215ba5fb5af8e54c852d239899cfa1389194c1e51cb2a170c4dc9dee64
SIZE (flashrom-1.0.tar.bz2) = 321693
TIMESTAMP = 1565613761
SHA256 (flashrom-v1.1.tar.bz2) = aeada9c70c22421217c669356180c0deddd0b60876e63d2224e3260b90c14e19
SIZE (flashrom-v1.1.tar.bz2) = 348458

View File

@ -1,28 +0,0 @@
Avoid hang of serprog under FreeBSD
Use case is flashrom+serprog to read SPI flash (MX25L6406) via Arduino
Nano V3. Actual command is:
/usr/local/bin/flashrom -p serprog:dev=/dev/cuaU0:57600 -c MX25L6406E/MX25L6408E -r tcw770.dump
Using flashrom 0.9.9 it hangs after 5 seconds on read from tty ("ttyin").
The problem is that kernel method "ttydisc_rint" ignore same bytes. It
happens due to enabled IEXTEN local flag of termios. TTY cuts few bytes,
Arduino reads 11264 bytes, but flashrom gets 11244 bytes (corrupted) and
waits for remaining 20 bytes.
The fix is simple: turn off IEXTEN local flag.
https://patchwork.coreboot.org/patch/4498/
--- serial.c.orig 2016-11-18 19:39:55 UTC
+++ serial.c
@@ -203,7 +203,7 @@ int serialport_config(fdtype fd, int bau
}
wanted.c_cflag &= ~(PARENB | CSTOPB | CSIZE | CRTSCTS);
wanted.c_cflag |= (CS8 | CLOCAL | CREAD);
- wanted.c_lflag &= ~(ICANON | ECHO | ECHOE | ISIG);
+ wanted.c_lflag &= ~(ICANON | ECHO | ECHOE | ISIG | IEXTEN);
wanted.c_iflag &= ~(IXON | IXOFF | IXANY | ICRNL | IGNCR | INLCR);
wanted.c_oflag &= ~OPOST;
if (tcsetattr(fd, TCSANOW, &wanted) != 0) {