[PATCH v3] kernel:cobalt:heap: replace kzalloc with vzalloc

2020-08-18 Thread Pintu Kumar via Xenomai
t 4.x kernel. Signed-off-by: Pintu Kumar Signed-off-by: sunshilong Tested-by: sunshilong --- kernel/cobalt/heap.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/kernel/cobalt/heap.c b/kernel/cobalt/heap.c index d01a2e0..5d14a47 100644 --- a/kernel/cobalt/heap.c +++ b/k

[PATCH v2] kernel:cobalt:heap: replace kzalloc with vmalloc

2020-08-15 Thread Pintu Kumar via Xenomai
ernel. Signed-off-by: Pintu Kumar Signed-off-by: sunshilong Tested-by: sunshilong --- kernel/cobalt/heap.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/kernel/cobalt/heap.c b/kernel/cobalt/heap.c index d01a2e0..17b392b 100644 --- a/kernel/cobalt/heap.c +++ b/kernel/c

[PATCH] kernel:cobalt:heap: replace kzalloc with kvzalloc

2020-08-01 Thread Pintu Kumar via Xenomai
t try to use kmalloc and if fails, fallback to vmalloc. Signed-off-by: Pintu Kumar Signed-off-by: sunshilong Tested-by: sunshilong --- kernel/cobalt/heap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/cobalt/heap.c b/kernel/cobalt/heap.c index d01a2e0..312b41f 1

[Xenomai] verify rtserial interface using test application

2018-08-24 Thread Pintu Kumar
Hi, What is the best way to test rtserial interface, without having the actual serial interface ? I have seen: demo/alchemy/cobalt/cross-link.c But I don't have any clue to verify it. I have the following boards available with 4.9 Xenomai patches: - Intel SkyLake x86 PC with Ubuntu 16.04 - Beagle

Re: [Xenomai] message pipe stream test application

2018-08-22 Thread Pintu Kumar
On Wed, Aug 22, 2018 at 10:49 AM Greg Gallagher wrote: > > > For your example, you are sending a message in rt_pipe_stream not a > stream of bytes. You'll need to change what you are sending in the > rt_pipe_stream call. I have a rough example working, I should have > time to post it hopefully i

Re: [Xenomai] message pipe stream test application

2018-08-21 Thread Pintu Kumar
g > > On Tue, Aug 21, 2018 at 11:06 AM, Pintu Kumar wrote: > > Hi, > > > > This is the technique I am using: > > > > struct pipe_message { > > char value[32]; > > }; > > > > volatile int terminate = 0; > > > &

Re: [Xenomai] message pipe stream test application

2018-08-21 Thread Pintu Kumar
w to modify this code to make stream work, which behavior should be different from normal rt_pipe_write. Currently, with this implement, only the first byte is getting printed after the read, in regular thread. I want the the whole stream of characters should be printed at once. Thanks, Pintu On Tue,

Re: [Xenomai] message pipe stream test application

2018-08-21 Thread Pintu Kumar
ead by the regular thread at once. I implemented it in similar way, but in the end regular thread could read only one char (first char) in the end. Thanks, Pintu On Tue, Aug 21, 2018 at 12:12 AM Greg Gallagher wrote: > > On Mon, Aug 20, 2018 at 2:02 PM, Pintu Kumar wrote: > > May be both

Re: [Xenomai] message pipe stream test application

2018-08-20 Thread Pintu Kumar
May be both. Specially I want to know how to use may use of rt_pipe_steam with a use case example. On Mon, 20 Aug 2018, 10:10 pm Greg Gallagher, wrote: > On Mon, Aug 20, 2018 at 9:48 AM, Pintu Kumar wrote: > > Dear Greg, > > > > If you have any idea can you please expla

Re: [Xenomai] message pipe stream test application

2018-08-20 Thread Pintu Kumar
Dear Greg, If you have any idea can you please explain how rt_pipe_stream works with an example. I need to prepare a demo, to demonstrate the usefulness of rt_pipe_stream API. Thanks, Pintu On Fri, Aug 17, 2018 at 6:56 PM Pintu Kumar wrote: > > Hi, > > I wanted to understand how rt

[Xenomai] message pipe stream test application

2018-08-17 Thread Pintu Kumar
Hi, I wanted to understand how rt_pipe_stream works and how it can be useful. I wanted to create a demo application using it. But currently I could not figure out how to make use of it. I saw a sample pipe application under: lib/alchemy/testsuite/pipe-1.c. Based on this I am trying to create a ne

Re: [Xenomai] beaglebone: arm: xeno-test gives segmentation fault - test dlopen failed

2018-06-29 Thread Pintu Kumar
On Fri, Jun 29, 2018 at 9:37 PM Henning Schild wrote: > > Am Fri, 29 Jun 2018 17:52:44 +0200 > schrieb Philippe Gerum : > > > On 06/29/2018 05:42 PM, Henning Schild wrote: > > > Hi, > > > > > > i had a closer look. You might want to revert the following commit > > > https://gitlab.denx.de/Xenomai/

Re: [Xenomai] Xenomai Meetup at Embedded Linux Conference Europe

2018-06-29 Thread Pintu Kumar
Sorry, my proposal is dropped due to lack of review time and change in focus. May be I will try again for next year. On Wed, Jun 27, 2018 at 11:07 PM Pintu Kumar wrote: > > Hi, > > I am also planning to submit a talk at ELC-E about Xenomai and my > pratical experience. > Ho

Re: [Xenomai] beaglebone: arm: xeno-test gives segmentation fault - test dlopen failed

2018-06-28 Thread Pintu Kumar
fig from xenomai-3 - configure.ac CONFIG_XENO_LIBS_DLOPEN > Henning > > Am Wed, 27 Jun 2018 18:51:03 +0530 > schrieb Pintu Kumar : > > > Hi, > > > > Sorry, but both the below patches are already applied to my > > xenomai-next repo: build: link dlopen libs w

Re: [Xenomai] Kernel oops during rtnet loopback usage on x86_64 (e1000e)

2018-06-28 Thread Pintu Kumar
hanks, Pintu On Wed, Jun 27, 2018 at 11:40 PM Philippe Gerum wrote: > > On 06/27/2018 07:29 PM, Pintu Kumar wrote: > > On Wed, Jun 27, 2018 at 10:47 PM Greg Gallagher > > wrote: > >> > >> I don't think Beaglebone is supported currently in RTNet. &g

Re: [Xenomai] Xenomai Meetup at Embedded Linux Conference Europe

2018-06-27 Thread Pintu Kumar
Hi, I am also planning to submit a talk at ELC-E about Xenomai and my pratical experience. However it should be approved first and funded by my company. If everything goes well, then I will be also interested in this meetup at ELC-E. Thanks, Pintu On Wed, Jun 27, 2018 at 3:39 PM Jan Kiszka wro

Re: [Xenomai] Kernel oops during rtnet loopback usage on x86_64 (e1000e)

2018-06-27 Thread Pintu Kumar
27, 2018 at 1:13 PM, Pintu Kumar wrote: > > On Wed, Jun 27, 2018 at 9:47 PM Jan Kiszka wrote: > >> > >> On 2018-06-27 16:12, Pintu Kumar wrote: > >> >> With nosmap, that particular issue should no longer occur (at least as > >> >> long as we

Re: [Xenomai] KERNEL OOPS : hikey620: arm64 - while xecuting xeno-test

2018-06-27 Thread Pintu Kumar
to be stalled or starved. I'm > doing some RPI3 testing and I haven't seen this yet. Which board is > this? Is it from 96boards with the octacore A53? > > -Greg > > On Tue, Jun 26, 2018 at 7:56 AM, Pintu Kumar wrote: > > Dear Greg/Philippe, > > > > I am r

Re: [Xenomai] Kernel oops during rtnet loopback usage on x86_64 (e1000e)

2018-06-27 Thread Pintu Kumar
On Wed, Jun 27, 2018 at 9:47 PM Jan Kiszka wrote: > > On 2018-06-27 16:12, Pintu Kumar wrote: > >> With nosmap, that particular issue should no longer occur (at least as > >> long as we can ask the kernel for this relaxation), so I suspect the > >> other eff

Re: [Xenomai] Kernel oops during rtnet loopback usage on x86_64 (e1000e)

2018-06-27 Thread Pintu Kumar
an Kiszka wrote: > > On 2018-06-27 12:56, Pintu Kumar wrote: > > Dear Jan, > > > >> What means "now"? Did it work before? What was the setup then? > > rtnet loopback test is working (even with older kernel) on my Virtual > > Box with Ubuntu 32-bit. &g

Re: [Xenomai] beaglebone: arm: xeno-test gives segmentation fault - test dlopen failed

2018-06-27 Thread Pintu Kumar
Hi, Sorry, but both the below patches are already applied to my xenomai-next repo: build: link dlopen libs with "nodelete" smokey/dlopen: fix testcase Still I am facing dlopen issue. Is there any other patches I am missing? Thanks, Pintu On Wed, Jun 27, 2018 at 6:47 PM Pintu Ku

Re: [Xenomai] beaglebone: arm: xeno-test gives segmentation fault - test dlopen failed

2018-06-27 Thread Pintu Kumar
lopen: fix testcase Sorry, but can you list down all 3 commits. Thanks, Pintu Thanks, Pintu On Wed, Jun 27, 2018 at 6:30 PM Pintu Kumar wrote: > > Dear Henning, > > Thanks so much for your reply. > I am actually using xenomai-next branch. > With last commit as: > commit ffb68112e

Re: [Xenomai] beaglebone: arm: xeno-test gives segmentation fault - test dlopen failed

2018-06-27 Thread Pintu Kumar
9bc190133a98769a30 > and 2 parents > All three are in v3.0.7, which hopefully solves your problem. > > regards, > Henning > > Am Wed, 27 Jun 2018 16:11:43 +0530 > schrieb Pintu Kumar : > > > Dear Henning, > > > > I saw your commit regarding dlopen here:

Re: [Xenomai] Kernel oops during rtnet loopback usage on x86_64 (e1000e)

2018-06-27 Thread Pintu Kumar
n Wed, Jun 27, 2018 at 3:50 PM Jan Kiszka wrote: > > On 2018-06-26 13:08, Pintu Kumar wrote: > > Dear Jan, > > > > Till now I haven't had any success for running my rtnet demo test > > either or x86 or arm. > > I even upgraded to xenomai-next (both kernel

Re: [Xenomai] beaglebone: arm: xeno-test gives segmentation fault - test dlopen failed

2018-06-27 Thread Pintu Kumar
have any clue regarding this issue. Earlier xeno-test worked for us, but after this commit xeno-test is failing. Currently we dont need dlopen test. So, please let us know how to disable dlopen test to pass the xeno-test report. Thanks, Pintu On Tue, Jun 26, 2018 at 11:07 PM Pintu Kumar

Re: [Xenomai] beaglebone: arm: xeno-test gives segmentation fault - test dlopen failed

2018-06-26 Thread Pintu Kumar
One more thing, On x86 xeno-test works fine even with dlopen. This problem is seen only of arm and arm64 boards. Thanks, Pintu On Tue, Jun 26, 2018 at 10:16 PM Pintu Kumar wrote: > > Ok Greg thanks a lot. > > Yes, I can recompile it, but for now I want to get rid of this dlopen &g

Re: [Xenomai] beaglebone: arm: xeno-test gives segmentation fault - test dlopen failed

2018-06-26 Thread Pintu Kumar
tonight. I'll confirm if this test is > crashing on all platforms or just BB. To disable I believe you'll > have to recompile the tests. > > -Greg > > On Tue, Jun 26, 2018 at 10:43 AM, Pintu Kumar wrote: > > Dear Greg, > > > > Please let me know how to

Re: [Xenomai] beaglebone: arm: xeno-test gives segmentation fault - test dlopen failed

2018-06-26 Thread Pintu Kumar
e it right now. Please help! Thanks, Pintu On Tue, Jun 26, 2018 at 12:52 PM Pintu Kumar wrote: > > Hi, > I am using Kernel 4.9.51 for beagle bone black with xenomai patches > from xenomai-next repo. > > I have installed xenomai-3-next using below: > # ./scripts/bootstrap &g

[Xenomai] KERNEL OOPS : hikey620: arm64 - while xecuting xeno-test

2018-06-26 Thread Pintu Kumar
Dear Greg/Philippe, I am running xeno-test on hikey620, with following details: - Kernel version: 4.9.51 - ipipe: ipipe-core-4.9.51-arm64-4.patch - xenomai-3 : next branch - xenomai-3 commit until: scripts/prepare-kernel.sh: drop left overs from obsolete ports - version: 3.1-devel Build xenomai n

Re: [Xenomai] Kernel oops during rtnet loopback usage on x86_64 (e1000e)

2018-06-26 Thread Pintu Kumar
esponse coming (I am getting no prints on console, but client is terminated). If there is any work around to make rtnet works, please let me know. Thanks, Pintu On Mon, Jun 25, 2018 at 6:26 PM Pintu Kumar wrote: > > > As a workaround, run the kernel with nosmap. > OK, I gu

[Xenomai] beaglebone: arm: xeno-test gives segmentation fault - test dlopen failed

2018-06-26 Thread Pintu Kumar
Hi, I am using Kernel 4.9.51 for beagle bone black with xenomai patches from xenomai-next repo. I have installed xenomai-3-next using below: # ./scripts/bootstrap # ./configure --with-pic --with-core=cobalt --enable-smp --disable-tls --enable-dlopen-libs # make # make install After that when I ru

Re: [Xenomai] Kernel oops during rtnet loopback usage on x86_64 (e1000e)

2018-06-25 Thread Pintu Kumar
8-06-21 15:41, Jan Kiszka wrote: > > On 2018-06-21 13:55, Jan Kiszka wrote: > >> On 2018-06-21 13:20, Pintu Kumar wrote: > >>> Dear Jan, Greg, > >>> > >>> Is there any pointer about this issue? > >>> This is blocking my next work.. >

Re: [Xenomai] Kernel oops during rtnet loopback usage on x86_64 (e1000e)

2018-06-21 Thread Pintu Kumar
Pintu Kumar wrote: > > Hi, > > Can someone help me with this issue. > I compared the xenomai-3 next repo > (next/kernel/drivers/net/stack/ipv4/udp/udp.c) and the changes are > almost same. > Now I am stuck with this.. > Please help! > > Is there any test available

Re: [Xenomai] Kernel oops during rtnet loopback usage on x86_64 (e1000e)

2018-06-20 Thread Pintu Kumar
Pintu Kumar wrote: > > Hi, > I upgraded to xenomai-3-next branch for x86, but still rtnet loopback > is crashing for me. > The xenomai kernel is used from 4.9.51 until > commit: 10605b427b1408cdc6926f7c25d4a4eda527da8d > Author: Philippe Gerum > Date: Mon Ma

Re: [Xenomai] Kernel oops during rtnet loopback usage on x86_64 (e1000e)

2018-06-19 Thread Pintu Kumar
trace 90458bf1f92e3557 ]--- On Thu, Apr 26, 2018 at 9:53 PM Jan Kiszka wrote: > > On 2018-04-25 13:36, Pintu Kumar wrote: > > Dear Jan, > > > > Thank you so much for your reply. > > I will try the latest stable version to check again. > > Is ipipe patches (li

Re: [Xenomai] rpi3 - very high negative latency for simple xeno task

2018-06-17 Thread Pintu Kumar
Dear Greg, Do you have any comment about this? On Wed, Jun 6, 2018 at 11:11 AM Pintu Kumar wrote: > > Hi, > > I have a simple demo program, which just create one rt_task (using > native API) and inside the task, I just rt_printf "some logs" for 10 > times, with

Re: [Xenomai] Applying arch specific ipipe patches - commit by commit

2018-06-08 Thread Pintu Kumar
me know. If no, then can you suggest me some method to do it. Thanks, Pintu On Wed, Jun 6, 2018 at 5:22 PM, Pintu Kumar wrote: > On Tue, Jun 5, 2018 at 6:47 PM, Philippe Gerum wrote: >> On 06/05/2018 03:04 PM, Pintu Kumar wrote: >>> Dear Philippe, >>> >>

Re: [Xenomai] Applying arch specific ipipe patches - commit by commit

2018-06-06 Thread Pintu Kumar
On Tue, Jun 5, 2018 at 6:47 PM, Philippe Gerum wrote: > On 06/05/2018 03:04 PM, Pintu Kumar wrote: >> Dear Philippe, >> >> Thank you so much for your reply. >> Yes, I already cloned the common ipipe.git and looked into it. >> >> I tried to do the following:

[Xenomai] rpi3 - very high negative latency for simple xeno task

2018-06-05 Thread Pintu Kumar
Hi, I have a simple demo program, which just create one rt_task (using native API) and inside the task, I just rt_printf "some logs" for 10 times, with 100us interval. Today I checked this program first time on Raspberry Pi 3, Model B. Xenomai: 3.0.6 ARCH = arm32 Kernel: 4.9.80 for rpi3 Here is

Re: [Xenomai] Applying arch specific ipipe patches - commit by commit

2018-06-05 Thread Pintu Kumar
nks, Pintu On Tue, Jun 5, 2018 at 5:55 PM, Philippe Gerum wrote: > On 06/04/2018 12:24 PM, Pintu Kumar wrote: >> Dear Greg, >> >> I have one specific requirement regarding applying ipipe and xenomai >> patches to our kernel. >> >> I am using kernel vers

[Xenomai] Applying arch specific ipipe patches - commit by commit

2018-06-04 Thread Pintu Kumar
Dear Greg, I have one specific requirement regarding applying ipipe and xenomai patches to our kernel. I am using kernel version: 4.9.51. I have all arch (x86, arm, arm64) changes in single kernel itself. On this kernel I want to first apply "ipipe_4.9.51_x86" patches and then in the same kernel

[Xenomai] Creating my own folder inside xenomai/demo

2018-05-30 Thread Pintu Kumar
Hi, I wanted to create my own folder "pintu" inside xenomai-3/demo and put my sample test program (say: hello.c) to make it build as part of xenomai - make I added like this: demo/Makefile.am: +SUBDIRS = posix alchemy PINTU /xenomai-3-next$ ls demo/PINTU/ Makefile.am hello.c I want to build thi

Re: [Xenomai] xenomai 3.0.6 on RPi3 overheating when idle

2018-05-29 Thread Pintu Kumar
Hi, I have done Xenomai-3 bring up RPi3-ModelB-2015 with 32-bit Kernel and Raspbian, but without Yocto. I havent changed any kernel configuration and so far I havent seen any heating issue. But I have just finished the bring up and havent tested any functionality yet. May be you can compare the k

[Xenomai] Xenomai porting for proprietary drivers

2018-05-07 Thread Pintu Kumar
Hi, I heard that Xenomai porting is not possible for a proprietary drivers. That means we cannot convert our internal drivers to Xenomai RTDM interface. Is this true ? If this is true, is it mentioned somewhere ? Is it because of some licensing issue ? Thanks, Pintu ___

Re: [Xenomai] Kernel oops during rtnet loopback usage on x86_64 (e1000e)

2018-04-25 Thread Pintu Kumar
, Jan Kiszka wrote: > On 2018-04-25 10:39, Pintu Kumar wrote: >> Hi, >> >> I got kernel oops when using rtnet loopback with simple udp socket on >> Xenomai 3.0 >> >> STEPS: >> = >> # lspci -knn | grep -i ethernet -A 3 >> 00:1f

Re: [Xenomai] question on installing xenomai 3 on raspberry pi 3

2018-04-25 Thread Pintu Kumar
Hi, Sometime back I have given a presentation about "Tizen bring up on Raspberry Pi 2". https://elinux.org/images/7/78/Pkumar.pdf Here I have described about how to replace the kernel image on rpi2. Please refer to slide:22,23 Hope this method should work even on rpi3 as well. Thanks, Pintu

[Xenomai] Kernel oops during rtnet loopback usage on x86_64 (e1000e)

2018-04-25 Thread Pintu Kumar
Hi, I got kernel oops when using rtnet loopback with simple udp socket on Xenomai 3.0 STEPS: = # lspci -knn | grep -i ethernet -A 3 00:1f.6 Ethernet controller [0200]: Intel Corporation Ethernet Connection (2) I219-V [8086:15b8] (rev 31) Subsystem: ASUSTeK Computer Inc. Ethernet C

Re: [Xenomai] overlapping and missing output with large data range

2018-04-24 Thread Pintu Kumar
On Mon, Apr 23, 2018 at 3:20 PM, Pintu Kumar wrote: > Hi All, > > I am facing one problem with Xenomai when I try to output some 2-3 > columns data on console, may be 1000 or 1+ ranges. > > This is one sample output: > {{{ > . > . > 1369 100.232 0.2

[Xenomai] large number of negative latency with simple task sleep

2018-04-24 Thread Pintu Kumar
Hi, I have one doubt with xenomai in general. I execute a task that does_nothing and simply sleeps for 100 us. For sleep I used: rt_task_wait_period, with a period of 100 us. I execute this nothing() function 10 times and measure latency difference across this, and then print the latency values us

[Xenomai] overlapping and missing output with large data range

2018-04-23 Thread Pintu Kumar
Hi All, I am facing one problem with Xenomai when I try to output some 2-3 columns data on console, may be 1000 or 1+ ranges. This is one sample output: {{{ . . 1369 100.232 0.232 1370 100.247 0.247 1371 100.240 0.240 1372 100.2181987 100.491 0.491 1988 100.758 0.758 1989 100.794 0.79

[Xenomai] Secondary mode switch monitoring

2018-04-20 Thread Pintu Kumar
Hi, Is there a way to monitor secondary mode switching happening for Xenomai dual kernel? Like for example: For my particular application, I wanted to know how many times the primary mode to secondary mode switching actually happened, for some specific scenario. If there is already some way to fin

Re: [Xenomai] rt_task_wait_period() does not return -EWOULDBLOCK

2018-04-18 Thread Pintu Kumar
: > No problem, I won't be able to look into it till the weekend so any > help debugging is appreciated :) > > On Wed, Apr 18, 2018 at 10:59 AM, Mauro Salvini > wrote: >> On Wed, 2018-04-18 at 20:01 +0530, Pintu Kumar wrote: >>> On Wed, Apr 18, 2018 at 7:15 PM, Gre

Re: [Xenomai] rt_task_wait_period() does not return -EWOULDBLOCK

2018-04-18 Thread Pintu Kumar
rt any specific commit and tried. May be I can check that later. Note: as of now the problem is seen only when using rt_task_wait_period(NULL). When I use rt_task_sleep() then it works fine. Thanks, Pintu > -Greg > > On Wed, Apr 18, 2018 at 9:17 AM, Pintu Kumar wrote: >&g

Re: [Xenomai] rt_task_wait_period() does not return -EWOULDBLOCK

2018-04-18 Thread Pintu Kumar
Oh yes. I was about to post the similar problem with rt_task_wait_period(NULL). I did "git pull" for my xenomai-3 repo and installed the newer version. After that weird things started happening to my previous test program for latency measurement. The latency value started giving all wrong results.

[Xenomai] Plotting neat graph for my latency data

2018-04-12 Thread Pintu Kumar
Hi, I have created my own latency tests program to measure latency using Xenomai API for some use cases. Now, I have a requirement to plot the latency difference in the form of graph. I tried cyclictest and gluplot, with my sample program running in back ground to capture latency information. But

Re: [Xenomai] How to use rtdm serial driver on beagle bone

2018-04-11 Thread Pintu Kumar
Hi, In BeagleBone there is no direct serial interface available. However, we use Serial over USB (ttyUSB0) to connect to minicom. In this case it is possible to use this interface over Xenomai and check latency improvement? Thanks, Pintu On Wed, Apr 11, 2018 at 7:34 PM, Greg Gallagher wrote:

[Xenomai] How to use rtdm serial driver on beagle bone

2018-04-11 Thread Pintu Kumar
Hi, I want to use Xenomai RTDM serial driver on Beagle Bone. Is xeno_16550A supported on Beagle Bone ? Can you please guide me how to use it on Beagle Bone? What are the alternate options if this is not supported? Thanks, Pintu ___ Xenomai mailing l

Re: [Xenomai] [RTNET]: Which rtnet driver to use with beagle bone

2018-04-10 Thread Pintu Kumar
On Tue, Apr 10, 2018 at 7:20 PM, Lennart Sorensen wrote: > On Tue, Apr 10, 2018 at 06:52:11PM +0530, Pintu Kumar wrote: >> Hi, >> >> I am using: >> Beagle Bone Kernel: 4.9.51 >> Xenomai: 3.0.6 >> Board: Beagle Bone White >> >> When I enable RTNET

[Xenomai] [RTNET]: Which rtnet driver to use with beagle bone

2018-04-10 Thread Pintu Kumar
Hi, I am using: Beagle Bone Kernel: 4.9.51 Xenomai: 3.0.6 Board: Beagle Bone White When I enable RTNET, the following ethernet drivers are build. $ ls drivers/xenomai/net/drivers/*.ko drivers/xenomai/net/drivers/rt_8139too.ko drivers/xenomai/net/drivers/rt_eepro100.ko drivers/xenomai/net/drivers/

Re: [Xenomai] Simple application for invoking rtdm driver

2018-04-03 Thread Pintu Kumar
Hi, Any clue on this? I guess native and alchemy skin is internally same. Then why rt_dev_xxx does not work with alchemy skin. Please let me know the alternate API to invoke rtdm driver with alchemy skin. Thanks, Pintu On Mon, Apr 2, 2018 at 7:18 PM, Pintu Kumar wrote: > Hi, > >

Re: [Xenomai] Simple application for invoking rtdm driver

2018-04-02 Thread Pintu Kumar
STALL_PATH)/xeno-config --skin=$(skin) --cflags) -O2 -lrtdm I am using Xenomai-3.0. Is there any specific library I need to include for alchemy with RTDM API? Thanks, Pintu On Tue, Mar 27, 2018 at 6:35 PM, Philippe Gerum wrote: > On 03/27/2018 02:09 PM, Pintu Kumar wrote: >> Hi, >

Re: [Xenomai] Problem with rt_cond_wait and rt_cond_signal combination

2018-03-30 Thread Pintu Kumar
On Fri, Mar 30, 2018 at 1:34 PM, Philippe Gerum wrote: > On 03/30/2018 08:53 AM, Pintu Kumar wrote: >> On Fri, Mar 30, 2018 at 12:12 PM, Pintu Kumar wrote: >>> On Wed, Mar 28, 2018 at 11:02 PM, Philippe Gerum wrote: >>>> On 03/28/2018 07:20 PM, Pintu Kumar wrote: &

Re: [Xenomai] Problem with rt_cond_wait and rt_cond_signal combination

2018-03-29 Thread Pintu Kumar
On Fri, Mar 30, 2018 at 12:12 PM, Pintu Kumar wrote: > On Wed, Mar 28, 2018 at 11:02 PM, Philippe Gerum wrote: >> On 03/28/2018 07:20 PM, Pintu Kumar wrote: >>> On Wed, Mar 28, 2018 at 8:37 PM, Philippe Gerum wrote: >>>> On 03/28/2018 09:54 AM, Pintu Kumar wrote

Re: [Xenomai] Problem with rt_cond_wait and rt_cond_signal combination

2018-03-29 Thread Pintu Kumar
On Wed, Mar 28, 2018 at 11:02 PM, Philippe Gerum wrote: > On 03/28/2018 07:20 PM, Pintu Kumar wrote: >> On Wed, Mar 28, 2018 at 8:37 PM, Philippe Gerum wrote: >>> On 03/28/2018 09:54 AM, Pintu Kumar wrote: >>>> Hi, >>>> >>>> We are facin

Re: [Xenomai] Problem with rt_cond_wait and rt_cond_signal combination

2018-03-28 Thread Pintu Kumar
On Wed, Mar 28, 2018 at 8:37 PM, Philippe Gerum wrote: > On 03/28/2018 09:54 AM, Pintu Kumar wrote: >> Hi, >> >> We are facing one issue on Xenomai-3 on x86_64 system. >> Kernel: 4.9.51 >> ipipe version: 4 >> # /usr/xenomai/sbin/version >> Xenomai/c

Re: [Xenomai] Debug prints inside xenomai library code

2018-03-28 Thread Pintu Kumar
Hi, Any clue on this one? How to add our own debug printf statements inside xenomai library function? Thanks, Pintu On Tue, Mar 27, 2018 at 10:08 PM, Pintu Kumar wrote: > Hi, > > How to add our own debug printf statements inside xenomai library > function, in order to debug somethi

Re: [Xenomai] Problem with rt_cond_wait and rt_cond_signal combination

2018-03-28 Thread Pintu Kumar
On Wed, Mar 28, 2018 at 1:44 PM, Julien Blanc wrote: > Le mercredi 28 mars 2018 à 13:24 +0530, Pintu Kumar a écrit : >> Hi, >> >> We are facing one issue on Xenomai-3 on x86_64 system. >> Kernel: 4.9.51 >> ipipe version: 4 >> # /usr/xenomai/sbin/version >

Re: [Xenomai] Problem with rt_cond_wait and rt_cond_signal combination

2018-03-28 Thread Pintu Kumar
On Wed, Mar 28, 2018 at 1:42 PM, Philippe Gerum wrote: > On 03/28/2018 09:54 AM, Pintu Kumar wrote: >> Hi, >> >> We are facing one issue on Xenomai-3 on x86_64 system. >> Kernel: 4.9.51 >> ipipe version: 4 >> # /usr/xenomai/sbin/version >> Xenomai/c

[Xenomai] Problem with rt_cond_wait and rt_cond_signal combination

2018-03-28 Thread Pintu Kumar
Hi, We are facing one issue on Xenomai-3 on x86_64 system. Kernel: 4.9.51 ipipe version: 4 # /usr/xenomai/sbin/version Xenomai/cobalt v3.0.6 -- #5956064 (2018-03-20 12:13:33 +0100) Its a very simple API level test. We create a condition variable and wait for the condition inside a task. Then, we

[Xenomai] Debug prints inside xenomai library code

2018-03-27 Thread Pintu Kumar
Hi, How to add our own debug printf statements inside xenomai library function, in order to debug something. ? When I add some printf/rt_printf/fprintf(stderr) statements, it never get printed on console. We even tried with --enable-debug=full flag but it did not help. It looks like standard inpu

Re: [Xenomai] Simple application for invoking rtdm driver

2018-03-27 Thread Pintu Kumar
u On Mon, Mar 26, 2018 at 8:39 PM, Philippe Gerum wrote: > On 03/26/2018 03:12 PM, Pintu Kumar wrote: >> Dear Philippe, >> >> Thank you so much for your reply. >> Please find my comments below. >> >> >> On Sun, Mar 25, 2018 at 5:39 PM, Philippe Gerum w

Re: [Xenomai] Simple application for invoking rtdm driver

2018-03-26 Thread Pintu Kumar
Dear Philippe, Thank you so much for your reply. Please find my comments below. On Sun, Mar 25, 2018 at 5:39 PM, Philippe Gerum wrote: > On 03/23/2018 01:40 PM, Pintu Kumar wrote: >> Dear Philippe, >> >> Thank you so much for your detailed explanation. >> >> F

Re: [Xenomai] Upgrading xenomai-3 patches in existing xenomai kernel

2018-03-23 Thread Pintu Kumar
On Fri, Mar 23, 2018 at 7:14 PM, Henning Schild wrote: > Am Fri, 23 Mar 2018 19:06:30 +0530 > schrieb Pintu Kumar : > >> Hi, >> >> I just came across a situation about Xenomai upgrade, and wanted to >> know your opinion. >> >> Some 4 months back, I ap

Re: [Xenomai] FUSE package error while doing configure for xenomai-3

2018-03-23 Thread Pintu Kumar
On Fri, Mar 23, 2018 at 7:10 PM, Henning Schild wrote: > Am Fri, 23 Mar 2018 18:55:27 +0530 > schrieb Pintu Kumar : > >> On Fri, Mar 23, 2018 at 5:12 PM, Henning Schild >> wrote: >> > Am Fri, 23 Mar 2018 11:36:48 +0530 >> > schrieb Pintu Kumar : >> &

[Xenomai] Upgrading xenomai-3 patches in existing xenomai kernel

2018-03-23 Thread Pintu Kumar
Hi, I just came across a situation about Xenomai upgrade, and wanted to know your opinion. Some 4 months back, I applied Xenomai-3 (and ipipe) patches to my x86 kernel 4.9.51, using the prepare_kernel script, and I am using it since then. But, now I wanted to upgrade to latest Xenomai kernel pat

Re: [Xenomai] FUSE package error while doing configure for xenomai-3

2018-03-23 Thread Pintu Kumar
On Fri, Mar 23, 2018 at 5:12 PM, Henning Schild wrote: > Am Fri, 23 Mar 2018 11:36:48 +0530 > schrieb Pintu Kumar : > >> Hi, >> >> I am trying to install xenomai-3 again. >> # ./script/bootstrap >> >> After this, when I do conf

Re: [Xenomai] Simple application for invoking rtdm driver

2018-03-23 Thread Pintu Kumar
tching happening in case of my RTDM driver. Is there any other way to check this issue and improve latency with rtdm driver ? If you have any other pointers/suggestions, please let me know. Thanks, Pintu On Tue, Mar 20, 2018 at 6:39 PM, Philippe Gerum wrote: > On 03/20/2018 01:00 PM, Pintu Ku

[Xenomai] FUSE package error while doing configure for xenomai-3

2018-03-22 Thread Pintu Kumar
Hi, I am trying to install xenomai-3 again. # ./script/bootstrap After this, when I do configure, it is stopped at FUSE # ./configure checking whether the registry should be enabled... no ./configure: line 13838: syntax error near unexpected token `FUSE,' ./configure: line 13838: `

Re: [Xenomai] Simple application for invoking rtdm driver

2018-03-20 Thread Pintu Kumar
On Tue, Mar 20, 2018 at 5:15 PM, Philippe Gerum wrote: > On 03/20/2018 12:31 PM, Pintu Kumar wrote: >> On Tue, Mar 20, 2018 at 3:02 PM, Philippe Gerum wrote: >>> On 03/20/2018 08:26 AM, Pintu Kumar wrote: >>>> On Tue, Mar 20, 2018 at 10:57 AM, Pintu Kumar wrote: &

Re: [Xenomai] Simple application for invoking rtdm driver

2018-03-20 Thread Pintu Kumar
On Tue, Mar 20, 2018 at 3:02 PM, Philippe Gerum wrote: > On 03/20/2018 08:26 AM, Pintu Kumar wrote: >> On Tue, Mar 20, 2018 at 10:57 AM, Pintu Kumar wrote: >>> On Tue, Mar 20, 2018 at 9:03 AM, Greg Gallagher >>> wrote: >>>> If you want to use open,

Re: [Xenomai] Simple application for invoking rtdm driver

2018-03-20 Thread Pintu Kumar
On Tue, Mar 20, 2018 at 10:57 AM, Pintu Kumar wrote: > On Tue, Mar 20, 2018 at 9:03 AM, Greg Gallagher wrote: >> If you want to use open, read, write you need to specify in the >> makefile to use the posix skin. You need something like these in your >> Makefile: >

Re: [Xenomai] Simple application for invoking rtdm driver

2018-03-19 Thread Pintu Kumar
alid API for Xenomai 3.0 ? Or there is something else? Is there any reference ? Thanks, Pintu > > -Greg > > > > On Mon, Mar 19, 2018 at 9:42 PM, Pintu Kumar wrote: >> Hi, >> >> I have developed a simple rtdm driver using: open, read_rt, write_rt, close. &

[Xenomai] Simple application for invoking rtdm driver

2018-03-19 Thread Pintu Kumar
Hi, I have developed a simple rtdm driver using: open, read_rt, write_rt, close. Now I wanted to test it using a Xenomai native application, using native skin. Here are my observation. 1) If I use normal open, read, write system call, then Xenomai reports that normal read/write method is used fo

Re: [Xenomai] segmentation fault during rt_task_unblock

2018-03-16 Thread Pintu Kumar
le to give some pointers so that I can debug more and fix a suitable fix? Thank You! Regards, Pintu On Fri, Mar 16, 2018 at 2:55 PM, Philippe Gerum wrote: > On 03/15/2018 05:47 PM, Pintu Kumar wrote: >> Hi, >> >> Please find the complete program below: > > Thanks. Th

Re: [Xenomai] segmentation fault during rt_task_unblock

2018-03-15 Thread Pintu Kumar
return err; } - $ sudo ./bind_test PINTU: bind_task: Inside bind_server -1 PINTU: Before rt_task_unblock Segmentation fault (core dumped) On Thu, Mar 15, 2018 at 6:38 PM, Philippe Gerum wrote: > On 03/15/2018 12:07 PM, Pintu Kumar wro

Re: [Xenomai] segmentation fault during rt_task_unblock

2018-03-15 Thread Pintu Kumar
On Thu, Mar 15, 2018 at 3:29 PM, Philippe Gerum wrote: > On 03/15/2018 10:51 AM, Pintu Kumar wrote: >> On Thu, Mar 15, 2018 at 2:08 PM, Philippe Gerum wrote: >>> On 03/15/2018 09:24 AM, Pintu Kumar wrote: >>>> Hi All, >>>> >>>> I am trying t

Re: [Xenomai] segmentation fault during rt_task_unblock

2018-03-15 Thread Pintu Kumar
On Thu, Mar 15, 2018 at 2:08 PM, Philippe Gerum wrote: > On 03/15/2018 09:24 AM, Pintu Kumar wrote: >> Hi All, >> >> I am trying to test rt_cond_bind() and rt_task_unblock() API with a >> simple thread program using the Xenomai native skin, and with xenomai >>

[Xenomai] segmentation fault during rt_task_unblock

2018-03-15 Thread Pintu Kumar
Hi All, I am trying to test rt_cond_bind() and rt_task_unblock() API with a simple thread program using the Xenomai native skin, and with xenomai 3.0.6. But, during call to rt_task_unblock(&task1) from the main function, I get the segmentation fault. # ./cond_bin_test PINTU: Inside bind_test tas

Re: [Xenomai] [xenomai] inconsistency in latency behavior

2018-03-08 Thread Pintu Kumar
On Thu, Mar 8, 2018 at 8:49 PM, Philippe Gerum wrote: > On 03/08/2018 03:16 PM, Pintu Kumar wrote: >> Hi, >> >> On x86_64 machine (with xenomai 3.0) sometimes I observed a huge >> variance and inconsistency in latency data when measuring latency >> delay using cl

[Xenomai] [xenomai] inconsistency in latency behavior

2018-03-08 Thread Pintu Kumar
Hi, On x86_64 machine (with xenomai 3.0) sometimes I observed a huge variance and inconsistency in latency data when measuring latency delay using clock_nanosleep. I observed this inconsistency in both normal kernel, as well as xenomai kernel. I observed the same, even when using the direct xenoma

Re: [Xenomai] [NATIVE API] Xenomai native API equivalent for clock_gettime

2018-03-08 Thread Pintu Kumar
is the right one to use? Will there be any difference in measuring latency ? > -Greg > > On Thu, Mar 1, 2018 at 7:37 AM, Pintu Kumar wrote: >> Hi, >> >> I have one question about Xenomai native API >> >> 1) What is the native API equivalent for clock_gettime(

[Xenomai] [NATIVE API] Xenomai native API equivalent for clock_gettime

2018-03-01 Thread Pintu Kumar
Hi, I have one question about Xenomai native API 1) What is the native API equivalent for clock_gettime() ? I have seen this Xenomai native API guide but I could not find it. https://xenomai.org/documentation/xenomai-2.6/pdf/native-api.pdf I have a simple pthread based POSIX application which I

Re: [Xenomai] [RTDM] Converting existing Linux char driver to rtdm driver

2018-03-01 Thread Pintu Kumar
in write function. Thank you for the clue :) Regards, Pintu > On Wed, Feb 28, 2018 at 7:16 AM, Pintu Kumar wrote: >> Hi, >> >> I am getting some error while building a RTDM driver. Please check my >> inline reply. >> >> >> On Tue, Feb 27, 2018 at 7:09 PM

Re: [Xenomai] [RTDM] Converting existing Linux char driver to rtdm driver

2018-02-28 Thread Pintu Kumar
Hi, I am getting some error while building a RTDM driver. Please check my inline reply. On Tue, Feb 27, 2018 at 7:09 PM, Pintu Kumar wrote: > Dear Greg & Jan, > > Thank you so much for your help. Yes I am looking into existing sample > drivers to understand. I think

Re: [Xenomai] [RTDM] Converting existing Linux char driver to rtdm driver

2018-02-27 Thread Pintu Kumar
about the RTDM > framework. The other question is do you need at RTDM driver? Could > you use the UDD framework instead? With the UDD framework you just > need to support a small RTDM driver and the rest of the driver lives > in user space. > > -Greg > > On Mon, Feb 26,

Re: [Xenomai] [RTDM] Converting existing Linux char driver to rtdm driver

2018-02-26 Thread Pintu Kumar
use only rt for all other calls. Thanks, Pintu On 26 Feb 2018 7:54 pm, "Jan Kiszka" wrote: > On 2018-02-26 12:26, Pintu Kumar wrote: > > Hi, > > > > I have a sample linux char driver which I am registering using normal > > misc_register/deregister function.

[Xenomai] [RTDM] Converting existing Linux char driver to rtdm driver

2018-02-26 Thread Pintu Kumar
Hi, I have a sample linux char driver which I am registering using normal misc_register/deregister function. In this driver, I have used, open, read, write, ioctl, release system calls. Now I wanted to convert this driver to RTDM interface and compare it. Later I wanted to add some more use cases

[Xenomai] [RTDM/rt-serial] How to verify 16550A on Ubuntu desktop

2018-02-26 Thread Pintu Kumar
Hi, I have enabled RTDM serial driver 16550A in kernel and I am using it with x86-64 Ubuntu 16.04 desktop. CONFIG_XENO_DRIVERS_16550A=y CONFIG_XENO_DRIVERS_16550A_PIO=y Now I wanted to verify this driver using a sample application such as : cross-link But, when I check, the driver is not availabl

Re: [Xenomai] [rtnet] - help required with rtnet interface bring up

2018-02-21 Thread Pintu Kumar
On Wed, Feb 21, 2018 at 6:02 PM, Pintu Kumar wrote: > On Wed, Feb 21, 2018 at 4:27 PM, Paul Wilkinson wrote: >> >> >> -Original Message- >> From: Xenomai [mailto:xenomai-boun...@xenomai.org] On Behalf Of Pintu Kumar >> Sent: 20 February 2018 16:58 >&

Re: [Xenomai] [rtnet] - help required with rtnet interface bring up

2018-02-21 Thread Pintu Kumar
On Wed, Feb 21, 2018 at 4:27 PM, Paul Wilkinson wrote: > > > -Original Message- > From: Xenomai [mailto:xenomai-boun...@xenomai.org] On Behalf Of Pintu Kumar > Sent: 20 February 2018 16:58 > To: Jan Kiszka ; Pintu Kumar > Cc: xenomai@xenomai.org > Subject: Re:

  1   2   >