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: "Svetoslav Slavtchev" <>
- To: Brouard Nicolas <>
- Cc:
- Subject: Re: [linux-sony-z1] New Mandrake Cooker rpm (sds18) available with many features
- Date: Tue, 20 Jul 2004 12:44:24 +0200 (MEST)
> 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 .
holly .....
that looks very scary for a newbie, don't you think :-)
usually just pointing me to the url,
and/ or sending me the patch attached would be realtively easier
:-)
> 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).
i've replaced the DI80 patch with the one you sent me,
as it's the same patch but a bit updated you shouldn't change the name
if it was an incremetal/additional one, then a name change would be needed
> 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.
i know but 2.0.0.96 doesn't work with cookers gcc-3.4,
that's why i have 2.0.0.98 in the kernel
> 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.
i think this should be fixed now,
well i tested it and it seems to work
even without asking if you want APIC support
> 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).
i've got serious oopses with 100 so i reverted to 98
which works here
sorry no time to debug right know, and the swsusp mailing list
is for subscribers only :(
> 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.
hey ,why did i added "--with uponly" and "--with upsource" :-)
the same compilation is achived by:
rpm --rebuild kernel-sds-2.6.7-1.sds.23mdk-1-1mdk.nosrc.rpm --with uponly
--with win4lin --with swsusp2 --without apic
if you need kernel-source (e.g. for nvidia or ati closed drivers)
replace "--with uponly" with "--with upsource" and only
the standard kernel + kernel source will be build
> 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
>
- New Mandrake Cooker rpm available with many features, Brouard Nicolas, 07/19/2004
- Re: [linux-sony-z1] New Mandrake Cooker rpm available with many features, Craig DeForest, 07/19/2004
- Re: [linux-sony-z1] New Mandrake Cooker rpm (sds18) available with many features, Brouard Nicolas, 07/20/2004
- Re: [linux-sony-z1] New Mandrake Cooker rpm (sds18) available with many features, Svetoslav Slavtchev, 07/20/2004
- Re: [linux-sony-z1] New Mandrake Cooker rpm (sds18) available with many features, Brouard Nicolas, 07/20/2004
- Re: [linux-sony-z1] New Mandrake Cooker rpm (sds18) available with many features, Svetoslav Slavtchev, 07/20/2004
- Re: [linux-sony-z1] swsusp2 patch 98 not working at all on Sony and Alsa patch, Brouard Nicolas, 07/20/2004
- Re: [linux-sony-z1] swsusp2 patch 98 not working at all on Sony and Alsa patch, Svetoslav Slavtchev, 07/21/2004
- Re: [linux-sony-z1] swsusp2 patch 98 not working at all on Sony and Alsa patch, Brouard Nicolas, 07/24/2004
- Re: [linux-sony-z1] swsusp2 patch 98 not working at all on Sony and Alsa patch, Brouard Nicolas, 07/20/2004
- Re: [linux-sony-z1] New Mandrake Cooker rpm (sds18) available with many features, Svetoslav Slavtchev, 07/20/2004
- Re: [linux-sony-z1] New Mandrake Cooker rpm (sds18) available with many features, Brouard Nicolas, 07/20/2004
- Resent after editing Re: [linux-sony-z1] New Mandrake Cooker rpm (sds18) available with many features, Brouard Nicolas, 07/20/2004
- Re: [linux-sony-z1] New Mandrake Cooker rpm (sds18) available with many features, Svetoslav Slavtchev, 07/20/2004
- Re: [linux-sony-z1] New Mandrake Cooker rpm (sds18) available with many features, Brouard Nicolas, 07/20/2004
- Re: [linux-sony-z1] New Mandrake Cooker rpm available with many features, Craig DeForest, 07/19/2004
Archive powered by MHonArc 2.6.18.