Linux kernel CONFIG_M486=y but doesn't run on 486 target

Posted on 2004-11-18
Last Modified: 2013-12-15
I have to compile a Linux kernel (Debian 2.4.27 Sarge "testing" of Oct 15 2004) for a 486 target. As there the compilation takes about 3 hours, I have connected its Linux hard drive to a Pentium III PC and boot Linux on this computer in order to do the compilation there.
My problem is the following: the .config file contains CONFIG_M486=y and I see from the build messages that all gcc calls run with "-march=i486". Also the newly created kernel boots from the Pentium III PC. However when I then connect the hard disk with the newly created/installed kernel to the 486 target I get a kernel message saying "Kernel panic: Kernel compiled for Pentium+, requires TSC feature!".
This is what I am doing:
make mrproper
make menuconfig
make dep
make clean
make bzImage
Then copy the newly created kernel to /boot and change /boot/grub/menu.lst appropriately.

What's going wrong ?
Question by:AlfredH
    1 Comment
    LVL 87

    Accepted Solution

    I think when you do mrproper you are actually getting the wrong config file. I'd try the following: do everything up to and with menuconfig on the 486 machine to prepare your new config file. then save it. Now edit your makefile in the linux directory to create a defined revision number. Copy the new config file, the linux source and if you want, the /lib/modules/(current kernel revision) to the pentium III PC. make sure you have the newly made .config file in the newly copied linux folder. start menuconfig again and make sure the settings are still correct. If that is the case, go on with the Compillation and when finished, copy the new linux kernel, the newly created /lib/modules folder to the old PC.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Join & Write a Comment

    Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
    SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
    This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now