xref: /aosp_15_r20/external/coreboot/Documentation/tutorial/flashing_firmware/int_flashrom.md (revision b9411a12aaaa7e1e6a6fb7c5e057f44ee179a49c)
1# Flashing firmware internally
2
3**WARNING:** If you flash a broken firmware and have no recovery mechanism, you
4             must use the **external method** to flash a working firmware again.
5
6## Using flashrom
7This method does only work on Linux, if it isn't locked down.
8You may also need to boot with `iomem=relaxed` in the kernel command
9line if CONFIG_IO_STRICT_DEVMEM is set.
10
11
12For more details please also check [flashrom's wiki].
13Use the programmer *internal* to flash *coreboot.rom* internally:
14
15```bash
16flashrom -p internal -w coreboot.rom
17```
18
19[flashrom's wiki]: https://www.flashrom.org/Flashrom
20