Skip to Content.
Sympa Menu

linux-sony-z1 - Re: [linux-sony-z1] New Mandrake Cooker rpm (sds18) available with many features

Subject: Linux users of Sony Z1 series

List archive

Re: [linux-sony-z1] New Mandrake Cooker rpm (sds18) available with many features


Chronological Thread 
  • From: Brouard Nicolas <>
  • To:
  • Cc: Svetoslav Slavtchev <>
  • Subject: Re: [linux-sony-z1] New Mandrake Cooker rpm (sds18) available with many features
  • Date: Tue, 20 Jul 2004 12:19:16 +0200

Try to use the binary first because compiling the whole stuff from src
requires about 50 minutes on a 3GHz Pentium 4! I haven't compiled it on
my Sony.

To bootstrap the src, I think that you need to have your ~/rpm
subdirectories ready and then to install (not as root) with command:
rpm -ivh kernel-swsusp2-2.6.7-1.sds.18mdk-1-1mdk.src.rpm

Then ~/rpm/SOURCES will contains all the sources and patches usually as
tar.bz2 files. ~/rpm/SPECS will contain the .spec file, named
kernel-sds.spec here.

If you cd to ~/rpm/SPECS, you have to do the command
rpmbuild -ba kernel-sds.spec
to compile the whole staff, and, if everything works, you will get the
src on ~/rpm/SRPMS and the binary on ~/rpm/RPMS/i586/ again.

I compiled with standard Mandrake Official distribution 10.0; it means
that I used gcc 3.3.2 . There was some compiling problems reported with
3.4 on some errors which might not been solved completely.

Looking back at ~/rpm/BUILD you will get a kernel-swsusp2 directory and
at least two sub-directories. The first one contains all of the patches
(named 2.6.7-q1.sds18/) and the second named linux-2.6.7/ is the kernel
tree (just patched by the rpmbuild command).

For non Mandrake users interested in the patches, I think that you can
just do a
rpmbuild -bp kernel-sds.spec
to expand the tar.gz and look at the patches in directory
~/rpm/BUILD/kernel-swsusp2/2.6.7-q1.sds18/
Nothing won't be compiled.

Be aware that, at this stage (after -bp), even directory 2.6.7-q1-sds18/
has been patched (configs files at least) and is no more identical to
file ~/rom/SOURCES/linux-2.6.7-q1.sds18.tar.bz2 .

Thus, if you add a patch, for example, a new forthcoming patch for i8042
file (to have a correct suspend/resume with synaptics or Alps as Dmitry
Torokhov suggested and Nigel Cunningham agreed), then you have to expand
~/rom/SOURCES/linux-2.6.7-q1.sds18.tar.bz2 and insert the patch at the
correct place. At last, you probably have to rename the directory
differently (I haven't done it myself) instead of sds18 (it means
Svetoslav Slavtchev version 18) and archive it again with tar jcf and
rebuild to get a new src and binary rpm.

The only thing which I did from original linux-2.6.7-q1.sds18.tar.bz2
was to add DI81_alps.patch and suppress DI80_alps.patch (in directory
swsusp2). Be careful that you also have to change a symbolic link in
directory patches. Also, I did not incorporate patches 97 and 98 and
stopped at AS10_30-software-suspend-core-2.0.0.96-whole.patch because
the laptop did not power off correctly.

In order to compile without APIC I changed the file create_configs
by commenting out APIC:
sub config_nproc_x86 {
my ($nproc) = @_;

config_nproc($nproc);

if ($nproc eq "smp") {
$values{SOFTWARE_SUSPEND} = "n";
$values{CPU_FREQ} = "n";
} else {
# $to_add{X86_UP_APIC} = "y";
# $to_add{X86_UP_IOAPIC} = "y";
$values{I8K} = "m";
$values{TOSHIBA} = "m";
$values{SONYPI} = "m";
$values{VIDEO_MEYE} = "m";
}
}
And then I have to say no APIC 2 or 3 times at the prompt.

So all of this is not easy at all I agree.

But just looking right now at
http://mandrake.contactel.cz/people/svetljo/mandrake/kernel/CHANGELOG.txt
I am discovering that Svetoslav made a lot of improvements and reached
version 23 (2.6.7-q1.sds.23mdk). It seems that the --without apic option
is incorporated now (thanks Svetljo). But there is no mention of latest
DI81_alps.patch .
And apparently swsusp2 hasn't been updated to patch 100 (which was
supposed to correct S4 bug introduced in 97 and 98 patches).

So, if my doubts vanish, it might be easier to download
kernel-sds-2.6.7-1.sds.23mdk-1-1mdk.nosrc.rpm at
http://mandrake.contactel.cz/people/svetljo/mandrake/kernel/SRPMS/
and to do an:
rpm --rebuild kernel-sds-2.6.7-1.sds.23mdk-1-1mdk.nosrc.rpm --with up
--without smp --without secure --without enterprise --without i686up4GB
--without p3smp64GB --without BOOT --without source --without doc --with
win4lin --with swsusp2 --without apic
or something like that.

But I haven't tested the latest kernel 23 of svetljo.

I make a copy to Svetljo because he might be interested in getting
feedback too.

My hope is to have a vanilla install with forthcoming Mandrake 10.1 .

Cheers,

Nicolas


Le lun 19/07/2004 à 21:12, Craig DeForest a écrit :
> Excellent, I'll try to get swsusp2 working on my RAP1. I agree with your
> mention of Mandrake 10 -- it is excellent. I was very pleased with how
> easily stuff got set up (though of course I immediately downloaded and
> built
> a new 2.6.7 kernel from source)
>
> Quoth Brouard Nicolas on Monday 19 July 2004 12:50 pm,
> > Hi all,
> >
> > I just added a new section on my web page concerning the Sony Z1
> > http://sauvy.ined.fr/~brouard/sony/index.html#2.6.7cooker
> >
> > From this section I explain how I built a kernel 2.6.7 from Cooker
> > distribution which allows to have swsusp2, noapic, alps (latest driver),
> > win4lin, ipw2100. You can download the binary (and src).
> >
> > Suspending and resuming is quite fast.
> >
> > Remarks are welcome.
> >
> > Nicolas




Archive powered by MHonArc 2.6.18.

Top of Page