From owner-freebsd-current@FreeBSD.ORG Mon Nov 17 13:19:53 2014 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7AEBC428 for ; Mon, 17 Nov 2014 13:19:53 +0000 (UTC) Received: from mx0.gentlemail.de (mx0.gentlemail.de [IPv6:2a00:e10:2800::a130]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2159B289 for ; Mon, 17 Nov 2014 13:19:52 +0000 (UTC) Received: from mh0.gentlemail.de (mh0.gentlemail.de [78.138.80.135]) by mx0.gentlemail.de (8.14.5/8.14.5) with ESMTP id sAHDJmRl007447; Mon, 17 Nov 2014 14:19:48 +0100 (CET) (envelope-from h.schmalzbauer@omnilan.de) Received: from titan.inop.mo1.omnilan.net (titan.inop.mo1.omnilan.net [IPv6:2001:a60:f0bb:1::3:1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mh0.gentlemail.de (Postfix) with ESMTPSA id 3332F30D7; Mon, 17 Nov 2014 14:19:48 +0100 (CET) Message-ID: <5469F5EE.9000808@omnilan.de> Date: Mon, 17 Nov 2014 14:19:42 +0100 From: Harald Schmalzbauer Organization: OmniLAN User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; de-DE; rv:1.9.2.8) Gecko/20100906 Lightning/1.0b2 Thunderbird/3.1.2 MIME-Version: 1.0 To: Oliver Pinter Subject: Re: Changing makeoptions UKBD_DFLT_KEYMAP leads to kernel build fail References: <5467CEE2.908@banym.de> In-Reply-To: X-Enigmail-Version: 1.1.2 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig66DC2FAB562DC26386F56F5C" X-Greylist: ACL 119 matched, not delayed by milter-greylist-4.2.7 (mx0.gentlemail.de [78.138.80.130]); Mon, 17 Nov 2014 14:19:48 +0100 (CET) X-Milter: Spamilter (Reciever: mx0.gentlemail.de; Sender-ip: 78.138.80.135; Sender-helo: mh0.gentlemail.de; ) Cc: Dominik Zajac , freebsd-current@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 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, 17 Nov 2014 13:19:53 -0000 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 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--