summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorStephen Bancroft <stevereaver@gmail.com>2026-09-23 19:26:24 +1000
committerMiquel Raynal <miquel.raynal@bootlin.com>2026-09-25 15:41:58 +0200
commitc4f64a86a28d218f3b16cd7b18691993aa60db60 (patch)
treef8a4539dcbbc7e277250e1a703acec1b79512967 /scripts/Makefile.thinlto
parentd498b2ddda99eed28cde177b1620dbcea246a1c4 (diff)
downloadlinux-c4f64a86a28d218f3b16cd7b18691993aa60db60.tar.gz
linux-c4f64a86a28d218f3b16cd7b18691993aa60db60.zip
mtd: maps: add INT0800 firmware-flash map driver
Add a read-only mapping driver that binds the ACPI INT0800 "Intel 82802 firmware hub" device and exposes the system firmware flash as an MTD ROM device. On x86 machines the boot flash is decoded into the physical address space below 4 GB, so a plain ioremap() of the declared resource window is sufficient for reads - no SPI or LPC controller access is needed. The window may be larger than the real flash; undecoded holes read as 0xff. This gives userspace a clean, safe way to read firmware flash contents without flashrom or relaxed /dev/mem access - for firmware analysis, and for extracting option ROMs stored inside EFI firmware volumes (e.g. the NVIDIA VBIOS on EFI-booted Apple machines, which can then be fed to nouveau via nouveau.config=NvBios=). There is deliberately no write or erase support. Tested on a MacBookPro4,1 (ICH8M): /dev/mtd0 reads are byte-identical to a flashrom dump of the 2 MiB SST25VF016B, except for live NVRAM variable-store regions. Signed-off-by: Stephen Bancroft <stevereaver@gmail.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions