From owner-freebsd-current@FreeBSD.ORG Wed Jul 2 19:57:52 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 0C1047F8 for ; Wed, 2 Jul 2014 19:57:52 +0000 (UTC) Received: from mail-pa0-x229.google.com (mail-pa0-x229.google.com [IPv6:2607:f8b0:400e:c03::229]) (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 D3A8C2B71 for ; Wed, 2 Jul 2014 19:57:51 +0000 (UTC) Received: by mail-pa0-f41.google.com with SMTP id fb1so13102489pad.28 for ; Wed, 02 Jul 2014 12:57:51 -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=i5R5ZluxNfviHqVk52hr3INL7Ms07f3d+u9aYjD7adE=; b=LhbVJ2rxSO7V9ixy7lrvh5Sq5ofSAa13+c6AaMv10riU6bGGjFaz2r+NeBVTGp+Ank cgfgS7CK2c1+IWetZPaiRpaWvEAbA6Q234wCklV/AKIwf3X33CLSLIc/MLXp9CY7qZ/f D+EDnV0PgowIHuZeBxNNBUgrG+2xp5ZRZX/0ycE5ozDRGJ/8QekR0SvQYWC75tbouq1F MeMGJjtb3n3SI1yw7U3xlX84OvBEkJun53gLaYoksbh0PnqhdUvX9ULZ9RpETmyZbH+Q ZJa3y5oq9OrZ+ruhDqy5OmyZahJ5jrgWsng6lCYJrdsgBg4y6Kll3TmdaCgEYgyj77+N k9GA== MIME-Version: 1.0 X-Received: by 10.70.102.226 with SMTP id fr2mr1714667pdb.56.1404331071182; Wed, 02 Jul 2014 12:57:51 -0700 (PDT) Sender: kob6558@gmail.com Received: by 10.66.134.4 with HTTP; Wed, 2 Jul 2014 12:57:51 -0700 (PDT) In-Reply-To: References: Date: Wed, 2 Jul 2014 12:57:51 -0700 X-Google-Sender-Auth: XtUNBLTlU3J641Waa1i92BZiTA4 Message-ID: Subject: Re: vidcontrol(1) complains about Bad magic, in base/head, amd64, sc console, r268165 From: Kevin Oberman To: =?UTF-8?Q?Trond_Endrest=C3=B8l?= 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 19:57:52 -0000 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. --=20 R. Kevin Oberman, Network Engineer, Retired E-mail: rkoberman@gmail.com