Browse Source

added instructions how you can compile keymap directly into the kernel

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@1801 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Gerard Beekmans 23 years ago
parent
commit
a5043ab95f
4 changed files with 22 additions and 0 deletions
  1. 4 0
      chapter01/changelog.xml
  2. 16 0
      chapter06/config-keyboard.xml
  3. 1 0
      chapter07/chapter07.xml
  4. 1 0
      index.xml

+ 4 - 0
chapter01/changelog.xml

@@ -35,6 +35,10 @@
 
 </para></listitem>
 
+<listitem><para>April 5th, 2002 [gerard]: Chapter 06 - Configuring
+Keyboard: explained you can also compile the keymap directly into the
+kernel which has additional benefits.</para></listitem>
+
 <listitem><para>April 5th, 2002 [gerard]: Upgraded to
 lfs-bootscripts-1.9</para></listitem>
 

+ 16 - 0
chapter06/config-keyboard.xml

@@ -16,5 +16,21 @@ example, if you have a Dutch keyboard, you would run:</para>
 
 <para><screen><userinput>ln -s i386/qwerty/nl.map.gz defkeymap.map.gz</userinput></screen></para>
 
+<para>An second option to configure your keyboard's layout is to compile
+the keymap directly into the kernel. This will make sure that your
+keyboard always works as expected, even when you have booted into
+maintenance mode (by passing `init=/bin/sh' to the kernel) in which case
+the bootscript that normally sets up your keymap isn't run.</para>
+
+<para>If you didn't create the defkeymap.map.gz file and going with the
+default US keymap, then again you don't have to do anything. The kernel
+compiles a suitable keymap by default that'll work just fine for
+you, so skip the next command.</para>
+
+<para>Run the following commands to accomplish that:</para>
+
+<para><screen><userinput>loadkeys -m /usr/share/kbd/keymaps/defkeymap.map.gz &gt; \
+&nbsp;&nbsp;&nbsp;/usr/src/linux/drivers/char/defkeymap.c</userinput></screen></para>
+
 </sect2>
 

+ 1 - 0
chapter07/chapter07.xml

@@ -5,6 +5,7 @@
 &c7-introduction;
 &c7-usage;
 &c7-setclock;
+&c7-loadkeys;
 &c7-sysklogd;
 &c7-hostname;
 &c7-hosts;

+ 1 - 0
index.xml

@@ -341,6 +341,7 @@
 <!ENTITY c7-introduction SYSTEM "chapter07/introduction.xml">
 <!ENTITY c7-usage SYSTEM "chapter07/usage.xml">
 <!ENTITY c7-setclock SYSTEM "chapter07/setclock.xml">
+<!ENTITY c7-loadkeys SYSTEM "chapter07/loadkeys.xml">
 <!ENTITY c7-sysklogd SYSTEM "chapter07/sysklogd.xml">
 <!ENTITY c7-hostname SYSTEM "chapter07/hostname.xml">
 <!ENTITY c7-hosts SYSTEM "chapter07/hosts.xml">