[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 08/14] website: docs: install: flashrom: document I/O port acc
From: |
Denis 'GNUtoo' Carikli |
Subject: |
[PATCH v2 08/14] website: docs: install: flashrom: document I/O port access. |
Date: |
Sat, 15 Jun 2024 10:34:10 +0200 |
From: Leah Rowe <leah@libreboot.org>
Signed-off-by: Leah Rowe <leah@libreboot.org>
Signed-off-by: Leah Rowe <info@minifree.org>
GNUtoo: fixed section underline, rebased, commit message, split patch.
Acked-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Acked-by: Adrien 'neox' Bourmault <neox@gnu.org>
---
ChangeLog:
- Added neox's Ack.
---
website/pages/docs/install/install.md | 32 +++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
diff --git a/website/pages/docs/install/install.md
b/website/pages/docs/install/install.md
index 3e4d1ca..aeba7b1 100644
--- a/website/pages/docs/install/install.md
+++ b/website/pages/docs/install/install.md
@@ -35,6 +35,38 @@ is `kernel.securelevel=-1`; see [NetBSD securelevel
manual](https://wiki.netbsd.org/tutorials/kernel_secure_levels/)
and [OpenBSD securelevel manual](https://man.openbsd.org/securelevel).
+ERROR: Could not get I/O privileges
+-----------------------------------
+
+Error message: `ERROR: Could not get I/O privileges (Function not implemented)`
+
+If you get this while running `flashrom -p internal -w filename.rom` (or any
+internal flash operation), note: flashrom heavily uses ioperm/iopl functions
+to operate the internal flasher, at least on x86 machines.
+
+See: <https://lwn.net/Articles/804143/>
+
+Yeah, just enable `CONFIG_X86_IOPL_IOPERM` in your Linux kernel. This is
+a *build-time* option, so you must re-compile your kernel, or find a build that
+has this option enabled (IOPL emulation). Many default kernel configurations
+now disable this option.
+
+Here's a handy-dandy guide for building a kernel from source:
+<https://www.cyberciti.biz/tips/compiling-linux-kernel-26.html> - NOTE: the
+GNU Boot project recommends use of linux-libre, not linux, but this guide
should
+work with linux-libre releases. Here is GNU Linux-libre, the deblobbed linux
+kernel:
+<https://www.fsfla.org/ikiwiki/selibre/linux-libre/index.en.html>
+
+**BSD users:** On OpenBSD and NetBSD if you get similar errors, note that it
+should work here, but you need to boot with `kern.securelevel=-1`.
+See: [NetBSD securelevel
manual](https://wiki.netbsd.org/tutorials/kernel_secure_levels/)
+and [OpenBSD securelevel manpage](https://man.openbsd.org/securelevel).
+
+Otherwise, if you get such errors, it may just be that you're not root. You
+must run flashrom as root, at least to use the internal flasher (using external
+USB flashing dongles doesn't normally require root).
+
About ROM image file names
==========================
--
2.45.1
- [PATCH v2 00/14] More website content patches., Denis 'GNUtoo' Carikli, 2024/06/15
- [PATCH v2 01/14] website: pages: Create new 'Get GNU Boot' landing page., Denis 'GNUtoo' Carikli, 2024/06/15
- [PATCH v2 05/14] website: status: clarify what kind of T60 are supported., Denis 'GNUtoo' Carikli, 2024/06/15
- [PATCH v2 02/14] website: pages: Get GNU Boot: separate install from upgrade., Denis 'GNUtoo' Carikli, 2024/06/15
- [PATCH v2 04/14] website: status: update Spanish translation., Denis 'GNUtoo' Carikli, 2024/06/15
- [PATCH v2 06/14] website: status: Fix ThinkPad spelling., Denis 'GNUtoo' Carikli, 2024/06/15
- [PATCH v2 08/14] website: docs: install: flashrom: document I/O port access.,
Denis 'GNUtoo' Carikli <=
- [PATCH v2 07/14] website: docs: install: flashrom: add support for BSD., Denis 'GNUtoo' Carikli, 2024/06/15
- [PATCH v2 03/14] website: pages: Get GNU Boot: add section about install parties., Denis 'GNUtoo' Carikli, 2024/06/15
- [PATCH v2 10/14] website: main page: clarify that GNU Boot is a distribution., Denis 'GNUtoo' Carikli, 2024/06/15
- [PATCH v2 13/14] automake: add i945-thinkpads-install-utilities-help target., Denis 'GNUtoo' Carikli, 2024/06/15
- [PATCH v2 11/14] website: status: mention upgrade instructions., Denis 'GNUtoo' Carikli, 2024/06/15
- [PATCH v2 09/14] Remove old logos, and make the website point to the new ones., Denis 'GNUtoo' Carikli, 2024/06/15
- [PATCH v2 14/14] website: status: fix page title., Denis 'GNUtoo' Carikli, 2024/06/15
- [PATCH v2 12/14] website: status: add current RYF vendors product., Denis 'GNUtoo' Carikli, 2024/06/15