Hi! I once sent this message as a non-member and it was probably never looked on.
I tried to compile kamailio on ARM A9 (omap4430) natively and failed with these errors CC (gcc) [kamailio] atomic_ops.o ./tmp/ccm1k5em.s: Assembler messages: /tmp/ccm1k5em.s:35: Error: selected processor does not support Thumb mode `swp r4,r8,[r6]' /tmp/ccm1k5em.s:46: Error: selected processor does not support Thumb mode `swp r4,r8,[r6]' /tmp/ccm1k5em.s:191: Error: selected processor does not support Thumb mode `swp r4,r9,[r7]' /tmp/ccm1k5em.s:204: Error: selected processor does not support Thumb mode `swp r4,r9,[r7]' make: *** [atomic_ops.o] Error 1
ALTERNATIVELY I have found openser 1.3.2-3 in debian lenny for armel achitecture. Is this version secure enough? (I mean - has no some remote code execution / db corruption bugs which are fixed in current kamailio version?) I don't care about call authenticity or bookkeeping or protecting the uplink (because there is none) If it only lacks features, then it would be enough.
Thanks for reply. MMlosh
On Wednesday 04 May 2011, kasip@elektromaniak.wz.cz wrote:
I once sent this message as a non-member and it was probably never looked on.
Hi,
yes, posts as non-member have a high chance of getting lost in the spam..
I tried to compile kamailio on ARM A9 (omap4430) natively and failed with these errors CC (gcc) [kamailio] atomic_ops.o ./tmp/ccm1k5em.s: Assembler messages: /tmp/ccm1k5em.s:35: Error: selected processor does not support Thumb mode `swp r4,r8,[r6]' /tmp/ccm1k5em.s:46: Error: selected processor does not support Thumb mode `swp r4,r8,[r6]' /tmp/ccm1k5em.s:191: Error: selected processor does not support Thumb mode `swp r4,r9,[r7]' /tmp/ccm1k5em.s:204: Error: selected processor does not support Thumb mode `swp r4,r9,[r7]' make: *** [atomic_ops.o] Error 1
This is probably because the atomic/atomic_arm.h does not fit to your processor. There is probably some make cmd to disable it, but as a quick hack you could try to just copy the atomic/atomic_unknown.h to atomic/atomic_arm.h file.
ALTERNATIVELY I have found openser 1.3.2-3 in debian lenny for armel achitecture. Is this version secure enough? (I mean - has no some remote code execution / db corruption bugs which are fixed in current kamailio version?)
In 1.3.X there are a lot of bugs which are fixed in later version. If they will bite you in your setup, its hard to tell. But they are still some people which use this version in a production setup, but i'd not recommend it for new installations.
I don't care about call authenticity or bookkeeping or protecting the uplink (because there is none) If it only lacks features, then it would be enough.
Have you tried to compile the latest kamailio 1.5 branch? This is from a core POV much closer to openser 1.3.X, maybe it will work better for you? It should have a lot more bug fixes that 1.3 misses. If you can't make the current code work on your certain setup, id definitely recommend the 1.5 version.
Henning
On May 04, 2011 at 22:19, kasip@elektromaniak.wz.cz kasip@elektromaniak.wz.cz wrote:
Hi! I once sent this message as a non-member and it was probably never looked on.
I tried to compile kamailio on ARM A9 (omap4430) natively and failed with these errors
Could you please send more info? uname -m uname -a gcc --version gcc -dM -E -x c /dev/null
and the generated config.mak (after make cfg).
The problem are the atomic_get_and_set_* instructions which use swp (not supported on ARMv7+). However they are easy to replace with a ldrex/strex (one need only to replace the ATOMIC_XCHG_DECL macro in atomic_arm with a modified version of the ATOMIC_CMPXCHG_DECL macro). To enable proper SMP support we need also to define some memory barriers.
However since I don't have access to an ARMv7+, I need the above info from your machine so that I can modify the Maekfiles to properly detect a ARMv7.
Thanks, Andrei
CC (gcc) [kamailio] atomic_ops.o ./tmp/ccm1k5em.s: Assembler messages: /tmp/ccm1k5em.s:35: Error: selected processor does not support Thumb mode `swp r4,r8,[r6]' /tmp/ccm1k5em.s:46: Error: selected processor does not support Thumb mode `swp r4,r8,[r6]' /tmp/ccm1k5em.s:191: Error: selected processor does not support Thumb mode `swp r4,r9,[r7]' /tmp/ccm1k5em.s:204: Error: selected processor does not support Thumb mode `swp r4,r9,[r7]' make: *** [atomic_ops.o] Error 1
ALTERNATIVELY I have found openser 1.3.2-3 in debian lenny for armel achitecture. Is this version secure enough? (I mean - has no some remote code execution / db corruption bugs which are fixed in current kamailio version?) I don't care about call authenticity or bookkeeping or protecting the uplink (because there is none) If it only lacks features, then it would be enough.
Thanks for reply. MMlosh
sr-dev mailing list sr-dev@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
At 05.05.2011 v 21:25:56, Andrei Pelinescu-Onciul andrei@iptel.org wrote:
All requested output are in the attachment (3.3kb, I hope that's fine) or alternativaly at http://elektromaniak.wz.cz/info.tar.gz
I hope the config.mak is configured.. it should be.
Someone else asked me to build a kamailio 1.5 brach... result: fails around atomic locks too By the way: the device I have is called "pandaboard".
Thanks for such quick reply MMlosh
On May 04, 2011 at 22:19, kasip@elektromaniak.wz.cz kasip@elektromaniak.wz.cz wrote:
Hi! I once sent this message as a non-member and it was probably never looked
on.
I tried to compile kamailio on ARM A9 (omap4430) natively and failed with these errors
Could you please send more info? uname -m uname -a gcc --version gcc -dM -E -x c /dev/null
and the generated config.mak (after make cfg).
The problem are the atomic_get_and_set_* instructions which use swp (not supported on ARMv7+). However they are easy to replace with a ldrex/strex (one need only to replace the ATOMIC_XCHG_DECL macro in atomic_arm with a modified version of the ATOMIC_CMPXCHG_DECL macro). To enable proper SMP support we need also to define some memory barriers.
However since I don't have access to an ARMv7+, I need the above info from your machine so that I can modify the Maekfiles to properly detect a ARMv7.
Thanks, Andrei
CC (gcc) [kamailio] atomic_ops.o ./tmp/ccm1k5em.s: Assembler messages: /tmp/ccm1k5em.s:35: Error: selected processor does not support Thumb mode
`swp
r4,r8,[r6]' /tmp/ccm1k5em.s:46: Error: selected processor does not support Thumb mode
`swp
r4,r8,[r6]' /tmp/ccm1k5em.s:191: Error: selected processor does not support Thumb mode
`swp
r4,r9,[r7]' /tmp/ccm1k5em.s:204: Error: selected processor does not support Thumb mode
`swp
r4,r9,[r7]' make: *** [atomic_ops.o] Error 1
ALTERNATIVELY I have found openser 1.3.2-3 in debian lenny for armel achitecture. Is this version secure enough? (I mean - has no some remote code execution
/ db
corruption bugs which are fixed in current kamailio version?) I don't care about call authenticity or bookkeeping or protecting the
uplink
(because there is none) If it only lacks features, then it would be enough.
Thanks for reply. MMlosh
sr-dev mailing list sr-dev@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
sr-dev mailing list sr-dev@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
At 05.05.2011 v 21:25:56, Andrei Pelinescu-Onciul andrei@iptel.org wrote:
On May 04, 2011 at 22:19, kasip@elektromaniak.wz.cz kasip@elektromaniak.wz.cz wrote:
Hi!
I tried to compile kamailio on ARM A9 (omap4430) natively and failed
with
these errors
Could you please send more info? uname -m uname -a gcc --version gcc -dM -E -x c /dev/null
and the generated config.mak (after make cfg).
I am not sure whether your list eats attachments or not, so I decided to re-post, hoping someone confirms receiving it.
All requested info is targzipped at (http://) elektromaniak.wz.cz / info.tar.gz
I hope the config.mak is configured.. it should be.
Thanks for such quick reply MMlosh
The problem are the atomic_get_and_set_* instructions which use swp (not supported on ARMv7+). However they are easy to replace with a ldrex/strex (one need only to replace the ATOMIC_XCHG_DECL macro in atomic_arm with a modified version of the ATOMIC_CMPXCHG_DECL macro). To enable proper SMP support we need also to define some memory barriers.
However since I don't have access to an ARMv7+, I need the above info from your machine so that I can modify the Maekfiles to properly detect a ARMv7.
Thanks, Andrei
CC (gcc) [kamailio] atomic_ops.o ./tmp/ccm1k5em.s: Assembler messages: /tmp/ccm1k5em.s:35: Error: selected processor does not support Thumb
mode
`swp
r4,r8,[r6]' /tmp/ccm1k5em.s:46: Error: selected processor does not support Thumb
mode
`swp
r4,r8,[r6]' /tmp/ccm1k5em.s:191: Error: selected processor does not support Thumb
mode
`swp
r4,r9,[r7]' /tmp/ccm1k5em.s:204: Error: selected processor does not support Thumb
mode
`swp
r4,r9,[r7]' make: *** [atomic_ops.o] Error 1
Thanks for reply. MMlosh