Compiling Problems for Virtex II pro Board
Hi Phillipe
Once you gave me a patch to add adeos support to the 2.6.23 Kernel from Xilinx (see old Mail below).
I managed to install Xenomai correctly that time. I didn't made any further tests than those from the testsuite, but they worked fine. Here's my Question:
What should I do if I want to use a newer Kernel Version at any time? It would be nice to get rid of my dependency to Kernel 2.6.23, because of the special patch. Can you give me any information what I can do? Is it hard to fix a normal adeos patch so it works for the Xilinx tree?
Greetings & THX
Joachim
Quoted 4 lines · Joachim Meyer
HI
I tried to patch my Kernel 2.6.23 with the aedos patch. But I got the error listet at the end. I was using a Kernel from the Xilinx git tree because there are all the driver included I need. Next I tried to use a the last 2.6.23 Kernel from DENX, which succeded and they also support the ml300 Board but the support for the Xilinx on-chip ethernet is missing. I need that support. So what can I do? The Xenomai patch doesn't only work with the DENX Kernels, right?
No, but for anything beyond 2.6.20, the DENX tree is our reference kernel. So you are -mostly- on your own when using other trees.
Quoted 1 line
But where can I look for the error?
arch/powerpc/kernel/entry.S. But the Xilinx PIC code also has to be adapted to Adeos, which is not done by the original patch, otherwise this won't work.
Quoted 20 lines
Greetings & Thx for all help
Joachimerror:
-------------------------------------------------------------------------------------------------------------------------------------------
[email protected]> ./prepare-kernel.sh
Linux tree [default/lib/modules/2.6.13-15.18-bigsmp/source]: ~/xenomai/test/linux-2.6-xlnx.gitprepare-kernel.sh: cannot access Linux tree in ~/xenomai/test/linux-2.6-xlnx.git
Linux tree [default/usr/src]:/home/meyer/xenomai/test/linux-2.6-xlnx.git
Target architecture [default i686]: ppc
Adeos patch [default/home/meyer/xenomai/xenomai-2.4.2/ksrc/arch/powerpc/patches/adeos-ipipe-2.6.23-ppc-DENX-1.6-03.patch]:
patching fileMakefile
patching filearch/powerpc/kernel/cputable.c
Hunk #1 succeeded at 1298 (offset -89 lines).
Hunk #2 succeeded at 1327 (offset -89 lines).
patching filearch/powerpc/kernel/idle.c
patching filearch/powerpc/kernel/io.c
patching filearch/powerpc/kernel/irq.c
patching filearch/powerpc/kernel/process.c
Hunk #2 succeeded at 333 with fuzz 2 (offset -11 lines).
Quoted 8 lines
Hunk #3 succeeded at 973 (offset -11 lines).
patching filearch/ppc/Kconfig
Hunk #1 succeeded at 980 (offset -32 lines).
patching filearch/ppc/boot/Makefile
patching filearch/ppc/kernel/Makefile
patching filearch/ppc/kernel/entry.S
Hunk #5 FAILED at 726.
1 out of 6 hunks FAILED -- saving rejects to filearch/ppc/kernel/entry.S.rej
Try this patch instead, it fixes the rejects and also makes arch/ppc/syslib/xilinx-pic.c Adeos-aware:
http://download.gna.org/adeos/patches/tmp/adeos-ipipe-2.6.23-ppc-xlnx-1.6-03.patch
Note: this is a quick hack for the XILINX boards. In theory, this should work. In practice, I have no idea if it does. The difference between theory and practice is usually called luck as far as I'm concerned. You have been warned.
Signature · 5 lines
Philippe. __________________________________________________________________________ Verschicken Sie SMS direkt vom Postfach aus - in alle deutschen und viele ausländische Netze zum gleichen Preis! https://produkte.web.de/webde_sms/sms
Quoted 9 lines · Joachim Meyer
Hi Phillipe
Once you gave me a patch to add adeos support to the 2.6.23 Kernel from Xilinx (see old Mail below).
I managed to install Xenomai correctly that time. I didn't made any further tests than those from the testsuite, but they worked fine. Here's my Question:What should I do if I want to use a newer Kernel Version at any time? It would be nice to get rid of my dependency to Kernel 2.6.23, because of the special patch. Can you give me any information what I can do? Is it hard to fix a normal adeos patch so it works for the Xilinx tree?
Adeos/powerpc patches are based on the DENX kernel tree, and looking at the Xilinx tree, more conflicts are raised over time. I won't say that it's hard to adapt the patch to the Xilinx tree, but the merge issues are not trivial anymore, like they were in 2.6.23.
What would help is that more Xilinx bits are sent/merged to mainline or DENX trees.
Quoted 56 lines
Greetings & THX
JoachimQuoted 4 lines · Joachim Meyer
HI
I tried to patch my Kernel 2.6.23 with the aedos patch. But I got the error listet at the end. I was using a Kernel from the Xilinx git tree because there are all the driver included I need. Next I tried to use a the last 2.6.23 Kernel from DENX, which succeded and they also support the ml300 Board but the support for the Xilinx on-chip ethernet is missing. I need that support. So what can I do? The Xenomai patch doesn't only work with the DENX Kernels, right?
No, but for anything beyond 2.6.20, the DENX tree is our reference kernel. So you are -mostly- on your own when using other trees.
Quoted 1 line
But where can I look for the error?
arch/powerpc/kernel/entry.S. But the Xilinx PIC code also has to be adapted to Adeos, which is not done by the original patch, otherwise this won't work.Quoted 20 lines
Greetings & Thx for all help
Joachimerror:
-------------------------------------------------------------------------------------------------------------------------------------------
[email protected]> ./prepare-kernel.sh
Linux tree [default/lib/modules/2.6.13-15.18-bigsmp/source]: ~/xenomai/test/linux-2.6-xlnx.gitprepare-kernel.sh: cannot access Linux tree in ~/xenomai/test/linux-2.6-xlnx.git
Linux tree [default/usr/src]:/home/meyer/xenomai/test/linux-2.6-xlnx.git
Target architecture [default i686]: ppc
Adeos patch [default/home/meyer/xenomai/xenomai-2.4.2/ksrc/arch/powerpc/patches/adeos-ipipe-2.6.23-ppc-DENX-1.6-03.patch]:
patching fileMakefile
patching filearch/powerpc/kernel/cputable.c
Hunk #1 succeeded at 1298 (offset -89 lines).
Hunk #2 succeeded at 1327 (offset -89 lines).
patching filearch/powerpc/kernel/idle.c
patching filearch/powerpc/kernel/io.c
patching filearch/powerpc/kernel/irq.c
patching filearch/powerpc/kernel/process.c
Hunk #2 succeeded at 333 with fuzz 2 (offset -11 lines).Quoted 8 lines
Hunk #3 succeeded at 973 (offset -11 lines).
patching filearch/ppc/Kconfig
Hunk #1 succeeded at 980 (offset -32 lines).
patching filearch/ppc/boot/Makefile
patching filearch/ppc/kernel/Makefile
patching filearch/ppc/kernel/entry.S
Hunk #5 FAILED at 726.
1 out of 6 hunks FAILED -- saving rejects to filearch/ppc/kernel/entry.S.rejTry this patch instead, it fixes the rejects and also makes
arch/ppc/syslib/xilinx-pic.cAdeos-aware:
http://download.gna.org/adeos/patches/tmp/adeos-ipipe-2.6.23-ppc-xlnx-1.6-03.patchNote: this is a quick hack for the XILINX boards. In theory, this should work. In practice, I have no idea if it does. The difference between theory and practice is usually called luck as far as I'm concerned. You have been warned.
Signature · 1 line
Philippe.