* MVME2306 : kernel 2.2.6 SUCCESS !
@ 1999-04-20 15:40 David De Ridder
1999-04-21 15:04 ` Simone Piccardi
0 siblings, 1 reply; 5+ messages in thread
From: David De Ridder @ 1999-04-20 15:40 UTC (permalink / raw)
To: Gabriel Paubert; +Cc: LinuxPPC Developers List
Hi,
a quick report :
* I patched my 2.2.4 source tree to 2.2.6 (through 2.2.5)
* I applied Gabriel's latest patches (for 2.2.6). First generic,
then vme. There were no messages during patching (``patch -p0 -s'').
* ``make distclean'' on the patched tree
* ``make oldconfig'' using Gabriel's mvme2600.config.nfsroot for 2.2.6
* ``make bzImage'' (went flawless)
* ``make modules'' - no problems this time
* ``make modules_install''
* ``depmod -a'' gives no messages (this is good)
Then, I fed the new kernel arch/ppc/prepboot/zImage to my TFTP server,
did a reboot, and there I was, up and running.
A little applause for Gabriel Paubert, who was very fast and helpful
in clearing some obstacles.
Just to make sure, I did a ``modprobe universe'', and the kernel said :
``Universe VME bridge revision #1 found at bus=0, dev=13''
This looks fine. When I get some info on how to use the /dev/vme, I'll
start experimenting with it.
I think I'm going home now,
+-----------------------------------------------------------------+
David 'Septimus' De Ridder <david.de.ridder@bitsmart.com>
"Oh please don't make us watch it again !"
- 'The Muppet Show'
+-----------------------------------------------------------------+
[[ This message was sent via the linuxppc-dev mailing list. Replies are ]]
[[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting. ]]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: MVME2306 : kernel 2.2.6 SUCCESS !
1999-04-20 15:40 MVME2306 : kernel 2.2.6 SUCCESS ! David De Ridder
@ 1999-04-21 15:04 ` Simone Piccardi
1999-04-21 16:30 ` Gabriel Paubert
0 siblings, 1 reply; 5+ messages in thread
From: Simone Piccardi @ 1999-04-21 15:04 UTC (permalink / raw)
To: David De Ridder; +Cc: LinuxPPC Developers List
David De Ridder wrote:
>
> Hi,
>
> a quick report :
>
> * I patched my 2.2.4 source tree to 2.2.6 (through 2.2.5)
> * I applied Gabriel's latest patches (for 2.2.6). First generic,
> then vme. There were no messages during patching (``patch -p0 -s'').
> * ``make distclean'' on the patched tree
> * ``make oldconfig'' using Gabriel's mvme2600.config.nfsroot for 2.2.6
> * ``make bzImage'' (went flawless)
> * ``make modules'' - no problems this time
> * ``make modules_install''
> * ``depmod -a'' gives no messages (this is good)
Hi,
I just finished to try this procedure (with some more step added) to
cross-compile the kernel on my PC, but it does not work.
I did all the step up to the distclean, then I modify the Makefile
(according to Matt Porter instructions), I copied the
mvme2600.config.nfsroot as .config and did make oldconfig.
Everything up to here went fine, without any error or warning.
Then I did make dep and make clean (always using the Matt Porter
instruction) and the make zImage, at the end the error was this:
powerpc-linux-gcc -D__KERNEL__ -I/home/ppc/linux/include -Wall
-Wstrict-prototypes -O2 -fomit-frame-pointer -D__powerpc__ -fsigned-char
-msoft-float -pipe -fno-builtin -ffixed-r2 -Wno-uninitialized -mmultiple
-mstring -mcpu=603e -D__powerpc__ -msoft-float -pipe -fno-builtin -Wall
-mmultiple -mstring -I../boot -I/home/ppc/linux -D__KERNEL__ -O2
-fomit-frame-pointer -mrelocatable -ffixed-r13 -D__BOOT__ -DDEBUG -c -o
zlib.o zlib.c
zlib.c:83: string.h: No such file or directory
zlib.c: In function `inflate_blocks':
zlib.c:878: warning: implicit declaration of function `memcpy'
make[1]: *** [zlib.o] Error 1
make[1]: Leaving directory `/home/ppc/linux/arch/ppc/prepboot'
make: *** [zImage] Error 2
I'm a little bit worried about the -mcpu=603e switch but I don't think
this can be relate to the error.
I looked inside the kernel tree and there are many of these file inside:
/home/ppc/linux/include/asm-alpha/string.h
/home/ppc/linux/include/asm-arm/string.h
/home/ppc/linux/include/asm-i386/string.h
/home/ppc/linux/include/asm-m68k/string.h
/home/ppc/linux/include/asm-mips/string.h
/home/ppc/linux/include/asm-ppc/string.h
/home/ppc/linux/include/asm-sparc/string.h
/home/ppc/linux/include/asm-sparc64/string.h
/home/ppc/linux/include/linux/string.h
The code where the (1st) error come is:
/* functions */
#include <string.h>
#define zmemcpy memcpy
#define zmemzero(dest, len) memset(dest, 0, len)
and it seems absolutely normal to me.
The cross compiler was build installing egcs 1.1.2 and the glibc-2.1
over a Redhat 5.2, and then using the Matt Porter instruction (with the
exception of a newer version of binutils, because that one was not
accepted in the egcs upgrade).
If you have any idea about how to solve this I'll be happy.
Thanks to everybody
--
Simone Piccardi
Microsoft is NOT the answer. Microsoft is the Question.
The answer is: "NO!"
[[ This message was sent via the linuxppc-dev mailing list. Replies are ]]
[[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting. ]]
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: MVME2306 : kernel 2.2.6 SUCCESS !
1999-04-21 15:04 ` Simone Piccardi
@ 1999-04-21 16:30 ` Gabriel Paubert
1999-04-22 19:22 ` Simone Piccardi
0 siblings, 1 reply; 5+ messages in thread
From: Gabriel Paubert @ 1999-04-21 16:30 UTC (permalink / raw)
To: Simone Piccardi; +Cc: David De Ridder, LinuxPPC Developers List
On Wed, 21 Apr 1999, Simone Piccardi wrote:
> Hi,
> I just finished to try this procedure (with some more step added) to
> cross-compile the kernel on my PC, but it does not work.
> I did all the step up to the distclean, then I modify the Makefile
> (according to Matt Porter instructions), I copied the
> mvme2600.config.nfsroot as .config and did make oldconfig.
> Everything up to here went fine, without any error or warning.
> Then I did make dep and make clean (always using the Matt Porter
> instruction) and the make zImage, at the end the error was this:
>
> powerpc-linux-gcc -D__KERNEL__ -I/home/ppc/linux/include -Wall
> -Wstrict-prototypes -O2 -fomit-frame-pointer -D__powerpc__ -fsigned-char
> -msoft-float -pipe -fno-builtin -ffixed-r2 -Wno-uninitialized -mmultiple
> -mstring -mcpu=603e -D__powerpc__ -msoft-float -pipe -fno-builtin -Wall
> -mmultiple -mstring -I../boot -I/home/ppc/linux -D__KERNEL__ -O2
> -fomit-frame-pointer -mrelocatable -ffixed-r13 -D__BOOT__ -DDEBUG -c -o
> zlib.o zlib.c
> zlib.c:83: string.h: No such file or directory
> zlib.c: In function `inflate_blocks':
> zlib.c:878: warning: implicit declaration of function `memcpy'
> make[1]: *** [zlib.o] Error 1
> make[1]: Leaving directory `/home/ppc/linux/arch/ppc/prepboot'
> make: *** [zImage] Error 2
>
> I'm a little bit worried about the -mcpu=603e switch but I don't think
> this can be relate to the error.
No, it does not. It is just an optimization because I happen to have 603e
and the default scheduling is bad on it (it tends to expand multiplies to
series of shift and add since it believes that multiplication is much more
expensive than it actually is on most PPC processors). Scheduling on 750
is probably different but this should not have any major adverse
effects.
However this problem is obviously my fault, I did not track some changes
:-( You should include linux/string.h instead of string.h.
Gabriel.
[[ This message was sent via the linuxppc-dev mailing list. Replies are ]]
[[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting. ]]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: MVME2306 : kernel 2.2.6 SUCCESS !
1999-04-21 16:30 ` Gabriel Paubert
@ 1999-04-22 19:22 ` Simone Piccardi
1999-04-22 17:21 ` Gabriel Paubert
0 siblings, 1 reply; 5+ messages in thread
From: Simone Piccardi @ 1999-04-22 19:22 UTC (permalink / raw)
To: Gabriel Paubert; +Cc: LinuxPPC Developers List
Gabriel Paubert wrote:
>
> :-( You should include linux/string.h instead of string.h.
>
> Gabriel.
Hi,
I made the correction you suggested, and that time make zImage compiled
well the routine, but then it stopped a bit further when doing vmlinuz
and zImage.
This was due to these two lines:
ld -o zImage $(OBJECTS) --just-symbols=$(TOPDIR)/vmlinux
objcopy $(TOPDIR)/vmlinux vmlinux -O binary -R .comment -S
in /home/ppc/linux/arch/ppc/prepboot/Makefile
That just don't work on my PC, because in this way the makefile is using
the intel tools, I modified in:
$(CROSS_COMPILE)ld -o zImage $(OBJECTS) --just-symbols=$(TOPDIR)/vmlinux
$(CROSS_COMPILE)objcopy $(TOPDIR)/vmlinux vmlinux -O binary -R .comment
-S
and everything went fine. So now I can start to do check with your
images.
Many thanks for all the help
--
Simone Piccardi
Microsoft is NOT the answer. Microsoft is the Question.
The answer is: "NO!"
[[ This message was sent via the linuxppc-dev mailing list. Replies are ]]
[[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting. ]]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: MVME2306 : kernel 2.2.6 SUCCESS !
1999-04-22 19:22 ` Simone Piccardi
@ 1999-04-22 17:21 ` Gabriel Paubert
0 siblings, 0 replies; 5+ messages in thread
From: Gabriel Paubert @ 1999-04-22 17:21 UTC (permalink / raw)
To: Simone Piccardi; +Cc: LinuxPPC Developers List
Hi,
On Thu, 22 Apr 1999, Simone Piccardi wrote:
> I made the correction you suggested, and that time make zImage compiled
> well the routine, but then it stopped a bit further when doing vmlinuz
> and zImage.
> This was due to these two lines:
>
> ld -o zImage $(OBJECTS) --just-symbols=$(TOPDIR)/vmlinux
>
> objcopy $(TOPDIR)/vmlinux vmlinux -O binary -R .comment -S
>
> in /home/ppc/linux/arch/ppc/prepboot/Makefile
>
> That just don't work on my PC, because in this way the makefile is using
> the intel tools, I modified in:
>
> $(CROSS_COMPILE)ld -o zImage $(OBJECTS) --just-symbols=$(TOPDIR)/vmlinux
>
> $(CROSS_COMPILE)objcopy $(TOPDIR)/vmlinux vmlinux -O binary -R .comment
> -S
>
> and everything went fine. So now I can start to do check with your
> images.
Symbols $(LD) and $(OBJCOPY) are already defined, it's better to use them.
I've fixed it in my tree.
Thanks for the report.
Gabriel.
[[ This message was sent via the linuxppc-dev mailing list. Replies are ]]
[[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting. ]]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~1999-04-22 19:22 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-04-20 15:40 MVME2306 : kernel 2.2.6 SUCCESS ! David De Ridder
1999-04-21 15:04 ` Simone Piccardi
1999-04-21 16:30 ` Gabriel Paubert
1999-04-22 19:22 ` Simone Piccardi
1999-04-22 17:21 ` Gabriel Paubert
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).