Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Aug 2014 18:27:25 +0200
From:      Roland Smith <rsmith@xs4all.nl>
To:        Steve Kargl <sgk@troutmask.apl.washington.edu>
Cc:        freebsd-x11@freebsd.org
Subject:   Re: Instant reboot with New Xorg
Message-ID:  <20140803162725.GA67916@slackbox.erewhon.home>
In-Reply-To: <20140803153157.GB36366@troutmask.apl.washington.edu>
References:  <20140803024128.GA34242@troutmask.apl.washington.edu> <20140803031506.GL93733@kib.kiev.ua> <20140803153157.GB36366@troutmask.apl.washington.edu>

next in thread | previous in thread | raw e-mail | index | archive | help

--oyUTqETQ0mS9luUI
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, Aug 03, 2014 at 08:31:57AM -0700, Steve Kargl wrote:
> On Sun, Aug 03, 2014 at 06:15:06AM +0300, Konstantin Belousov wrote:
> > On Sat, Aug 02, 2014 at 07:41:28PM -0700, Steve Kargl wrote:
> > >
> > > laptop-kargl.apl.washington.edu dumped core - see /var/crash/vmcore.1
> > >=20
> > > Sat Aug  2 19:22:11 PDT 2014
> > >=20
> > > FreeBSD laptop-kargl.apl.washington.edu 11.0-CURRENT FreeBSD 11.0-CUR=
RENT #0 r269385: Fri Aug  1 10:39:21 PDT 2014     root@laptop-kargl.apl.was=
hington.edu:/usr/obj/usr/src/sys/MOBILE  i386
> > >=20
> > > panic: make_dev_credv: bad si_name (error=3D17, si_name=3Ddri/card0)
> >=20
> > Errno 17 is EEXISTS, since it comes from the devfs node instantiation,
> > I am almost sure that you have both drm and drm2 in your kernel. Most
> > likely, drm is compiled in or loaded as module at boot time, while drm2
> > is loaded by X server on initialization.
>=20
> I've discovered that it is not possible to build a kernel
> with drm2 and i915kms.  At least the somewhat obvious guess
> of adding "device drm2" and "device i915kms" to my config
> file yields
>=20
> % make buildkernel
> ...
> config: Error: device "drm2" is unknown
> config: Error: device "i915kms" is unknown
> config: 2 errors
> *** Error code 1

The config(8) program that is used to build system configuration files looks
at /sys/conf/files* to see what options and devices exist.

Looking at /sys/conf/files*, drm2 and i915kms are not in there, so my
conclusion would be that they can only be built as modules.

Remove the old drm and i915drm from your kernel config and rebuild your ker=
nel
(or use GENERIC if you can). Then log in normally and run `startx`. Xorg wi=
ll
load the necessary modules. After starting x you can run `kldstat` from a
terminal to see which modules have actually been loaded for your setup.

If you want to use vt(4), use /boot/loader.conf to pre-load the X modules on
the next boot. You can then set `kern.vty=3Dvt` in /boot/loader.conf to mak=
e the
system use vt(4) on the next boot. This only works if `device vt` is in your
kernel config. Since vt is used in 10-STABLE, I'm assuming it is also in the
GENERIC kernel for 11-CURRENT.


Roland
--=20
R.F.Smith                                   http://rsmith.home.xs4all.nl/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 5753 3324 1661 B0FE 8D93  FCED 40F6 D5DC A38A 33E0 (keyID: A38A33E0)

--oyUTqETQ0mS9luUI
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBAgAGBQJT3mLtAAoJEED21dyjijPgnp8P/1tiVPJ5ELK+sXUcTqetOoiq
UrWSH5WfnShkW55NpS38CiZC6nPQZ1ARiP/Y/2HiFN3g+7yu93GArE4qauMkWySA
CBJ/Kym7tfMBkSG20/ajtzXa1qbpsb10postOlS3BI17rx5SwP3CyTE1VCOB6nrL
rQw8aXAJrCh3RFIUXx8G9ZqcDl9w/YapjoAb+ZwGK5D1Pp9bEkWIz+M8U9LzsiQL
yo7KOOpwmon+rkJVgNgrQ4DwLXKuOm7r8WL+kKomTz59QI9+tEbXS4Nq3a4V9JNX
RlPu1A4dFJZYJAp+ZGCH7X8Aj+ZKY2Nxokh4VXrOIqKXlSgPlLBVcnh8OmtxaJfi
XHoDG330RkfaxUE3YehqHo9wAI+8kMD9GxvMo4ptVJv09xGhl1cgxJmmoaQtgq/8
yLiATiOsF67H++pJX/AYxQNWLpyLPncVoMWj6VaifBRasMVPGbn/4CG74pw8/xRI
8j+vdpvs05Kt1wqaUuncnLLoFG2yUzQ7AUZkMZ1ZQNHIC909tLUuAT7GaSftw6/R
c1fk/vJUVo47LiicwvknbCU3cLKSkqcSVXTlarZ2UlYOPUbA1rOO8Ia868KH+q28
HIkrcAKrwIT77eBKlAl1P+tNiphKQY2T4Bw6SlWQ5A8zhj32RCNA81k6XoztJAYv
wOz/jXdu40hxKv6pbdcg
=+lUz
-----END PGP SIGNATURE-----

--oyUTqETQ0mS9luUI--



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