LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   First time building a kernel, what processor family do I choose for my T42? (https://www.linuxquestions.org/questions/linux-newbie-8/first-time-building-a-kernel-what-processor-family-do-i-choose-for-my-t42-4175475591/)

slacker_ 09-02-2013 10:46 AM

First time building a kernel, what processor family do I choose for my T42?
 
So there's always ever been "484" or "686" for preconfigured kernels, to my knowledge. I'm building a kernel for the first time on my own for a slackware 14 install, and in the Kernel Configuration, there's a processor family list with 486 already selected, but my specific processor for the T42 Thinkpad I'm using is a Pentium M which is also an option on the list.

My confusion comes from the 486 option stating
Quote:

CONFIG_M486

This is the processor type of your CPU
and the Pentium M option stating
Quote:

Select this for Intel Pentium M (not Pentium-4 M) notebook chips.
My processor is definitely Pentium M, but the 486 processor has worked fine in the past. Further, the choice will also wind up affecting certain packages that are cpu-family specific and I don't know if something that works for 486 will work if I choose Pentium M.

As you can see, I'm quite confused. Can anyone offer any insight here?

btmiller 09-02-2013 11:05 AM

In general, either choice should be safe. You might see slightly better performance if you build for the 686 or Pentium M architecture, but it will probably be pretty minor. You should not see any software compatibility problems regardless of which architecture you choose. The only difference is which assembler instructions the compiler will be allowed to generate when building the kernel. A kernel containing only 486 compatible instructions will happily run userspace programs containing instructions introduced with more modern processors. The only thing is that a 32 bit kernel can't run 64 bit user space software, generally, but since the Pentium M is a 32 bit chip and can't run 64 bit software anyways, this should not be a big concern.

j_v 09-02-2013 11:06 AM

There is no harm in using the 486, as it should run on most any i486 and later processor. If you are sure that your processor type, then compiling it for that specific type could give you better performance. You just have to realize that that kernel will not run on other processor types like the 486 built kernel can.

<edit> btmiller's post is more concise. I must have been writing mine when that was posted. </edit>

slacker_ 09-02-2013 11:07 AM

Ah, brilliant. Ok, well I'll just stick to 486 then. If I'm feeling adventurous later on I may reconfigure and try out the Pentium M option. Thank you for the insight!

slacker_ 09-02-2013 11:09 AM

Quote:

Originally Posted by javogel (Post 5020354)
You just have to realize that that kernel will not run on other processor types like the 486 built kernel can.

If I'm building it for a Pentium M processor, what difference would it make if the Pentium M kernel wouldn't run on other processors?

j_v 09-02-2013 11:15 AM

Quote:

Originally Posted by slacker_ (Post 5020357)
If I'm building it for a Pentium M processor, what difference would it make if the Pentium M kernel wouldn't run on other processors?

Basicly, I think of disaster recovery. If your Pentium-M got fried and the replacement that you find that is compatable with your motherboard/bios isn't a Pentium-M, you will have to have a compatable kernel to boot. A way to ensure that is to keep a 486 one installed even though using the Pentium-M kernel. Also, for disaster recovery, a copy of the install medium can be of real help (ie, kernel won't boot).

slacker_ 09-02-2013 09:04 PM

Ah, ok that makes sense. Ok. Well, like I said I think I'll just stick to the 486 for now and when I'm feeling adventurous I'll maybe check out the Pentium M option.


All times are GMT -5. The time now is 07:53 PM.