The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

As an Amazon Associate I earn from qualifying purchases.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]
FreeBSD Support
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
 /dev/io & startinx X
Author: norkakn 
Date:   05-02-01 15:25

I figure that this should be a pretty easy problem (read: extremely easy) for people around here to answer considering that I am just learning bsd and some of you have been around for a while.

When I try to run startx or X or anyother way to start it, I get an error that says:

-snip-
(ww) CheckDevMem: failed to open /dev/mem: operation not permited
-snip-
(--) using vt number 9

Fatal Server Error:
xf86EnableIO failed to open /dev/io for extended I/O
-snip-

xdm is on vt8
I am clueless, but it is probably easy

Reply To This Message
 
 Re: /dev/io & startinx X
Author: Jamie Walker 
Date:   06-02-01 00:30

Is this XFree86 4.x perchance? You'll need to install the Xwrapper port if you want to start it as a non-root user.

Alternatively I discovered about 10 minutes ago that raising kern.securelevel above 0 stops X from starting.

Reply To This Message
 
 Re: /dev/io & startinx X
Author: norkakn 
Date:   06-02-01 06:48

I got wrapper and am doing it from root, but i think my security is set at 1

how do I change it? I have putzed around rc.whatevers and such in /etc but it seams to be avoiding meJamie Walker wrote:

Reply To This Message
 
 Re: /dev/io & startinx X
Author: norkakn 
Date:   06-02-01 20:54

I have tried sysctl -w kern.securelevel=0 but it says that i am not permitted to do this
(from root)

Reply To This Message
 
 Re: /dev/io & startinx X
Author: nS 
Date:   10-02-01 11:28

I think you should try to switch the kernel security level :
sysctl -w kern.securelevel=X (X can be 1;2;3)
Try to set it to "1".

Reply To This Message
 
 Re: /dev/io & startinx X
Author: bhrmp 
Date:   15-09-04 19:01

Even after changing the securelevel, it does not work. Still get the same error message.

The log shows the following:

checkDevMem: failed to open /dev/mem (Operation not permitted)

Reply To This Message
 
 Re: /dev/io & startinx X
Author: worstat 
Date:   02-11-04 11:15

Had the same problem and was bugging me for a while .. till i noticed that the custom (stripped) kernel i was using was luck of the following lines:

device io
device mem

whereas they are present in the default (GENERIC) FreeBSD kernel.
Because of a recent cvs upgrade to 5.3 I'm not sure if those lines where present in the previous (5.2) kernel, or if was dumb enough to delete them. Whichever the case is, search your kernel for those lines, if they are not present, add them, and compile your kernel again.

Reply To This Message
 
 Re: /dev/io & startinx X
Author: worstat 
Date:   02-11-04 11:20

Had the same problem and was bugging me for a while .. till i noticed that the custom (stripped) kernel i was using was luck of the following lines:

device io
device mem

whereas they are present in the default (GENERIC) FreeBSD kernel.
Because of a recent cvs upgrade to 5.3 I'm not sure if those lines where present in the previous (5.2) kernel, or if was dumb enough to delete them. Whichever the case is, search your kernel for those lines, if they are not present, add them, and compile your kernel again.



Reply To This Message
 
 Re: /dev/io & startinx X
Author: freebsd newbie 
Date:   17-11-04 22:50

Had the same problem and was bugging me for a while .. till i noticed that the custom (stripped) kernel i was using was luck of the following lines:

device io
device mem

whereas they are present in the default (GENERIC) FreeBSD kernel.
Because of a recent cvs upgrade to 5.3 I'm not sure if those lines where present in the previous (5.2) kernel, or if was dumb enough to delete them. Whichever the case is, search your kernel for those lines, if they are not present, add them, and compile your kernel again.


--Can you tell me how i can view/add these lines within the kernel. the security level is set at 1 and ive also run xorgconfig but still cannot get x to start....

btw, im using FBSD 5.3
thanks

Reply To This Message
 Forum List  |  Threaded View   Newer Topic  |  Older Topic 


 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org