From owner-freebsd-current@freebsd.org Mon Sep 21 08:12:26 2015 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2C6879CF3D7 for ; Mon, 21 Sep 2015 08:12:26 +0000 (UTC) (envelope-from sgeos@hotmail.com) Received: from BAY004-OMC1S25.hotmail.com (bay004-omc1s25.hotmail.com [65.54.190.36]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "*.outlook.com", Issuer "MSIT Machine Auth CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 19B2C1F1B for ; Mon, 21 Sep 2015 08:12:25 +0000 (UTC) (envelope-from sgeos@hotmail.com) Received: from BAY182-W45 ([65.54.190.60]) by BAY004-OMC1S25.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Mon, 21 Sep 2015 01:12:25 -0700 X-TMN: [hkJCphFCa0dNib1Cgg3k1KWlORd6/DMd] X-Originating-Email: [sgeos@hotmail.com] Message-ID: From: Brendan Sechter To: Oliver Pinter CC: "freebsd-current@freebsd.org" , "junchoon@dec.sakura.ne.jp" , "gljennjohn@gmail.com" Subject: RE: FreeBSD 11.0-CURRENT Single User Keymap Date: Mon, 21 Sep 2015 17:12:24 +0900 Importance: Normal In-Reply-To: References: , <20150916045940.77f5ec2d@ernst.home>, Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginalArrivalTime: 21 Sep 2015 08:12:25.0051 (UTC) FILETIME=[3F96C2B0:01D0F445] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 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: Mon, 21 Sep 2015 08:12:26 -0000 > Date: Sun=2C 20 Sep 2015 16:50:40 +0200=0A= > Subject: Re: FreeBSD 11.0-CURRENT Single User Keymap=0A= > From: oliver.pinter@hardenedbsd.org=0A= > To: gljennjohn@gmail.com=0A= > CC: sgeos@hotmail.com=3B freebsd-current@freebsd.org=0A= >=0A= > On 9/16/15=2C Gary Jennejohn wrote:=0A= >> On Tue=2C 15 Sep 2015 19:32:35 +0900=0A= >> Brendan Sechter wrote:=0A= >>=0A= >>> When compiling a FreeBSD 11.0-CURRENT kernel=2C what is required to cha= nge=0A= >>> the keymap used in single user mode? __I originally asked this question= on=0A= >>> the FreeBSD forums=2C but was bounced to the mailing list because CURRE= NT is=0A= >>> an unsupported version.=0A= >>>=0A= >>> I have read an old forum thread on this topic. I have also read=0A= >>> the__atkbd(4)__and__ukbd(4)__man pages. The relevant parts of my kernel= =0A= >>> configuration are as follows:=0A= >>>=0A= >>> &__----------__----------__----------__----------=0A= >>> include GENERIC=0A= >>> ident MY_KERNEL=0A= >>>=0A= >>> & AT Keyboard=0A= >>> device atkbdc=0A= >>> options ATKBD_DFLT_KEYMAP=0A= >>> makeoptions ATKBD_DFLT_KEYMAP=3Djp.106=0A= >>> device atkbd=0A= >>>=0A= >>> & USB Keyboard=0A= >>> device ukbd=0A= >>> options UKBD_DFLT_KEYMAP=0A= >>> makeoptions UKBD_DFLT_KEYMAP=3Djp.106=0A= >>>=0A= >>> & everything else=0A= >>> & ...=0A= >>> &__----------__----------__----------__----------=0A= >>>=0A= >>> So far as I can tell=2C these options should be working. I am using a 1= 06=0A= >>> key Japanese keyboard. Single user mode appears to use the keymap for a= =0A= >>> 101 key standard US layout. I have tried the following values:=0A= >>> - jp=0A= >>> - jp.106=0A= >>> - jp.106.kbd (not tried recently)=0A= >>>=0A= >>> Finally=2C this is a FreeBSD VM running in VirtualBox on OSX. I am 99% = sure=0A= >>> I am having the same problem on my physical machines. The specific driv= er=0A= >>> almost certainly depends on the hardware.=0A= >>>=0A= >>=0A= >> Try setting keymap in /etc/rc.conf to the entry you want. Just=0A= >> putting keymap=3D"jp.106" there should work.=0A= >>=0A= >> Umm=2C but this is for syscons. Not sure what you may need for vt=2C=0A= >> which I don't use.=0A= >=0A= > See this patch: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D19386= 5=0A= =0A= PR 194744 implies that disabling kbdmux is a workaround.=0A= https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D194744=0A= =0A= Indeed=2C compiling with the above kernel configuration and disabling kbdmu= x by=0A= adding the following line=A0to=A0/boot/device.hints allows single user mode= to boot=0A= with a custom keymap. =A0jp.106.kbd in my case.=0A= hint.kbdmux.0.disabled=3D"1"=0A= =0A= In my tests=2C recompiling with a manually patched /usr/src/sys/dev/kbd/kbd= tables.h=0A= had no impact on the kbdmux keymap. =A0Neither did temporarily replacing=0A= /usr/share/syscons/keymaps/us.iso.kbd before the build.=0A= =0A= I look forward to seeing the custom keymap related patches pulled into head= .=0A= I understand the developers have more pressing and exciting things to work = on.=0A= =0A= >> --=0A= >> Gary Jennejohn=0A= >> _______________________________________________=0A= >> freebsd-current@freebsd.org mailing list=0A= >> https://lists.freebsd.org/mailman/listinfo/freebsd-current=0A= >> To unsubscribe=2C send any mail to "freebsd-current-unsubscribe@freebsd.= org"=0A= >>=0A= =