Date: Wed, 2 Jul 2014 16:15:52 -0700 From: Kevin Oberman <rkoberman@gmail.com> To: Nathan Whitehorn <nwhitehorn@freebsd.org> Cc: FreeBSD Current <freebsd-current@freebsd.org> Subject: Re: vidcontrol(1) complains about Bad magic, in base/head, amd64, sc console, r268165 Message-ID: <CAN6yY1trVxRVhDS16XPwtf56NUYr_qhep7gc3cjodpjk_O2MXg@mail.gmail.com> In-Reply-To: <53B4665F.7060809@freebsd.org> References: <alpine.BSF.2.11.1407022041460.11883@mail.fig.ol.no> <alpine.BSF.2.11.1407022104260.11883@mail.fig.ol.no> <alpine.BSF.2.11.1407022118100.11883@mail.fig.ol.no> <CAN6yY1su_3x2DoTpgGNf7ofc5xkv8ucH6t78%2BP6Q-k5a0s7PbQ@mail.gmail.com> <53B4665F.7060809@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jul 2, 2014 at 1:06 PM, Nathan Whitehorn <nwhitehorn@freebsd.org> wrote: > > On 07/02/14 12:57, Kevin Oberman wrote: > >> On Wed, Jul 2, 2014 at 12:19 PM, Trond Endrest=C3=B8l < >> Trond.Endrestol@fagskolen.gjovik.no> wrote: >> >> On Wed, 2 Jul 2014 21:05+0200, Trond Endrest=C3=B8l wrote: >>> >>> On Wed, 2 Jul 2014 20:51+0200, Trond Endrest=C3=B8l wrote: >>>> >>>> Hi, >>>>> >>>>> Is it just me or is there something wrong with vidcontrol(1) in >>>>> base/head, amd64, sc console, r268165? >>>>> >>>>> First, I had to specify absolute pathnames for the font8x16, font8x14= , >>>>> and font8x8 variables in /etc/rc.conf before vidcontrol(1) would load >>>>> anything, and next, vidcontrol(1), when run by /etc/rc.d/syscons, >>>>> complains about: >>>>> >>>>> Bad magic >>>>> vidcontrol: failed to load font >>>>> >>>> "/usr/share/syscons/fonts/iso-8x16.fnt": No error: 0 >>> >>>> Bad magic >>>>> vidcontrol: failed to load font >>>>> >>>> "/usr/share/syscons/fonts/iso-8x14.fnt": No error: 0 >>> >>>> Bad magic >>>>> vidcontrol: failed to load font >>>>> >>>> "/usr/share/syscons/fonts/iso-8x8.fnt": No error: 0 >>> >>>> I wouldn't rule out pilot error on my part, but r267957 worked >>>>> flawlessly in this regard. >>>>> >>>> I guess with both sc and vt in the kernel, line 220 of >>>> usr.sbin/vidcontrol/vidcontrol.c needs a slight adjustment. >>>> >>> The same adjustment will be needed at line 150 of >>> usr.sbin/kbdcontrol/kbdcontrol.c. >>> >>> I don't believe that building a kernel for both vt and sc is supported= , >> so >> I'm not surprised that it does not work. >> >> I would like to know how you intend to use such a kernel. I'm not sure I >> see a case where having both would be useful and it looks like keeping >> them >> straight would be rather a problem. >> > > GENERIC is such a kernel as of a few days ago. The idea is to provide a > transition mechanism for people who want syscons for whatever reason but > also want to, say, use KMS drivers or boot with EFI without building a ne= w > kernel. > -Nathan > Ack! I'm 3 days out of date! This looks very handy for transition between sc and vt. And I now realize that you don't run both at the same time, just select the one to run at boot time. (Duh!) --=20 R. Kevin Oberman, Network Engineer, Retired E-mail: rkoberman@gmail.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAN6yY1trVxRVhDS16XPwtf56NUYr_qhep7gc3cjodpjk_O2MXg>