Re: Recompile kernel without SMP

2009-08-18 Thread Jarod Wilson
On Monday 17 August 2009 20:17:29 Paul Grinberg wrote:
> Josh,
> 
> I have a good reason for that. I use Cisco VPN client for Linux, and it
> does not work with SMP kernel.  

I vaguely recall using the cisco vpn client for linux on an smp kernel
just fine, but I stopped using it years ago, as vpnc works well enough
as a replacement for it.

> >Thank you for the reply! Do you know how to "fix" it. What needs to be
> >done to compile non-SMP?

I do know how, but its semi-involved, and I'm afraid I'm a bit tied up
with other slightly more pressing work. Short version is that you need
to add a config-foo target in merge.pl, iirc, add that to the spec as
another Source, tweak instances of %with_up within the spec file, and
that would at least get you close.

But again, I think this is really pointless, since 1) I'm pretty sure
the cisco vpn client runs fine on smp 2) if it doesn't, vpnc works
reasonably well to replace it and 3) you can likely just boot the 
current smp-enabled kernel with maxcpus=1 added to the command line
to get up behavior if you absolutely must run the cisco vpn client in
a single-processor environment.

-- 
Jarod Wilson
[email protected]

___
Fedora-kernel-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/fedora-kernel-list


RE: Recompile kernel without SMP

2009-08-17 Thread Paul Grinberg
Dave,

I did, vpnc works for some of the VPNs, but not for the others. Nature
of my work requires to deal with multiple RA solutions.
Thanks for the advice though. 

Here is what I got from Cisco:
"Unfortunately it is not as simple as providing you with which options
to compile the kernel with.  Since the issue is the kernel is locking up
it is something fundamentally wrong with either the updated kernel code
or the vpn client."
and then they said that it will take lng time to fix it, because
Cisco VPN client is not a priority. (everyone is moving towards SSL VPN
solutions).

Best,
Paul


-Original Message-
From: Dave Jones [mailto:[email protected]] 
Sent: Monday, August 17, 2009 8:27 PM
To: Paul Grinberg
Cc: Josh Boyer; [email protected]; Markus Kesaromous
Subject: Re: Recompile kernel without SMP

On Mon, Aug 17, 2009 at 08:17:29PM -0400, Paul Grinberg wrote:
 > Josh,
 > 
 > I have a good reason for that. I use Cisco VPN client for Linux, and
it
 > does not work with SMP kernel.  
 
Have you tried the vpnc package ? The binary cisco module has
an hurrendous track record of problems with the Fedora kernel,
as it seemingly makes assumptions about networking internals that
constantly
change upstream, leading to all sorts of horrible corruption bugs.

vpnc isn't perfect, but for many cisco setups, it's adequate, and
does all the complicated stuff in userspace.

Dave


___
Fedora-kernel-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/fedora-kernel-list


Re: Recompile kernel without SMP

2009-08-17 Thread Dave Jones
On Mon, Aug 17, 2009 at 08:17:29PM -0400, Paul Grinberg wrote:
 > Josh,
 > 
 > I have a good reason for that. I use Cisco VPN client for Linux, and it
 > does not work with SMP kernel.  
 
Have you tried the vpnc package ? The binary cisco module has
an hurrendous track record of problems with the Fedora kernel,
as it seemingly makes assumptions about networking internals that constantly
change upstream, leading to all sorts of horrible corruption bugs.

vpnc isn't perfect, but for many cisco setups, it's adequate, and
does all the complicated stuff in userspace.

Dave

___
Fedora-kernel-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/fedora-kernel-list


RE: Recompile kernel without SMP

2009-08-17 Thread Paul Grinberg
Josh,

I have a good reason for that. I use Cisco VPN client for Linux, and it
does not work with SMP kernel.  

So I have to use Windows to login VPNwhich is very annoying :)))
Also, it is probably good from the learning perspective

Best,
Paul


-Original Message-
From: Josh Boyer [mailto:[email protected]] 
Sent: Monday, August 17, 2009 8:12 PM
To: Paul Grinberg
Cc: Jarod Wilson; [email protected]; Markus Kesaromous
Subject: Re: Recompile kernel without SMP

On Mon, Aug 17, 2009 at 06:20:24PM -0400, Paul Grinberg wrote:
>Jarod,
>
>Thank you for the reply! Do you know how to "fix" it. What needs to be
>done to compile non-SMP?

Why do you want this non-SMP kernel?  As Jarod said, it's mostly
pointless
for x86 to build UP.  Most of the SMP operations are runtime patched so
you
don't have the SMP overhead on a UP machine as I understand things.

josh

___
Fedora-kernel-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/fedora-kernel-list


Re: Recompile kernel without SMP

2009-08-17 Thread Josh Boyer
On Mon, Aug 17, 2009 at 06:20:24PM -0400, Paul Grinberg wrote:
>Jarod,
>
>Thank you for the reply! Do you know how to "fix" it. What needs to be
>done to compile non-SMP?

Why do you want this non-SMP kernel?  As Jarod said, it's mostly pointless
for x86 to build UP.  Most of the SMP operations are runtime patched so you
don't have the SMP overhead on a UP machine as I understand things.

josh

___
Fedora-kernel-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/fedora-kernel-list


RE: Recompile kernel without SMP

2009-08-17 Thread Paul Grinberg
Jarod,

Thank you for the reply! Do you know how to "fix" it. What needs to be
done to compile non-SMP?

Best,
Paul


-Original Message-
From: Jarod Wilson [mailto:[email protected]] 
Sent: Monday, August 17, 2009 6:01 PM
To: [email protected]
Cc: Paul Grinberg; Markus Kesaromous
Subject: Re: Recompile kernel without SMP

On Friday 14 August 2009 17:24:22 Paul Grinberg wrote:
> Markus,
> 
> Thank you for your reply! I already feel better knowing that I'm not
> alone :)
> Maybe someone might have a clue "Why"

Fedora doesn't ship any single-proc kernels anymore except for on
powerpc32. The spec file and sources don't contain an UP target or
the necessary support bits (config-foo) to build one for anything but
powerpc32, because its mostly pointless.


___
Fedora-kernel-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/fedora-kernel-list


Re: Recompile kernel without SMP

2009-08-17 Thread Jarod Wilson
On Friday 14 August 2009 17:24:22 Paul Grinberg wrote:
> Markus,
> 
> Thank you for your reply! I already feel better knowing that I'm not
> alone :)
> Maybe someone might have a clue "Why"

Fedora doesn't ship any single-proc kernels anymore except for on
powerpc32. The spec file and sources don't contain an UP target or
the necessary support bits (config-foo) to build one for anything but
powerpc32, because its mostly pointless.





> -Original Message-
> From: Markus Kesaromous [mailto:[email protected]] 
> Sent: Friday, August 14, 2009 4:52 PM
> To: Paul Grinberg; Linux Kernel List
> Subject: RE: Recompile kernel without SMP
> 
> 
> > Date: Fri, 14 Aug 2009 14:35:22 -0400
> > From: [email protected]
> > To: [email protected]
> > Subject: Recompile kernel without SMP
> >
> > Hi there,
> >
> > I am trying to recompile kernel without SMP. So far I've been
> > unsuccessful. Meaning I am able to compile, but it was still SMP..
> >
> > Can someone tell me what I am doing wrong?
> > And why I don't get "kernel-headers" build?
> >
> > It is probably related to spec parameters
> >
> > So far this is what I've done:
> >
> > cd ~/
> > rpmdev-setuptree # as regular user
> > cd rmpbuild
> > yumdownloader --source kernel # as regular user
> >
> > cd ~/rpmbuild/BUILD/kernel-2.6.29/linux-2.6.29.i686/
> > cp configs/kernel-2.6.29.6-i586.config .config
> > make menuconfig # console setup
> >
> > Select option: Processor type and features.
> > Disable "Symmetric multi-processing support" (SMP)
> >
> > cp .config ~/rpmbuild/SOURCES/config-i686-generic
> > cp .config ~/rpmbuild/SOURCES/config-i686
> > cd ~/rpmbuild/SPECS
> > nano kernel.spec
> > Add line:
> > % define buildid .NONSMP
> > Replace:
> >
> > # Allow kernel-firmware building
> > #%define with_firmware %{?_with_firmware: 1} %{?!_with_firmware: 0}
> > %define with_firmware %{?_with_firmware: 0} %{?!_with_firmware: 1}
> >
> > #%define with_firmware %{?_without_firmware: 0} %{?!_without_firmware:
> > 1}
> > %define with_firmware %{?_without_firmware: 1} %{?!_without_firmware:
> > 0}
> >
> > # Allow kernel-headers building
> >
> > # Allow kernel-devel building
> >
> > # Create RPM package
> > rpmbuild -bb --with firmware --target=i686 kernel.spec
> >
> > # To actually install kernel
> > su
> > rpm -ivh kernel-firmware-2.6.29.6-217.2.3.nonsmp.fc11.i686.rpm
> > kernel-PAE-2.6.29.6-217.2.3.nonsmp.fc11.i686.rpm
> > kernel-PAE-devel-2.6.29.6-217.2.3.nonsmp.fc11.i686.rpm
> >
> >
> >
> > Just in case:
> > $ cat config-i686-PAE | egrep -i "smp" | more
> > CONFIG_BROKEN_ON_SMP=y
> > # CONFIG_SMP is not set
> > CONFIG_X86_FIND_SMP_CONFIG=y
> > # CONFIG_X86_VSMP is not set
> > CONFIG_SCSI_SAS_HOST_SMP=y
> > CONFIG_VIDEO_VP27SMPX=m
> >
> >
> >
> >
> >
> > Best,
> > Paul
> >
> 
> 
> 
> I just got bit by a similar problem in trying to build
> 
> kernel-2.6.31-0.125.4.2.rc5.git2.fc12.src.rpm
> 
> I followed the steps outlined in
> 
> http://fedoraproject.org/wiki/Docs/CustomKernel
> 
> 
> 
> I only wanted to build i686 architecture
> 
> - without SMP
> 
> - without cpu id support
> 
> - without multicore support
> 
> - without hyperthreading support
> 
> - with kernel config support
> 
> - with kernel config via /proc support
> 
> - with frequency default governor set to Performance
> 
> - with preemptible kernel
> 
> - with rt2860 module support
> 
> - with NTFS read/write support
> 
> 
> 
> Well, it ended up building i686-PAE Debug kernel with SMP support.
> 
> 
> 
> It seems as if the architecture is i686, then only i686 PAE Debug gets
> built.
> 
> 
> 
> I do not know where the problem lies, but SOURCES/Makefile.config 
> 
> might be the place where the target kernel build is being selected.
> 
> To get around it, I edited 
> ...SOURCES/Makefile.config and removed all rules and definitions
> pertaining to  i686-PAE  and only left the simple i686 def and rule.
> 
> PS: I do not know if this is necessary, but after  I copied .config to 
> ...SOURCES/config-i686
> I also copied it to  
> ...SOURCES/config-x86-generic
> 
> Then running rpmbuild -v -bb --target=i686 kernel.spec
> is proceeding without problems 
> 
> MK

-- 
Jarod Wilson
[email protected]

___
Fedora-kernel-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/fedora-kernel-list


RE: Recompile kernel without SMP

2009-08-14 Thread Paul Grinberg
Markus,

Thank you for your reply! I already feel better knowing that I'm not
alone :)
Maybe someone might have a clue "Why"

Best,
Paul


-Original Message-
From: Markus Kesaromous [mailto:[email protected]] 
Sent: Friday, August 14, 2009 4:52 PM
To: Paul Grinberg; Linux Kernel List
Subject: RE: Recompile kernel without SMP


> Date: Fri, 14 Aug 2009 14:35:22 -0400
> From: [email protected]
> To: [email protected]
> Subject: Recompile kernel without SMP
>
> Hi there,
>
> I am trying to recompile kernel without SMP. So far I've been
> unsuccessful. Meaning I am able to compile, but it was still SMP..
>
> Can someone tell me what I am doing wrong?
> And why I don't get "kernel-headers" build?
>
> It is probably related to spec parameters
>
> So far this is what I've done:
>
> cd ~/
> rpmdev-setuptree # as regular user
> cd rmpbuild
> yumdownloader --source kernel # as regular user
>
> cd ~/rpmbuild/BUILD/kernel-2.6.29/linux-2.6.29.i686/
> cp configs/kernel-2.6.29.6-i586.config .config
> make menuconfig # console setup
>
> Select option: Processor type and features.
> Disable "Symmetric multi-processing support" (SMP)
>
> cp .config ~/rpmbuild/SOURCES/config-i686-generic
> cp .config ~/rpmbuild/SOURCES/config-i686
> cd ~/rpmbuild/SPECS
> nano kernel.spec
> Add line:
> % define buildid .NONSMP
> Replace:
>
> # Allow kernel-firmware building
> #%define with_firmware %{?_with_firmware: 1} %{?!_with_firmware: 0}
> %define with_firmware %{?_with_firmware: 0} %{?!_with_firmware: 1}
>
> #%define with_firmware %{?_without_firmware: 0} %{?!_without_firmware:
> 1}
> %define with_firmware %{?_without_firmware: 1} %{?!_without_firmware:
> 0}
>
> # Allow kernel-headers building
>
> # Allow kernel-devel building
>
> # Create RPM package
> rpmbuild -bb --with firmware --target=i686 kernel.spec
>
> # To actually install kernel
> su
> rpm -ivh kernel-firmware-2.6.29.6-217.2.3.nonsmp.fc11.i686.rpm
> kernel-PAE-2.6.29.6-217.2.3.nonsmp.fc11.i686.rpm
> kernel-PAE-devel-2.6.29.6-217.2.3.nonsmp.fc11.i686.rpm
>
>
>
> Just in case:
> $ cat config-i686-PAE | egrep -i "smp" | more
> CONFIG_BROKEN_ON_SMP=y
> # CONFIG_SMP is not set
> CONFIG_X86_FIND_SMP_CONFIG=y
> # CONFIG_X86_VSMP is not set
> CONFIG_SCSI_SAS_HOST_SMP=y
> CONFIG_VIDEO_VP27SMPX=m
>
>
>
>
>
> Best,
> Paul
>



I just got bit by a similar problem in trying to build

kernel-2.6.31-0.125.4.2.rc5.git2.fc12.src.rpm

I followed the steps outlined in

http://fedoraproject.org/wiki/Docs/CustomKernel



I only wanted to build i686 architecture

- without SMP

- without cpu id support

- without multicore support

- without hyperthreading support

- with kernel config support

- with kernel config via /proc support

- with frequency default governor set to Performance

- with preemptible kernel

- with rt2860 module support

- with NTFS read/write support



Well, it ended up building i686-PAE Debug kernel with SMP support.



It seems as if the architecture is i686, then only i686 PAE Debug gets
built.



I do not know where the problem lies, but SOURCES/Makefile.config 

might be the place where the target kernel build is being selected.

To get around it, I edited 
...SOURCES/Makefile.config and removed all rules and definitions
pertaining to  i686-PAE  and only left the simple i686 def and rule.

PS: I do not know if this is necessary, but after  I copied .config to 
...SOURCES/config-i686
I also copied it to  
...SOURCES/config-x86-generic

Then running rpmbuild -v -bb --target=i686 kernel.spec
is proceeding without problems 

MK


_
Windows Live(tm): Keep your life in sync.
http://windowslive.com/explore?ocid=PID23384::T:WLMTAGL:ON:WL:en-US:NF_B
R_sync:082009

___
Fedora-kernel-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/fedora-kernel-list


RE: Recompile kernel without SMP

2009-08-14 Thread Markus Kesaromous

> Date: Fri, 14 Aug 2009 14:35:22 -0400
> From: [email protected]
> To: [email protected]
> Subject: Recompile kernel without SMP
>
> Hi there,
>
> I am trying to recompile kernel without SMP. So far I've been
> unsuccessful. Meaning I am able to compile, but it was still SMP..
>
> Can someone tell me what I am doing wrong?
> And why I don't get "kernel-headers" build?
>
> It is probably related to spec parameters
>
> So far this is what I've done:
>
> cd ~/
> rpmdev-setuptree # as regular user
> cd rmpbuild
> yumdownloader --source kernel # as regular user
>
> cd ~/rpmbuild/BUILD/kernel-2.6.29/linux-2.6.29.i686/
> cp configs/kernel-2.6.29.6-i586.config .config
> make menuconfig # console setup
>
> Select option: Processor type and features.
> Disable "Symmetric multi-processing support" (SMP)
>
> cp .config ~/rpmbuild/SOURCES/config-i686-generic
> cp .config ~/rpmbuild/SOURCES/config-i686
> cd ~/rpmbuild/SPECS
> nano kernel.spec
> Add line:
> % define buildid .NONSMP
> Replace:
>
> # Allow kernel-firmware building
> #%define with_firmware %{?_with_firmware: 1} %{?!_with_firmware: 0}
> %define with_firmware %{?_with_firmware: 0} %{?!_with_firmware: 1}
>
> #%define with_firmware %{?_without_firmware: 0} %{?!_without_firmware:
> 1}
> %define with_firmware %{?_without_firmware: 1} %{?!_without_firmware:
> 0}
>
> # Allow kernel-headers building
>
> # Allow kernel-devel building
>
> # Create RPM package
> rpmbuild -bb --with firmware --target=i686 kernel.spec
>
> # To actually install kernel
> su
> rpm -ivh kernel-firmware-2.6.29.6-217.2.3.nonsmp.fc11.i686.rpm
> kernel-PAE-2.6.29.6-217.2.3.nonsmp.fc11.i686.rpm
> kernel-PAE-devel-2.6.29.6-217.2.3.nonsmp.fc11.i686.rpm
>
>
>
> Just in case:
> $ cat config-i686-PAE | egrep -i "smp" | more
> CONFIG_BROKEN_ON_SMP=y
> # CONFIG_SMP is not set
> CONFIG_X86_FIND_SMP_CONFIG=y
> # CONFIG_X86_VSMP is not set
> CONFIG_SCSI_SAS_HOST_SMP=y
> CONFIG_VIDEO_VP27SMPX=m
>
>
>
>
>
> Best,
> Paul
>



I just got bit by a similar problem in trying to build

kernel-2.6.31-0.125.4.2.rc5.git2.fc12.src.rpm

I followed the steps outlined in

http://fedoraproject.org/wiki/Docs/CustomKernel



I only wanted to build i686 architecture

- without SMP

- without cpu id support

- without multicore support

- without hyperthreading support

- with kernel config support

- with kernel config via /proc support

- with frequency default governor set to Performance

- with preemptible kernel

- with rt2860 module support

- with NTFS read/write support



Well, it ended up building i686-PAE Debug kernel with SMP support.



It seems as if the architecture is i686, then only i686 PAE Debug gets built.



I do not know where the problem lies, but SOURCES/Makefile.config 

might be the place where the target kernel build is being selected.

To get around it, I edited 
...SOURCES/Makefile.config and removed all rules and definitions pertaining to  
i686-PAE  and only left the simple i686 def and rule.

PS: I do not know if this is necessary, but after  I copied .config to 
...SOURCES/config-i686
I also copied it to  
...SOURCES/config-x86-generic

Then running rpmbuild -v -bb --target=i686 kernel.spec
is proceeding without problems 

MK


_
Windows Liveā„¢: Keep your life in sync.
http://windowslive.com/explore?ocid=PID23384::T:WLMTAGL:ON:WL:en-US:NF_BR_sync:082009

___
Fedora-kernel-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/fedora-kernel-list