Ticket #56 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

Broken command to build the keymap into the kernel

Reported by: manuel@linuxfromscratch.org Assigned to: jim
Priority: minor Milestone: CLFS Standard 1.0.0
Component: BOOK Version: CLFS Standard 1.0.0
Keywords: Cc:

Description

Due that now the Kbd keymap files are installed into /lib/kbd, the commands found in the book to build the keymap into the kernel are broken.

The fix for the bootable chapter is as easy as to change in bootable/x86/kernel.xml

loadkeys -m /usr/share/kbd/keymaps/[path to keymap] > drivers/char/defkeymap.c

by

loadkeys -m /lib/kbd/keymaps/[path to keymap] > drivers/char/defkeymap.c

Fixing also the path in the paragraph below that command.

But that don't will work for the boot chapter due that we can't know beforehand where the keymap files are installed on the host.

Thus in the boot chapter the XIncludes to that blocks must be replaced by a proper command and text, or full removed.

Change History

07/16/06 20:09:27 changed by jciccone

I'd either replace this command with

loadkeys -m [path to keymap] > drivers/char/devkeymap.c

or

loadkeys -m ${CLFS}/lib/kbd/keymaps/[path to keymap] > drivers/char/defkeymap.c


Because we're so close to a release I would opt for the first one for now. we also don't know that /usr/share/keymaps are where the keymaps are.

07/17/06 02:57:48 changed by chris@beaker67.com

I would think the 2nd one isn't even an option since kbd isn't installed onto ${CLFS} until the final-system.

07/17/06 02:58:51 changed by chris@beaker67.com

Of course, that 2nd one is what we would want for CLFS 2.

07/18/06 17:26:48 changed by chris@beaker67.com

  • version changed from unstable to 1.0.0.

07/23/06 16:19:16 changed by chris@beaker67.com

  • owner changed from clfs-commits@lists.cross-lfs.org. to chris@beaker67.com.
  • status changed from new to assigned.

I don't believe that text in the boot section should be removed, as anyone using the boot method has no other way of using alternative keyboard layouts (since kbd is not installed in the temp-system). I'm

07/23/06 16:20:00 changed by chris@beaker67.com

Oops, I didn't finish typing (was going to remove what I typed anyway and just assign the ticket to myself :p ).

07/23/06 16:27:33 changed by chris@beaker67.com

For anyone here who knows how distros do things, would it be reasonable to state in the "boot" section that a typical location for keymap files is in /usr/share/kbd? Or do most distros do something different?

07/24/06 07:19:02 changed by chris@beaker67.com

Ok, I've updated the book with the needed command changes - just need to look at the text in the "boot" section. I am seeing a few different possibilities to account for the fact that we don't necessarily know where keymap files may be on the host...

1. Say to "consult the host's documentation" for the info 2. Mention that /usr/share/kbd is a typical location 3. Tell the user to run a command like "find / -type d -name keymaps" 4. Any combination of the above

07/24/06 13:24:12 changed by alexander@linuxfromscratch.org

You obvuously don't follow LFS lists and bug reports:

http://archives.linuxfromscratch.org/mail-archives/lfs-support/2005-January/025877.html http://archives.linuxfromscratch.org/mail-archives/blfs-support/2005-December/057972.html

Even for non-UTF-8 case, compiling keymap into the kernel sometimes doesn't work. This happens because some keymaps expect themselves to be loaded after (i.e., on top of) the default keymap, not instead of it. So the only really working solution for the boot scenario is to install kbd into /tools.

07/24/06 13:26:43 changed by alexander@linuxfromscratch.org

07/24/06 18:32:41 changed by manuel@linuxfromscratch.org

For CLFS-1.0.0, and due that we are very near to release, maybe a note discussing that some keymaps may not work properly when compiled into the kernel could prevent the issue.

For CLFS-1.1.0 I thing also that Kbd should be installed in /tools to can have a working keyboard when using the boot method.

08/06/06 22:53:47 changed by jim

From what I found out this is not the preferred method. I vote to remove this entire section of building the keymap into the kernel.

08/07/06 15:10:45 changed by chris@beaker67.com

I would say, remove it entirely from the final system, but keep it in the boot section, at least until kbd is added to the temp-system.

09/05/06 21:10:12 changed by jim

  • owner changed from chris@beaker67.com to jim.
  • priority changed from major to minor.
  • version changed from 1.0.0 to 1.1.0.
  • status changed from assigned to new.
  • milestone changed from CLFS 1.0.0 to CLFS 1.1.0.

1.0.0 book was updated to the proper location.

1.1.0 book will have this section removed from the entire book, it will be replaced with notes on the website.

This ticket is going to be assigned up to 1.1.0 branch, until the note page is up on the website.

09/27/06 03:30:48 changed by jim

  • status changed from new to closed.
  • version changed from 1.1.0 to 1.0.0.
  • resolution set to fixed.
  • milestone changed from CLFS 1.1.0 to CLFS 1.0.0.