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

Re: Troubles running 686-smp kernels (both 2.6/2.4)



On Thu, 2006-01-12 at 00:06 -0300, dererk wrote:
> dann frazier wrote:
> 
> >On Wed, 2006-01-11 at 18:24 -0300, dererk wrote:
> >  
> >
> >Unfortunately, you may have to.  I don't think your cpus are supported
> >by a 686 optimized kernel, and there's no 386-smp flavor.
> >
> >You can try and see if either 2.4.27-2-386 or 2.6.8-2-386 works for you
> >as a first step.  If those don't work, then its unlikely the
> >smp-counterpart would work.  Better to know that in advance before going
> >through the rebuild effort.
> >
> First of all, thanks for answering so soon  :-)
> 
> I already have it running under a Debian precompiled 2.4.27-2-386 
> kernel, and It doesn't crash or something like that, but, once I saw 
> what showed /proc/cpu, I realise the 2 processor wasn't working, well, 
> that's what I assumed, please correct me if I'm wrong, but, If I don't 
> use either a SMP precompiled kern, or a homemade supporting smp, the 2 
> processors won't working at the same time, right?

correct.

> I've no pacience with kernel compiling stuff, thats why I'm trying not 
> to do it at all...
> 
> Only chance, to use a homemade one?

I'm afraid so.  Unfortunately for you, a multi-processor pentium I is a
rare thing indeed - there's not much of a userbase for an official
Debian build.  

However, here's some steps that should help you build your own kernel -
I used 2.6.8 as an example, but 2.4.27 should work the same way - just
change 2.6.8 to 2.4.27 below.

## Install the software you'll need to compile:
sudo apt-get install build-essential
sudo apt-get build-dep kernel-image-2.6.8-i386
sudo apt-get install libncurses5-dev fakeroot

## Fetch the kernel-image source package
## (You'll need deb-src lines in your sources.list file)
apt-get source kernel-image-2.6.8-i386

## Create a custom config, starting with the 686 one
tar xfj /usr/src/kernel-source-2.6.8.tar.bz2
cd kernel-source-2.6.8
cp ../kernel-image-2.6.8-i386-2.6.8/config/686-smp ./.config
make menuconfig
 Go to Processor type and features
 Under Processor family, choose "Pentium Classic"
The exit out, and save the configuration when asked.

## Build your kernel
make-kpkg --rootcmd fakeroot --append-to-version -2-586-smp \
  --revision 2.6.8-16sarge1 kernel-image

(I matched up the --revision value with the version string in the top
line of kernel-image-2.6.8-i386-2.6.8/debian/changelog, and the -2 is
because the x86 packages currently have a -2 ABI)

## you'll need module-init-tools for 2.6
sudo apt-get install module-init-tools

## install the new kernel
cd ..
dpkg -i kernel-image-2.6.8-2-586-smp_2.6.8-16sarge_i386.deb

To stay up to date with security updates, do the above each time a new
kernel-source-2.6.8 comes out.




Reply to: