Skip to contentSkip to conversation

simple rtdm driver x86

Xenomai Шевченко Тарас Григорьевич 2 participants 9 messages Mar 12, 2018 – Mar 15, 2018

lore
Share & tools
lore
#1 lore raw

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

Quoted 10 lines · Шевченко Тарас Григорьевич

Hi,
could somebody share simple rtdm driver for begginers better fo x86
I try to find it but almost for arm
and i have no such rtdm_driver.h
give an advice please should I start from ?
_______________________________________________
Xenomai mailing list
[email protected]
https://xenomai.org/mailman/listinfo/xenomai

#2 lore raw

Xenomai 3
It is work! Perfect!
Now i have the same problem as below
http://xenomai.org/pipermail/xenomai/2017-May/037361.html by Nitin Kulkarni and x86

interrupt registered cat /proc/xenomai/irq

IRQ CPU0 CPU1 CPU2 CPU3
266: 0 0 0 0 rtdm_hello

but the handler is not invoked when I trigger the gpio pin.
I found http://xenomai.org/documentation/xenomai-2.6/html/api/group__rtdmirq.html#gaf4e76db13d7f7aac4be2cae59e0097bc
only RTDM_IRQTYPE_EDGE option
is there another trigger or another way to do it ?

----- Original Message -----
From: "Greg Gallagher" <[email protected]>
To: "Шевченко Тарас Григорьевич" <[email protected]>
Cc: "xenomai" <[email protected]>
Sent: Monday, March 12, 2018 4:16:03 PM
Subject: Re: [Xenomai] simple rtdm driver x86

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

Quoted 10 lines · Шевченко Тарас Григорьевич

Hi,
could somebody share simple rtdm driver for begginers better fo x86
I try to find it but almost for arm
and i have no such rtdm_driver.h
give an advice please should I start from ?
_______________________________________________
Xenomai mailing list
[email protected]
https://xenomai.org/mailman/listinfo/xenomai

#3 lore raw

Use this https://xenomai.org/documentation/xenomai-3/html/xeno3prm/index.html
for rtdm references going forward. You are running Xenomai 3, but using the docs for 2.6.

-Greg

Quoted 41 lines · Шевченко Тарас Григорьевич

Xenomai 3
It is work! Perfect!
Now i have the same problem as below
http://xenomai.org/pipermail/xenomai/2017-May/037361.html by Nitin Kulkarni and x86

interrupt registered cat /proc/xenomai/irq

IRQ CPU0 CPU1 CPU2 CPU3
266: 0 0 0 0 rtdm_hello

but the handler is not invoked when I trigger the gpio pin.
I found http://xenomai.org/documentation/xenomai-2.6/html/api/group__rtdmirq.html#gaf4e76db13d7f7aac4be2cae59e0097bc
only RTDM_IRQTYPE_EDGE option
is there another trigger or another way to do it ?

----- Original Message -----
From: "Greg Gallagher" <[email protected]>
To: "Шевченко Тарас Григорьевич" <[email protected]>
Cc: "xenomai" <[email protected]>
Sent: Monday, March 12, 2018 4:16:03 PM
Subject: Re: [Xenomai] simple rtdm driver x86

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

Quoted 10 lines · Шевченко Тарас Григорьевич

Hi,
could somebody share simple rtdm driver for begginers better fo x86
I try to find it but almost for arm
and i have no such rtdm_driver.h
give an advice please should I start from ?
_______________________________________________
Xenomai mailing list
[email protected]
https://xenomai.org/mailman/listinfo/xenomai

#4 lore raw

thank you
but not really help

----- Original Message -----
From: "Greg Gallagher" <[email protected]>
To: "Шевченко Тарас Григорьевич" <[email protected]>
Cc: "xenomai" <[email protected]>
Sent: Monday, March 12, 2018 5:46:05 PM
Subject: Re: [Xenomai] simple rtdm driver x86

Use this https://xenomai.org/documentation/xenomai-3/html/xeno3prm/index.html
for rtdm references going forward. You are running Xenomai 3, but using the docs for 2.6.

-Greg

Quoted 41 lines · Шевченко Тарас Григорьевич

Xenomai 3
It is work! Perfect!
Now i have the same problem as below
http://xenomai.org/pipermail/xenomai/2017-May/037361.html by Nitin Kulkarni and x86

interrupt registered cat /proc/xenomai/irq

IRQ CPU0 CPU1 CPU2 CPU3
266: 0 0 0 0 rtdm_hello

but the handler is not invoked when I trigger the gpio pin.
I found http://xenomai.org/documentation/xenomai-2.6/html/api/group__rtdmirq.html#gaf4e76db13d7f7aac4be2cae59e0097bc
only RTDM_IRQTYPE_EDGE option
is there another trigger or another way to do it ?

----- Original Message -----
From: "Greg Gallagher" <[email protected]>
To: "Шевченко Тарас Григорьевич" <[email protected]>
Cc: "xenomai" <[email protected]>
Sent: Monday, March 12, 2018 4:16:03 PM
Subject: Re: [Xenomai] simple rtdm driver x86

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

Quoted 10 lines · Шевченко Тарас Григорьевич

Hi,
could somebody share simple rtdm driver for begginers better fo x86
I try to find it but almost for arm
and i have no such rtdm_driver.h
give an advice please should I start from ?
_______________________________________________
Xenomai mailing list
[email protected]
https://xenomai.org/mailman/listinfo/xenomai

#5 lore raw
In reply to Greg Gallagher

could be the problem in loading out-of-tree module taints kernel.

yeti@yeti-UDOO-x86:~/develop/rtdm_hello$ dmesg|grep rtdm
[ 1536.073433] rtdm_hello: loading out-of-tree module taints kernel.
[ 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:

----- Original Message -----
From: "Greg Gallagher" <[email protected]>
To: "Шевченко Тарас Григорьевич" <[email protected]>
Cc: "xenomai" <[email protected]>
Sent: Monday, March 12, 2018 5:46:05 PM
Subject: Re: [Xenomai] simple rtdm driver x86

Use this https://xenomai.org/documentation/xenomai-3/html/xeno3prm/index.html
for rtdm references going forward. You are running Xenomai 3, but using the docs for 2.6.

-Greg

Quoted 41 lines · Шевченко Тарас Григорьевич

Xenomai 3
It is work! Perfect!
Now i have the same problem as below
http://xenomai.org/pipermail/xenomai/2017-May/037361.html by Nitin Kulkarni and x86

interrupt registered cat /proc/xenomai/irq

IRQ CPU0 CPU1 CPU2 CPU3
266: 0 0 0 0 rtdm_hello

but the handler is not invoked when I trigger the gpio pin.
I found http://xenomai.org/documentation/xenomai-2.6/html/api/group__rtdmirq.html#gaf4e76db13d7f7aac4be2cae59e0097bc
only RTDM_IRQTYPE_EDGE option
is there another trigger or another way to do it ?

----- Original Message -----
From: "Greg Gallagher" <[email protected]>
To: "Шевченко Тарас Григорьевич" <[email protected]>
Cc: "xenomai" <[email protected]>
Sent: Monday, March 12, 2018 4:16:03 PM
Subject: Re: [Xenomai] simple rtdm driver x86

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

Quoted 10 lines · Шевченко Тарас Григорьевич

Hi,
could somebody share simple rtdm driver for begginers better fo x86
I try to find it but almost for arm
and i have no such rtdm_driver.h
give an advice please should I start from ?
_______________________________________________
Xenomai mailing list
[email protected]
https://xenomai.org/mailman/listinfo/xenomai

#6 lore raw

No that shouldn't have an impact on it. I have a couple theories about what is happening but I don't have time to test them out at the moment. Hopefully I'll have some time closer to the end of the week to look into it. Where you able to build from the git repo?

-Greg

Quoted 68 lines · Шевченко Тарас Григорьевич

could be the problem in loading out-of-tree module taints kernel.

yeti@yeti-UDOO-x86:~/develop/rtdm_hello$ dmesg|grep rtdm
[ 1536.073433] rtdm_hello: loading out-of-tree module taints kernel.
[ 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:

----- Original Message -----
From: "Greg Gallagher" <[email protected]>
To: "Шевченко Тарас Григорьевич" <[email protected]>
Cc: "xenomai" <[email protected]>
Sent: Monday, March 12, 2018 5:46:05 PM
Subject: Re: [Xenomai] simple rtdm driver x86

Use this https://xenomai.org/documentation/xenomai-3/html/xeno3prm/index.html
for rtdm references going forward. You are running Xenomai 3, but using the docs for 2.6.

-Greg

Quoted 41 lines · Шевченко Тарас Григорьевич

Xenomai 3
It is work! Perfect!
Now i have the same problem as below
http://xenomai.org/pipermail/xenomai/2017-May/037361.html by Nitin Kulkarni and x86

interrupt registered cat /proc/xenomai/irq

IRQ CPU0 CPU1 CPU2 CPU3
266: 0 0 0 0 rtdm_hello

but the handler is not invoked when I trigger the gpio pin.
I found http://xenomai.org/documentation/xenomai-2.6/html/api/group__rtdmirq.html#gaf4e76db13d7f7aac4be2cae59e0097bc
only RTDM_IRQTYPE_EDGE option
is there another trigger or another way to do it ?

----- Original Message -----
From: "Greg Gallagher" <[email protected]>
To: "Шевченко Тарас Григорьевич" <[email protected]>
Cc: "xenomai" <[email protected]>
Sent: Monday, March 12, 2018 4:16:03 PM
Subject: Re: [Xenomai] simple rtdm driver x86

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

Quoted 10 lines · Шевченко Тарас Григорьевич

Hi,
could somebody share simple rtdm driver for begginers better fo x86
I try to find it but almost for arm
and i have no such rtdm_driver.h
give an advice please should I start from ?
_______________________________________________
Xenomai mailing list
[email protected]
https://xenomai.org/mailman/listinfo/xenomai

#7 lore raw

sad, to hear it
it 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 Gallagher" <[email protected]>
To: "Шевченко Тарас Григорьевич" <[email protected]>
Cc: "xenomai" <[email protected]>
Sent: Monday, March 12, 2018 6:50:47 PM
Subject: Re: [Xenomai] simple rtdm driver x86

No that shouldn't have an impact on it. I have a couple theories about what is happening but I don't have time to test them out at the moment. Hopefully I'll have some time closer to the end of the week to look into it. Where you able to build from the git repo?

-Greg

Quoted 68 lines · Шевченко Тарас Григорьевич

could be the problem in loading out-of-tree module taints kernel.

yeti@yeti-UDOO-x86:~/develop/rtdm_hello$ dmesg|grep rtdm
[ 1536.073433] rtdm_hello: loading out-of-tree module taints kernel.
[ 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:

----- Original Message -----
From: "Greg Gallagher" <[email protected]>
To: "Шевченко Тарас Григорьевич" <[email protected]>
Cc: "xenomai" <[email protected]>
Sent: Monday, March 12, 2018 5:46:05 PM
Subject: Re: [Xenomai] simple rtdm driver x86

Use this https://xenomai.org/documentation/xenomai-3/html/xeno3prm/index.html
for rtdm references going forward. You are running Xenomai 3, but using the docs for 2.6.

-Greg

Quoted 41 lines · Шевченко Тарас Григорьевич

Xenomai 3
It is work! Perfect!
Now i have the same problem as below
http://xenomai.org/pipermail/xenomai/2017-May/037361.html by Nitin Kulkarni and x86

interrupt registered cat /proc/xenomai/irq

IRQ CPU0 CPU1 CPU2 CPU3
266: 0 0 0 0 rtdm_hello

but the handler is not invoked when I trigger the gpio pin.
I found http://xenomai.org/documentation/xenomai-2.6/html/api/group__rtdmirq.html#gaf4e76db13d7f7aac4be2cae59e0097bc
only RTDM_IRQTYPE_EDGE option
is there another trigger or another way to do it ?

----- Original Message -----
From: "Greg Gallagher" <[email protected]>
To: "Шевченко Тарас Григорьевич" <[email protected]>
Cc: "xenomai" <[email protected]>
Sent: Monday, March 12, 2018 4:16:03 PM
Subject: Re: [Xenomai] simple rtdm driver x86

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

Quoted 10 lines · Шевченко Тарас Григорьевич

Hi,
could somebody share simple rtdm driver for begginers better fo x86
I try to find it but almost for arm
and i have no such rtdm_driver.h
give an advice please should I start from ?
_______________________________________________
Xenomai mailing list
[email protected]
https://xenomai.org/mailman/listinfo/xenomai

#8 lore raw

I had time to test this on a Zynq microzed board using the new 4.14 ipipe and it works without issue. What branch are you using from the Xenomai repo?

Quoted 95 lines · Шевченко Тарас Григорьевич

sad, to hear it
it 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 Gallagher" <[email protected]>
To: "Шевченко Тарас Григорьевич" <[email protected]>
Cc: "xenomai" <[email protected]>
Sent: Monday, March 12, 2018 6:50:47 PM
Subject: Re: [Xenomai] simple rtdm driver x86

No that shouldn't have an impact on it. I have a couple theories about what is happening but I don't have time to test them out at the moment. Hopefully I'll have some time closer to the end of the week to look into it. Where you able to build from the git repo?

-Greg

Quoted 68 lines · Шевченко Тарас Григорьевич

could be the problem in loading out-of-tree module taints kernel.

yeti@yeti-UDOO-x86:~/develop/rtdm_hello$ dmesg|grep rtdm
[ 1536.073433] rtdm_hello: loading out-of-tree module taints kernel.
[ 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:

----- Original Message -----
From: "Greg Gallagher" <[email protected]>
To: "Шевченко Тарас Григорьевич" <[email protected]>
Cc: "xenomai" <[email protected]>
Sent: Monday, March 12, 2018 5:46:05 PM
Subject: Re: [Xenomai] simple rtdm driver x86

Use this https://xenomai.org/documentation/xenomai-3/html/xeno3prm/index.html
for rtdm references going forward. You are running Xenomai 3, but using the docs for 2.6.

-Greg

Quoted 41 lines · Шевченко Тарас Григорьевич

Xenomai 3
It is work! Perfect!
Now i have the same problem as below
http://xenomai.org/pipermail/xenomai/2017-May/037361.html by Nitin Kulkarni and x86

interrupt registered cat /proc/xenomai/irq

IRQ CPU0 CPU1 CPU2 CPU3
266: 0 0 0 0 rtdm_hello

but the handler is not invoked when I trigger the gpio pin.
I found http://xenomai.org/documentation/xenomai-2.6/html/api/group__rtdmirq.html#gaf4e76db13d7f7aac4be2cae59e0097bc
only RTDM_IRQTYPE_EDGE option
is there another trigger or another way to do it ?

----- Original Message -----
From: "Greg Gallagher" <[email protected]>
To: "Шевченко Тарас Григорьевич" <[email protected]>
Cc: "xenomai" <[email protected]>
Sent: Monday, March 12, 2018 4:16:03 PM
Subject: Re: [Xenomai] simple rtdm driver x86

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

Quoted 10 lines · Шевченко Тарас Григорьевич

Hi,
could somebody share simple rtdm driver for begginers better fo x86
I try to find it but almost for arm
and i have no such rtdm_driver.h
give an advice please should I start from ?
_______________________________________________
Xenomai mailing list
[email protected]
https://xenomai.org/mailman/listinfo/xenomai