From ad4ddfcfdbf634d2ba4746d92cfd11854f87417a Mon Sep 17 00:00:00 2001 From: Patrick Rudolph Date: Fri, 2 Feb 2018 15:07:09 +0100 Subject: util/intelmetool: Add additional helpful error messages Add more verbose error message for common problems on modern operating systems, like Secure Boot and CONFIG_STRICT_DEVMEM. Change-Id: Ie3361910d48271bcc2cd3b4b74937fbc5df0a176 Signed-off-by: Patrick Rudolph Reviewed-on: https://review.coreboot.org/25401 Tested-by: build bot (Jenkins) Reviewed-by: Philipp Deppenwiese --- util/intelmetool/intelmetool.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'util/intelmetool/intelmetool.c') diff --git a/util/intelmetool/intelmetool.c b/util/intelmetool/intelmetool.c index ae36fc58fc..5981e9ddbd 100644 --- a/util/intelmetool/intelmetool.c +++ b/util/intelmetool/intelmetool.c @@ -491,7 +491,8 @@ int main(int argc, char *argv[]) #ifndef __DARWIN__ fd_mem = open("/dev/mem", O_RDWR); if (fd_mem < 0) { - perror("Can not open /dev/mem"); + perror("Can not open /dev/mem. Do you have disabled " + "Secure Boot ?"); exit(1); } -- cgit v1.2.3