[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: compiled and installed new kernel, but dkpg does not find it



Hugo Vanwoerkom wrote:
H. S. wrote:

Hi,

I downloaded the source for 2.4.22 and compiled it and installed using dpkg:
  461  cd kernel-source-2.4.22
  462  cp /boot/config-2.4.18-bf2.4 ./.config
  463  make menuconfig
  464  make menuconfig
  465  make-kpkg clean
  466  make-kpkg --append_to_version -nvidia kernel_image modules_image
  467  cd ..
  468  dpkg -i kernel-image-2.4.22-nvidia_10.00.Custom_i386.deb


And I am not able to make the mouse move, seems like the new kernel doesn't see the mouse. This new kernel was compiled because I wanted to use the new nvidia driver. I followed the steps given here:
http://www.leonscape.co.uk/linux/how2-nvg4.html


I never knew about that page and follow a slightly different approach.
(Others may have better ways :-) )

- make menuconfig on the new kernel
- make-kpkg --revision 1 kernel_image

Then I end up with a .deb in /usr/src.
I rename /lib/modules/<kernel> to something else

I thought of this too, so that second time install wouldn't complain that the directory exists. But after a bit of reading on how to compile the kernel, I decided just to add an extraversion to the make file and compile the kernel as my own, eg kernel-image-2.4.22-hs1 or something like this. This way, I can later just remove the /lib/modules directory which, and when, I don't need anymore, but still use it if necessary.


dpkg -i <kernel_image.deb>

I never worry anymore what dpkg has or does not have, in this case, it does not seem to matter. I can run dpkg as many times as I wish with an updated .deb. The only thing is you have to have Lilo squared away because he will run lilo as part of the install of the .deb.

That new kernel I boot. It will not have Nvidia, so I run:

NVIDIA-Linux-x86-1.0-4363.run (from Nvidia)

which compiles Nvidia 4363, without a problem, telling it that I don't want it to look on the web for a later version. It always seems to work, and creates nvidia.o in /drivers/video. (Can't have X running when you run it and things change in 2.6.0)

I did this too with my earlier kernel 2.4.22-1-686 that I installed using apt-get, but nvidia couldn't find the headers, so I installed the headers as well, it still couldn't find it. So I began compiling my own kernel. Oh, btw, with the new kernel 2.4.22-1-686 I had also lost my internal netowrk (see my other message for more info), which gave me anothr reason to compile my own kernel.

But since I don't know all these issues very well, I am still struggling ... and learning :)

->HS


--
(Remove all underscores,_if any_, from my email address to get the correct one. Apologies for the inconvenience, but this is to reduce spam.)




Reply to: