Where can I find .ko files
- CNCGOOS
- Offline
- Junior Member
Less
More
- Posts: 26
- Thank you received: 1
26 Sep 2024 15:01 #310835
by CNCGOOS
Where can I find .ko files was created by CNCGOOS
Hello All,
i hope that my question is in the correct corner.
I want to play with home made Component for my hal Files. I have seen en read lots of it. but in te terminal command i can not locate for example the and2.ko file. i can see the and.so file. but that is a compiled file i read.
i have the standard debian 12 preemptrt iso installation withe e MESA 7i76E card
i have also update my system to the latest version. do i have to instal somthing more ?
do someone 1 suggestion.
i hope that my question is in the correct corner.
I want to play with home made Component for my hal Files. I have seen en read lots of it. but in te terminal command i can not locate for example the and2.ko file. i can see the and.so file. but that is a compiled file i read.
i have the standard debian 12 preemptrt iso installation withe e MESA 7i76E card
i have also update my system to the latest version. do i have to instal somthing more ?
do someone 1 suggestion.
Please Log in or Create an account to join the conversation.
- Aciera
- Offline
- Administrator
Less
More
- Posts: 3946
- Thank you received: 1705
26 Sep 2024 15:20 - 26 Sep 2024 15:22 #310838
by Aciera
Replied by Aciera on topic Where can I find .ko files
to create custom real time components see:
linuxcnc.org/docs/devel/html/hal/comp.html#_compiling
[edit]
Note: For the 'halcompile' tool you need to install the 'linuxcnc-dev' package from the package manager.
linuxcnc.org/docs/devel/html/hal/comp.html#_compiling
[edit]
Note: For the 'halcompile' tool you need to install the 'linuxcnc-dev' package from the package manager.
Last edit: 26 Sep 2024 15:22 by Aciera.
Please Log in or Create an account to join the conversation.
- rodw
- Offline
- Platinum Member
Less
More
- Posts: 10737
- Thank you received: 3540
28 Sep 2024 01:53 #310934
by rodw
Replied by rodw on topic Where can I find .ko files
You don't need to know where the .ko's live
Halcompile looks after that for you. Just write your component and
sudo halcompile --install mycomp.comp
Halcompile looks after that for you. Just write your component and
sudo halcompile --install mycomp.comp
The following user(s) said Thank You: CNCGOOS
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23558
- Thank you received: 4858
28 Sep 2024 10:16 #310963
by andypugh
Replied by andypugh on topic Where can I find .ko files
I think that you only get .ko files if you are running kernel-mode realtime, ie RTAI (basically).[1]
If you are running preempt-rt then the components are compiled into .so files.
But as has been said, you don't need to know where they are normally.
[1] It's possible to run RTAI kernel and user-space Linuxcnc. And also Xenomai is supprted in both kernel and user modes too.
I don't know if you can run preempt-rt in kernel mode, but it wouldn't surprise me.
However, the main use cases are user-space preempt-rt and kernel-mode RTAI.
If you are running preempt-rt then the components are compiled into .so files.
But as has been said, you don't need to know where they are normally.
[1] It's possible to run RTAI kernel and user-space Linuxcnc. And also Xenomai is supprted in both kernel and user modes too.
I don't know if you can run preempt-rt in kernel mode, but it wouldn't surprise me.
However, the main use cases are user-space preempt-rt and kernel-mode RTAI.
Please Log in or Create an account to join the conversation.
- CNCGOOS
- Offline
- Junior Member
Less
More
- Posts: 26
- Thank you received: 1
09 Oct 2024 19:31 - 09 Oct 2024 19:32 #311668
by CNCGOOS
Replied by CNCGOOS on topic Where can I find .ko files
It works by me. Thanks all for the suggestions.
It is really easy too make som easy components: and4 for example.
It is really easy too make som easy components: and4 for example.
Last edit: 09 Oct 2024 19:32 by CNCGOOS.
Please Log in or Create an account to join the conversation.
Time to create page: 0.069 seconds