LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-30-2014, 10:52 AM   #1
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Rep: Reputation: 76
Linux local 2.2.16 #16 Fri Jun 9 18:25:17 PDT 2000 i?86 unknown


Hi: that is the output from 'uname -a'. The CPU is a Celeron D (Pentium 4) but the OS, slackware 7.1 is too old and does not recognize it. How could I do to make uname print a meaningful name? I think it should say i686.

Last edited by stf92; 07-30-2014 at 10:55 AM.
 
Old 07-30-2014, 11:58 AM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,179

Rep: Reputation: Disabled
No way.
 
Old 07-31-2014, 12:01 AM   #3
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Ok. Now I must run a script that builds a new kernel module for the GPU. What happens if, some time in the future, I change the kernel? Should I run the script again?

A more general question is: what happens when I build some piece of software and then I change the kernel? Should I recompile that piece of software?
 
Old 07-31-2014, 02:39 AM   #4
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,179

Rep: Reputation: Disabled
Quote:
Originally Posted by stf92 View Post
Ok. Now I must run a script that builds a new kernel module for the GPU. What happens if, some time in the future, I change the kernel? Should I run the script again?
If you realize what a kernel modules is, the answer should become obvious. And the answer is probably available in that driver's documentation.

Quote:
Originally Posted by stf92 View Post
A more general question is: what happens when I build some piece of software and then I change the kernel? Should I recompile that piece of software?
It depends if/how this piece of software is linked to the kernel itself or the kernel headers. Again, you could find an answer in the relevant documentation.
 
Old 07-31-2014, 05:51 AM   #5
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
OK. By the way: in my hard disk linux partition I have both /lib/modules/2.6.21.5/ and /lib/modules/2.6.21.5-smp. As the kernel I run is smp, I guess only the drivers in /lib/modules/2.6.21.5-smp are used by the system. Am I right?
 
Old 07-31-2014, 09:22 AM   #6
perbh
Member
 
Registered: May 2008
Location: Republic of Texas
Posts: 393

Rep: Reputation: 81
yup
 
Old 08-02-2014, 03:00 PM   #7
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Quote:
Originally Posted by stf92 View Post
Hi: that is the output from 'uname -a'. The CPU is a Celeron D (Pentium 4) but the OS, slackware 7.1 is too old and does not recognize it. How could I do to make uname print a meaningful name? I think it should say i686.
If I may quote myself, I honestly don't see how uname can't find the machine name. Hasn't the Intel CPU's from Pentium I onwards a CPUID instruction?
 
Old 08-02-2014, 04:19 PM   #8
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,179

Rep: Reputation: Disabled
The kernel 2.2.16 doesn't know the machine architecture i686.
 
Old 08-02-2014, 04:27 PM   #9
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
Quote:
Originally Posted by stf92 View Post
Hi: that is the output from 'uname -a'. The CPU is a Celeron D (Pentium 4) but the OS, slackware 7.1 is too old and does not recognize it. How could I do to make uname print a meaningful name? I think it should say i686.
Funny, that's the Slackware release I started with. Thirteen years ago.
 
Old 08-02-2014, 04:45 PM   #10
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Quote:
Originally Posted by Didier Spaier View Post
The kernel 2.2.16 doesn't know the machine architecture i686.
But is does know the CPUID instruction.
 
Old 08-02-2014, 04:59 PM   #11
55020
Senior Member
 
Registered: Sep 2009
Location: Yorks. W.R. 167397
Distribution: Slackware
Posts: 1,307
Blog Entries: 4

Rep: Reputation: Disabled
You might consider looking at what the CPUID instruction actually does? [1] [2] [3] [4]
 
Old 08-02-2014, 05:51 PM   #12
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
It returns Type, Family, Model, and Stepping ID in the AX or EAX register. Family= 6 for my Intel processor.
 
Old 08-02-2014, 06:13 PM   #13
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,179

Rep: Reputation: Disabled
What makes you think that uname uses CPUID?
 
Old 08-02-2014, 06:31 PM   #14
55020
Senior Member
 
Registered: Sep 2009
Location: Yorks. W.R. 167397
Distribution: Slackware
Posts: 1,307
Blog Entries: 4

Rep: Reputation: Disabled
Quote:
Originally Posted by stf92 View Post
Family= 6 for my Intel processor.
Are you absolutely, positively certain that your Celeron D is Family 6 and not Family 'F' (15)?

Read pages 19 and 20 of http://www.microbe.cz/docs/CPUID.pdf and tell us what family your Celeron D is.

And then read pages 5, 6, 7 and 8, and tell us how kernel 2.2.16 would have seen into the future to know what hadn't happened yet.
 
Old 08-02-2014, 07:07 PM   #15
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
You're right. My Intel Celeron D is a Prescott (codename) and its family is 15. OK. Now let me tell you a little story. I tried to install the NVIDIA driver under slackware 7.1 and the installer refused to go on because it used the uname command to know the processor type and uname did not provide the necessary information. I had to write a uname script to deceive the installer and make it go on.

In a well conceived operating system, everything should be downwards compatible. So that if I have a program written in 1985, running under an O.S. written in 2000, in a machine built in 2010, there will be no problem at all. To give just an example, I have a chess program from precisely 1985 and it runs OK in any modern machine under Windows XP.

Last edited by stf92; 08-02-2014 at 07:12 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mysqlshow: unknown variable 'loose-local-infile=1' tramni1980 Linux - Server 2 11-19-2006 10:43 AM
What is: "AUDIT:Fri Jun 2 13:01:43 2006: 15315 X:Client 24 rejected.. enzlop Linux - Networking 0 06-05-2006 03:44 PM
Unknown Local Host MizEllyRolls Linux - Security 3 09-14-2005 08:32 PM
Accessing a local windows 2000/xp filesystem from linux and vice versa kaplan71 Fedora 6 05-24-2005 08:46 AM
ping: unknown host in local intranet linuxjustin Linux - Networking 3 04-04-2004 02:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration