Re: Changing makeoptions UKBD_DFLT_KEYMAP leads to kernel build fail

From: Dominik Zajac <banym_at_banym.de>
Date: Mon, 17 Nov 2014 17:43:39 +0100
Hi Harald,

thanks for the detailed answer. I will test this asap.

Is there some work planed to make the keyboard layout dynamical
changeable?

I run into this problem because I have to enter my zfs encryption pass
phrase in a different layout than I set it while installation. This
maybe confuses others. It would be nice if the installer is able to
set the default keymap to the chosen one so you can enter your pass
phrase in the same keymap you set it.


Dominik




On 11/17/2014 02:19 PM, Harald Schmalzbauer wrote:
> Bezüglich Oliver Pinter's Nachricht vom 16.11.2014 12:53
> (localtime):
>> On 11/15/14, Dominik Zajac <banym_at_banym.de> wrote:
>>> Hi,
>>> 
>>> I am trying to change the default keymap for my keyboard
>>> therefore I added the following options to my kernel
>>> configuration which leads to the error bellow.
>>> 
>>> Added options:
>>> 
>>> options KBD_INSTALL_CDEV
>>> 
>>> options UKBD_DFLT_KEYMAP
>>> 
>>> makeoptions UKBD_DFLT_KEYMAP=de.iso
>>> 
>>> 
>>> I tried it with this, too:
>>> 
>>> makeoptions UKBD_DFLT_KEYMAP=german.iso
>>> 
>>> 
>>> Both leads to the following problem:
>>> 
>>> 
>>> /usr/src/sys/dev/usb/input/ukbd.c:1209:18: error: use of
>>> undeclared identifier 'key_map'
>>> 
>>> sc->sc_keymap = key_map;
>>> 
>>> ^
>>> 
>>> /usr/src/sys/dev/usb/input/ukbd.c:1210:18: error: use of
>>> undeclared identifier 'accent_map'
>>> 
>>> sc->sc_accmap = accent_map;
>>> 
>>> ^
>>> 
>>> 2 errors generated.
>>> 
>>> *** Error code 1
>> Hi!
>> 
>> See this ticket: 
>> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194744 and the 
>> related bugs.
>> 
>>> Is there a dynamic way to change the keyboard layout at boot
>>> time to typ the zfs passphrase on my default keyboardlayout?
> 
> No, you need to change default keymap, like you already found how
> to. But even if you use the keymap-name matching your current
> console (unlucky dependency at least since vt and sc use different
> keymap names, see
> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=193865, already 
> listed as related in Oliver Pinter's BugReport), it most likely
> won't work for you, since you actually use kbdmux(4) instead
> ukbd(4) (if you haven't changed in your kernel conf).
> 
> So first you have to make kbdmux's default keymap customizable 
> (https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=153459), then
> you'll probably want to get rid of the build-dependency of
> matching keymap-names to the build-machine's active console 
> (https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=193865). The
> latter especially for kbdmux, wich is an extra patch you can find
> in the first BugReport.
> 
> It's working fine here in some dozend setups, also had feedback
> that it works, but found none having time to give it a short review
> and commit it.
> 
> Wondering why you get "error: use of undeclared identifier 
> 'accent_map'"; If our active console is vt(4) and you define "de"
> or "de.kbd" [found while writing, you named de.iso!]…
> 
> -Harry
> 
Received on Mon Nov 17 2014 - 15:44:06 UTC

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