Bug 230410

Summary: devel/libx86 mmap("/dev/mem") gives EINVAL in sysutils/vbetool
Product: Ports & Packages Reporter: nkoch
Component: Individual Port(s)Assignee: Jung-uk Kim <jkim>
Status: New ---    
Severity: Affects Some People CC: w.schwarzenfeld
Priority: --- Flags: bugzilla: maintainer-feedback? (jkim)
Version: Latest   
Hardware: i386   
OS: Any   

Description nkoch 2018-08-06 08:27:29 UTC
When trying to run sysutils/vbetools (installed via pkg) with any arguments I see

 "mmap /dev/mem: Invalid argument"

and then

 "Failed to initialize LRMI (Linux Real-Mode Interface)".

Output of truss:


So my guess is that the combination of hint address 0 and MAP_FIXED does not work.

Tested FreeBSD versions are 9.1, 10.2 and 10.3.
Comment 1 nkoch 2018-08-07 14:03:18 UTC
Same with Freebsd 11.2/amd64
Comment 2 Walter Schwarzenfeld freebsd_triage 2019-08-27 14:40:22 UTC
Maintainer feedback, please!