This almost caused a nasty accident on my Geos — without the MSR access it managed to erase *most* of the flash and write the new image, but didn't manage to change the last few KiB. Thankfully I'd already taken a copy of the old contents, and could flash them back.
Signed-off-by: David Woodhouse <david.woodho...@intel.com> --- Needed in AA branch too. utils/flashrom/Makefile | 2 +- utils/flashrom/patches/001-msr_dev_path.patch | 21 --------------------- 2 files changed, 1 insertions(+), 22 deletions(-) delete mode 100644 utils/flashrom/patches/001-msr_dev_path.patch diff --git a/utils/flashrom/Makefile b/utils/flashrom/Makefile index 354b991..c5f8dc1 100644 --- a/utils/flashrom/Makefile +++ b/utils/flashrom/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=flashrom PKG_VERSION:=0.9.4 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE_URL:=http://download.flashrom.org/releases diff --git a/utils/flashrom/patches/001-msr_dev_path.patch b/utils/flashrom/patches/001-msr_dev_path.patch deleted file mode 100644 index d018c72..0000000 --- a/utils/flashrom/patches/001-msr_dev_path.patch +++ /dev/null @@ -1,21 +0,0 @@ ---- a/physmap.c -+++ b/physmap.c -@@ -352,7 +352,7 @@ int setup_cpu_msr(int cpu) - { - char msrfilename[64]; - memset(msrfilename, 0, sizeof(msrfilename)); -- snprintf(msrfilename, sizeof(msrfilename), "/dev/cpu/%d/msr", cpu); -+ snprintf(msrfilename, sizeof(msrfilename), "/dev/msr%d", cpu); - - if (fd_msr != -1) { - msg_pinfo("MSR was already initialized\n"); -@@ -362,7 +362,8 @@ int setup_cpu_msr(int cpu) - fd_msr = open(msrfilename, O_RDWR); - - if (fd_msr < 0) { -- perror("Error while opening /dev/cpu/0/msr"); -+ fprintf(stderr, "Error while opening %s: %s\n", msrfilename, -+ strerror(errno)); - msg_pinfo("Did you run 'modprobe msr'?\n"); - return -1; - } -- 1.7.7.6 _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel