Install LinuxCNC on Pheonix Contact Panel PC

More
5 years 3 weeks ago #222729 by tommylight
That is not an RT kernel so LinuxCNC will work only in SIM mode (simulator).
To run machines it requires a real time kernel be it RT-Preempt or RTAI.

Please Log in to join the conversation.

More
5 years 2 weeks ago #222769 by IslandSpark

That is not an RT kernel so LinuxCNC will work only in SIM mode (simulator).
To run machines it requires a real time kernel be it RT-Preempt or RTAI.
 
Yes I’m aware, however getting online needs to happen before I can download and configure a real-time kernel.

Please Log in to join the conversation.

More
5 years 2 weeks ago #222773 by tommylight
Not really, network drivers are a kernel level drivers so even if you get it working when you install the RT kernel they can (not always) stop working.

Please Log in to join the conversation.

More
5 years 2 weeks ago #222787 by rodw

Not really, network drivers are a kernel level drivers so even if you get it working when you install the RT kernel they can (not always) stop working.
Yes, if you get connected to the internet, install the real time kernel first before building your network driver so its built against the PREEMP_RT kernel.

Once connected, steps are 
1. Open Synaptic, search for linux-image, install the signed PREEMPT_RT package (mark and apply)
2. Within Synaptic, search for grub-customizer and install it the same way
3. Open grub-customizer. it will be in the menu somewhere 
4. Move the PREEMPT_RT entry up so its the first entry.. Save and exit
5. Reboot into the preempt-rt kernel. confirm with uname -v
6. Add your user  to the sudoers group usermod -aG sudo your-user-name (you may need to type su first to become root)
7. build and install  your network drivers

Thats. it, we just need to build and install Linuxcnc after that.

Please Log in to join the conversation.

More
5 years 2 weeks ago #222982 by andypugh
The good news is, that by the time you get this sorted out you will be a Linux guru and the LinuxCNC install will feel trivial. :-)

Please Log in to join the conversation.

More
5 years 2 weeks ago #223122 by IslandSpark
OKay, so i managed to get the stock Linux CNC image installed once connected to the internet via the USB->Eth adapter. Im attempting to install the intel ethernet drivers at this point and when i try to make the package with make install i get

"Kernal header files not in any of the expected locations. Install appropriate kernal development package"

output of Uname -a:

Linux Plasmax 4.19.0-18-rt-amd64 #1 SMP PREEMPT RT Debian 4.19.208-1 (2021-09-29) x86_64 GNU/Li

Please Log in to join the conversation.

More
5 years 2 weeks ago #223246 by andypugh

Please Log in to join the conversation.

More
5 years 2 weeks ago #223249 by tommylight
It does require having Linux-headers also installed, i read it last evening but i could not find the same version and i did not have more time to search, sorry.

Please Log in to join the conversation.

More
5 years 2 weeks ago #223272 by IslandSpark
i managed to get the headers installed as per the commands in the linked post. however when i try to build the driver i get the following...
Code:
plasmax@Plasmax:~$ cd igb-5.7.2/src plasmax@Plasmax:~/igb-5.7.2/src$ make install make[1]: Entering directory '/usr/src/linux-headers-4.19.0-18-common-rt' make[2]: Entering directory '/usr/src/linux-headers-4.19.0-18-rt-amd64'   CC [M]  /home/plasmax/igb-5.7.2/src/igb_main.o In file included from /home/plasmax/igb-5.7.2/src/kcompat.h:7340,                  from /home/plasmax/igb-5.7.2/src/igb.h:32,                  from /home/plasmax/igb-5.7.2/src/igb_main.c:30: /home/plasmax/igb-5.7.2/src/kcompat_impl.h:46:28: error: redefinition of ‘skb_frag_off’  static inline unsigned int skb_frag_off(const skb_frag_t *frag)                             ^~~~~~~~~~~~ In file included from /usr/src/linux-headers-4.19.0-18-common-rt/include/linux/if_ether.h:23,                  from /usr/src/linux-headers-4.19.0-18-common-rt/include/uapi/linux/ethtool.h:19,                  from /usr/src/linux-headers-4.19.0-18-common-rt/include/linux/ethtool.h:18,                  from /usr/src/linux-headers-4.19.0-18-common-rt/include/linux/netdevice.h:41,                  from /home/plasmax/igb-5.7.2/src/igb_main.c:9: /usr/src/linux-headers-4.19.0-18-common-rt/include/linux/skbuff.h:2802:28: note: previous definition of ‘skb_frag_off’ was here  static inline unsigned int skb_frag_off(const skb_frag_t *frag)                             ^~~~~~~~~~~~ make[3]: *** [/usr/src/linux-headers-4.19.0-18-common-rt/scripts/Makefile.build:309: /home/plasmax/igb-5.7.2/src/igb_main.o] Error 1 make[2]: *** [/usr/src/linux-headers-4.19.0-18-common-rt/Makefile:1561: _module_/home/plasmax/igb-5.7.2/src] Error 2 make[2]: Leaving directory '/usr/src/linux-headers-4.19.0-18-rt-amd64' make[1]: *** [Makefile:146: sub-make] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-4.19.0-18-common-rt' make: *** [Makefile:86: default] Error 2 plasmax@Plasmax:~/igb-5.7.2/src$

any ideas? its greek to me...

Please Log in to join the conversation.

Time to create page: 0.071 seconds
Powered by Kunena Forum