Hi Tom,

As a matter of fact the -march=i686 option is given
to gcc even when CONFIG_MPENTIUM4=y.
I traced that to /usr/src/linux/arch/i386/Makefile.
Either -march=pentium4 is not yet considered safe,
or it has been forgotten. I edited that Makefile.
The Makefile editing should really not be considered
a part of the compilation procedure.
I prefer to separate the compilation from the intallation
so I have kept them as two points.
Now I have compiled the kernal source with -march=pentium4,
and so far it seems to be running without problems.

I am really only interested in using -march=pentium4
and/or -msse2 for heavy floating point calculations,
but that is another matter.

 -- Bjarne

Procedure for compiling the kernel:

After installing a new 2.4.xx kernel edit the following two lines
"EXTRAVERSION = -16P4"
"export INSTALL_PATH=/boot"
in /usr/src/linux/Makefile
In case you wish to compile for Pentium4 using gcc-3.1 edit
ifdef CONFIG_MPENTIUM4
CFLAGS += -march=i686  -->  CFLAGS += -march=pentium4
endif
in /usr/src/linux/arch/i386/Makefile


(1) cd /usr/src/linux
(2) "make mrproper"
(3) cp /boot/config-2.4.18-16mdkenterprise .config
(4) edit .config followed by "make oldconfig" or "make menuconfig"
(5) "make dep && make bzImage && make modules"
(6) "make modules_install && make install"
(7) inspect /boot and /etc/lilo.conf, and run lilo (to be sure).



On Sat, 2002-05-11 at 15:37, Tom Brinkman wrote:
> On Saturday 11 May 2002 04:55 am, Bjarne Thomsen wrote:
> > Thank you Tom,
> >
> > That was the kind of answer that I hoped for.
> > I just took a quick look at the README file,
> > and cut out all the many words. I then made
> > a file from where I copied the lines by using
> > my mouse. I did not dare to include the "make install".
> > Yes, you are right. The number of lines can be cut
> > down to about half.
> >
> > I have installed the new gcc-3.1 compiler as the default
> > gcc without too many difficulties. I have now compiled
> > the 2.4.18-16 enterprise kernel minus SMP, and for
> > Pentium4. I used "make menuconfig" as "make xconfig"
> > seems to be broken (see below).
>      see way down below ;)
> > I am not sure, however, that any specific P4 code was
> > generated. Here is my shorter recipe:
>    It should have been if you edited this line in .config
>     # CONFIG_MPENTIUM4 is not set   
> to  CONFIG_MPENTIUM4=y     and then commented out whatever the 
> default arch was (eg,   # CONFIG_M586 is not set)
>     Also during the compile you should'a seen a lot of lines here'n 
> there with  -march=P4  in 'em. (not sure it'd be P4, I don't have 
> one, but you get the idea. Mine read  -march=athlon   ;)
> >
> > Procedure for compiling the kernel:
> >
> > (1) cd /usr/src/linux
> > (2) "make mrproper" in case we start from scratch.  
>   Not 'in case we start from scratch', _always_
> 
> > (3) cp /boot/config-2.4.18-16mdkenterprise /usr/src/linux/.config
>  Could shorten to 'cp /boot/config-2.4.18-16mdkenterprise .config' 
> since you're already in /usr/src/linux/
> 
> > (4) edit .config followed by "make oldconfig" or "make menuconfig"
> > (5) "EXTRAVERSION = -16P4" in /usr/src/linux/Makefile
> > (6) "export INSTALL_PATH=/boot" in /usr/src/linux/Makefile
> > (7) "make dep && make bzImage && make modules"
> > (8) "make modules_install && make install"
> > (9) inspect /boot and /etc/lilo.conf, and run lilo (to be sure).
> 
>     5&6 are one step, 7&8 could be all one step, 9 is optional but 
> recommended, So we're really down to just 6 steps + check needed to 
> compile a cooker kernel ;)
> 
>    As to make xconfig, remember I said,
> > >     As a footnote, I don't recommend usin newer kernels unless
> > > you also either monitor the cooker ML, or at least check it's
> > > recent archive. 
> 
>    Check the cooker ML archive, I believe you'll find notice that 
> lately 'make xconfig' is broken, make menuconfig works
> -- 
>     Tom Brinkman                    Corpus Christi, Texas
> 
> ----
> 

> Want to buy your Pack or Services from MandrakeSoft? 
> Go to http://www.mandrakestore.com



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to