Bezüglich Oliver Pinter's Nachricht vom 16.11.2014 12:53 (localtime): > On 11/15/14, Dominik Zajac <ba...@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
Description: OpenPGP digital signature