[#5753] Fail to apply xenomai to latest trunk kernel

Document created by Aaronwu Employee on Sep 5, 2013
Version 1Show Document
  • View in full screen mode

[#5753] Fail to apply xenomai to latest trunk kernel

Submitted By: Vivi Li

Open Date

2009-12-07 22:44:12     Close Date

2010-07-12 02:30:53

Priority:

Medium     Assignee:

Barry Song

Status:

Closed     Fixed In Release:

N/A

Found In Release:

2010R1     Release:

Category:

Make Errors     Board:

N/A

Processor:

ALL     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Fixed

Uboot version or rev.:

    Toolchain version or rev.:

gcc4.3_trunk3679

App binary format:

N/A     

Summary: Fail to apply xenomai to latest trunk kernel

Details:

 

Fail to apply xenomai to latest trunk kernel.

 

--

make[3]: Entering directory `/home/test/work/cruise/checkouts/uclinux-dist/user/xenomai'^M

set -e ; \^M

        rm -f xeno_patch  ; \^M

        rm -fr ./temp_patch ; \^M

        mkdir ./temp_patch ; \^M

        xenomai-2.4.93/scripts/prepare-kernel.sh --arch=blackfin --adeos=/home/test/work/cruise/checkouts/uclinux-dist/bfin_patch/adeos_patch/adeos-bfin.patch --linux=/home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x --outpatch=xeno_patch  ./temp_patch ; \^M

        patch -d /home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x --dry-run -N -p1 < xeno_patch  ; \^M

        patch -d /home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x -N -p1 < xeno_patch ^M

        INSTALL_DATA /usr/share/man/man8/dumpe2fs.8^M

        INSTALL_DATA /usr/share/man/man8/badblocks.8^M

        INSTALL_DATA /usr/share/man/man8/e2label.8^M

        INSTALL_DATA /usr/share/man/man8/findfs.8^M

        INSTALL_DATA /usr/share/man/man8/blkid.8^M

        INSTALL_DATA /usr/share/man/man8/e2image.8^M

        INSTALL_DATA /usr/share/man/man8/logsave.8^M

        INSTALL_DATA /usr/share/man/man8/filefrag.8^M

        INSTALL_DATA /usr/share/man/man8/e2freefrag.8^M

        INSTALL_DATA /usr/share/man/man8/e2undo.8^M

        INSTALL_DATA /usr/share/man/man8/uuidd.8^M

        INSTALL_DATA /usr/share/man/man8/fsck.8^M

        LINK mkfs.ext2.8^M

        LINK mkfs.ext3.8^M

        LINK mkfs.ext4.8^M

        LINK mkfs.ext4dev.8^M

        INSTALL_DATA /usr/share/man/man1/chattr.1^M

patching file arch/blackfin/Kconfig^M

        INSTALL_DATA /usr/share/man/man1/lsattr.1^M

patching file drivers/pci/htirq.c^M

        INSTALL_DATA /usr/share/man/man1/uuidgen.1^M

patching file drivers/serial/8250.c^M

Hunk #1 succeeded at 3018 (offset 6 lines).^M

        INSTALL_DATA /usr/share/man/man5/mke2fs.conf.5^M

patching file fs/aio.c^M

Hunk #1 FAILED at 608.^M

1 out of 1 hunk FAILED -- saving rejects to file fs/aio.c.rej^M

patching file fs/exec.c^M

patching file include/asm-generic/atomic.h^M

patching file include/asm-generic/bitops/atomic.h^M

patching file include/asm-generic/cmpxchg-local.h^M

patching file include/asm-generic/percpu.h^M

patching file include/linux/hardirq.h^M

patching file include/linux/ipipe.h^M

patching file include/linux/ipipe_base.h^M

patching file include/linux/ipipe_compat.h^M

patching file include/linux/ipipe_percpu.h^M

patching file include/linux/ipipe_tickdev.h^M

patching file include/linux/ipipe_trace.h^M

patching file include/linux/irq.h^M

Hunk #1 succeeded at 124 (offset 5 lines).^M

Hunk #2 succeeded at 176 (offset 8 lines).^M

Hunk #3 succeeded at 356 (offset 2 lines).^M

Hunk #4 succeeded at 374 (offset 2 lines).^M

patching file include/linux/kernel.h^M

patching file include/linux/mm.h^M

Hunk #1 succeeded at 106 with fuzz 2 (offset 2 lines).^M

patching file include/linux/preempt.h^M

patching file include/linux/sched.h^M

Hunk #1 succeeded at 61 (offset 2 lines).^M

Hunk #2 FAILED at 191.^M

Hunk #3 succeeded at 310 (offset 7 lines).^M

Hunk #4 succeeded at 366 (offset 7 lines).^M

Hunk #5 succeeded at 1510 (offset 58 lines).^M

Hunk #6 succeeded at 1753 with fuzz 2 (offset 59 lines).^M

1 out of 6 hunks FAILED -- saving rejects to file include/linux/sched.h.rej^M

patching file include/linux/spinlock.h^M

Hunk #3 succeeded at 201 (offset -9 lines).^M

Hunk #4 succeeded at 310 (offset -9 lines).^M

Hunk #5 succeeded at 327 (offset -9 lines).^M

Hunk #6 succeeded at 342 (offset -9 lines).^M

Hunk #7 succeeded at 359 with fuzz 2 (offset -9 lines).^M

Hunk #8 FAILED at 373.^M

Hunk #9 succeeded at 383 (offset -43 lines).^M

Hunk #10 succeeded at 456 with fuzz 2 (offset -34 lines).^M

1 out of 10 hunks FAILED -- saving rejects to file include/linux/spinlock.h.rej^M

patching file include/linux/spinlock_types.h^M

make[5]: Leaving directory `/home/test/work/cruise/checkouts/uclinux-dist/user/e2fsprogs/build-e2fsprogs-1.41.9/misc'^M

patching file init/Kconfig^M

making install in resize^M

patching file init/main.c^M

Hunk #1 succeeded at 535 (offset -33 lines).^M

Hunk #2 FAILED at 599.^M

Hunk #3 succeeded at 784 with fuzz 1 (offset -32 lines).^M

1 out of 3 hunks FAILED -- saving rejects to file init/main.c.rej^M

patching file kernel/Makefile^M

Hunk #1 succeeded at 83 with fuzz 2 (offset -3 lines).^M

patching file kernel/exit.c^M

Hunk #1 succeeded at 963 (offset 4 lines).^M

patching file kernel/fork.c^M

Hunk #1 succeeded at 511 with fuzz 2 (offset 24 lines).^M

Hunk #2 succeeded at 919 (offset 40 lines).^M

Hunk #3 FAILED at 1298.^M

Hunk #4 succeeded at 1704 (offset 42 lines).^M

1 out of 4 hunks FAILED -- saving rejects to file kernel/fork.c.rej^M

patching file kernel/ipipe/Kconfig^M

patching file kernel/ipipe/Kconfig.debug^M

patching file kernel/ipipe/Makefile^M

patching file kernel/ipipe/core.c^M

patching file kernel/ipipe/tracer.c^M

patching file kernel/irq/chip.c^M

Hunk #1 succeeded at 425 (offset 67 lines).^M

Hunk #2 succeeded at 507 (offset 70 lines).^M

Hunk #3 succeeded at 555 (offset 70 lines).^M

Hunk #4 succeeded at 598 (offset 70 lines).^M

Hunk #5 succeeded at 691 (offset 70 lines).^M

Hunk #6 succeeded at 705 (offset 70 lines).^M

Hunk #7 FAILED at 745.^M

Hunk #8 succeeded at 768 (offset 71 lines).^M

Hunk #9 FAILED at 786.^M

2 out of 9 hunks FAILED -- saving rejects to file kernel/irq/chip.c.rej^M

patching file kernel/irq/handle.c^M

Hunk #1 succeeded at 462 (offset 4 lines).^M

Hunk #2 succeeded at 476 (offset 4 lines).^M

patching file kernel/lockdep.c^M

Hunk #1 succeeded at 2318 (offset 180 lines).^M

Hunk #2 succeeded at 2361 (offset 180 lines).^M

patching file kernel/panic.c^M

Hunk #2 succeeded at 305 (offset 1 line).^M

patching file kernel/power/hibernate.c^M

Hunk #3 succeeded at 361 (offset 4 lines).^M

Hunk #4 succeeded at 393 (offset 4 lines).^M

Hunk #5 succeeded at 475 with fuzz 1 (offset 4 lines).^M

patching file kernel/printk.c^M

Hunk #1 succeeded at 564 (offset 7 lines).^M

Hunk #2 succeeded at 623 (offset 7 lines).^M

Hunk #3 succeeded at 691 (offset 7 lines).^M

patching file kernel/sched.c^M

Hunk #1 FAILED at 2442.^M

Hunk #2 succeeded at 2825 (offset -29 lines).^M

Hunk #3 succeeded at 2875 (offset -29 lines).^M

Hunk #4 succeeded at 5274 (offset 93 lines).^M

Hunk #5 succeeded at 5297 (offset 93 lines).^M

Hunk #6 succeeded at 5346 (offset 93 lines).^M

Hunk #7 succeeded at 5425 (offset 95 lines).^M

Hunk #8 succeeded at 5439 with fuzz 1 (offset 95 lines).^M

Hunk #9 succeeded at 5479 with fuzz 2 (offset 92 lines).^M

Hunk #10 succeeded at 5500 (offset 94 lines).^M

Hunk #11 succeeded at 6354 (offset 108 lines).^M

Hunk #12 succeeded at 7003 with fuzz 2 (offset 404 lines).^M

Hunk #13 FAILED at 11011.^M

2 out of 13 hunks FAILED -- saving rejects to file kernel/sched.c.rej^M

patching file kernel/signal.c^M

patching file kernel/spinlock.c^M

Hunk #1 FAILED at 87.^M

1 out of 1 hunk FAILED -- saving rejects to file kernel/spinlock.c.rej^M

patching file kernel/time/tick-common.c^M

patching file kernel/time/tick-sched.c^M

Hunk #1 succeeded at 525 (offset 5 lines).^M

Hunk #2 succeeded at 676 (offset 5 lines).^M

patching file kernel/timer.c^M

Hunk #1 succeeded at 1204 (offset 41 lines).^M

patching file kernel/trace/ftrace.c^M

Hunk #2 succeeded at 1143 (offset -37 lines).^M

Hunk #3 succeeded at 1153 (offset -37 lines).^M

Hunk #4 succeeded at 2658 (offset -144 lines).^M

Hunk #5 succeeded at 2739 (offset -148 lines).^M

patching file lib/Kconfig.debug^M

Hunk #1 succeeded at 137 (offset 8 lines).^M

patching file lib/bust_spinlocks.c^M

patching file lib/ioremap.c^M

patching file lib/smp_processor_id.c^M

patching file lib/spinlock_debug.c^M

patching file mm/memory.c^M

Hunk #1 succeeded at 56 with fuzz 2 (offset 1 line).^M

Hunk #2 succeeded at 567 (offset 33 lines).^M

Hunk #3 succeeded at 601 (offset 33 lines).^M

Hunk #4 succeeded at 641 (offset 33 lines).^M

Hunk #5 succeeded at 687 (offset 34 lines).^M

Hunk #6 succeeded at 730 (offset 36 lines).^M

Hunk #7 succeeded at 2016 (offset 41 lines).^M

Hunk #8 succeeded at 3426 (offset 26 lines).^M

patching file mm/mlock.c^M

Hunk #1 succeeded at 515 (offset 23 lines).^M

patching file mm/vmalloc.c^M

Hunk #1 FAILED at 173.^M

1 out of 1 hunk FAILED -- saving rejects to file mm/vmalloc.c.rej^M

prepare-kernel.sh: Unable to patch kernel 2.6.32 with adeos-bfin.patch.^M

make[3]: *** [xeno_patch] Error 2^M

make[3]: Leaving directory `/home/test/work/cruise/checkouts/uclinux-dist/user/xenomai'^M

make[2]: *** [xenomai] Error 2^M

make[2]: *** Waiting for unfinished jobs....^M

--

 

Follow-ups

 

--- Yi Li                                                    2009-12-21 00:16:00

We need to wait until upstream xenomai update for 2.6.32.

 

--- Barry Song                                               2010-07-09 04:39:57

After updating adeos patch, current xenomai can run. For example,

 

root:/> uname -a

Linux blackfin 2.6.34.1-ADI-2010R1-pre-svn8978 #4399 Fri Jul 9 14:32:45 CST

2010 blackfin GNU/Linux

 

root:/> latency -t1 -T60 -h

== Sampling period: 100 us

== Test mode: in-kernel periodic task

== All results in microseconds

warming up...

RTT|  00:00:01  (in-kernel periodic task, 100 us period, priority 99)

RTH|-----lat min|-----lat avg|-----lat max|-overrun|----lat best|---lat worst

RTD|      -0.028|       1.518|      13.767|       0|      -0.028|      13.767

RTD|       0.261|       1.552|      18.071|       0|      -0.028|      18.071

RTD|       0.314|       1.540|      15.800|       0|      -0.028|      18.071

RTD|       0.175|       1.545|      16.394|       0|      -0.028|      18.071

RTD|       0.203|       1.530|      17.948|       0|      -0.028|      18.071

 

...

Then we will update xenomai to newest version(2010-05-05 Xenomai 2.5.3) in task

[#5128].

 

-barry

 

--- Vivi Li                                                  2010-07-12 02:30:53

OK now.

Close it.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes