LFS 5.0 - Chptr 6 - Configuring your keyboard

Andy Neebel aneebel at bradley.edu
Thu Feb 5 06:51:59 PST 2004


On Thu, 05 Feb 2004 20:35:44 -0600, Albert wrote:

> Almost the last thing in Chapter 6 is "Configuring your keyboard."   It 
> says:
>  
> "Run the following command to patch the current default keymap into the 
> kernel source. You will have to repeat this command whenever you unpack 
> a new kernel:"
> 
> loadkeys -m /usr/share/kbd/keymaps/defkeymap.map.gz > \
>     /usr/src/linux-2.4.22/drivers/char/defkeymap.c
> 
> The target above /usr/src/linux-2.4.22...  indicates that linux should 
> be unpacked into /usr/src.  Yet, early in Chapter 6 linux is unpacked 
> into /source.  Later, in Chapter 7, there is no indication that it is 
> proper to unpack linux for kernel compilation into /usr/src rather 
> than /sources.  Where should linux be unpacked for proper compilation 
> of the kernel?

It doesn't matter where the kernel is, there just needs to be enough space
to build it.  However, the habit is to put the linux kernel sources into
/usr/src.  You don't need to run this command.  It is only used so that
the keymap is compilied into the kernel, which means you won't need the
loadkeys script.  This command is written as an example of what to do. 
The pathes in it aren't nesesary always the exact ones you would use.  The
keymap gets dumped in the drivers/char/defkeymap.c file in whereever your
kernel sources are, /usr/src, /sources, or whatever.  The easiest thing to
do would be to ignore this command and just always use the bootscript that
loads the keymap instead.  Either way, it's your choice.

Andy




More information about the lfs-support mailing list