Hello Thomas and others,

I have tried to build patch-2.6.19-rt1 patched 2.6.19 kernel
for MX1 (PiMX1). There seems to be some problems.
One is corrected by attached patch, there is another one
I have not solved yet

make ARCH=arm CROSS_COMPILE=arm-linux- -C /usr/src/linux-2.6.19-rt O=/usr/src/l
inux-2.6.19-rt/_build/arm
  CHK     include/linux/version.h
...
  LD      init/built-in.o
  LD      .tmp_vmlinux1
arch/arm/kernel/built-in.o(.text+0x40c0): In function `do_settimeofday':
/usr/src/linux-2.6.19-rt/include/linux/hrtimer.h:264: undefined reference to 
`warp_check_clock_was_changed'
kernel/built-in.o(.text+0xa6bc): In function `do_sys_settimeofday':
/usr/src/linux-2.6.19-rt/kernel/time.c:138: undefined reference to 
`warp_check_clock_was_changed'
kernel/built-in.o(.text+0xa700): In function `do_sys_settimeofday':
/usr/src/linux-2.6.19-rt/include/linux/hrtimer.h:264: undefined reference to 
`warp_check_clock_was_changed'
kernel/built-in.o(.text+0x1dfec): In function `hrtimer_notify_resume':
/usr/src/linux-2.6.19-rt/include/linux/hrtimer.h:264: undefined reference to 
`warp_check_clock_was_changed'
kernel/built-in.o(.text+0x1f62c): In function `second_overflow':
/usr/src/linux-2.6.19-rt/include/linux/hrtimer.h:264: undefined reference to 
`warp_check_clock_was_changed'
kernel/built-in.o(.text+0x1f674):/usr/src/linux-2.6.19-rt/include/linux/hrtimer.h:264:
 more undefined references to `warp_check_clock_was_changed' follow
kernel/built-in.o(.text+0x2745c): In function `setup_preempt_thresh':
/usr/src/linux-2.6.19-rt/kernel/latency_trace.c:1647: undefined reference to 
`usecs_to_cycles'

Have you idea where is a problem or should I dig deeper.

There is required next simple change for ARM architectures < 6

-----------------------------------------------------------------------------------
 include/asm-arm/atomic.h |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Index: linux-2.6.19-rt/include/asm-arm/atomic.h
===================================================================
--- linux-2.6.19-rt.orig/include/asm-arm/atomic.h
+++ linux-2.6.19-rt/include/asm-arm/atomic.h
@@ -188,10 +188,10 @@ static inline unsigned long __cmpxchg(vo
        volatile unsigned long *p = ptr;
 
        if (size == 4) {
-               local_irq_save(flags);
+               raw_local_irq_save(flags);
                if ((prev = *p) == old)
                        *p = new;
-               local_irq_restore(flags);
+               raw_local_irq_restore(flags);
                return(prev);
        } else
                return wrong_size_cmpxchg(ptr);
-----------------------------------------------------------------------------------

Best wishes

                Pavel Pisa
        e-mail: [EMAIL PROTECTED]
        www:    http://cmp.felk.cvut.cz/~pisa
        work:   http://www.pikron.com


PS: Please CC to me, I am not on the list

PS2: Thomas, have you already found time to look at my e-mails/questions/patches
     about SC520 and i.MX HRT and Profibus.
     ( The initial version of Tran's Profibus work can be loaded
     at http://sourceforge.net/projects/pbmaster )

-
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to