Welcome to Soft32 Linux Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

slackware 12.1, kqemu, via CPU

 
   Soft32 Home -> Linux -> Slackware RSS
Next:  Bug#550728: X fails to load pthreads-stubs  
Author Message
vtcodger

External


Since: Oct 12, 2009
Posts: 3



(Msg. 1) Posted: Mon Oct 12, 2009 10:14 am
Post subject: slackware 12.1, kqemu, via CPU
Archived from groups: alt>os>linux>slackware (more info?)

Using slackware 12.1, the qemu virtualizer runs Windows 98 just fine
on my Via C7-D CPU. But it's a bit slow. kqemu is supposed to fix
that, but trying to compile and use kqemu has been a bit of an
adventure. Two general problems. The only source package I can find
for the kernel for Slackware 12.1 is configured for the 2.6.24.5 SMP
kernel. I'm using the non-SMP kernel and really don't want to change
it. I have seen assertions that there is a README.txt file that
explains how to modify the source for non-SMP but I can't find the
file. Is it a myth?

I've been assuming, perhaps incorrectly, that the only relevant source
differences are the changes necessary to get proper Vermagic string in
order to avoid having to force the modprobe load of kqemu. Anyway
after discovering that kqemu 1.3.0pre11 seems to be incompatible with
kernels newer than 2.6.10 (it makes calls to the no longer existent
lock_kernel and unlock_kernel) , I upgraded to kqemu-1.4.0pre1. It
loads with no errors other than Vermagic, but crashes Linux with a
segfault when qemu starts. I then upgraded qemu to qemu-0.10.6 and
recompiled. The new qemu runs OK, but still segfaults if kqemu has
been loaded.

Any thoughts or information. Is it realistic to expect kqemu to work?
Back to top
Login to vote
Ed Wilson

External


Since: Aug 09, 2007
Posts: 11



(Msg. 2) Posted: Tue Oct 13, 2009 9:20 am
Post subject: Re: slackware 12.1, kqemu, via CPU [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

vtcodger wrote:

> I have seen assertions that there is a README.txt file that
> explains how to modify the source for non-SMP but I can't find the
> file. Is it a myth?
>

slackware/slackware-12.1/source/k/README.TXT

--
Ed
Back to top
Login to vote
vtcodger

External


Since: Oct 12, 2009
Posts: 3



(Msg. 3) Posted: Wed Oct 14, 2009 4:58 am
Post subject: Re: slackware 12.1, kqemu, via CPU [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Oct 13, 10:09 am, Ed Wilson <ewil....RemoveThis@jackmaxton.com> wrote:
> vtcodger wrote:
> > I have seen assertions that there is a README.txt file that
> > explains how to modify the source for non-SMP but I can't find the
> > file. Is it a myth?
>
> slackware/slackware-12.1/source/k/README.TXT
>
> --
> Ed

Thanks Ed, but that seems to be the README for upgrading Slackware
12.1 to 12.2 which I'd prefer not to do because stuff always breaks on
upgrades, and I have more than enough problems in my todo list at the
moment.

What I'm looking for is a different README that I think probably
exists somewhere. Let me frame my question differently.

1. It is definitely true that Slackware 12.1 has several different
precompiled kernel options, e.g. huge, SMP, non-SMP. Is it also true
that there is only one set of kernel source code in the repositories
-- /shr/pkg/kqemu/kernel-source-2.6.24.5_smp-noarch-2.tgz ?

I think that the answer to that is "yes"

2. Is it true that the kernel-source in that package is configured
for the SMP kernel? (e.g. if one compiles modules using that, they
will have an SMP kernel vermagic string and will not load without a -f
parameter in modprobe).

I think that the answer to that is also "yes"

3. Is it true that there is a file somewhere that explains how to
tweak the SMP source and/or configure and/or Makefile for use with the
other kernels?

Answer: Seems like there should be

(I've seen reference to something of the sort purportedly in
something_or_other/extras/lots_of_other_stuff/README.txt but it wasn't
there and I neglected to make a note of the path.)

4. Where is the information on how to compile 12.1 modules for a non-
SMP kernel? I need it because I am far too old and stupid to work it
out for myself.

My apologies if I end up double posting this -- google groups and I
seem to be experiencing a minor breakdown in communications
Back to top
Login to vote
Douglas Mayne

External


Since: Nov 02, 2008
Posts: 27



(Msg. 4) Posted: Wed Oct 14, 2009 8:01 am
Post subject: Re: slackware 12.1, kqemu, via CPU [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Wed, 14 Oct 2009 04:58:04 -0700, vtcodger wrote:

> On Oct 13, 10:09 am, Ed Wilson <ewil....TakeThisOut@jackmaxton.com> wrote:
>> vtcodger wrote:
>> > I have seen assertions that there is a README.txt file that
>> > explains how to modify the source for non-SMP but I can't find the
>> > file. Is it a myth?
>>
>> slackware/slackware-12.1/source/k/README.TXT
>>
>> --
>> Ed
>
> Thanks Ed, but that seems to be the README for upgrading Slackware
> 12.1 to 12.2 which I'd prefer not to do because stuff always breaks on
> upgrades, and I have more than enough problems in my todo list at the
> moment.
>
> What I'm looking for is a different README that I think probably
> exists somewhere. Let me frame my question differently.
>
> 1. It is definitely true that Slackware 12.1 has several different
> precompiled kernel options, e.g. huge, SMP, non-SMP. Is it also true
> that there is only one set of kernel source code in the repositories
> -- /shr/pkg/kqemu/kernel-source-2.6.24.5_smp-noarch-2.tgz ?
>
> I think that the answer to that is "yes"
>
<snip>
>
To reiterate, this file:
<mirror>://slackware/slackware-12.1/source/k/README.TXT

has the instructions. Paraphrasing the instructions there:

If you are compiling kernel modules outside of the linux source (vmware,
qemu, virtualbox, etc.) for a non-smp kernel, then you will need to
recompile the kernel (bzImage) at least once. The kernel source has the
appropriate config:

<mirror>://slackware/slackware-12.1/source/k/config-generic-2.6.24.5

Refer to the file for the complete instructions. I posted this mainly to
add this information:

1. AFAIK, the VIA C7 will work with an SMP kernel. The above instructions
are not really needed for that CPU.

2. The VIA C7 is specifically supported by the Linux kernel. If you are
going to all of the trouble of recompiling your kernel, then this a chance
to optimize it for VIA C7.

3. IMO, the Linux kernel versions 2.6.2x has some performance issues
(AIUI, this relates to its block IO elevator code, SLAB/SLUB, etc.).
Under certain conditions, I noticed very poor performance when running
virtualization apps. YMMV. This appears to be much improved under kernel
2.6.3x. YMMV.

Finally, I am not sure that a single VIA C7 has the horsepower for running
virtualization. YMMV.

--
Douglas Mayne
Back to top
Login to vote
Martin Schmitz

External


Since: Nov 16, 2008
Posts: 7



(Msg. 5) Posted: Wed Oct 14, 2009 9:20 am
Post subject: Re: slackware 12.1, kqemu, via CPU [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

vtcodger wrote:
> 4. Where is the information on how to compile 12.1 modules for a non-
> SMP kernel? I need it because I am far too old and stupid to work it
> out for myself.

[dakini]~$ ls -l /ftp/slackware-13.0/extra/linux-2.6.29.6-nosmp-sdk/
total 564
-rw-r--r-- 1 root root 1109 2008-03-19 09:02 README.TXT
-rw-r--r-- 1 root root 332 2009-08-17 08:10 kernel-headers-2.6.29.6-x86-2.txt
-rw-r--r-- 1 root root 536516 2009-08-17 08:10 kernel-headers-2.6.29.6-x86-2.txz
-rw-r--r-- 1 root root 197 2009-08-17 08:10 kernel-headers-2.6.29.6-x86-2.txz.asc
-rw-r--r-- 1 root root 15408 2009-08-19 00:01 linux-2.6.29.6-smp-to-nosmp.diff.gz
-rwxr-xr-x 1 root root 1816 2009-08-18 23:58 patch-to-non-smp.sh*

Sould be very similar on 12.1.

Marti
Back to top
Login to vote
Eef Hartman

External


Since: Jun 25, 2009
Posts: 21



(Msg. 6) Posted: Wed Oct 14, 2009 9:20 am
Post subject: Re: slackware 12.1, kqemu, via CPU [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

vtcodger <donald.kenney.RemoveThis@gmail.com> wrote:
> On Oct 13, 10:09 am, Ed Wilson <ewil....RemoveThis@jackmaxton.com> wrote:
>> vtcodger wrote:
>> > I have seen assertions that there is a README.txt file that
>> > explains how to modify the source for non-SMP but I can't find the
>> > file. Is it a myth?
>>
>> slackware/slackware-12.1/source/k/README.TXT
>>
>> --
>> Ed
>
> Thanks Ed, but that seems to be the README for upgrading Slackware
> 12.1 to 12.2 which I'd prefer not to do because stuff always breaks on
> upgrades, and I have more than enough problems in my todo list at the
> moment.

You didn't read the file then.
On the web I looked up it (I haven't got 12.1 anymore, so didn't
have it available) and after the first part about BUILDING the
kernel there is this
NOTE TO USERS OF THE NON SMP KERNELS:
and it will tell you exactly what to do to adapt the sources
to non-SMP.
--
*******************************************************************
** Eef Hartman, Delft University of Technology, dept. SSC/ICT **
** e-mail: E.J.M.Hartman.RemoveThis@tudelft.nl - phone: +31-15-278 82525 **
*******************************************************************
Back to top
Login to vote
Henrik Carlqvist

External


Since: Sep 09, 2005
Posts: 92



(Msg. 7) Posted: Wed Oct 14, 2009 1:20 pm
Post subject: Re: slackware 12.1, kqemu, via CPU [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

vtcodger <donald.kenney RemoveThis @gmail.com> wrote:
> 4. Where is the information on how to compile 12.1 modules for a non-
> SMP kernel? I need it because I am far too old and stupid to work it
> out for myself.

Assuming that you have installed a non-SMP or any other custom kernel
which affects module compability you should do something like the
following:

cp /boot/config /usr/src/linux/.config
cd /usr/src/linux
make modules
make modules_install

The above also assumes that /boot/config contains the configurations for
your custom kernel.

Please note however that this only rebuilds the modules that are part of
the linux kernel source tree. If you have other modules installed like
drivers for audio or video or kqemu which didn't come from the kernel
sources you will also have to recompile those modules. Depending on your
version of Slackware some of those sources might be part of X.org or alsa.
Some of those modules like kqemu or a binary nVidia driver might not be
part of Slackware at all.

Instead of working in /usr/src/linux you can make a copy of that directory
tree to somewhere else and build your modules there. By doing that you
don't need to be root when doing "make modules", only when doing "make
modules_install". However, having the right /usr/src/linux/.config might
be a good idea when compiling other modules like kqemu.

regards Henrik
--
The address in the header is only to prevent spam. My real address is:
hc3(at)poolhem.se Examples of addresses which go to spammers:
root@localhost postmaster@localhost
Back to top
Login to vote
vtcodger

External


Since: Oct 12, 2009
Posts: 3



(Msg. 8) Posted: Thu Oct 15, 2009 12:55 am
Post subject: Re: slackware 12.1, kqemu, via CPU [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thank you very much gentlemen. With all that information, I'll either
solve the problem or I'm not going to solve the problem. Due to some
family plans that have gone seriously awry, I probably won't get to
work on this for three or four days. It appears that I will be
spending the next few days admiring autumn foilage while I shuttle
people and dogs from the Champlain Valley to and from Southern New
England.
Back to top
Login to vote
Eef Hartman

External


Since: Jun 25, 2009
Posts: 21



(Msg. 9) Posted: Thu Oct 15, 2009 5:20 am
Post subject: Re: slackware 12.1, kqemu, via CPU [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Henrik Carlqvist <Henrik.Carlqvist.TakeThisOut@deadspam.com> wrote:
> vtcodger <donald.kenney.TakeThisOut@gmail.com> wrote:
> cp /boot/config /usr/src/linux/.config
> cd /usr/src/linux

You should do "make oldconfig" after that, to create all the right
dependencies for the changed config.

> make modules
> make modules_install

And according to Pat's README, you should also build a complete
kernel, with
make bzImage
make clean
rm .version

before you can build modules for that kernel.
--
*******************************************************************
** Eef Hartman, Delft University of Technology, dept. SSC/ICT **
** e-mail: E.J.M.Hartman.TakeThisOut@tudelft.nl - phone: +31-15-278 82525 **
*******************************************************************
Back to top
Login to vote
Eef Hartman

External


Since: Jun 25, 2009
Posts: 21



(Msg. 10) Posted: Thu Oct 15, 2009 5:20 am
Post subject: Re: slackware 12.1, kqemu, via CPU [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Martin Schmitz <news RemoveThis @rmz.ath.cx> wrote:
> -rwxr-xr-x 1 root root 1816 2009-08-18 23:58 patch-to-non-smp.sh*

That one isn't there yet in 12.1, so you'll have to do it by hand.
--
*******************************************************************
** Eef Hartman, Delft University of Technology, dept. SSC/ICT **
** e-mail: E.J.M.Hartman RemoveThis @tudelft.nl - phone: +31-15-278 82525 **
*******************************************************************
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Slackware 12.0: cannot view or print postscript files - Hi I just upgraded from Slack 11.0 to 12.0 following instructions from..

Assigning two NICs - I have a Slackware box with two NICs. With Slackware 10.2, device eth0 gets assigned to NIC #1 (a VIA Rhine built-in..

best way to setup bridge for qemu - I'd like to setup a bridge using the tun/tap driver on my slackware 12 system but still be able to use the..

[gentoo-user] Gentoo, LWS and Slackware for linux learner? - Dear everybody! I have one topic to discuss. I'm not native speaker in english, but I will try. My first linux was..

[Samba] Trouble installing Samba 3.0.0 on Linux Slackware .. - Hello: I tried to install samba 3.0.0 in slackware 9.0, but 'make' failed: # ... # Compiling rpcclient/rpcclient.c #....

[Samba] Solved: Samba 3 w/ADS on Slackware - Hi folks: We have finally solved the problem. We have figured out how to correctly install Samba 3 with Active..
       Soft32 Home -> Linux -> Slackware All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Categories:
 Windows
  Linux
 Mac
 PDA


[ Contact us | Terms of Service/Privacy Policy ]