From owner-freebsd-arm@freebsd.org Sat May 23 05:14:10 2020 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 6EAE92F8534 for ; Sat, 23 May 2020 05:14:10 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (www.zefox.net [50.1.20.27]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "www.zefox.com", Issuer "www.zefox.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 49TWjr60Vbz4MQW for ; Sat, 23 May 2020 05:14:08 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (localhost [127.0.0.1]) by www.zefox.net (8.15.2/8.15.2) with ESMTPS id 04N5E3vn078925 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Fri, 22 May 2020 22:14:04 -0700 (PDT) (envelope-from fbsd@www.zefox.net) Received: (from fbsd@localhost) by www.zefox.net (8.15.2/8.15.2/Submit) id 04N5E3LI078924; Fri, 22 May 2020 22:14:03 -0700 (PDT) (envelope-from fbsd) Date: Fri, 22 May 2020 22:14:03 -0700 From: bob prohaska To: Mika??l Urankar Cc: freebsd-arm@freebsd.org, bob prohaska Subject: Re: Missing /dev/io on rpi3 running 12-stable Message-ID: <20200523051403.GA78879@www.zefox.net> References: <20200520164642.GA70838@www.zefox.net> <20200522172813.GA77725@www.zefox.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200522172813.GA77725@www.zefox.net> X-Rspamd-Queue-Id: 49TWjr60Vbz4MQW X-Spamd-Bar: ++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of fbsd@www.zefox.net has no SPF policy when checking 50.1.20.27) smtp.mailfrom=fbsd@www.zefox.net X-Spamd-Result: default: False [2.70 / 15.00]; RCVD_TLS_ALL(0.00)[]; ARC_NA(0.00)[]; WWW_DOT_DOMAIN(0.50)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; NEURAL_SPAM_SHORT(0.53)[0.530]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[zefox.net]; AUTH_NA(1.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(0.27)[0.274]; NEURAL_HAM_MEDIUM(-0.00)[-0.005]; R_SPF_NA(0.00)[no SPF record]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:7065, ipnet:50.1.16.0/20, country:US]; RCVD_COUNT_TWO(0.00)[2]; MID_RHS_WWW(0.50)[] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 May 2020 05:14:10 -0000 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 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 "" [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