Jump to content

Kernel Compile Gone Wrong


Recommended Posts

I tried to recompile the kernel (9.2rc2 2.4.22-6mdk) and ran into various problems. Decided to return to the default kernel and made changes accordingly:

 

Uninstalled and re-installed kernel sources - I had problems with different kernel headers

urpme kernel-source

urpmi kernel-source

 

Copied defconfig to .config

cp /usr/src/linux/arch/i386/defconfig  /usr/src/linux.config

 

Checked that syslinks

vmlinuz

config

initrd.img

kernel.h

System.map

all pointed to the correct kernel version (2.4.22-6mdk)

 

Edited lilo.conf (I'm booting from a different Mdk partition. 9.2 is on hda9)

image=/mnt/mdkroot/boot/vmlinuz

label="Mdk92"

root=/dev/hda9

initrd=/mnt/mdkroot/boot/initrd.img

append="quiet noapic devfs=mount hdc=ide-scsi acpi=off"

vga=788

read-only

 

Everything starts up with no errors and brings me to init:3.

 

Install the Nvidia drivers

sh downloads9.2/NVIDIA-Linux-x86-1.0-4496-pkg2.run

 

Nvidia install without a hitch

 

exit

startx

 

Nvidia screen flashes and I get a pageful of errors, all very similar to this excerpt:

The XKEYBOARD keymap compiler (xkbcomp) reports:

> Warning:          Symbol map for key <ESC> redefined

>                   Using last definition for conflicting fields

> Warning:          Symbol map for key <TLDE> redefined

>                   Using last definition for conflicting fields

> Warning:          Symbol map for key <AE01> redefined

>                   Using last definition for conflicting fields

> Warning:          Symbol map for key <AE02> redefined

>                   Using last definition for conflicting fields

> Warning:          Symbol map for key <AE03> redefined

>                   Using last definition for conflicting fields

> Warning:          Symbol map for key <AE04> redefined

>                   Using last definition for conflicting fields

> Warning:          Symbol map for key <AE05> redefined

>                   Using last definition for conflicting fields

> Warning:          Symbol map for key <AE06> redefined

>                   Using last definition for conflicting fields

 

I assume it's to do with the keyboard, but I don't know how to fix it.

Link to comment
Share on other sites

The problem is probably with your X setup and not with your kernel (unless you forgot a vital module for your keyboard).

 

What is your keyboard setup in /etc/X11/XF86Config-4 ? I'm assuming you are using your old X configuration, so maybe check your keyboard-related modules in the menuconfig (sorry, couldn't tell you what they are from where I am now).

Link to comment
Share on other sites

The keyboard section of XF86Config-4 seems OK, unless there should be a value for XkbOptions

Section "InputDevice"

   Identifier "Keyboard1"

   Driver "Keyboard"

   Option "XkbModel" "pc105"

   Option "XkbLayout" "en_US"

   Option "XkbOptions" ""

EndSection

 

The only change I made in the compile was disabling APM and compiling "Button" and "CPU" from ACPI into the kernel.

Link to comment
Share on other sites

It was some thing simple after all. The keyboard section of XF86Config-4 should look like this:

Section "InputDevice"

   Identifier "Keyboard1"

   Driver "Keyboard"

   Option "XkbModel" "pc105"

   Option "XkbLayout" "us"

   Option "XkbCompat" ""

   Option "XkbOptions" ""

 

instead of how it was:

Section "InputDevice"

   Identifier "Keyboard1"

   Driver "Keyboard"

   Option "XkbModel" "pc105"

   Option "XkbLayout" "en_US"

   Option "XkbOptions" ""

 

Time to recompile the kernel again :D

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...