All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] Compiling Problems for Virtex II pro Board
@ 2008-02-25 20:38 Joachim Meyer
  2008-02-25 22:15 ` Philippe Gerum
  0 siblings, 1 reply; 8+ messages in thread
From: Joachim Meyer @ 2008-02-25 20:38 UTC (permalink / raw)
  To: xenomai

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? But where can I look for the error?
Greetings & Thx for all help
Joachim

error:
-------------------------------------------------------------------------------------------------------------------------------------------
meyer@domain.hid> ./prepare-kernel.sh
Linux tree [default /lib/modules/2.6.13-15.18-bigsmp/source]: ~/xenomai/test/linux-2.6-xlnx.git
prepare-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 file Makefile
patching file arch/powerpc/kernel/cputable.c
Hunk #1 succeeded at 1298 (offset -89 lines).
Hunk #2 succeeded at 1327 (offset -89 lines).
patching file arch/powerpc/kernel/idle.c
patching file arch/powerpc/kernel/io.c
patching file arch/powerpc/kernel/irq.c
patching file arch/powerpc/kernel/process.c
Hunk #2 succeeded at 333 with fuzz 2 (offset -11 lines).
Hunk #3 succeeded at 973 (offset -11 lines).
patching file arch/ppc/Kconfig
Hunk #1 succeeded at 980 (offset -32 lines).
patching file arch/ppc/boot/Makefile
patching file arch/ppc/kernel/Makefile
patching file arch/ppc/kernel/entry.S
Hunk #5 FAILED at 726.
1 out of 6 hunks FAILED -- saving rejects to file arch/ppc/kernel/entry.S.rej
patching file arch/ppc/kernel/head.S
patching file arch/ppc/kernel/head_44x.S
Hunk #1 succeeded at 426 (offset -1 lines).
patching file arch/ppc/kernel/head_4xx.S
patching file arch/ppc/kernel/head_8xx.S
patching file arch/ppc/kernel/head_booke.h
Hunk #1 succeeded at 187 (offset -4 lines).
Hunk #2 succeeded at 351 (offset -4 lines).
Hunk #3 succeeded at 367 (offset -4 lines).
patching file arch/ppc/kernel/head_fsl_booke.S
patching file arch/ppc/kernel/ipipe.c
patching file arch/ppc/kernel/mcount_32.S
patching file arch/ppc/kernel/setup.c
patching file arch/ppc/kernel/time.c
patching file arch/ppc/kernel/traps.c
patching file arch/ppc/mm/fault.c
patching file arch/ppc/syslib/cpm2_pic.c
patching file arch/ppc/syslib/ipic.c
patching file arch/ppc/syslib/open_pic.c
patching file arch/ppc/syslib/ppc4xx_pic.c
Hunk #3 succeeded at 292 (offset -30 lines).
patching file drivers/pci/htirq.c
patching file include/asm-powerpc/hw_irq.h
patching file include/asm-powerpc/time.h
patching file include/asm-ppc/ipipe.h
patching file include/asm-ppc/ipipe_base.h
patching file include/asm-ppc/mmu_context.h
patching file include/linux/clockchips.h
patching file include/linux/hardirq.h
patching file include/linux/ipipe.h
patching file include/linux/ipipe_base.h
patching file include/linux/ipipe_compat.h
patching file include/linux/ipipe_percpu.h
patching file include/linux/ipipe_tickdev.h
patching file include/linux/ipipe_trace.h
patching file include/linux/irq.h
patching file include/linux/kernel.h
patching file include/linux/linkage.h
patching file include/linux/mm.h
patching file include/linux/preempt.h
patching file include/linux/sched.h
Hunk #3 succeeded at 1192 (offset -5 lines).
Hunk #4 succeeded at 1345 (offset -5 lines).
patching file include/linux/spinlock.h
patching file include/linux/spinlock_types.h
patching file init/Kconfig
patching file init/main.c
Hunk #1 succeeded at 524 (offset -1 lines).
Hunk #2 succeeded at 577 (offset -4 lines).
Hunk #3 succeeded at 742 (offset -4 lines).
patching file kernel/Makefile
patching file kernel/exit.c
patching file kernel/fork.c
Hunk #1 succeeded at 392 (offset -20 lines).
Hunk #2 succeeded at 926 (offset -20 lines).
Hunk #3 succeeded at 1275 (offset -22 lines).
patching file kernel/ipipe/Kconfig
patching file kernel/ipipe/Kconfig.debug
patching file kernel/ipipe/Makefile
patching file kernel/ipipe/core.c
patching file kernel/ipipe/tracer.c
patching file kernel/irq/chip.c
patching file kernel/irq/handle.c
patching file kernel/power/swsusp.c
patching file kernel/printk.c
Hunk #1 succeeded at 504 (offset -92 lines).
Hunk #2 succeeded at 591 (offset -92 lines).
patching file kernel/sched.c
patching file kernel/signal.c
patching file kernel/spinlock.c
patching file kernel/time/clockevents.c
patching file lib/Kconfig.debug
patching file lib/bust_spinlocks.c
patching file lib/ioremap.c
patching file lib/smp_processor_id.c
patching file lib/spinlock_debug.c
patching file mm/memory.c
patching file mm/mlock.c
patching file mm/vmalloc.c
prepare-kernel.sh: Unable to patch kernel 2.6.23xlnx with adeos-ipipe-2.6.23-ppc-DENX-1.6-03.patch.
meyer@domain.hid>   
-------------------------------------------------------------------------------------------------------------------------------------------
_______________________________________________________________________
Jetzt neu! Schützen Sie Ihren PC mit McAfee und WEB.DE. 30 Tage
kostenlos testen. http://www.pc-sicherheit.web.de/startseite/?mc=022220



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Xenomai-help] Compiling Problems for Virtex II pro Board
  2008-02-25 20:38 Joachim Meyer
@ 2008-02-25 22:15 ` Philippe Gerum
  0 siblings, 0 replies; 8+ messages in thread
From: Philippe Gerum @ 2008-02-25 22:15 UTC (permalink / raw)
  To: Joachim Meyer; +Cc: xenomai

Joachim Meyer wrote:
> 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.

> 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.

> Greetings & Thx for all help
> Joachim
> 
> error:
> -------------------------------------------------------------------------------------------------------------------------------------------
> meyer@domain.hid> ./prepare-kernel.sh
> Linux tree [default /lib/modules/2.6.13-15.18-bigsmp/source]: ~/xenomai/test/linux-2.6-xlnx.git
> prepare-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 file Makefile
> patching file arch/powerpc/kernel/cputable.c
> Hunk #1 succeeded at 1298 (offset -89 lines).
> Hunk #2 succeeded at 1327 (offset -89 lines).
> patching file arch/powerpc/kernel/idle.c
> patching file arch/powerpc/kernel/io.c
> patching file arch/powerpc/kernel/irq.c
> patching file arch/powerpc/kernel/process.c
> Hunk #2 succeeded at 333 with fuzz 2 (offset -11 lines).
> Hunk #3 succeeded at 973 (offset -11 lines).
> patching file arch/ppc/Kconfig
> Hunk #1 succeeded at 980 (offset -32 lines).
> patching file arch/ppc/boot/Makefile
> patching file arch/ppc/kernel/Makefile
> patching file arch/ppc/kernel/entry.S
> Hunk #5 FAILED at 726.
> 1 out of 6 hunks FAILED -- saving rejects to file arch/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.

-- 
Philippe.



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Xenomai-help] Compiling Problems for Virtex II pro Board
@ 2008-02-26 10:33 Joachim Meyer
  0 siblings, 0 replies; 8+ messages in thread
From: Joachim Meyer @ 2008-02-26 10:33 UTC (permalink / raw)
  To: rpm; +Cc: xenomai

Thank you for taking the trouble making this patch...
I'll try and let you know if it works....
Joachim
_______________________________________
GRATIS: Movie-FLAT. Jetzt freischalten!
http://freemail.web.de/club/maxdome.htm



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Xenomai-help] Compiling Problems for Virtex II pro Board
@ 2008-02-26 16:51 Joachim Meyer
  2008-02-26 18:05 ` Philippe Gerum
  0 siblings, 1 reply; 8+ messages in thread
From: Joachim Meyer @ 2008-02-26 16:51 UTC (permalink / raw)
  To: rpm; +Cc: xenomai

Hi
I patched the Kernel sources like this:
-----------------------------------------------
meyer@domain.hid> ./prepare-kernel.sh
Linux tree [default /lib/modules/2.6.13-15.18-bigsmp/source]: /home/meyer/xenomai/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]: /home/meyer/xenomai/adeos
-ipipe-2.6.23-ppc-xlnx-1.6-03.patch
patching file Makefile
patching file arch/powerpc/kernel/cputable.c
patching file arch/powerpc/kernel/idle.c
patching file arch/powerpc/kernel/io.c
patching file arch/powerpc/kernel/irq.c
patching file arch/powerpc/kernel/process.c
patching file arch/ppc/Kconfig
patching file arch/ppc/boot/Makefile
patching file arch/ppc/kernel/Makefile
patching file arch/ppc/kernel/entry.S
patching file arch/ppc/kernel/head.S
patching file arch/ppc/kernel/head_44x.S
patching file arch/ppc/kernel/head_4xx.S
patching file arch/ppc/kernel/head_8xx.S
patching file arch/ppc/kernel/head_booke.h
patching file arch/ppc/kernel/head_fsl_booke.S
patching file arch/ppc/kernel/ipipe.c
patching file arch/ppc/kernel/mcount_32.S
patching file arch/ppc/kernel/setup.c
patching file arch/ppc/kernel/time.c
patching file arch/ppc/kernel/traps.c
patching file arch/ppc/mm/fault.c
patching file arch/ppc/syslib/cpm2_pic.c
patching file arch/ppc/syslib/ipic.c
patching file arch/ppc/syslib/open_pic.c
patching file arch/ppc/syslib/ppc4xx_pic.c
patching file arch/ppc/syslib/xilinx_pic.c
patching file drivers/pci/htirq.c
patching file include/asm-powerpc/hw_irq.h
patching file include/asm-powerpc/time.h
patching file include/asm-ppc/ipipe.h
patching file include/asm-ppc/ipipe_base.h
patching file include/asm-ppc/mmu_context.h
patching file include/linux/clockchips.h
patching file include/linux/hardirq.h
patching file include/linux/ipipe.h
patching file include/linux/ipipe_base.h
patching file include/linux/ipipe_compat.h
patching file include/linux/ipipe_percpu.h
patching file include/linux/ipipe_tickdev.h
patching file include/linux/ipipe_trace.h
patching file include/linux/irq.h
patching file include/linux/kernel.h
patching file include/linux/linkage.h
patching file include/linux/mm.h
patching file include/linux/preempt.h
patching file include/linux/sched.h
patching file include/linux/spinlock.h
patching file include/linux/spinlock_types.h
patching file init/Kconfig
patching file init/main.c
patching file kernel/Makefile
patching file kernel/exit.c
patching file kernel/fork.c
patching file kernel/ipipe/Kconfig
patching file kernel/ipipe/Kconfig.debug
patching file kernel/ipipe/Makefile
patching file kernel/ipipe/core.c
patching file kernel/ipipe/tracer.c
patching file kernel/irq/chip.c
patching file kernel/irq/handle.c
patching file kernel/power/swsusp.c
patching file kernel/printk.c
patching file kernel/sched.c
patching file kernel/signal.c
patching file kernel/spinlock.c
patching file kernel/time/clockevents.c
patching file lib/Kconfig.debug
patching file lib/bust_spinlocks.c
patching file lib/ioremap.c
patching file lib/smp_processor_id.c
patching file lib/spinlock_debug.c
patching file mm/memory.c
patching file mm/mlock.c
patching file mm/vmalloc.c
meyer@domain.hid>
---------------------------------------------------------

then I made the configs, copied the BSB file and tried to compile, ended up in this:
--------------------------------------------------------------------------------------
meyer@domain.hid> make ARCH=ppc CROSS_COMPILE=powerpc-405-linux-gnu- zImage
  HOSTLD  scripts/kconfig/conf
scripts/kconfig/conf -s arch/ppc/Kconfig
kernel/power/Kconfig:79:warning: 'select' used by config symbol 'PM_SLEEP_SMP' refers to undefined symbol 'HOTPLUG_CPU'
#
# configuration written to .config
#
  CHK     include/linux/version.h
  UPD     include/linux/version.h
  CHK     include/linux/utsrelease.h
  UPD     include/linux/utsrelease.h
  SYMLINK include/asm -> include/asm-ppc
  CC      arch/ppc/kernel/asm-offsets.s
  GEN     include/asm-ppc/asm-offsets.h
  CALL    scripts/checksyscalls.sh
  HOSTCC  scripts/genksyms/genksyms.o
  SHIPPED scripts/genksyms/lex.c
  SHIPPED scripts/genksyms/parse.h
  SHIPPED scripts/genksyms/keywords.c
  HOSTCC  scripts/genksyms/lex.o
  SHIPPED scripts/genksyms/parse.c
  HOSTCC  scripts/genksyms/parse.o
  HOSTLD  scripts/genksyms/genksyms
  CC      scripts/mod/empty.o
  HOSTCC  scripts/mod/mk_elfconfig
  MKELF   scripts/mod/elfconfig.h
  HOSTCC  scripts/mod/file2alias.o
  HOSTCC  scripts/mod/modpost.o
  HOSTCC  scripts/mod/sumversion.o
  HOSTLD  scripts/mod/modpost
  HOSTCC  scripts/kallsyms
  HOSTCC  scripts/conmakehash
  CC      init/main.o
  CHK     include/linux/compile.h
  UPD     include/linux/compile.h
  CC      init/version.o
  CC      init/do_mounts.o
  CC      init/do_mounts_rd.o
  CC      init/do_mounts_initrd.o
  LD      init/mounts.o
  CC      init/initramfs.o
  CC      init/calibrate.o
  LD      init/built-in.o
  HOSTCC  usr/bin2asm
  HOSTCC  usr/gen_init_cpio
  GEN     usr/initramfs_data.cpio.gz
  AS      usr/initramfs_data.o
  LD      usr/built-in.o
  AS      arch/ppc/kernel/entry.o
  CC      arch/ppc/kernel/traps.o
  CC      arch/ppc/kernel/time.o
  AS      arch/ppc/kernel/misc.o
  CC      arch/ppc/kernel/setup.o
  CC      arch/ppc/kernel/ppc_htab.o
  CC      arch/ppc/kernel/ppc_ksyms.o
  CC      arch/ppc/kernel/ipipe.o
  LD      arch/ppc/kernel/built-in.o
  AS      arch/ppc/kernel/head_4xx.o
  LDS     arch/ppc/kernel/vmlinux.lds
  CC      arch/powerpc/kernel/semaphore.o
  CC      arch/powerpc/kernel/cputable.o
  CC      arch/powerpc/kernel/ptrace.o
  CC      arch/powerpc/kernel/syscalls.o
  CC      arch/powerpc/kernel/irq.o
  CC      arch/powerpc/kernel/align.o
  CC      arch/powerpc/kernel/signal_32.o
  CC      arch/powerpc/kernel/pmc.o
  CC      arch/powerpc/kernel/vdso.o
  CC      arch/powerpc/kernel/init_task.o
  CC      arch/powerpc/kernel/process.o
  AS      arch/powerpc/kernel/systbl.o
  CC      arch/powerpc/kernel/idle.o
  CC      arch/powerpc/kernel/signal.o
  LDS     arch/powerpc/kernel/vdso32/vdso32.lds
  VDSO32A arch/powerpc/kernel/vdso32/sigtramp.o
  VDSO32A arch/powerpc/kernel/vdso32/gettimeofday.o
  VDSO32A arch/powerpc/kernel/vdso32/datapage.o
  VDSO32A arch/powerpc/kernel/vdso32/cacheflush.o
  VDSO32A arch/powerpc/kernel/vdso32/note.o
  VDSO32L arch/powerpc/kernel/vdso32/vdso32.so
  AS      arch/powerpc/kernel/vdso32/vdso32_wrapper.o
  LD      arch/powerpc/kernel/vdso32/built-in.o
  CC      arch/powerpc/kernel/module_32.o
  LD      arch/powerpc/kernel/built-in.o
  LD      arch/ppc/platforms/built-in.o
  CC      arch/ppc/mm/fault.o
  CC      arch/ppc/mm/init.o
  CC      arch/ppc/mm/mem_pieces.o
  CC      arch/ppc/mm/mmu_context.o
  CC      arch/ppc/mm/pgtable.o
  CC      arch/ppc/mm/4xx_mmu.o
  LD      arch/ppc/mm/built-in.o
  AS      arch/ppc/lib/checksum.o
  AS      arch/ppc/lib/string.o
  AS      arch/ppc/lib/div64.o
  LD      arch/ppc/lib/built-in.o
  CC      arch/ppc/syslib/xilinx_pic.o
arch/ppc/syslib/xilinx_pic.c: In function `xilinx_intc_disable_and_ack':
arch/ppc/syslib/xilinx_pic.c:62: error: implicit declaration of function `local_irq_save_hw_cond'
arch/ppc/syslib/xilinx_pic.c:66: error: implicit declaration of function `local_irq_restore_hw_cond'
arch/ppc/syslib/xilinx_pic.c: In function `xilinx_intc_end':
arch/ppc/syslib/xilinx_pic.c:76: error: `ipipe_root_domain_p' undeclared (first use in this function)
arch/ppc/syslib/xilinx_pic.c:76: error: (Each undeclared identifier is reported only once
arch/ppc/syslib/xilinx_pic.c:76: error: for each function it appears in.)
arch/ppc/syslib/xilinx_pic.c: In function `ppc4xx_pic_init':
arch/ppc/syslib/xilinx_pic.c:168: error: `__ipipe_ack_level_irq' undeclared (first use in this function)
arch/ppc/syslib/xilinx_pic.c:169: error: `__ipipe_end_level_irq' undeclared (first use in this function)
make[1]: *** [arch/ppc/syslib/xilinx_pic.o] Error 1
make: *** [arch/ppc/syslib] Error 2
meyer@domain.hid>
-----------------------------------------------------
Any idea? 

Greez Joachim
_______________________________________________________________________
Jetzt neu! Schützen Sie Ihren PC mit McAfee und WEB.DE. 30 Tage
kostenlos testen. http://www.pc-sicherheit.web.de/startseite/?mc=022220



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Xenomai-help] Compiling Problems for Virtex II pro Board
  2008-02-26 16:51 Joachim Meyer
@ 2008-02-26 18:05 ` Philippe Gerum
  0 siblings, 0 replies; 8+ messages in thread
From: Philippe Gerum @ 2008-02-26 18:05 UTC (permalink / raw)
  To: Joachim Meyer; +Cc: xenomai

Joachim Meyer wrote:
> Hi
> I patched the Kernel sources like this:
> -----------------------------------------------
> meyer@domain.hid> ./prepare-kernel.sh
> Linux tree [default /lib/modules/2.6.13-15.18-bigsmp/source]: /home/meyer/xenomai/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]: /home/meyer/xenomai/adeos
> -ipipe-2.6.23-ppc-xlnx-1.6-03.patch

<snip>

> arch/ppc/syslib/xilinx_pic.c: In function `xilinx_intc_disable_and_ack':
> arch/ppc/syslib/xilinx_pic.c:62: error: implicit declaration of function `local_irq_save_hw_cond'
> arch/ppc/syslib/xilinx_pic.c:66: error: implicit declaration of function `local_irq_restore_hw_cond'
> arch/ppc/syslib/xilinx_pic.c: In function `xilinx_intc_end':
> arch/ppc/syslib/xilinx_pic.c:76: error: `ipipe_root_domain_p' undeclared (first use in this function)
> arch/ppc/syslib/xilinx_pic.c:76: error: (Each undeclared identifier is reported only once
> arch/ppc/syslib/xilinx_pic.c:76: error: for each function it appears in.)
> arch/ppc/syslib/xilinx_pic.c: In function `ppc4xx_pic_init':
> arch/ppc/syslib/xilinx_pic.c:168: error: `__ipipe_ack_level_irq' undeclared (first use in this function)
> arch/ppc/syslib/xilinx_pic.c:169: error: `__ipipe_end_level_irq' undeclared (first use in this function)
> make[1]: *** [arch/ppc/syslib/xilinx_pic.o] Error 1
> make: *** [arch/ppc/syslib] Error 2
> meyer@domain.hid>
> -----------------------------------------------------
> Any idea? 
>

diff --git a/arch/ppc/syslib/xilinx_pic.c b/arch/ppc/syslib/xilinx_pic.c
index 39057eb..21286e9 100644
--- a/arch/ppc/syslib/xilinx_pic.c
+++ b/arch/ppc/syslib/xilinx_pic.c
@@ -12,6 +12,7 @@

 #include <linux/init.h>
 #include <linux/irq.h>
+#include <linux/ipipe.h>
 #include <asm/io.h>
 #include <platforms/4xx/xparameters/xparameters.h>
 #include <asm/ibm4xx.h>



> Greez Joachim
> _______________________________________________________________________
> Jetzt neu! Schützen Sie Ihren PC mit McAfee und WEB.DE. 30 Tage
> kostenlos testen. http://www.pc-sicherheit.web.de/startseite/?mc=022220
> 
> 


-- 
Philippe.


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [Xenomai-help] Compiling Problems for Virtex II pro Board
@ 2008-02-26 22:05 Joachim Meyer
  0 siblings, 0 replies; 8+ messages in thread
From: Joachim Meyer @ 2008-02-26 22:05 UTC (permalink / raw)
  To: rpm; +Cc: xenomai

Thx, it compiled successfully. 
Greez
Joachim
_______________________________________________________________________
Jetzt neu! Schützen Sie Ihren PC mit McAfee und WEB.DE. 30 Tage
kostenlos testen. http://www.pc-sicherheit.web.de/startseite/?mc=022220



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Xenomai-help] Compiling Problems for Virtex II pro Board
@ 2008-08-28 14:32 Joachim Meyer
  2008-08-29  7:36 ` Philippe Gerum
  0 siblings, 1 reply; 8+ messages in thread
From: Joachim Meyer @ 2008-08-28 14:32 UTC (permalink / raw)
  To: rpm; +Cc: xenomai

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

Joachim Meyer wrote:
> 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.

> 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.

> Greetings & Thx for all help
> Joachim
>
> error:
> -------------------------------------------------------------------------------------------------------------------------------------------
> meyer@domain.hid> ./prepare-kernel.sh
> Linux tree [default /lib/modules/2.6.13-15.18-bigsmp/source]: ~/xenomai/test/linux-2.6-xlnx.git
> prepare-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 file Makefile
> patching file arch/powerpc/kernel/cputable.c
> Hunk #1 succeeded at 1298 (offset -89 lines).
> Hunk #2 succeeded at 1327 (offset -89 lines).
> patching file arch/powerpc/kernel/idle.c
> patching file arch/powerpc/kernel/io.c
> patching file arch/powerpc/kernel/irq.c
> patching file arch/powerpc/kernel/process.c
> Hunk #2 succeeded at 333 with fuzz 2 (offset -11 lines).
> Hunk #3 succeeded at 973 (offset -11 lines).
> patching file arch/ppc/Kconfig
> Hunk #1 succeeded at 980 (offset -32 lines).
> patching file arch/ppc/boot/Makefile
> patching file arch/ppc/kernel/Makefile
> patching file arch/ppc/kernel/entry.S
> Hunk #5 FAILED at 726.
> 1 out of 6 hunks FAILED -- saving rejects to file arch/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.

-- 
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





^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Xenomai-help] Compiling Problems for Virtex II pro Board
  2008-08-28 14:32 Joachim Meyer
@ 2008-08-29  7:36 ` Philippe Gerum
  0 siblings, 0 replies; 8+ messages in thread
From: Philippe Gerum @ 2008-08-29  7:36 UTC (permalink / raw)
  To: Joachim Meyer; +Cc: xenomai

Joachim Meyer wrote:
> 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.

> Greetings & THX
> Joachim
> 
> Joachim Meyer wrote:
>> 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.
> 
>> 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.
> 
>> Greetings & Thx for all help
>> Joachim
>>
>> error:
>> -------------------------------------------------------------------------------------------------------------------------------------------
>> meyer@domain.hid> ./prepare-kernel.sh
>> Linux tree [default /lib/modules/2.6.13-15.18-bigsmp/source]: ~/xenomai/test/linux-2.6-xlnx.git
>> prepare-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 file Makefile
>> patching file arch/powerpc/kernel/cputable.c
>> Hunk #1 succeeded at 1298 (offset -89 lines).
>> Hunk #2 succeeded at 1327 (offset -89 lines).
>> patching file arch/powerpc/kernel/idle.c
>> patching file arch/powerpc/kernel/io.c
>> patching file arch/powerpc/kernel/irq.c
>> patching file arch/powerpc/kernel/process.c
>> Hunk #2 succeeded at 333 with fuzz 2 (offset -11 lines).
>> Hunk #3 succeeded at 973 (offset -11 lines).
>> patching file arch/ppc/Kconfig
>> Hunk #1 succeeded at 980 (offset -32 lines).
>> patching file arch/ppc/boot/Makefile
>> patching file arch/ppc/kernel/Makefile
>> patching file arch/ppc/kernel/entry.S
>> Hunk #5 FAILED at 726.
>> 1 out of 6 hunks FAILED -- saving rejects to file arch/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.
> 


-- 
Philippe.


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2008-08-29  7:36 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-26 10:33 [Xenomai-help] Compiling Problems for Virtex II pro Board Joachim Meyer
  -- strict thread matches above, loose matches on Subject: below --
2008-08-28 14:32 Joachim Meyer
2008-08-29  7:36 ` Philippe Gerum
2008-02-26 22:05 Joachim Meyer
2008-02-26 16:51 Joachim Meyer
2008-02-26 18:05 ` Philippe Gerum
2008-02-25 20:38 Joachim Meyer
2008-02-25 22:15 ` Philippe Gerum

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.