public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* RE: About rebuild 2.4.x kernel to support SMP.
@ 2001-04-26 15:36 Yiping Chen
  2001-04-26 15:48 ` Vivek Dasmohapatra
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Yiping Chen @ 2001-04-26 15:36 UTC (permalink / raw)
  To: 'Vivek Dasmohapatra', Yiping Chen
  Cc: 'linux-kernel@vger.kernel.org'

So, I have two question now, 
1. how to determine whether your kernel support SMP?
    Somebody taugh me that you can type  "uname -r", but it seems not
correct.
2. I remember in 2.2.x, when I rebuild the kernel which support SMP, the
compile
    argument will include -D__SMP__ , but this time, when I rebuild kernel
2.4.2-2 , it didn't  appear.
    Why? 

Anyway, thanks for  Vivek's answer.
-----Original Message-----
From: Vivek Dasmohapatra [mailto:vivek@etla.org]
Sent: Thursday, April 26, 2001 11:20 PM
To: Yiping Chen
Cc: 'linux-kernel@vger.kernel.org'
Subject: Re: About rebuild 2.4.x kernel to support SMP.


On Thu, 26 Apr 2001, Yiping Chen wrote:

> My question is why the result of 'uname -r' is not "2.4.2-2smp" , but
> "2.4.2-2"

This is just the label as defined by the entries in the top-level
Makefile, eg:

VERSION = 2
PATCHLEVEL = 4
SUBLEVEL = 3
EXTRAVERSION = -ac5

> Whether I forgot to do something?

You can edit the extraversion value if you want to label your smp kernels
differently, but you don't have to.

You'll probably find you _have_ compiled an SMP kernel - see what
/proc/cpuinfo says, for example.

-- 
I am worthless. I struggle with the simple things. It seems so easy for 
everyone else. One armed blind people climb mountains and teenagers get
Ph.D's. I have trouble getting out of bed.
                                          -TMCM

^ permalink raw reply	[flat|nested] 13+ messages in thread
* RE: About rebuild 2.4.x kernel to support SMP.
@ 2001-04-27 11:53 Yiping Chen
  2001-04-27 13:01 ` Feng Xian
  0 siblings, 1 reply; 13+ messages in thread
From: Yiping Chen @ 2001-04-27 11:53 UTC (permalink / raw)
  To: 'kernel@kvack.org', Yiping Chen
  Cc: 'Vivek Dasmohapatra',
	'linux-kernel@vger.kernel.org'

I have a important question about compile driver here, sometimes we install
RedHat Linux
When you boot the system , it will not include the kernel source, if we
don't have kernel source ,
whether can we compile the driver (NIC).
I am confused, beacuse we need include many kernel header file, if you don't
have linux kernel 
source (I means that there is no kernel source in /usr/src, whether we can
compile the driver module
successfully?), whether we can just use the header file in /usr/include?
thanks!!
Yiping Chen

^ permalink raw reply	[flat|nested] 13+ messages in thread
* RE: About rebuild 2.4.x kernel to support SMP.
@ 2001-04-26 16:24 Yiping Chen
  2001-04-26 16:41 ` Vivek Dasmohapatra
  0 siblings, 1 reply; 13+ messages in thread
From: Yiping Chen @ 2001-04-26 16:24 UTC (permalink / raw)
  To: 'kernel@kvack.org', Yiping Chen
  Cc: 'Vivek Dasmohapatra',
	'linux-kernel@vger.kernel.org'

Thanks for your reply.
I am interested in where can find the linux kernel spec. file, and where Red
Hat add the smp string?
Where the uname command extract the kernel version information(eg:
2.4.2-2smp or 2.2.16)?
I means from which file, or use which system call?

I am a linux driver writer, and I am writing Makefile now. I hope the
Makefile can install driver 
to the correct directory automatically (user run 'make install').
The linux driver modules always put  in /lib/modules/<kernel_version>/...
before (in kernel 2.2.16),
but in kernel 2.4.x, the path change to
/lib/modules/<kernel_version>/kernel/drivers/...
I don't know where to get the kernel_version information. I need some help.
Thanks!!
may I use uname? I worry that the driver will install to incorrect path, and
user will complain it.
thanks!!


-----Original Message-----
From: kernel@kvack.org [mailto:kernel@kvack.org]
Sent: Friday, April 27, 2001 12:03 AM
To: Yiping Chen
Cc: 'Vivek Dasmohapatra'; 'linux-kernel@vger.kernel.org'
Subject: RE: About rebuild 2.4.x kernel to support SMP.


On Thu, 26 Apr 2001, Yiping Chen wrote:

> So, I have two question now, 
> 1. how to determine whether your kernel support SMP?
>     Somebody taugh me that you can type  "uname -r", but it seems not
> correct.

No, it's correct: the Red Hat RPM is build from the kernel.spec file which
adds the smp string to the version.

> 2. I remember in 2.2.x, when I rebuild the kernel which support SMP, the
> compile
>     argument will include -D__SMP__ , but this time, when I rebuild kernel
> 2.4.2-2 , it didn't  appear.
>     Why? 

Because you've made an assumption that holds no value.  2.4 kernels rely
on CONFIG_SMP instead of __SMP__.

		-ben

^ permalink raw reply	[flat|nested] 13+ messages in thread
* About rebuild 2.4.x kernel to support SMP.
@ 2001-04-26 14:59 Yiping Chen
  2001-04-26 15:20 ` Vivek Dasmohapatra
  2001-04-26 20:16 ` Josh McKinney
  0 siblings, 2 replies; 13+ messages in thread
From: Yiping Chen @ 2001-04-26 14:59 UTC (permalink / raw)
  To: 'linux-kernel@vger.kernel.org'


I know it's not proper ask such question here. But I don't know where can I
post this question.
I download RedHat 7.1 last week, and install it in my dual-CPU enviroment.
I try to rebuild kernel that support SMP in kernel 2.4.2 today , but it
failed.
The following is what I did.
========================================
1. Install Red Hat 7.1 in my dual-CPU environment
2. type 'uname -a' , the following is the result:
    Linux lab5-1 2.4.2-2smp #1 SMP Sun Apr 8 20:21:34 EDT 2001 i686 unknown
3. cd /usr/src/linux-2.4 (becuase Red Hat link the 2.4.2 kernel source to
linux-2.4)
4. make mrproper
5. make menuconfig (set SMP and RTC)
6. make dep
7. make clean
8. make bzImage
9. make modules
10. make modules_install
11. edit /etc/lilo.conf
12. run lilo
13. reboot, choose new kernel to boot the system, type 'uname -a'
     Linux lab5-1 2.4.2-2 #1 SMP Wed Apr 25 18:56:05 CST 2001 i686 unknown

My question is why the result of 'uname -r' is not "2.4.2-2smp" , but
"2.4.2-2"
Whether I forgot to do something?
It seems that when we compile the 2.4.2 kernel, it will not use -D__SMP__
argument now.
(because I didn't see it in /usr/src/linux-2.4/Makefile, and I didn't see it
when I did 'make bzImage')
If someone ever build 2.4.x kernel which support SMP, please teach me how to
do it.
Thanks!!

--------------------------------------------------
Yiping Chen
VIA Technologies, Inc.
LAN Software
533 Chung Cheng Road 8F
Hsin Tien, Taipei
Taiwan
TEL : 886-2-22185452  EXT.7512
FAX : 886-2-22187527
E-mail : YipingChen@via.com.tw



^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2001-04-27 13:05 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-04-26 15:36 About rebuild 2.4.x kernel to support SMP Yiping Chen
2001-04-26 15:48 ` Vivek Dasmohapatra
2001-04-26 16:11   ` Alan Shutko
2001-04-26 16:03 ` kernel
2001-04-27 11:27   ` Johan Kullstam
2001-04-27  6:02 ` Kevin Buhr
  -- strict thread matches above, loose matches on Subject: below --
2001-04-27 11:53 Yiping Chen
2001-04-27 13:01 ` Feng Xian
2001-04-26 16:24 Yiping Chen
2001-04-26 16:41 ` Vivek Dasmohapatra
2001-04-26 14:59 Yiping Chen
2001-04-26 15:20 ` Vivek Dasmohapatra
2001-04-26 20:16 ` Josh McKinney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox