Date: Wed, 2 Jul 2014 22:12:45 +0200 (CEST) From: =?ISO-8859-1?Q?Trond_Endrest=F8l?= <Trond.Endrestol@fagskolen.gjovik.no> To: Kevin Oberman <rkoberman@gmail.com> Cc: FreeBSD current <freebsd-current@freebsd.org> Subject: Re: vidcontrol(1) complains about Bad magic, in base/head, amd64, sc console, r268165 Message-ID: <alpine.BSF.2.11.1407022210510.11883@mail.fig.ol.no> In-Reply-To: <CAN6yY1su_3x2DoTpgGNf7ofc5xkv8ucH6t78%2BP6Q-k5a0s7PbQ@mail.gmail.com> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 2 Jul 2014 12:57-0700, Kevin Oberman wrote: > On Wed, Jul 2, 2014 at 12:19 PM, Trond Endrestøl < > Trond.Endrestol@fagskolen.gjovik.no> wrote: > > > On Wed, 2 Jul 2014 21:05+0200, Trond Endrestøl wrote: > > > > > On Wed, 2 Jul 2014 20:51+0200, Trond Endrestøl 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. Maybe you should examine r268045 and reconsider your position. > 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. -- +-------------------------------+------------------------------------+ | Vennlig hilsen, | Best regards, | | Trond Endrestøl, | Trond Endrestøl, | | IT-ansvarlig, | System administrator, | | Fagskolen Innlandet, | Gjøvik Technical College, Norway, | | tlf. mob. 952 62 567, | Cellular...: +47 952 62 567, | | sentralbord 61 14 54 00. | Switchboard: +47 61 14 54 00. | +-------------------------------+------------------------------------+ From owner-freebsd-current@FreeBSD.ORG Wed Jul 2 20:17:42 2014 Return-Path: <owner-freebsd-current@FreeBSD.ORG> Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D06EDFCC for <freebsd-current@freebsd.org>; Wed, 2 Jul 2014 20:17:42 +0000 (UTC) Received: from d.mail.sonic.net (d.mail.sonic.net [64.142.111.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B73992D17 for <freebsd-current@freebsd.org>; Wed, 2 Jul 2014 20:17:42 +0000 (UTC) Received: from aurora.physics.berkeley.edu (aurora.Physics.Berkeley.EDU [128.32.117.67]) (authenticated bits=0) by d.mail.sonic.net (8.14.9/8.14.9) with ESMTP id s62K6tMs011910 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT) for <freebsd-current@freebsd.org>; Wed, 2 Jul 2014 13:06:55 -0700 Message-ID: <53B4665F.7060809@freebsd.org> Date: Wed, 02 Jul 2014 13:06:55 -0700 From: Nathan Whitehorn <nwhitehorn@freebsd.org> User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: freebsd-current@freebsd.org Subject: Re: vidcontrol(1) complains about Bad magic, in base/head, amd64, sc console, r268165 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+P6Q-k5a0s7PbQ@mail.gmail.com> In-Reply-To: <CAN6yY1su_3x2DoTpgGNf7ofc5xkv8ucH6t78+P6Q-k5a0s7PbQ@mail.gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Sonic-ID: C;HOkuaiQC5BG8NpBsdPQXfw== M;Eq9PaiQC5BG8NpBsdPQXfw== X-Spam-Flag: No X-Sonic-Spam-Details: 0.0/5.0 by cerberusd X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Discussions about the use of FreeBSD-current <freebsd-current.freebsd.org> List-Unsubscribe: <http://lists.freebsd.org/mailman/options/freebsd-current>, <mailto:freebsd-current-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-current/> List-Post: <mailto:freebsd-current@freebsd.org> List-Help: <mailto:freebsd-current-request@freebsd.org?subject=help> List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-current>, <mailto:freebsd-current-request@freebsd.org?subject=subscribe> X-List-Received-Date: Wed, 02 Jul 2014 20:17:42 -0000 On 07/02/14 12:57, Kevin Oberman wrote: > On Wed, Jul 2, 2014 at 12:19 PM, Trond Endrestøl < > Trond.Endrestol@fagskolen.gjovik.no> wrote: > >> On Wed, 2 Jul 2014 21:05+0200, Trond Endrestøl wrote: >> >>> On Wed, 2 Jul 2014 20:51+0200, Trond Endrestøl 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 new kernel. -Nathan
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.11.1407022210510.11883>