From owner-freebsd-current@FreeBSD.ORG Mon Nov 17 16:44:06 2014 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8E50989E for ; Mon, 17 Nov 2014 16:44:06 +0000 (UTC) Received: from gwave1.banym.de (gwave1.banym.de [212.72.74.40]) (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 1EBB3212 for ; Mon, 17 Nov 2014 16:44:05 +0000 (UTC) Received: from tesla.banym.local (dslb-084-057-003-046.084.057.pools.vodafone-ip.de [84.57.3.46]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by gwave1.banym.de (Postfix) with ESMTP id 4BE681C003; Mon, 17 Nov 2014 17:43:27 +0100 (CET) Message-ID: <546A25BB.1050005@banym.de> Date: Mon, 17 Nov 2014 17:43:39 +0100 From: Dominik Zajac User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: Harald Schmalzbauer , Oliver Pinter Subject: Re: Changing makeoptions UKBD_DFLT_KEYMAP leads to kernel build fail References: <5467CEE2.908@banym.de> <5469F5EE.9000808@omnilan.de> In-Reply-To: <5469F5EE.9000808@omnilan.de> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-Banym-MailScanner-Information: Please contact the ISP for more information X-Banym-MailScanner-ID: 4BE681C003.A36B7 X-Banym-MailScanner: Found to be clean X-Banym-MailScanner-From: banym@banym.de X-Spam-Status: No Cc: 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 16:44:06 -0000 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 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 >