RE: FreeBSD 11.0-CURRENT Single User Keymap

From: Brendan Sechter <sgeos_at_hotmail.com>
Date: Mon, 21 Sep 2015 17:12:24 +0900
> Date: Sun, 20 Sep 2015 16:50:40 +0200
> Subject: Re: FreeBSD 11.0-CURRENT Single User Keymap
> From: oliver.pinter_at_hardenedbsd.org
> To: gljennjohn_at_gmail.com
> CC: sgeos_at_hotmail.com; freebsd-current_at_freebsd.org
>
> On 9/16/15, Gary Jennejohn <gljennjohn_at_gmail.com> wrote:
>> On Tue, 15 Sep 2015 19:32:35 +0900
>> Brendan Sechter <sgeos_at_hotmail.com> wrote:
>>
>>> When compiling a FreeBSD 11.0-CURRENT kernel, what is required to change
>>> the keymap used in single user mode? __I originally asked this question on
>>> the FreeBSD forums, but was bounced to the mailing list because CURRENT is
>>> an unsupported version.
>>>
>>> I have read an old forum thread on this topic. I have also read
>>> the__atkbd(4)__and__ukbd(4)__man pages. The relevant parts of my kernel
>>> configuration are as follows:
>>>
>>> &__----------__----------__----------__----------
>>> include GENERIC
>>> ident MY_KERNEL
>>>
>>> & AT Keyboard
>>> device atkbdc
>>> options ATKBD_DFLT_KEYMAP
>>> makeoptions ATKBD_DFLT_KEYMAP=jp.106
>>> device atkbd
>>>
>>> & USB Keyboard
>>> device ukbd
>>> options UKBD_DFLT_KEYMAP
>>> makeoptions UKBD_DFLT_KEYMAP=jp.106
>>>
>>> & everything else
>>> & ...
>>> &__----------__----------__----------__----------
>>>
>>> So far as I can tell, these options should be working. I am using a 106
>>> key Japanese keyboard. Single user mode appears to use the keymap for a
>>> 101 key standard US layout. I have tried the following values:
>>> - jp
>>> - jp.106
>>> - jp.106.kbd (not tried recently)
>>>
>>> Finally, this is a FreeBSD VM running in VirtualBox on OSX. I am 99% sure
>>> I am having the same problem on my physical machines. The specific driver
>>> almost certainly depends on the hardware.
>>>
>>
>> Try setting keymap in /etc/rc.conf to the entry you want. Just
>> putting keymap="jp.106" there should work.
>>
>> Umm, but this is for syscons. Not sure what you may need for vt,
>> which I don't use.
>
> See this patch: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=193865

PR 194744 implies that disabling kbdmux is a workaround.
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194744

Indeed, compiling with the above kernel configuration and disabling kbdmux by
adding the following line to /boot/device.hints allows single user mode to boot
with a custom keymap.  jp.106.kbd in my case.
hint.kbdmux.0.disabled="1"

In my tests, recompiling with a manually patched /usr/src/sys/dev/kbd/kbdtables.h
had no impact on the kbdmux keymap.  Neither did temporarily replacing
/usr/share/syscons/keymaps/us.iso.kbd before the build.

I look forward to seeing the custom keymap related patches pulled into head.
I understand the developers have more pressing and exciting things to work on.

>> --
>> Gary Jennejohn
>> _______________________________________________
>> freebsd-current_at_freebsd.org mailing list
>> https://lists.freebsd.org/mailman/listinfo/freebsd-current
>> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
>>
 		 	   		  
Received on Mon Sep 21 2015 - 06:12:26 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:59 UTC