openwrt / openwrt

This repository is a mirror of https://git.openwrt.org/openwrt/openwrt.git It is for reference only and is not active for check-ins. We will continue to accept Pull Requests here. They will be merged via staging trees then into openwrt.git.
Other
19.54k stars 10.22k forks source link

FS#3461 - Enhancement : add CONFIG_DEVMEM=y for targets/x86/64 #8329

Open openwrt-bot opened 3 years ago

openwrt-bot commented 3 years ago

ghatothkach:

hi

Apparently CONFIG_DEVMEM=y is not set for these builds.

It is very handy to have it set, so one can upgrade the bios on the pcengines APU boards using flashrom.

http://downloads.openwrt.org/releases/*/targets/x86/64/

root@router:/disk/pcengines/apu4/bios# flashrom -w apu4_v4.11.0.6.rom -p internal flashrom v1.0 on Linux 4.14.195 (x86_64) flashrom is free software, get the source code at https://flashrom.org

Using clock_gettime for delay loops (clk_id: 1, resolution: 1ns). Critical error: open(/dev/mem): No such file or directory Error accessing low megabyte, 0x100000 bytes at 0x0000000000000000 /dev/mem mmap failed: No such file or directory Failed getting access to coreboot low tables. Critical error: open(/dev/mem): No such file or directory Error accessing DMI, 0x10000 bytes at 0x00000000000f0000 /dev/mem mmap failed: No such file or directory Found chipset "AMD FCH". Enabling flash write... Critical error: open(/dev/mem): No such file or directory Error accessing SB600 SPI registers, 0x1000 bytes at 0x00000000fec10000 /dev/mem mmap failed: No such file or directory FAILED! FATAL ERROR! Error: Programmer initialization failed.

openwrt-bot commented 2 years ago

pmisch:

I'm also having this error. Is there a workaround so I can flash the new APU firmware to the board from within OpenWrt?