Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 May 2020 22:14:03 -0700
From:      bob prohaska <fbsd@www.zefox.net>
To:        Mika??l Urankar <mikael.urankar@gmail.com>
Cc:        freebsd-arm@freebsd.org, bob prohaska <fbsd@www.zefox.net>
Subject:   Re: Missing /dev/io on rpi3 running 12-stable
Message-ID:  <20200523051403.GA78879@www.zefox.net>
In-Reply-To: <20200522172813.GA77725@www.zefox.net>
References:  <20200520164642.GA70838@www.zefox.net> <CAJwjRmSmCEWCEbEr%2B14m6x04Xcx6j7Bgmp%2BHDkN5zsyAq=LExg@mail.gmail.com> <20200522172813.GA77725@www.zefox.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, May 22, 2020 at 10:28:13AM -0700, bob prohaska wrote:
> On Fri, May 22, 2020 at 06:38:40PM +0200, Mika??l Urankar wrote:
> > Le mer. 20 mai 2020 ?? 18:46, bob prohaska <fbsd@www.zefox.net> a ??crit :
> > >
> > > Is there supposed to be a /dev/io by default in FreeBSD on a Pi3?
> > > Attempts to start X under 12.1-STABLE r361271 GENERIC fail with
> > > a report of "failed to open /dev/io". There is indeed no /dev/io,
> > > but there's also no /dev/io on a pi2 running 12-stable.
> > >
> > > Nor does there seem to be  a kernel module with matching name....
> > 
> > I looked at the code and it's only a warning:
> > if ((IoFd = open("/dev/io", O_RDWR)) == -1) {
> >         xf86Msg(X_WARNING, "xf86EnableIO: "
> >                 "Failed to open /dev/io for extended I/O\n");
> > 
> > Can you post the whole Xorg log somewhere?
> >
>  
> I'm in the process now of cleaning up, deinstalling everything and
> starting over, this time using -DBATCH from the start. The whole
> fiasco started when I succumbed to the temptations offered by
> dialog4ports (docs are good, amdgpu on a Pi made no sense).
> 
> At the very least it'll bring the system to a reproducible state. 
> 
The cleanup is complete, running the command 
X -configure 
as root put in the logfile 
root@nemesis:~ # more /var/log/Xorg.0.log
[252792.514] 
X.Org X Server 1.20.8
X Protocol Version 11, Revision 0
[252792.515] Build Operating System: FreeBSD 12.1-STABLE arm64 
[252792.515] Current Operating System: FreeBSD nemesis.zefox.com 12.1-STABLE FreeBSD 12.1-STABLE r361271 GENERIC arm64
[252792.517] Build Date: 22 May 2020  09:25:08PM
[252792.517]  
[252792.517] Current version of pixman: 0.40.0
[252792.517]    Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
[252792.517] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[252792.518] (==) Log file: "/var/log/Xorg.0.log", Time: Fri May 22 21:50:03 2020
[252792.518] (II) Loader magic: 0x43a5e0
[252792.518] (II) Module ABI versions:
[252792.518]    X.Org ANSI C Emulation: 0.4
[252792.518]    X.Org Video Driver: 24.1
[252792.518]    X.Org XInput driver : 24.1
[252792.518]    X.Org Server Extension : 10.0
[252792.520] List of video drivers:
[252792.520]    scfb
[252792.520]    modesetting
[252792.520] (II) LoadModule: "scfb"
[252792.521] (II) Loading /usr/local/lib/xorg/modules/drivers/scfb_drv.so
[252792.521] (II) Module scfb: vendor="X.Org Foundation"
[252792.521]    compiled for 1.20.8, module version = 0.0.5
[252792.521]    ABI class: X.Org Video Driver, version 24.1
[252792.521] (II) LoadModule: "modesetting"
[252792.522] (II) Loading /usr/local/lib/xorg/modules/drivers/modesetting_drv.so
[252792.522] (II) Module modesetting: vendor="X.Org Foundation"
[252792.522]    compiled for 1.20.8, module version = 1.20.8
[252792.523]    Module class: X.Org Video Driver
[252792.523]    ABI class: X.Org Video Driver, version 24.1
[252792.523] (WW) xf86EnableIO: Failed to open /dev/io for extended I/O
[252792.523] (WW) Falling back to old probe method for scfb
[252792.523] scfb trace: probe start
[252792.523] (WW) Falling back to old probe method for modesetting
[252792.523] No devices to configure.  Configuration failed.
[252792.524] (EE) Server terminated with error (2). Closing log file.

That repeats the missing /dev/io error seen previously.

Another correspondent asked what happens if startx is run
by a regular user on the console. That log file is different:

root@nemesis:~ # more /var/log/Xorg.1.log
[253234.555] 
X.Org X Server 1.20.8
X Protocol Version 11, Revision 0
[253234.556] Build Operating System: FreeBSD 12.1-STABLE arm64 
[253234.556] Current Operating System: FreeBSD nemesis.zefox.com 12.1-STABLE FreeBSD 12.1-STABLE r361271 GENERIC arm64
[253234.557] Build Date: 22 May 2020  09:25:08PM
[253234.557]  
[253234.558] Current version of pixman: 0.40.0
[253234.558]    Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
[253234.558] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[253234.558] (==) Log file: "/var/log/Xorg.1.log", Time: Fri May 22 21:57:25 2020
[253234.559] (==) Using config directory: "/usr/local/etc/X11/xorg.conf.d"
[253234.560] (==) Using system config directory "/usr/local/share/X11/xorg.conf.d"
[253234.561] (==) No Layout section.  Using the first Screen section.
[253234.561] (==) No screen section available. Using defaults.
[253234.561] (**) |-->Screen "Default Screen Section" (0)
[253234.561] (**) |   |-->Monitor "<default monitor>"
[253234.563] (==) No device specified for screen "Default Screen Section".
        Using the first device section listed.
[253234.563] (**) |   |-->Device "Card0"
[253234.563] (==) No monitor specified for screen "Default Screen Section".
        Using a default monitor configuration.
[253234.563] (==) Automatically adding devices
[253234.563] (==) Automatically enabling devices
[253234.563] (==) Not automatically adding GPU devices
[253234.563] (==) Max clients allowed: 256, resource mask: 0x1fffff
[253234.564] (==) FontPath set to:
        /usr/local/share/fonts/misc/,
        /usr/local/share/fonts/TTF/,
        /usr/local/share/fonts/OTF/,
        /usr/local/share/fonts/Type1/,
        /usr/local/share/fonts/100dpi/,
        /usr/local/share/fonts/75dpi/,
        catalogue:/usr/local/etc/X11/fontpath.d
[253234.564] (==) ModulePath set to "/usr/local/lib/xorg/modules"
[253234.564] (II) The server relies on udev to provide the list of input devices.
        If no devices become available, reconfigure udev or disable AutoAddDevices.
[253234.564] (II) Loader magic: 0x43a5e0
[253234.564] (II) Module ABI versions:
[253234.564]    X.Org ANSI C Emulation: 0.4
[253234.564]    X.Org Video Driver: 24.1
[253234.564]    X.Org XInput driver : 24.1
[253234.564]    X.Org Server Extension : 10.0
[253234.565] (II) LoadModule: "glx"
[253234.565] (II) Loading /usr/local/lib/xorg/modules/extensions/libglx.so
[253234.576] (II) Module glx: vendor="X.Org Foundation"
[253234.576]    compiled for 1.20.8, module version = 1.0.0
[253234.576]    ABI class: X.Org Server Extension, version 10.0
[253234.576] (II) LoadModule: "scfb"
[253234.576] (II) Loading /usr/local/lib/xorg/modules/drivers/scfb_drv.so
[253234.577] (II) Module scfb: vendor="X.Org Foundation"
[253234.577]    compiled for 1.20.8, module version = 0.0.5
[253234.577]    ABI class: X.Org Video Driver, version 24.1
[253234.577] (II) scfb: driver for wsdisplay framebuffer: scfb
[253234.578] (--) Using syscons driver with X support (version 2.0)
[253234.578] (--) using VT number 9

[253234.578] (WW) Falling back to old probe method for scfb
[253234.578] scfb trace: probe start
[253234.578] (II) scfb(0): using default device
[253234.578] scfb trace: probe done
[253234.578] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[253234.578] scfb: PreInit 0
[253234.578] (II) scfb(0): Using: depth (24),   width (1920),    height (1200)
[253234.578] (EE) scfb(0): Specified fbbpp (24) is not a permitted value
[253234.579] (II) UnloadModule: "scfb"
[253234.579] (EE) Screen(s) found, but none have a usable configuration.
[253234.579] (EE) 
Fatal server error:
[253234.579] (EE) no screens found(EE) 
[253234.579] (EE) 
Please consult the The X.Org Foundation support 
         at http://wiki.x.org
 for help. 
[253234.579] (EE) Please also check the log file at "/var/log/Xorg.1.log" for additional information.
[253234.579] (EE) 
[253234.580] (EE) Server terminated with error (1). Closing log file.
--More--(END)

The gripe about 24bpp being "not permitted" looks wrong, unless there's
not enough video memory allocated.

Having different failures for different users strikes me as very odd.
It rather suggests a permissions problem, but permissions aren't 
mentioned in the logs.

If you can think of something to test please instruct.

Thanks for reading,

bob prohaska
 



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