Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Dec 2000 16:36:24 +0100 (MET)
From:      Eckart Hofmann <bofh@muenster.de>
To:        freebsd-questions@freebsd.org
Subject:   /dev/mem and /dev/io permission problems with 4.2-STABLE and XFree86-4
Message-ID:  <200012081536.QAA20369@bbaer.muenster.de>

next in thread | raw e-mail | index | archive | help
Hi,

I have got a 4.2-STABLE box, cvsup'ed the last time 3 hours ago the
whole world and the ports collection. After building the world and the
kernel, "make KERNEL=MYKERNEL installkernel" (in multiuser mode, but I
am the one and only user at this time) fails with an "operation not
permitted" error executing "chflags noschg /kernel" as root.
Rebooting in single user mode, make installkernel, reboot to single user,
make installworld, mergemaster works fine.
After this I rebooted again (into multiuser), built the latest XFree86-4,
but can't get it to work.
xf86cfg fails because a fatal X server error occurs:

(WW) checkDevMem: failed to open "/dev/mem" (Operation not permitted)
[...]
Fatal server error:
xf86EnableIO: Failed to open /dev/io for extended I/O

(I started xf86cfg as root)
The manpages for io(4) and mem(4) didn't give me a hint what happened,
the search on deja.com and freebsd-(stable|questions) was unsuccessful.
Running xf86cfg or startx within truss also didn't show some helpful
output.

Another problem in the same category (I think):
I tried to copy a file with "mcopy foo a:" (as root) and got
Can't open /dev/rfd0: Operation not permitted.

All 3 device files (/dev/io, /dev/mem, /dev/rfd0) are read-writable for
root.

Any hints appreciated.

Regards,
	Eckart


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200012081536.QAA20369>