Unix Technical Forum

compiling kernel for i486 on pentium 2

This is a discussion on compiling kernel for i486 on pentium 2 within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Hi, I don't have much experience in compiling custom kernels. I'm running Slackware 10 on both an old i486 ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-19-2008, 04:10 PM
Christopher Pinon
 
Posts: n/a
Default compiling kernel for i486 on pentium 2

Hi,

I don't have much experience in compiling custom kernels.

I'm running Slackware 10 on both an old i486 and a pentium 2. I would like
to compile a custom kernel (2.4.27) for the i486 to improve performance.
(The stock bare.i kernel works fine, but it contains a lot of drivers that
I don't need on my i486.) Since I don't have space for gcc and co. on the
i486, I want to compile the kernel for the i486 on my pentium 2. When
configuring the new kernel, I explicitly choose i486 as the processor
type. The compiliation (make dep, make bzImage, make modules) goes well,
but when I try to boot the new kernel on the i486 I get the following
error message:

Kernel panic: Kernel compiled for Pentium+, requires TSC features

This puzzles me, because (as I said) I explicitly chose i486 as the
processor type. Of course, I suspect that this error is related to the
fact that I'm actually compiling the kernel on my pentium 2.

I would like to ask what I'm doing wrong.

Thank you,
Christopher
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-19-2008, 04:10 PM
Daniel de Kok
 
Posts: n/a
Default Re: compiling kernel for i486 on pentium 2

On Tue, 05 Oct 2004 09:05:43 +0000, Christopher Pinon wrote:

> Kernel panic: Kernel compiled for Pentium+, requires TSC features


It tries to read the TSC (Time Stamp Counter).

Try to enable the "Unsynced TSC support" (CONFIG_X86_TSC_DISABLE) kernel
option from the "Processor type and features" section, and pass the
"notsc" parameter to the kernel.

With kind regards,
Daniel de Kok
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-19-2008, 04:10 PM
NeoSadist
 
Posts: n/a
Default Re: compiling kernel for i486 on pentium 2

Christopher Pinon wrote:

> Hi,
>
> I don't have much experience in compiling custom kernels.
>
> I'm running Slackware 10 on both an old i486 and a pentium 2. I would like
> to compile a custom kernel (2.4.27) for the i486 to improve performance.
> (The stock bare.i kernel works fine, but it contains a lot of drivers that
> I don't need on my i486.) Since I don't have space for gcc and co. on the
> i486, I want to compile the kernel for the i486 on my pentium 2. When
> configuring the new kernel, I explicitly choose i486 as the processor
> type. The compiliation (make dep, make bzImage, make modules) goes well,
> but when I try to boot the new kernel on the i486 I get the following
> error message:
>
> Kernel panic: Kernel compiled for Pentium+, requires TSC features
>
> This puzzles me, because (as I said) I explicitly chose i486 as the
> processor type. Of course, I suspect that this error is related to the
> fact that I'm actually compiling the kernel on my pentium 2.


Try compiling it on the host machine then...

> I would like to ask what I'm doing wrong.
>
> Thank you,
> Christopher


--
Authors (and perhaps columnists) eventually rise to the top of whatever
depths they were once able to plumb.
-- Stanley Kaufman

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-19-2008, 04:10 PM
rm
 
Posts: n/a
Default Re: compiling kernel for i486 on pentium 2

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

NeoSadist <neosad1st@charter.net> wrote:
> Christopher Pinon wrote:
>
>> Hi,
>>
>> I don't have much experience in compiling custom kernels.
>>
>> I'm running Slackware 10 on both an old i486 and a pentium 2. I would like
>> to compile a custom kernel (2.4.27) for the i486 to improve performance.
>> (The stock bare.i kernel works fine, but it contains a lot of drivers that
>> I don't need on my i486.) Since I don't have space for gcc and co. on the
>> i486, I want to compile the kernel for the i486 on my pentium 2. When
>> configuring the new kernel, I explicitly choose i486 as the processor
>> type. The compiliation (make dep, make bzImage, make modules) goes well,
>> but when I try to boot the new kernel on the i486 I get the following
>> error message:
>>
>> Kernel panic: Kernel compiled for Pentium+, requires TSC features
>>
>> This puzzles me, because (as I said) I explicitly chose i486 as the
>> processor type. Of course, I suspect that this error is related to the
>> fact that I'm actually compiling the kernel on my pentium 2.


Try typing rdev /dev/hdnew vmlinuz on the new kernel. If the 486
is on /dev/hda1 then type rdev /dev/hda1 vmlinuz then move vmlinuz
to the new machine.

Ignore NeoSadist. He is a flooder and a troll.

cordially, as always,

rm

-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.8

iQA/AwUBQWJ8OuEckfDWS6x8EQLWCQCg5G37dQWo9yQSYTPdq5Bx4p VRWNAAoJVH
VYDBYJqDdsL5fDqJIEoY09Bw
=J/gc
-----END PGP SIGNATURE-----
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-19-2008, 04:10 PM
+Alan Hicks+
 
Posts: n/a
Default Re: compiling kernel for i486 on pentium 2

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

In alt.os.linux.slackware, NeoSadist dared to utter,
>> Since I don't have space for gcc and co. on the
>> i486, I want to compile the kernel for the i486 on my pentium 2.

>
> Try compiling it on the host machine then...


Did you not read the OP's post or something? He specifically said he
doesn't have nor want gcc installed on the 486 and doesn't have much
disk space left. He may not even have enough for the kernel source for
all we know.

- --
It is better to hear the rebuke of the wise,
Than for a man to hear the song of fools.
Ecclesiastes 7:5
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFBYqiUlKR45I6cfKARAtUNAKCR6o5xm0deDwC7VvTKkD HnCD/PKQCgoKMl
qh4huBH9PhkPK0GtaXlwYng=
=napn
-----END PGP SIGNATURE-----
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-19-2008, 04:10 PM
+Alan Hicks+
 
Posts: n/a
Default Re: compiling kernel for i486 on pentium 2

NOTE: This message was sent thru a mail2news gateway.
No effort was made to verify the identity of the sender.
--------------------------------------------------------

pgp trash troll delete

Hicks, Alan
188 Shady Dale Dr
Lizella, GA 31052
478-935-8132

+Alan Hicks+ <alan@lizella.network> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> In alt.os.linux.slackware, NeoSadist dared to utter,
>>> Since I don't have space for gcc and co. on the
>>> i486, I want to compile the kernel for the i486 on my pentium 2.

>>
>> Try compiling it on the host machine then...

>
> Did you not read the OP's post or something? He specifically said he
> doesn't have nor want gcc installed on the 486 and doesn't have much
> disk space left. He may not even have enough for the kernel source for
> all we know.
>
> - --
> It is better to hear the rebuke of the wise,
> Than for a man to hear the song of fools.
> Ecclesiastes 7:5
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.1 (GNU/Linux)
>
> iD8DBQFBYqiUlKR45I6cfKARAtUNAKCR6o5xm0deDwC7VvTKkD HnCD/PKQCgoKMl
> qh4huBH9PhkPK0GtaXlwYng=
> =napn
> -----END PGP SIGNATURE-----














Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-19-2008, 04:11 PM
chud
 
Posts: n/a
Default Re: compiling kernel for i486 on pentium 2

On Tue, 05 Oct 2004 09:05:43 +0000, Christopher Pinon wrote:

> when I try to boot the new kernel on the i486 I get the following
> error message:
>
> Kernel panic: Kernel compiled for Pentium+, requires TSC features
>
> This puzzles me, because (as I said) I explicitly chose i486 as the
> processor type. Of course, I suspect that this error is related to the
> fact that I'm actually compiling the kernel on my pentium 2.
>
> I would like to ask what I'm doing wrong.
>
> Thank you,
> Christopher


Which config did you use to build your 2.4.27 kernel?

The config that builds the stock bare.i kernel will build a kernel that
boots on a 486 machine. Start with that config, do a make oldconfig, then
do the usual make bzImage... etc, and veryify that the kernel boots. THEN
go back and start customizing the config for your specific needs. Do it a
few steps at a time in case you break something.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:22 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com