[Xenomai] bcm2835 ipipe question

2018-02-10 Thread Greg Gallagher
I'm getting the raspberry pi zero images ready and I see the following in the dmesg: [0.00] WARNING: CPU: 0 PID: 0 at /home/ggallagher/devel/emb_linux/ipipe-arm/kernel/irq/chip.c:57 irq_set_chip+0x7c/0xac [0.00] irqchip ARMCTRL-level is not pipeline-safe! [0.00] Modules

Re: [Xenomai] bcm2835 ipipe question

2018-02-11 Thread Greg Gallagher
Thanks Philippe, that worked. Working through a couple more issues and the bcm2835 and bcm2836 images should be ready to share. -Greg On Sun, Feb 11, 2018 at 4:44 AM, Philippe Gerum <r...@xenomai.org> wrote: > On 02/11/2018 02:57 AM, Greg Gallagher wrote: >> I'm getting the ra

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

2018-02-13 Thread Greg Gallagher
Have you confirmed that the rtnet drivers for your system are loaded? Are they built into the kernel or built as modules? -Greg On Tue, Feb 13, 2018 at 8:26 AM, Pintu Kumar wrote: > Hi, > > I am expecting some reply again with rtnet setup on ubuntu (virtual > box) using

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

2018-02-13 Thread Greg Gallagher
t; On Tue, Feb 13, 2018 at 8:09 PM, Greg Gallagher <g...@embeddedgreg.com> wrote: >> Have you confirmed that the rtnet drivers for your system are loaded? >> Are they built into the kernel or built as modules? >> > > Yes, I have enabled RTDM and RTNET in kernel con

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

2018-02-13 Thread Greg Gallagher
Did you get the output of lspci -knn as Jan suggested? -Greg On Tue, Feb 13, 2018 at 1:10 PM, Pintu Kumar <pintu.p...@gmail.com> wrote: > On Tue, Feb 13, 2018 at 10:29 PM, Greg Gallagher <g...@embeddedgreg.com> > wrote: >> I'll defer to someone with more experience wit

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

2018-02-13 Thread Greg Gallagher
then the Xenomai driver can load and bind properly. On Tue, Feb 13, 2018 at 1:10 PM, Pintu Kumar <pintu.p...@gmail.com> wrote: > On Tue, Feb 13, 2018 at 10:29 PM, Greg Gallagher <g...@embeddedgreg.com> > wrote: >> I'll defer to someone with more experience with RTNet, but I'd

Re: [Xenomai] Xenomai community meeting 2018, meeting minutes

2018-02-09 Thread Greg Gallagher
> -- > local: > Philippe Gerum, Karim Yaghmour, Jan Leupold, Sebastian Smolorz, Jeroen > Van den Keybus, Niels Wellens, Jan Kiszka, Henning Schild > remote: > Greg Gallagher, Dmitriy Cherkasov > > Ipipe: > -- > - it was decided that the following

Re: [Xenomai] Xenomai community meeting 2018, meeting minutes

2018-02-09 Thread Greg Gallagher
gt; On 02/08/2018 12:32 PM, Greg Gallagher wrote: > >> geared towards Zynq but they can be generalized. Once I get these >> raspberry pi images to a point where I can share, I'd be happy to work >> with someone on gearing some of the getting started material towards >&g

Re: [Xenomai] Asynchronous processing on Xenomai

2018-02-10 Thread Greg Gallagher
Do you mean getting started with Xenomai in general? Or specifically asynchronous processing? -Greg   Original Message   From: poonamsalech...@gmail.com Sent: February 10, 2018 4:06 AM To: xenomai@xenomai.org Subject: [Xenomai] Asynchronous processing on Xenomai Greetings of the day, Hello,

Re: [Xenomai] Nvidia TX1/TX2 Boards

2018-02-20 Thread Greg Gallagher
: February 19, 2018 7:20 AM To: g...@embeddedgreg.com Cc: xenomai@xenomai.org Subject: Re: [Xenomai] Nvidia TX1/TX2 Boards Thanks. I' ve red about RPI as reference board, does rtnet works on them ? which boards/model should I give a try ? Alessio On 16/02/2018 17:41, Greg Gallagher wrote

Re: [Xenomai] [was Nvidia TX1/TX2 Boards] rpi rtnet

2018-02-20 Thread Greg Gallagher
, Feb 20, 2018 at 9:14 AM, alessio margan <alessio.mar...@iit.it> wrote: > Hi, > > > On 20/02/2018 13:14, Greg Gallagher wrote: >> >> Hi, >> The RPI images I've been working on are close to being ready to share. >> I have a couple bcm2835 issues

Re: [Xenomai] Nvidia TX1/TX2 Boards

2018-02-16 Thread Greg Gallagher
As far as I know there is no Ipipe patch for L4T so you'd have to use mainline Linux if you'd like to run Xenomai on the TX1 or TX2. I'm not sure what tools this would leave you with for the GPU but I don't think Cuda works with the nouveau drivers. The other issue that I've seen on x86

Re: [Xenomai] interrupt on edge problem, unexpected IRQ trap

2018-02-26 Thread Greg Gallagher
As Philippe mentioned, they are some missing pieces that need to be added to the ipipe. The link Philippe provided will give you guidance on how to make those changes to your custom kernel. The other option is you could use the ipipe-arm tree and the mainline kernel. Also, unrelated, the gpios

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

2018-02-26 Thread Greg Gallagher
You'd have to decide what functionality you want with respect to rt and non rt for your driver. What's confusing about the context? The gpio driver is pretty up to date, you can look at it for some guidance. Unfortunately there isn't a lot of documentation at the moment, so your best bet is to

Re: [Xenomai] Kernel panic during kernel bootup on arm64 qemu

2018-06-21 Thread Greg Gallagher
. Hopefully i'll have some results in the next two week or so. -Greg On Thu, Jun 21, 2018 at 9:56 AM, gengdongjiu wrote: > Sorry, I discription is not right, the Xenomai branch is next not stable > 3.x. Do you ever run it using kvm qemu? thanks a lot > > > > 发件人:Greg Gallagher > 收

Re: [Xenomai] Kernel panic during kernel bootup on arm64 qemu (e1000e)

2018-06-21 Thread Greg Gallagher
For ARM64 you need to use the Xenomai next branch not the stable release. -Greg On Thu, Jun 21, 2018 at 8:27 AM, gengdongjiu wrote: > Hi >I use the stable 3.x Xenomai and ipipe-4.9.y, and run it using below qemu > commands: > qemu-kvm -enable-kvm -m 1024 -cpu host -machine

Re: [Xenomai] System Lockup while idle

2018-08-01 Thread Greg Gallagher
On Mon, Jul 30, 2018 at 3:05 PM, Jackson Jones wrote: > We have an app running Xenomai 3.0.7 on an i.MX6 quad-core processor. We > are using processor affinity to have different tasks bound to different > cores. > > When the app runs on the target and is idle it will freeze the entire > system

Re: [Xenomai] ioctl call long time

2018-08-10 Thread greg gallagher
On 2018-08-10 03:50 AM, Шевченко Тарас Григорьевич wrote: Good day! I try to use ioctl from user space to call ioctl_rt in my module code user space QDateTime t1 = QDateTime::currentDateTime(); for (int ij =0; ij<1000; ij++) { ret=ioctl(fpga_fd, XDMA_EXCHANGE_DATA, lenErpPcie_wr); // if

Re: [Xenomai] Xenomai on Raspberry pi 2, 3 - Userspace task is interrupted?

2018-08-09 Thread Greg Gallagher
this situation ONLY happens on RPI2,3 (BCM2857). Regards, On Thu, Aug 9, 2018 at 12:52 AM greg gallagher <[1]g...@embeddedgreg.com> wrote: If you use these functions your test will run in secondary mode. You need to install the rtdm bcm2835_gpio driver for your test t

Re: [Xenomai] Xenomai on Raspberry pi 2, 3 - Userspace task is interrupted?

2018-08-08 Thread greg gallagher
ase, both process time and worst time reduce (for sure). But again, worst time on rpi2,3 is larger than 350% process time, while for rpi0,1 worst time ~ 120% process time. Regards, On Wed, Aug 8, 2018 at 8:12 PM Greg Gallagher <mailto:g...@embeddedgreg.com>> wrote: How are you s

Re: [Xenomai] Build instructions for Xenomai outdated?

2018-08-15 Thread greg gallagher
On 2018-08-15 06:17 AM, Per Oberg wrote: I find that the build instructions on the wiki seems outdated: https://gitlab.denx.de/Xenomai/xenomai/wikis/Installing_Xenomai_3 I'm not completely sure about this however. It suggests in several places building using mainline kernel and a ipipe-patch.

Re: [Xenomai] Xenomai on Raspberry pi 2, 3 - Userspace task is interrupted?

2018-08-08 Thread Greg Gallagher
How are you setting up the gpio read and write? Is it possible to post a code snippet for the read and write? Greg   Original Message   From: moph...@gmail.com Sent: August 8, 2018 6:45 AM To: xenomai@xenomai.org Reply-to: moph...@gmail.com Subject: [Xenomai] Xenomai on Raspberry pi 2, 3 -

Re: [Xenomai] [SPAM] Re: Issue with Xenomai 3.0.6, I-Pipe 4.9.51 and Linux 4.9.51 on Xilinx Zynq 7000 MPSOC

2018-08-11 Thread Greg Gallagher
I know this is an old thread, but if anyone else is hitting this issue, the new 4.9.x release of the ipipe and the latest xenomai stable is working well on Zynq. Please let me know if anyone is seeing errors. -Greg On Fri, Apr 27, 2018 at 10:30 AM, Greg Gallagher wrote: > I'll update my

Re: [Xenomai] message pipe stream test application

2018-08-20 Thread Greg Gallagher
On Mon, Aug 20, 2018 at 9:48 AM, Pintu Kumar wrote: > 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

Re: [Xenomai] message pipe stream test application

2018-08-20 Thread Greg Gallagher
On Mon, Aug 20, 2018 at 2:02 PM, Pintu Kumar wrote: > 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, Pint

Re: [Xenomai] message pipe stream test application

2018-08-21 Thread Greg Gallagher
On Tue, Aug 21, 2018 at 1:47 PM, Pintu Kumar wrote: > On Tue, Aug 21, 2018 at 9:32 PM Greg Gallagher wrote: >> >> HI, >> I"m not sure if I understand how you are using stream. Stream >> stores data in an internal buffer until the reciever wakes up and &

Re: [Xenomai] message pipe stream test application

2018-08-21 Thread Greg Gallagher
On Tue, Aug 21, 2018 at 1:47 PM, Pintu Kumar wrote: > On Tue, Aug 21, 2018 at 9:32 PM Greg Gallagher wrote: >> >> HI, >> I"m not sure if I understand how you are using stream. Stream >> stores data in an internal buffer until the reciever wakes up and &

Re: [Xenomai] message pipe stream test application

2018-08-21 Thread Greg Gallagher
a time. Then real-time task call rt_pipe_stream >> which keeps storing all the characters until read is called. >> >> Finally, when regular thread calls "read" then all the data from >> stream will be read by the regular thread at once. >> >> I implement

Re: [Xenomai] wait for data from RTDM device

2018-07-19 Thread Greg Gallagher
Have you tried rtdm_task_sleep? -Greg On Thu, Jul 19, 2018 at 10:27 AM, Шевченко Тарас Григорьевич wrote: > Good day! > In my project I want to send data by use ioctl_rt function > than wait 1 ms and return data from device if present or error if time expired > which function prefere to use ?

Re: [Xenomai] how can I use the Xenomai functions in ROS1?

2018-08-31 Thread Greg Gallagher
Hi, On Thu, Aug 30, 2018 at 2:32 PM Matheus Pinto wrote: > Hi everbody, > > I have my reasons for wanting to integrate ROS1 (Robot Operating System) > with Xenomai. > > I would just like it to be possible to use the functions of ROS1 (create > node, publish, subscribe, ...) within a real-time

Re: [Xenomai] [RFC][PATCH] Add CONTRIBUTING guide and workflow explanation

2018-09-04 Thread Greg Gallagher
On Tue, Sep 4, 2018 at 1:31 PM Jan Kiszka wrote: > Shall both help new comers to understand in which form patches are > requested and what will happen to them normally after submitting them. > > Signed-off-by: Jan Kiszka > --- > > I'm looking for honest feedback on this! Is it too much? Is

Re: [Xenomai] [PATCH v2] Add CONTRIBUTING guide and workflow explanation

2018-09-09 Thread Greg Gallagher
On Thu, Sep 6, 2018 at 8:48 AM Jan Kiszka wrote: > Shall both help new comers to understand in which form patches are > requested and what will happen to them normally after submitting them. > > Signed-off-by: Jan Kiszka > --- > > Changes in v2: > - hint to use checkpatch.pl > - stable merge

Re: [Xenomai] How to locate the max latency

2018-07-04 Thread Greg Gallagher
Did youale any changes in menuconfig when building the kernel? Greg   Original Message   From: qi.zh...@intel.com Sent: July 4, 2018 3:27 AM To: xenomai@xenomai.org Subject: [Xenomai] How to locate the max latency BTW, I already disabled the i915 power saving by adding "i915.enable_dc=0

Re: [Xenomai] [roscore issue for "Operation not permitted"] pthread_mutex_lock failed: operation not permitted

2018-07-11 Thread Greg Gallagher
Have you looked at any of the ROS frameworks that use Xenomai? Is the expectation that roscore runs in the secondary domain and your ros based application runs in the primary domain? -Greg On Wed, Jul 11, 2018 at 10:03 AM, gengdongjiu wrote: > Hi, Philippe/ Gilles/ Jan/ Alexis/others, > > > >

Re: [Xenomai] Xenomai on VAR-SOM-MX6

2018-07-12 Thread Greg Gallagher
Can you confirm that you are building the Xenomai libs and utils? There should be a make install step after you do the configure step -Greg On Wed, Jul 11, 2018 at 5:34 PM, Jake Burris wrote: > The following are the steps that I have taken. Am I missing something? : > > 1) git clone

Re: [Xenomai] simple rtdm driver x86

2018-03-12 Thread Greg Gallagher
Are you using Xenomai 3 or 2? I believe from your previous posts you are using Xenomai 3, include rtdm/driver.h , not rtdm_driver.h. -Greg On Mon, Mar 12, 2018 at 10:09 AM, Шевченко Тарас Григорьевич wrote: > Hi, > could somebody share simple rtdm driver for

Re: [Xenomai] simple rtdm driver x86

2018-03-12 Thread Greg Gallagher
option > is there another trigger or another way to do it ? > > > - Original Message - > From: "Greg Gallagher" <g...@embeddedgreg.com> > To: "Шевченко Тарас Григорьевич" <shevchenko.ta...@triolcorp.com.ua> > Cc: "xenomai" <xe

Re: [Xenomai] simple rtdm driver x86

2018-03-12 Thread Greg Gallagher
rnel. > [ 1536.073532] rtdm_hello: module verification failed: signature and/or > required key missing - tainting kernel > yeti@yeti-UDOO-x86:~/develop/rtdm_hello$ dmesg|grep RTDM > [ 1536.075500] RTDM gpio init. > [ 1536.075617] RTDM numero 266: > > > > - Or

Re: [Xenomai] simple rtdm driver x86

2018-03-15 Thread Greg Gallagher
is possible to remind you if I get fail with gpio? > > Yes I able to build from repo , I wrote about , today earlier > > I used some different way - like in your instruction > > make bzImage modules > make install > > > - Original Message - > From: "Greg

Re: [Xenomai] interrupt on edge problem, unexpected IRQ trap

2018-03-15 Thread Greg Gallagher
ree(gpioButton); printk("The number of intr is %d \n",num_of_intr); } module_init(rtdm_init); module_exit(rtdm_exit); MODULE_LICENSE("GPL"); On Thu, Mar 8, 2018 at 10:39 AM, Greg Gallagher <g...@embeddedgreg.com> wrote: > I'll have to run this on my known working

Re: [Xenomai] interrupt on edge problem, unexpected IRQ trap

2018-03-15 Thread Greg Gallagher
I should also mention I did my testing on a Zynq microzed board. On Thu, Mar 15, 2018 at 4:01 PM, Greg Gallagher <g...@embeddedgreg.com> wrote: > Using the 4.14 arm ipipe tree, xenomai stable 3.0.x (from git) I was > able to receive an interrupt, if you are still having issues c

Re: [Xenomai] cant compile rtdm module

2018-03-08 Thread Greg Gallagher
is not many examples for x86_64 > > - Original Message ----- > From: "Greg Gallagher" <g...@embeddedgreg.com> > To: "Шевченко Тарас Григорьевич" <shevchenko.ta...@triolcorp.com.ua> > Cc: "xenomai" <xenomai@xenomai.org> > Sent

Re: [Xenomai] Xenomai lunch @ ELC NA next week

2018-03-08 Thread Greg Gallagher
Hi, Unfortunately due to last minute work commitments I won't be able to attend ELC this year. Good luck to the people presenting and if it's possible to post your slides at some point that would be great :). -Greg On Thu, Mar 8, 2018 at 1:26 AM, Jan Kiszka wrote: >

Re: [Xenomai] cant compile rtdm module

2018-03-09 Thread Greg Gallagher
/xenoInstall/rtdm_hello/rtdm_hello.c:3: ./include/asm-generic/xenomai/syscall.h:24:34: fatal error: asm/xenomai/features.h: No such file or directory compilation terminated. please help - Original Message - From: "Greg Gallagher" <g...@embeddedgreg.com> To: "Шевче

Re: [Xenomai] cant compile rtdm module

2018-03-09 Thread Greg Gallagher
lib*-dir|libdir|user-libdir > --core > --info > --compat > > > > - Original Message - > From: "Шевченко Тарас Григорьевич" <shevchenko.ta...@triolcorp.com.ua> > To: "Greg Gallagher" <g...@embeddedgreg.com> &g

Re: [Xenomai] interrupt on edge problem, unexpected IRQ trap

2018-03-08 Thread Greg Gallagher
I'll have to run this on my known working set up and see what I can find. The only difference between gpio-core and your file is gpio-core uses the same label in the gpio_request and the rtdm_irq_request. For fun you can try to pass "gpio203" to rtdm_irq_request. I'll have to take a deeper look

Re: [Xenomai] interrupt on edge problem, unexpected IRQ trap

2018-03-07 Thread Greg Gallagher
I'd have to see more of the code to understand how you are setting that up. If you look at the rtdm gpio code that is in Xenomai (kernel/drivers/gpio/gpio-core.c) that would be a good example to work from. Are you planning on using the gpio pins from user space or from another rtdm driver? IF

Re: [Xenomai] cant compile rtdm module

2018-03-07 Thread Greg Gallagher
Are you trying to build a custom RTDM module or a built in one? The built in ones can be enabled in the menuconfig stage of the kernel build. What board are you using? UDOO-x86? -Greg On Wed, Mar 7, 2018 at 11:17 AM, Шевченко Тарас Григорьевич wrote: > > Hi,

Re: [Xenomai] Context switching with POSIX skin

2018-04-08 Thread Greg Gallagher
...@embeddedgreg.com; rodrigo.amadu...@uam.es Cc: xenomai@xenomai.org Subject: Re: [Xenomai] Context switching with POSIX skin On 04/06/2018 04:00 PM, Greg Gallagher wrote: > I'll look into it this weekend and see if I can get the demo running > on Zynq or one of my boards. > > On Thu, Apr 5, 201

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

2018-04-10 Thread Greg Gallagher
If rtnet is something you require for beaglebone then it's definitely worth trying. I don't think this will work right out of the box, so expect that there will be some additional work to get it running. On Tue, Apr 10, 2018 at 10:11 AM, Pintu Kumar wrote: > On Tue, Apr 10,

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

2018-04-11 Thread Greg Gallagher
What serial chip is on the beaglebone? If it's not supported then your best bet is to port the Linux driver to rtdm. Greg   Original Message   From: pintu.p...@gmail.com Sent: April 11, 2018 6:40 AM To: xenomai@xenomai.org Subject: [Xenomai] How to use rtdm serial driver on beagle bone Hi,

Re: [Xenomai] Xenomai and I-pipe source code analysis

2018-04-11 Thread Greg Gallagher
Philippe has submitted some very good documentation about the overall design of the ipipe. https://git.xenomai.org/ipipe-noarch.git/commit/?id=c77d53324e7cb47295a3c11c1bf0919385ccc23b That document should help with an overall understanding. Next I'd reccomending going through the history of

Re: [Xenomai] configuring kernel patched with xenomai

2018-04-11 Thread Greg Gallagher
Please post your make commands, and the steps you followed to configure Xenomai. Greg   Original Message   From: tummalapudisaisrav...@gmail.com Sent: April 11, 2018 9:11 AM To: xenomai@xenomai.org Subject: [Xenomai] configuring kernel patched with xenomai I have built 4.9.51 kernel in linux

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

2018-04-11 Thread Greg Gallagher
On Wed, Apr 11, 2018 at 9:45 AM, Lennart Sorensen <lsore...@csclub.uwaterloo.ca> wrote: > On Wed, Apr 11, 2018 at 06:58:45AM -0400, Greg Gallagher wrote: >> What serial chip is on the beaglebone? If it's not supported then your best >> bet is to port the Linux driver t

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

2018-04-12 Thread Greg Gallagher
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 <g...@embeddedgreg.com> wrote: > I think someone tried this with the uart on the PI, the basic steps > would be (IMHO) >  -unbind the curr

[Xenomai] Increase RTDM_MAX_MINOR

2018-04-13 Thread Greg Gallagher
Currently in the rtdm gpio drivers if the pin numbers we are trying to register in rtdm space are above 1024 we will fail to register the pins and the driver fails to load. This happens because we use RTDM_MAX_MINOR to limit the number of devices that can be registered. For the gpio case adding a

[Xenomai] [PATCH] Set irq-bcm2835 pipeline safe

2018-04-08 Thread Greg Gallagher
--- drivers/irqchip/irq-bcm2835.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/irqchip/irq-bcm2835.c b/drivers/irqchip/irq-bcm2835.c index bf8c9d4..8a1b729 100644 --- a/drivers/irqchip/irq-bcm2835.c +++ b/drivers/irqchip/irq-bcm2835.c @@ -115,6 +115,7 @@ static struct irq_chip

Re: [Xenomai] Context switching with POSIX skin

2018-04-09 Thread Greg Gallagher
, <rodrigo.amadu...@uam.es> wrote: > Quoting Greg Gallagher <g...@embeddedgreg.com>: > >> Tested on zynq zybo and microzed, the demo works. I built it from stable >> using the 4.14 ipipe-arm repo and modprobed the module at boot. Are you >> using a module or buil

Re: [Xenomai] Context switching with POSIX skin

2018-04-09 Thread Greg Gallagher
I was able to reproduce the issue, but it only happened if I didn't have the driver loaded. I would try building it as a loadable module then load it and confirm it's running using lsmod. Then run your test application. -Greg On Mon, Apr 9, 2018 at 11:13 PM, Greg Gallagher &l

Re: [Xenomai] Context switching with POSIX skin

2018-04-06 Thread Greg Gallagher
I'll look into it this weekend and see if I can get the demo running on Zynq or one of my boards. On Thu, Apr 5, 2018 at 9:25 AM, wrote: > Quoting Philippe Gerum : >> >> >> You need to enable the ipc/xddp driver (CONFIG_XENO_DRIVERS_RTIPC_XDDP) >> in

Re: [Xenomai] Context switch to secondary mode in xenomai tasks

2018-04-06 Thread Greg Gallagher
Do the tasks communicate with each other? -Greg On Fri, Apr 6, 2018 at 12:51 PM, C Smith wrote: > Hi all-- > > Our real time application has a main rt_task which runs concurrently with > several other rt_tasks (spawned using rt_task_create) and we are concerned >

Re: [Xenomai] Context switch to secondary mode in xenomai tasks

2018-04-06 Thread Greg Gallagher
main rt_task are running > periodically at different rates using rt_task_set_periodic. > > On Fri, Apr 6, 2018 at 9:54 AM, Greg Gallagher <g...@embeddedgreg.com> > wrote: >> >> Do the tasks communicate with each other? >> >> -Greg >> >> On Fri, Apr

Re: [Xenomai] cobalt equivalent of rt_task_shadow()

2018-04-04 Thread Greg Gallagher
Do you still want to use the alchemy API? rt_task_shadow is still available in Xenomai 3 -Greg On Wed, Apr 4, 2018 at 3:37 PM, Giulio Moro wrote: > On Xenomai 2.6, native API, I used to run > > rt_task_shadow(, threadName, threadPriority, T_JOINABLE | T_FPU); > > Now I am

Re: [Xenomai] cobalt equivalent of rt_task_shadow()

2018-04-04 Thread Greg Gallagher
to Cobalt (because of the > faster thread wakeup time), this is the last bit that is missing. > Thanks, > Giulio > ____ > From: Greg Gallagher <g...@embeddedgreg.com> > Sent: 04 April 2018 20:44 > To: Giulio Moro > Cc: xenomai@xeno

Re: [Xenomai] Context switch to secondary mode in xenomai tasks

2018-04-06 Thread Greg Gallagher
; xml parser definitely is switching to secondary mode, setting T_WARNSW, > causing the application to send the SIGXCPU signal, but we don't know if > it's affecting the other tasks. > > On Fri, Apr 6, 2018 at 10:17 AM, Greg Gallagher <g...@embeddedgreg.com> > wrote: >> &

[Xenomai] rpi2b 4.14 gpio

2018-04-10 Thread Greg Gallagher
For anyone that is looking at using the arm 4.14 ipipe and xenomai 3.0.x stable with raspberry pi 2b, there's an issue with the gpio driver that I'm currently looking into the issue. I don't think anyone is using this kernel but in case anyone is, I thought I would send out an FYI. -Greg

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

2018-04-18 Thread Greg Gallagher
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 <mauro.salv...@smigroup.net> wrote: > On Wed, 2018-04-18 at 20:01 +0530, Pintu Kumar wrote: >> On Wed, Apr 18, 2018 at 7:15 PM, Gr

Re: [Xenomai] Questions about IRQ

2018-04-18 Thread Greg Gallagher
, Apr 18, 2018 at 5:16 AM, Jean-Marc Lenoir <jean-marc.len...@univ-grenoble-alpes.fr> wrote: > Thanks for the explanations! It's clear for me now. > UDD seems to be exactly what I would like, so if you find some examples > please tell me. > > Jean-Marc > > > Le 17/04/2018 à

Re: [Xenomai] Questions about IRQ

2018-04-17 Thread Greg Gallagher
This API is the API for the cobalt kernel and used in kernel space. These functions aren't available in user space. Your user program is failing to build because the data structures exist in the kernel and not in user space. You can create an RTDM driver to handle the IRQs from the PCI

Re: [Xenomai] kernel panic - xenomai3.0.6

2018-04-17 Thread Greg Gallagher
I don't see a log attached, my email may have filtered it? On Tue, Apr 17, 2018 at 11:27 AM, Fazio Maurizio wrote: > Good morning, > I’ve attached a kernel panic problem that occurs during the execution of my > application. > Have you some ideas? > > Cpu:

Re: [Xenomai] Secondary mode switch monitoring

2018-04-20 Thread Greg Gallagher
Have you read over the link below? https://xenomai.org/2014/06/finding-spurious-relaxes/ There's been some discussion on the list about this subject recently take a look at the archive. -Greg On Fri, Apr 20, 2018 at 12:28 PM, Pintu Kumar wrote: > Hi, > > Is there a way

[Xenomai] [PATCH] Increase RTDM_MAX_MINOR to 4096 form 1024

2018-04-18 Thread Greg Gallagher
Increase the number of RTDM devices that are allowed to be registered to 4096 to allow gpio drivers with higher pin numbers to be able to register in rtdm space. --- include/cobalt/kernel/rtdm/driver.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [Xenomai] Unknown symbol in module

2018-04-21 Thread Greg Gallagher
> > How i can fix this ? > > С уважением и надеждой на сотрудничество, > Шевченко Т.Г. > > - Исходное сообщение - > От: "Greg Gallagher" <g...@embeddedgreg.com> > Кому: "Шевченко Тарас Григорьевич" <shevchenko.ta...@triolcorp.com.ua&g

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

2018-04-25 Thread Greg Gallagher
Usually on pi the kernel image is called kernel.img, kernel7.img or kernel8.img unless otherwise specified in your config.txt file. You can either rename your zimage to kernel.img (or similar) or add kernel=zImage in your config.txt.

Re: [Xenomai] Unknown symbol in module

2018-04-23 Thread Greg Gallagher
ble-generic.c:21: bad pgd 93ffb26f8140(0276da606700) С уважением и надеждой на сотрудничество, Шевченко Т.Г. - Original Message ----- From: "Greg Gallagher" <g...@embeddedgreg.com> To: "Шевченко Тарас Григорьевич" <shevchenko.ta...@triolcorp.com.ua> Cc: "xe

Re: [Xenomai] Cobalt vs Mercury

2018-04-23 Thread Greg Gallagher
This presentation should help: https://elinux.org/images/7/76/Kiszka.pdf Best thing to do is to google on both topics (Cobalt and Mercury), look at past discussions on the mailing list. Then if you have specific question about each core and how they impact what you are trying to achieve then

Re: [Xenomai] Illegal instruction/bad syscall

2018-04-24 Thread Greg Gallagher
Have you considered using mainline? I'm not sure if anyone has been testing the raspberry pi tree against stable xenomai-3. I've validated most of the xenomai-3 stable branch against raspberry pi 2b (mainline) so I've looked at most of the bcm code recently and i haven't git the syscall issue.

Re: [Xenomai] kernel panic - xenomai3.0.6

2018-04-17 Thread Greg Gallagher
NVM, found it On Tue, Apr 17, 2018 at 12:41 PM, Greg Gallagher <g...@embeddedgreg.com> wrote: > I don't see a log attached, my email may have filtered it? > > On Tue, Apr 17, 2018 at 11:27 AM, Fazio Maurizio > <maurizio.fa...@leonardocompany.com> wrote: >> Good morn

Re: [Xenomai] git://git.xenomai.org/ipipe.git points to Linux 3.18

2018-03-26 Thread Greg Gallagher
What branch did you checkout? Try git checkout ipipe-4.9.y or if you want 4.9.51 you can use the git tag ipipe-core-4.9.51-x86-5. On Mon, Mar 26, 2018 at 3:05 PM, Pham, Phong wrote: > > Hi, > > git clone git://git.xenomai.org/ipipe.git and I get Linux version 3.18 w/ the >

Re: [Xenomai] Context switching with POSIX skin

2018-04-02 Thread Greg Gallagher
I believe you want to look at xddp for communication between RT and non RT threads: http://xenomai.org/documentation/xenomai-3/html/xeno3prm/xddp-echo_8c-example.html I don't have much experience with using message queues for RT to non-RT communications but I believe using a message queue with a

[Xenomai] Armv7 testing update

2018-03-19 Thread Greg Gallagher
Hi, I thought I would post a quick update to some armv7 testing I was doing while creating an image for the raspberry pi 2b board. I've put together a list of boards that we currently support in Xenomai (by supported I mean we have drivers for the board) and if they boot with the new 4.14

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

2018-03-23 Thread Greg Gallagher
When you run the prepare_kernel script add the flag --verbose. If you have ipipe patches already applied to your kernel you should see a message about ipipe patches have already been applied. It will just add the new Xenomai bits. Greg   Original Message   From: pintu.p...@gmail.com Sent:

Re: [Xenomai] interrupt on edge problem, unexpected IRQ trap

2018-03-05 Thread Greg Gallagher
I should have access to a beaglebone green this week. I wasn't able to reproduce it with a zynq or raspberry Pi 2 board. Greg   Original Message   From: branislav.sa...@automatika.imp.bg.ac.rs Sent: March 5, 2018 3:24 AM To: branislav.sa...@automatika.imp.bg.ac.rs Cc: xenomai@xenomai.org

Re: [Xenomai] interrupt on edge problem, unexpected IRQ trap

2018-02-26 Thread Greg Gallagher
Can you provide what version of Xenomai you are using and what ipipe patch you are using? It also may be helpful if you could provide some sort of sample code that reproduces the problem. -Greg On Mon, Feb 26, 2018 at 8:46 AM, wrote: > Hello, > > I have

Re: [Xenomai] interrupt on edge problem, unexpected IRQ trap

2018-02-26 Thread Greg Gallagher
; > Best, > Giulio > > > From: Xenomai <xenomai-boun...@xenomai.org> on behalf of Greg Gallagher > <g...@embeddedgreg.com> > Sent: 26 February 2018 15:37 > To: branislav.sa...@automatika.imp.bg.ac.rs > Cc: Xenomai@xenomai.org >

Re: [Xenomai] interrupt on edge problem, unexpected IRQ trap

2018-02-26 Thread Greg Gallagher
or what matters). > Thanks, > Giulio > ____ > From: Greg Gallagher <g...@embeddedgreg.com> > Sent: 26 February 2018 16:06 > To: Giulio Moro > Cc: branislav.sa...@automatika.imp.bg.ac.rs; Xenomai@xenomai.org > Subject: Re: [Xenomai] i

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

2018-02-26 Thread Greg Gallagher
ading this with > > system("/sbin/modprobe xeno_16550A io=0x3F8 irq=4"); > > better solution are welcome  > > Regards > Johann > >> -Ursprüngliche Nachricht- >> Von: Xenomai [mailto:xenomai-boun...@xenomai.org] Im Auftrag von Pintu >

Re: [Xenomai] RTnet

2018-02-28 Thread Greg Gallagher
Григорьевич <shevchenko.ta...@triolcorp.com.ua> wrote: > But is it possible to use Xenomai 3 with RTnet ? > Could you point me right way to do it ? > > С уважением и надеждой на сотрудничество, > Шевченко Т.Г. > > - Original Message ----- > From: "Gre

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

2018-02-28 Thread Greg Gallagher
.close = dummy_close, > }, > }; > - > > Please let me know how to fix this error ? > > > Thanks, > Pintu > > >> >> 5) When I install the RTDM driver (using insmod or modprobe),

Re: [Xenomai] RTnet

2018-02-28 Thread Greg Gallagher
It looks like Xenomai 3.05 is not supported with the instructions you are following. -Greg On Wed, Feb 28, 2018 at 9:13 AM, Шевченко Тарас Григорьевич wrote: > > Hi! > > I do it first time and followed > http://rtt-lwr.readthedocs.io/en/latest/rtpc/rtnet.html

Re: [Xenomai] RTnet

2018-02-28 Thread Greg Gallagher
such installation > > with best regards > Taras > > > С уважением и надеждой на сотрудничество, > Шевченко Т.Г. > > - Original Message - > From: "Greg Gallagher" <g...@embeddedgreg.com> > To: "Шевченко Тарас Григорьевич" <shevchenko

Re: [Xenomai] RTnet

2018-02-28 Thread Greg Gallagher
gt; > > and apply > ../xenomai-3.0.5/scripts/prepare-kernel.sh --arch=x86_64 > --ipipe=ipipe-core-4.9.38-x86-4.patch > > then make menuconfig > > then install > and so on. > > С уважением и надеждой на сотрудничество, > Шевченко Т.Г. > > - Original

Re: [Xenomai] RTnet

2018-02-28 Thread Greg Gallagher
here ? > > > > > > > > > > С уважением и надеждой на сотрудничество, > Шевченко Т.Г. > > - Original Message - > From: "Greg Gallagher" <g...@embeddedgreg.com> > To: "Шевченко Тарас Григорьевич" <shevchenko.ta...@triolcorp.c

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

2018-03-01 Thread Greg Gallagher
Are you using Xenomai 2.6 or 3? If you are using 3 use this guide instead: https://xenomai.org/documentation/xenomai-3/html/xeno3prm/group__alchemy__timer.html Post back if nothing there can help, but you may want to loot at the source for some of the utilities that calculate latency as a

Re: [Xenomai] Issue with Xenomai 3.0.6, I-Pipe 4.9.51 and Linux 4.9.51 on Xilinx Zynq 7000 MPSOC

2018-04-26 Thread Greg Gallagher
If you load a non Xenomai kernel do you see the panic? I think there's an issue with your rootfs. I've tested zynq running on 4.14 ipipe and 4.9 ipipe with Xenomai 3.0.x stable using both a ubuntu and busybox file system with no issues. I've tested on Zybo, Minized and the Zc702 board. If it's

Re: [Xenomai] Developing RTDM driver for Xenomai Mercury

2018-10-17 Thread Greg Gallagher
As far as I know there was a proof of concept for RTDM to run in Mercury if you search the mailing list you should be able to find some info on it. I don't think that work made it's way in, so for the moment RTDM would only be availiable in the Cobalt core. I don't use Mercury that much so I

Re: [Xenomai] Xenomai v.3.0.7 on Ubuntu 18.04 and kernel 4.9.90

2018-10-11 Thread Greg Gallagher
Posting the config may help. Can you get any early printks? -Greg On Thu, Oct 11, 2018 at 7:48 AM Wojciech Domski wrote: > Hi! > > I did additional test to rule out that Xenomai is the issue. > > I have compiled kernel 4.9.90 without Xenomai and it turns out that it > works. Having this in

Re: [Xenomai] kernel BUG

2018-09-03 Thread Greg Gallagher
On Mon., Sep. 3, 2018, 10:28 a.m. leo, wrote: > > Good day! > > I'm learning Xenomai technology by reading the documentation. > The first small step is to try to push the ipipe-arm64 4.14.4 core > upstream. > Philippe's idea to consistently apply a set of patches is very good and > I almost got

Re: [Xenomai] Missing header file of RTDM driver programming interface (xenomai-v3.0.7)

2018-09-19 Thread Greg Gallagher
Did you run the prepare-kernel script? The header should be in the linux tree you are build the kernel from in /include/xenomai/rtdm/driver.h -Greg On Wed, Sep 19, 2018 at 9:28 AM 刘建康 wrote: > Hi everyone, > > I am trying to compile Igh EtherCAT master ( >

Re: [RFC] xenomai-images: test and demo image generator

2018-11-06 Thread Greg Gallagher via Xenomai
This looks really good. How easy is it to add more targets? I looked at the jailhouse-images commits to see how to add a board, is that a good place to start to see how to add a new board? -Greg On Tue, Nov 6, 2018 at 1:58 PM Jan Kiszka via Xenomai wrote: > > Hi all, > > as I was (and still

<    1   2   3   4   5   >