Skip to contentSkip to conversation

ARM 920T build problems for patch-2.6.19-rt1

PATCH Pavel Pisa 2 participants 2 messages Dec 1, 2006 Atomic infrastructure

lore
Share & tools
lore

Pavel Pisa

author
#0 lore raw

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(-)
include/asm-arm/atomic.h +2 -2
Index: 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 )

#1 lore raw
Quoted 14 lines · Pavel Pisa

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

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

Index: linux-2.6.19-rt/include/asm-arm/atomic.h
===================================================================

include/asm-arm/atomic.h +0 -0
@@ -188,10 +188,10 @@ static inline unsigned long __cmpxchg(vo
 	volatile unsigned long *p = ptr;
 

include/asm-arm/atomic.h static inline unsigned long __cmpxchg(vo · line 197

Quoted 10 lines
include/asm-arm/atomic.h +2 -2
 	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);

Yeah, same is necessary to get OMAP1 ARM926 compiled.

Best regards

Dirk