Install LinuxCNC on Pheonix Contact Panel PC
- tommylight
- Away
- Moderator
Less
More
- Posts: 19196
- Thank you received: 6434
10 Oct 2021 10:15 #222729
by tommylight
Replied by tommylight on topic Install LinuxCNC on Pheonix Contact Panel PC
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.
To run machines it requires a real time kernel be it RT-Preempt or RTAI.
Please Log in or Create an account to join the conversation.
- IslandSpark
- Offline
- New Member
Less
More
- Posts: 10
- Thank you received: 1
10 Oct 2021 16:36 #222769
by IslandSpark
Replied by IslandSpark on topic Install LinuxCNC on Pheonix Contact Panel PC
Yes I’m aware, however getting online needs to happen before I can download and configure a real-time kernel.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 or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19196
- Thank you received: 6434
10 Oct 2021 17:12 #222773
by tommylight
Replied by tommylight on topic Install LinuxCNC on Pheonix Contact Panel PC
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 or Create an account to join the conversation.
10 Oct 2021 18:16 #222787
by rodw
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.
Replied by rodw on topic Install LinuxCNC on Pheonix Contact Panel PC
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.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.
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 or Create an account to join the conversation.
12 Oct 2021 22:39 #222982
by andypugh
Replied by andypugh on topic Install LinuxCNC on Pheonix Contact Panel PC
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.
The following user(s) said Thank You: rodw
Please Log in or Create an account to join the conversation.
- IslandSpark
- Offline
- New Member
Less
More
- Posts: 10
- Thank you received: 1
14 Oct 2021 21:17 #223122
by IslandSpark
Replied by IslandSpark on topic Install LinuxCNC on Pheonix Contact Panel PC
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
"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 or Create an account to join the conversation.
15 Oct 2021 22:44 #223246
by andypugh
Replied by andypugh on topic Install LinuxCNC on Pheonix Contact Panel PC
The answer might be here:
forums.debian.net/viewtopic.php?t=112520
forums.debian.net/viewtopic.php?t=112520
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19196
- Thank you received: 6434
15 Oct 2021 22:48 #223249
by tommylight
Replied by tommylight on topic Install LinuxCNC on Pheonix Contact Panel PC
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 or Create an account to join the conversation.
- IslandSpark
- Offline
- New Member
Less
More
- Posts: 10
- Thank you received: 1
16 Oct 2021 03:28 #223272
by IslandSpark
Replied by IslandSpark on topic Install LinuxCNC on Pheonix Contact Panel PC
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...
any ideas? its greek to me...
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 or Create an account to join the conversation.
Time to create page: 0.080 seconds