Using flashrom-trunk on PCEngines' ALIX2D13 board running OpenBSD-5.3 (current) doesn't work.
The chipset is AMD Geode CS5536.
Here the steps:
1. Applied patch amdmsr.patch to openbsd kernel (/usr/src/sys/arch/i386/i386/amdmsr.c) Explaination: the original code checks for GPU presence (alix has no GPU) and fails; I just skip the check.
2. got last flashrom version (trunk)
3. applied given patch http://patchwork.coreboot.org/patch/3932/ 4. applied given patch http://patchwork.coreboot.org/patch/3933/
5. applied patch hwaccess.patch Explaination: openbsd uses a different way to retrieve IO Priviledge Level, see i386_iopl(2) man page.
6. applied patch physmap.patch Explaination: minor code mismatches fixed and /dev/amdmsr0 changed to /dev/amdmsr.
The 3 patches are attached.
I confirm running "./flashrom -p internal -r bios.bin" extracts the same bios image got from flashrom run on linux. (md5 checks)
Thank You.
Leonardo.