On Tue, Oct 30, 2001 at 01:10:40AM -0500, eDoc wrote: > > - cd /usr/src/linux-2.4.13 > > > > - Configure the kernel. This isn't Debian-specific. Some people > > like "make menuconfig", others "make xconfig", others just plain > > "make config". One handy tip: Debian kernel packages store their > > configs in /boot/config-X.Y.Z, so you can start with a good kernel > > config and go from there. If you do that and just want to be asked > > the questions that are new since that kernel version, run "make > > oldconfig". > > > > - Pick a Debian package revision for your kernel stuff. I generally > > pick something that describes the purpose of the kernel and a > > version, such as "laptop.1". > > > > - Run "make-kpkg clean". > > Ooops! Missed this step.
The first time you build, you *may* be able to get away with skipping this step. > > - Run "make-kpkg --revision=<revision> kernel_image". > > Uh oh. I just ran "make-kpkg" since i have frequently been told to do that. > > (All of my hacking around seems to have "accidently" resulted in > make-kpkg "deciding" to respond!) Here's where you've gone wrong this time around. I'm not sure what "make-kpkg" does by itself, but I know that it isn't what you need. > The hundreds of choices are, as usual, poorly documented internally > so I guessed on the few for which I did not accept the default. > > CONFIG_HOTPLUG Y > PCMCIA/CardBus Y > CardBus Support Y Good so far... > i82365 comp. bridge N (this may have been the default) Generally, if you can compile something as a module, it's better to do so than to disable it. In the 2.4.x tree, though, they've had some places where the code just doesn't compile with certain configs, so it's prudent to just disable things you don't need. You can always turn them off and try again if the compile fails. i82365 support may be necessary even for some newer laptops to get PCMCIA working. I have a Toshiba that's only about a year and a half old that needs it. > ParallelPort (CONFIG_PARPORT) Y > PC-Style hardware (CONFIG_PARPORT_PC) Y > Support for PCMCIA Mgmt. for PC-style Ports > (CONFIG_PARPORT_PC_PCMCIA) Y > PCMCIA Network (CONFIG_NET_PCMCIA) Y > 3com 589 Y > Ham Radio Y > PCMCIA Serial devices (CONFIG_PCMCIA_SERIAL_CS) M > ***I was thinking this may be necessary for my PCMCIA modem*** Yup. > Video for Linux Y > ***Was hoping this might help to get my Nogatech USB video > adapter/dongle to interface with my cancorder or other video device*** It might. I'm not sure. It shouldn't hurt anything, though. > > - If that succeeds, run "make-kpkg modules_image". > > Did this ... tons of code scrolled by. > > > - If you think you may need to compile other modules for this kernel > > after you've built other kernels with this source tree, run > > "make-kpkg kernel_headers". > > Did this ... tons of code scrolled by. Good. > > - cd /usr/src > > OK. > > > - ls -l *deb > > HOORAY! kernel-headers-2.4.12_100.Custom_i386.deb is there! > Also, from a while back, is modutils_2.4.10-3_i386.deb > > It is something more than before ... though I am not sure it is what I need. > > Is it? Nope. That line you didn't type before, where you just did "make-kpkg"? That's what builds the "kernel-image" package which contains your kernel. The first thing you need to do is uninstall the kernel-headers package you just installed. Do that with "dpkg --remove kernel-headers-2.4.12". Just for safety's sake, go ahead and "rm /usr/src/*deb" as well, so you don't accidentally install an old package that might screw up everything else. Now, back up to the "make-kpkg clean" part and do it all again, and this time follow the directions exactly as I typed them. It might help to print out the directions so you can refer to them exactly. You definitely don't need the modutils package, and downgrading to that version may introduce bugs that have been fixed. The next chance you get, run "apt-get update" and "apt-get dist-upgrade". That should restore the modutils version you had before, and install a bunch of other upgrades as well. > > You should now have a list of Debian packages on your screen, > > corresponding to the kernel packages you just built (and maybe some > > older ones, if you've been building kernels before). Run a "dpkg -i" > > on them, and you're all set. > > I tried "dpkg -i kernel-headers-2.4.12_100.Custom_i386.deb" but it > spit-up ... > > So I tried "dpkg -i *.deb" > > It downgraded modutils from 2.4.10-4 to 2.4.10-3 and then setup > kernel_headers and modutils. > > Nothing new in /boot > > What now, please? See above. > > I *highly* suggest your installing at least the libncurses5-dev package > > glen > > "find -name libncurses5-dev" says nada. > "apropos libncurses5-dev" says nada. > > Ran "apt-get install libncurses5-dev" seemed to go OK. Yup. That's what was needed. Now, "make menuconfig" should work. If you need to reconfigure the kernel, it will be a lot easier.