• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 271
  • Last Modified:

recompile for 386 --- not!

After installing slackware 7.1 on a hard drive in a P2 and moving the drive to a 386DX with a 387, the kernel (2.2) panics with 'recompile for a 386!'.  So I put the drive back in the P2, select all the 386 related options and compile with 'make bzlilo'.  

The kernel gives the same complaint back in the 386 every time.  Is there some option that I might be missing that isn't in the 'processor options' section of the kernel's make config?  Or does something else special need to be done when compiling on one platform and moving to another?  I've done this successfully with a MUCH older slackware distro without any special changes between the P2 and the 386, but something is stopping this particular release.

Thanks for any help,
magarity
0
magarity
Asked:
magarity
  • 2
  • 2
1 Solution
 
jlevieCommented:
Did you do a "make mrproper" before configuring the kernel for a 386 CPU type? If not, the build process is probably picking up other CPU type information. Be aware that "make mrproper" will delete the existing .config file. If you want to save that kernel config copy the .config file to some other name.
0
 
magarityAuthor Commented:
No, I haven't tried mrproper.  I'll give it a try tonight.  Should I do mrproper and then make config?
0
 
magarityAuthor Commented:
Ah, that actually worked...  From a blank install, where the heck was it getting the wrong CPU type info???  Anyway, thanks for the tip; my little firewall box is now on a 2.4.4 kernel, whee!
0
 
jlevieCommented:
It got the incorrect CPU type because the kernel source tree had been used to compile a kernel before it was packaged for distribution. Whether the kernel should be distributed that way or not is something of a moot question. The kernel building docs that I've seen all say to do a "make mrproper" the first time you build a kernel and each time that you change the CPU type or mode.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now