Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Sep 2015 14:20:15 +0900
From:      Brendan Sechter <sgeos@hotmail.com>
To:        "gljennjohn@gmail.com" <gljennjohn@gmail.com>
Cc:        "freebsd-current@freebsd.org" <freebsd-current@freebsd.org>
Subject:   RE: FreeBSD 11.0-CURRENT Single User Keymap
Message-ID:  <BAY182-W23AB757A7576193814B08A25B0@phx.gbl>
In-Reply-To: <20150916045940.77f5ec2d@ernst.home>
References:  <BAY182-W82E7A902AD31ECAF3F4D3FA25C0@phx.gbl>, <20150916045940.77f5ec2d@ernst.home>

next in thread | previous in thread | raw e-mail | index | archive | help
> Date: Wed=2C 16 Sep 2015 04:59:40 +0200=0A=
> From: gljennjohn@gmail.com=0A=
> To: sgeos@hotmail.com=0A=
> CC: freebsd-current@freebsd.org=0A=
> Subject: Re: FreeBSD 11.0-CURRENT Single User Keymap=0A=
>=0A=
> On Tue=2C 15 Sep 2015 19:32:35 +0900=0A=
> Brendan Sechter <sgeos@hotmail.com> wrote:=0A=
>=0A=
>> When compiling a FreeBSD 11.0-CURRENT kernel=2C what is required to chan=
ge the keymap used in single user mode? __I originally asked this question =
on the FreeBSD forums=2C but was bounced to the mailing list because CURREN=
T is an unsupported version.=0A=
>>=0A=
>> I have read an old forum thread on this topic. I have also read the__atk=
bd(4)__and__ukbd(4)__man pages. The relevant parts of my kernel configurati=
on are as follows:=0A=
>>=0A=
>> &__----------__----------__----------__----------=0A=
>> include GENERIC=0A=
>> ident MY_KERNEL=0A=
>>=0A=
>> & AT Keyboard=0A=
>> device atkbdc=0A=
>> options ATKBD_DFLT_KEYMAP=0A=
>> makeoptions ATKBD_DFLT_KEYMAP=3Djp.106=0A=
>> device atkbd=0A=
>>=0A=
>> & USB Keyboard=0A=
>> device ukbd=0A=
>> options UKBD_DFLT_KEYMAP=0A=
>> makeoptions UKBD_DFLT_KEYMAP=3Djp.106=0A=
>>=0A=
>> & everything else=0A=
>> & ...=0A=
>> &__----------__----------__----------__----------=0A=
>>=0A=
>> So far as I can tell=2C these options should be working. I am using a 10=
6 key Japanese keyboard. Single user mode appears to use the keymap for a 1=
01 key standard US layout. I have tried the following values:=0A=
>> - jp=0A=
>> - jp.106=0A=
>> - jp.106.kbd (not tried recently)=0A=
>>=0A=
>> Finally=2C this is a FreeBSD VM running in VirtualBox on OSX. I am 99% s=
ure I am having the same problem on my physical machines. The specific driv=
er almost certainly depends on the hardware.=0A=
>>=0A=
>=0A=
> Try setting keymap in /etc/rc.conf to the entry you want. Just=0A=
> putting keymap=3D"jp.106" there should work.=0A=
=0A=
My /etc/rc.conf already contained keymap=3D"jp".=0A=
Changing it to keymap=3D"jp.106" did not resolve the issue.=0A=
The keymap is correct in multi user mode=2C but not single user mode.=0A=
=0A=
I have never been able to get single user mode to boot with anything other =
than a=A0101 key standard US layout.=0A=
If I recall correctly=2C starting devd would load the /etc/rc.conf keymap i=
n previous versions=2C but I am not 100% sure of that.=0A=
=0A=
Running kbdmap after booting into single user mode gives some interesting b=
ut expected output.=0A=
# kbdmap=0A=
lang_default =3D en=0A=
dialect =3D en=0A=
lang_abk =3D en=0A=
Could not open temporary file "/tmp/_kbd_lang.R4J6"=0A=
#=0A=
=0A=
I can change the keymap by remounting a read/write filesystem and running k=
bdmap.=0A=
This is not ideal.=0A=
# mount -u /=0A=
# kbdmap=0A=
[interactively select Japanese 106 keyboard layout]=0A=
keymap=3D"jp.kbd"=0A=
#=0A=
=0A=
I only found one solution to this issue in Japanese=2C but it requires remo=
unting and manually setting the keymap.=0A=
Are people booting into single user mode with working European keymaps?=0A=
Is it possible the jp keymap has some quirk that is causing it to be reject=
ed when booting in single user mode?=0A=
=0A=
If it matters=2C this system started as a minimal install using=A0FreeBSD-1=
0.2-RELEASE-amd64-disc1.iso.=0A=
I tracked 11.0-CURRENT immediately after performing a minimum install and r=
ebuilt everything a couple of times.=0A=
=0A=
> Umm=2C but this is for syscons. Not sure what you may need for vt=2C=0A=
> which I don't use.=0A=
=0A=
Multiuser works=2C single user does not.=0A=
=0A=
Single user (default standard US keymap):=0A=
# tty=0A=
/dev/console=0A=
=0A=
Multi user (correct /etc/rc.conf keymap):=0A=
# tty=0A=
/dev/ttyv0=0A=
=0A=
Multi user SSH=A0(correct /etc/rc.conf keymap):=0A=
$ su=0A=
# tty=0A=
/dev/pts/0=0A=
=0A=
> --=0A=
> Gary Jennejohn=0A=
> _______________________________________________=0A=
> freebsd-current@freebsd.org mailing list=0A=
> https://lists.freebsd.org/mailman/listinfo/freebsd-current=0A=
> To unsubscribe=2C send any mail to "freebsd-current-unsubscribe@freebsd.o=
rg"=0A=
 		 	   		  =



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