From d2de03cefa67e69fc3cc4eb75ebdbf34e1da71d5 Mon Sep 17 00:00:00 2001 From: Nicholas Chin Date: Fri, 5 Jan 2024 13:39:49 -0700 Subject: README.md: List E6520, E5530, and M4800 as supported Signed-off-by: Nicholas Chin --- util/dell-flash-unlock/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/util/dell-flash-unlock/README.md b/util/dell-flash-unlock/README.md index cbe33dad..fee2f20b 100644 --- a/util/dell-flash-unlock/README.md +++ b/util/dell-flash-unlock/README.md @@ -16,9 +16,9 @@ follow the directions it outputs. ## Confirmed supported devices - Latitude E6400, E6500 - Latitude E6410, E4310 -- Latitude E6420 -- Latitude E6430, E6530 -- Precision M6800 +- Latitude E6420, E6520 +- Latitude E6430, E6530, E5530 +- Precision M6800, M5800 It is likely that any other Latitude/Precision laptops from the same era as devices specifically mentioned in the above list will work as Dell seems to use -- cgit v1.2.1 From 051b17f4fe3bf6cd87624433746d4d57b09b0613 Mon Sep 17 00:00:00 2001 From: Nicholas Chin Date: Fri, 5 Jan 2024 14:38:47 -0700 Subject: README.md: Add notes about iopl and AC adapter requirement In order for the EC to maintain the state of whether or not to set the flash descriptor override across a power cycle, the AC adapter must be connected, as the system leaves the voltage rail that the EC uses powered under this condition. Without this, the utility may fail, continually asking the user to power off and on. On Linux, CONFIG_X86_IOPL_IOPERM must be set for the kernel, or else the iopl call will error with "Function not implemented". Make a note of this in case a user runs into this issue. Signed-off-by: Nicholas Chin --- util/dell-flash-unlock/README.md | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/util/dell-flash-unlock/README.md b/util/dell-flash-unlock/README.md index fee2f20b..f46394bf 100644 --- a/util/dell-flash-unlock/README.md +++ b/util/dell-flash-unlock/README.md @@ -8,10 +8,26 @@ E6400, which mainly seem to be the Latitude and Precision lines starting from around 2008 (E6400 era). ## TL;DR -On Linux, ensure you are booting with the `iomem=relaxed` kernel parameter. -On OpenBSD, ensure you are booting with securelevel set to -1. -Run `make` to compile the utility, and then run `sudo ./dell_flash_unlock` and -follow the directions it outputs. + +### Linux specific +- On Linux, ensure you are booting with the `iomem=relaxed` kernel parameter. +- If you get a "Function not implemented" error, ensure that your kernel has + "CONFIG_X86_IOPL_IOPERM" set to "y". Here are several common locations for + the config and how to check them: + - `zcat /proc/config.gz | grep IOPL` + - `grep IOPL /boot/config` + - `grep IOPL /boot/config-$(uname -r)` + If it says it is not set, then you will need to install or compile a kernel + with that option set. + +### OpenBSD +- On OpenBSD, ensure you are booting with securelevel set to -1. + +### General +Make sure an AC adapter is plugged into your system + +Run `make` to compile the utility, and then run `./dell_flash_unlock` with +root/superuser permissions and follow the directions it outputs. ## Confirmed supported devices - Latitude E6400, E6500 -- cgit v1.2.1 From bdd32a5c7f20ef7b91c784f180388b875c625bcb Mon Sep 17 00:00:00 2001 From: Nicholas Chin Date: Fri, 5 Jan 2024 14:52:03 -0700 Subject: README.md: Add Latitude E7270 as supported Signed-off-by: Nicholas Chin --- util/dell-flash-unlock/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/util/dell-flash-unlock/README.md b/util/dell-flash-unlock/README.md index f46394bf..f7b6ae33 100644 --- a/util/dell-flash-unlock/README.md +++ b/util/dell-flash-unlock/README.md @@ -34,6 +34,7 @@ root/superuser permissions and follow the directions it outputs. - Latitude E6410, E4310 - Latitude E6420, E6520 - Latitude E6430, E6530, E5530 +- Latitude E7240 - Precision M6800, M5800 It is likely that any other Latitude/Precision laptops from the same era as -- cgit v1.2.1