Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Nov 2014 14:19:42 +0100
From:      Harald Schmalzbauer <h.schmalzbauer@omnilan.de>
To:        Oliver Pinter <oliver.pinter@hardenedbsd.org>
Cc:        Dominik Zajac <banym@banym.de>, freebsd-current@freebsd.org
Subject:   Re: Changing makeoptions UKBD_DFLT_KEYMAP leads to kernel build fail
Message-ID:  <5469F5EE.9000808@omnilan.de>
In-Reply-To: <CAPQ4fftDMiBPz%2BN-U70jkn2kQvcWhS8RADaLm_LE%2BoBMo-dBmw@mail.gmail.com>
References:  <5467CEE2.908@banym.de> <CAPQ4fftDMiBPz%2BN-U70jkn2kQvcWhS8RADaLm_LE%2BoBMo-dBmw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig66DC2FAB562DC26386F56F5C
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

 Bez=FCglich Oliver Pinter's Nachricht vom 16.11.2014 12:53 (localtime):
> On 11/15/14, Dominik Zajac <banym@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=3Dde.iso
>>
>>
>> I tried it with this, too:
>>
>>     makeoptions UKBD_DFLT_KEYMAP=3Dgerman.iso
>>
>>
>> Both leads to the following problem:
>>
>>
>>     /usr/src/sys/dev/usb/input/ukbd.c:1209:18: error: use of undeclare=
d
>> identifier 'key_map'
>>
>>              sc->sc_keymap =3D key_map;
>>
>>                              ^
>>
>>     /usr/src/sys/dev/usb/input/ukbd.c:1210:18: error: use of undeclare=
d
>> identifier 'accent_map'
>>
>>              sc->sc_accmap =3D accent_map;
>>
>>                              ^
>>
>>     2 errors generated.
>>
>>     *** Error code 1
> Hi!
>
> See this ticket:
> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D194744 and the
> related bugs.
>
>> Is there a dynamic way to change the keyboard layout at boot time to t=
yp
>> 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=3D193865, 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=3D153459), 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=3D193865). 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=
=2E

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!]=85

-Harry


--------------enig66DC2FAB562DC26386F56F5C
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (FreeBSD)

iEYEARECAAYFAlRp9fMACgkQLDqVQ9VXb8iJFwCeOeD7Aut6NmlaPmnyFG0SHwXg
4fcAoJVWEuz9HevZ4Wg5UpWDD7yFg2Cq
=ygau
-----END PGP SIGNATURE-----

--------------enig66DC2FAB562DC26386F56F5C--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5469F5EE.9000808>