From owner-freebsd-current@FreeBSD.ORG Wed Jul 2 23:15:53 2014 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1BBC8BCA; Wed, 2 Jul 2014 23:15:53 +0000 (UTC) Received: from mail-pd0-x230.google.com (mail-pd0-x230.google.com [IPv6:2607:f8b0:400e:c02::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DE47C2D56; Wed, 2 Jul 2014 23:15:52 +0000 (UTC) Received: by mail-pd0-f176.google.com with SMTP id ft15so12687715pdb.35 for ; Wed, 02 Jul 2014 16:15:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=ecFODCoBBTblxx8UpG0pJfQ3MwiAdAAPY3SVhg3OYIQ=; b=0DtQBV9YiJrfMGK9flcc0HmYZfjdj0nRu/9WWU5aZxyU3XtK+gaTIqM6MCdVgIli4q Xq/CFWZFiP/2g+ak2q6NUvg971NrbMQGlYdTbiekSfsN+WcVFeSBTg5mKxXPNexpkYE0 YZyUkOEnHmiAwtzh9YRnTZc5MVuZYMaKtRG4gLBUi+b9JxQcesQARVEKepZQpiueGnrO Tg9zTXhJQ5kzs/JEGE9ZW4WyQV8ov9lDH5dihHbc3ZaqGLVouOfcncebAkd6be9zfr/F brMnwPdlRNybC/xVB2P087Yd5AsjHqv1eUpWtFJRTd1ZjvQ2UtmBgFDtwSJXxRnCWkDT YuVw== MIME-Version: 1.0 X-Received: by 10.68.69.99 with SMTP id d3mr937754pbu.76.1404342952475; Wed, 02 Jul 2014 16:15:52 -0700 (PDT) Sender: kob6558@gmail.com Received: by 10.66.134.4 with HTTP; Wed, 2 Jul 2014 16:15:52 -0700 (PDT) In-Reply-To: <53B4665F.7060809@freebsd.org> References: <53B4665F.7060809@freebsd.org> Date: Wed, 2 Jul 2014 16:15:52 -0700 X-Google-Sender-Auth: NoWbiBS4CQqeKhJ_VCeq1hUnpaw Message-ID: Subject: Re: vidcontrol(1) complains about Bad magic, in base/head, amd64, sc console, r268165 From: Kevin Oberman To: Nathan Whitehorn Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.18 Cc: FreeBSD Current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jul 2014 23:15:53 -0000 On Wed, Jul 2, 2014 at 1:06 PM, Nathan Whitehorn 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