Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
07-30-2014, 10:52 AM
|
#1
|
Senior Member
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442
Rep:
|
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.
|
|
|
07-30-2014, 11:58 AM
|
#2
|
LQ Addict
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,179
Rep:
|
No way.
|
|
|
07-31-2014, 12:01 AM
|
#3
|
Senior Member
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442
Original Poster
Rep:
|
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?
|
|
|
07-31-2014, 02:39 AM
|
#4
|
LQ Addict
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,179
Rep:
|
Quote:
Originally Posted by stf92
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
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.
|
|
|
07-31-2014, 05:51 AM
|
#5
|
Senior Member
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442
Original Poster
Rep:
|
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?
|
|
|
07-31-2014, 09:22 AM
|
#6
|
Member
Registered: May 2008
Location: Republic of Texas
Posts: 393
Rep:
|
yup
|
|
|
08-02-2014, 03:00 PM
|
#7
|
Senior Member
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442
Original Poster
Rep:
|
Quote:
Originally Posted by stf92
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?
|
|
|
08-02-2014, 04:19 PM
|
#8
|
LQ Addict
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,179
Rep:
|
The kernel 2.2.16 doesn't know the machine architecture i686.
|
|
|
08-02-2014, 04:27 PM
|
#9
|
MLED Founder
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453
|
Quote:
Originally Posted by stf92
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.
|
|
|
08-02-2014, 04:45 PM
|
#10
|
Senior Member
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442
Original Poster
Rep:
|
Quote:
Originally Posted by Didier Spaier
The kernel 2.2.16 doesn't know the machine architecture i686.
|
But is does know the CPUID instruction.
|
|
|
08-02-2014, 04:59 PM
|
#11
|
Senior Member
Registered: Sep 2009
Location: Yorks. W.R. 167397
Distribution: Slackware
Posts: 1,307
Rep:
|
You might consider looking at what the CPUID instruction actually does? [1] [2] [3] [4]
|
|
|
08-02-2014, 05:51 PM
|
#12
|
Senior Member
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442
Original Poster
Rep:
|
It returns Type, Family, Model, and Stepping ID in the AX or EAX register. Family= 6 for my Intel processor.
|
|
|
08-02-2014, 06:13 PM
|
#13
|
LQ Addict
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,179
Rep:
|
What makes you think that uname uses CPUID?
|
|
|
08-02-2014, 06:31 PM
|
#14
|
Senior Member
Registered: Sep 2009
Location: Yorks. W.R. 167397
Distribution: Slackware
Posts: 1,307
Rep:
|
Quote:
Originally Posted by stf92
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.
|
|
|
08-02-2014, 07:07 PM
|
#15
|
Senior Member
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442
Original Poster
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 08:09 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|