RPI4 - Debian / LinuxCNC / EtherCAT / XFCE
16 May 2022 20:36 #243109
by rodw
Replied by rodw on topic RPI4 - Debian / LinuxCNC / EtherCAT / XFCE
Yeh, I am trying it on my chromebook but it predates your last commit
One of the roadblocks I have had before was not being able to run QTPlasmac which uses QTVCP or stuff running on QTPVCP.
I think the issues is missing VTK. There is a 32 bit pi version so I am exploring how to install the 64 bit version
One of the roadblocks I have had before was not being able to run QTPlasmac which uses QTVCP or stuff running on QTPVCP.
I think the issues is missing VTK. There is a 32 bit pi version so I am exploring how to install the 64 bit version
Please Log in or Create an account to join the conversation.
16 May 2022 21:08 #243113
by ftree
Replied by ftree on topic RPI4 - Debian / LinuxCNC / EtherCAT / XFCE
Good luck! I strongly suggest using my latest commit. I've done a clean git pull and build - works fine on Bullseye AMD64 host and boots on hardware. I'd love to be able to boot the img in qemu. How do I do that? ![:-) :-)](/media/kunena/emoticons/smile.png)
I'm now trying to write a a linuxcnc-ethercat for the meca500 robot.
github.com/djsftree/linuxcnc-ethercat/co...8bddb940402ee689cd2c
Looking at the other devices in src for inspiration.
![:-) :-)](/media/kunena/emoticons/smile.png)
I'm now trying to write a a linuxcnc-ethercat for the meca500 robot.
github.com/djsftree/linuxcnc-ethercat/co...8bddb940402ee689cd2c
Looking at the other devices in src for inspiration.
Please Log in or Create an account to join the conversation.
17 May 2022 00:42 - 17 May 2022 01:02 #243121
by ftree
Replied by ftree on topic RPI4 - Debian / LinuxCNC / EtherCAT / XFCE
Looking around rpi-image-builder the develoepr already has a firstboot service in /files/scripts
That's super awesome! I think I can add this
That's super awesome! I think I can add this
# add EtherCAT conf
MACADDR=$(cat /sys/class/net/eth0/address)
if [[ `grep -w "Debian" "/etc/os-release"` ]]; then
systemctl stop ethercat.service;
rm -f /etc/ethercat.conf
tee /etc/ethercat.conf<<EOF
MASTER0_DEVICE="$MACADDR"
DEVICE_MODULES="generic"
EOF
systemctl start ethercat.service;
fi
Last edit: 17 May 2022 01:02 by ftree.
Please Log in or Create an account to join the conversation.
17 May 2022 04:45 #243130
by rodw
Replied by rodw on topic RPI4 - Debian / LinuxCNC / EtherCAT / XFCE
This worked!
I used your latest commit.
I have not fully tested yet until I get it home to my ethercat lab.
I had to install a browser so used Chromium. (sudo apt install chromium) Then the default XFCE icon opened chromium.
I had to update ethercat.config with the mac address. There was something there but made no sense against my hardware
Ethercat is definitely installed but without hardware to test it out at this location.
Linuxcnc is there, latency seems OK, spiked out to about 90000 as I opened chrome but mostly < 50,000. That is perfect for mesa hardware or ethercat.
I tried opening the QTplasmac sim but it crashed as expected. I think that is something to do with QT and VTK. I know QTPYVCP needs VTK. We need a 64 bit version!
I left a pi at home compiling VTK. I heard it took 13 hours.... I think it will likely run out of SSD space. as its only got 16 gb.
I've uploaded the image to my Google Drive. But I'll wait until you say its stable before sharing it.
Its awesome what you have done! Thanks for sharing!
I used your latest commit.
I have not fully tested yet until I get it home to my ethercat lab.
I had to install a browser so used Chromium. (sudo apt install chromium) Then the default XFCE icon opened chromium.
I had to update ethercat.config with the mac address. There was something there but made no sense against my hardware
Ethercat is definitely installed but without hardware to test it out at this location.
Linuxcnc is there, latency seems OK, spiked out to about 90000 as I opened chrome but mostly < 50,000. That is perfect for mesa hardware or ethercat.
I tried opening the QTplasmac sim but it crashed as expected. I think that is something to do with QT and VTK. I know QTPYVCP needs VTK. We need a 64 bit version!
I left a pi at home compiling VTK. I heard it took 13 hours.... I think it will likely run out of SSD space. as its only got 16 gb.
I've uploaded the image to my Google Drive. But I'll wait until you say its stable before sharing it.
Its awesome what you have done! Thanks for sharing!
Please Log in or Create an account to join the conversation.
17 May 2022 07:09 - 17 May 2022 09:08 #243131
by ftree
Replied by ftree on topic RPI4 - Debian / LinuxCNC / EtherCAT / XFCE
Glad it worked!
This might help?
www.kitware.com/rethinking-debian-packag...ake-projects-part-2/
apt.kitware.com/
archlinuxarm.org/packages/aarch64/vtk/files/PKGBUILD
This might help?
www.kitware.com/rethinking-debian-packag...ake-projects-part-2/
apt.kitware.com/
archlinuxarm.org/packages/aarch64/vtk/files/PKGBUILD
Last edit: 17 May 2022 09:08 by ftree.
Please Log in or Create an account to join the conversation.
17 May 2022 12:37 - 17 May 2022 12:37 #243149
by rodw
Replied by rodw on topic RPI4 - Debian / LinuxCNC / EtherCAT / XFCE
Ok, I have now confirmed it works perfect and I can find my ethercat slaves!
(after I fixed my silly error in my ethercat.conf file.)
I connected to wifi at work but for some reason I can't now connect to the wifi at home.
It says device unmanaged when I try at the icon on top right.
Thanks for the links. I am way out of my depth but the last one looks interesting. How do I use it?
(after I fixed my silly error in my ethercat.conf file.)
I connected to wifi at work but for some reason I can't now connect to the wifi at home.
It says device unmanaged when I try at the icon on top right.
Thanks for the links. I am way out of my depth but the last one looks interesting. How do I use it?
Last edit: 17 May 2022 12:37 by rodw.
Please Log in or Create an account to join the conversation.
17 May 2022 13:33 #243158
by rodw
Replied by rodw on topic RPI4 - Debian / LinuxCNC / EtherCAT / XFCE
This page installs QT5
I have not got QTVCP running yet baserd on this script
forum.linuxcnc.org/qtvcp/38414-installing-qtvcp
I have not got QTVCP running yet baserd on this script
forum.linuxcnc.org/qtvcp/38414-installing-qtvcp
Please Log in or Create an account to join the conversation.
17 May 2022 14:17 #243163
by elovalvo
Can what I have done here help you?
forum.linuxcnc.org/qtpyvcp/39127-vtk-bac...pi-4?start=40#242880
Replied by elovalvo on topic RPI4 - Debian / LinuxCNC / EtherCAT / XFCE
This worked!
I used your latest commit.
I have not fully tested yet until I get it home to my ethercat lab.
I had to install a browser so used Chromium. (sudo apt install chromium) Then the default XFCE icon opened chromium.
I had to update ethercat.config with the mac address. There was something there but made no sense against my hardware
Ethercat is definitely installed but without hardware to test it out at this location.
Linuxcnc is there, latency seems OK, spiked out to about 90000 as I opened chrome but mostly < 50,000. That is perfect for mesa hardware or ethercat.
I tried opening the QTplasmac sim but it crashed as expected. I think that is something to do with QT and VTK. I know QTPYVCP needs VTK. We need a 64 bit version!
I left a pi at home compiling VTK. I heard it took 13 hours.... I think it will likely run out of SSD space. as its only got 16 gb.
I've uploaded the image to my Google Drive. But I'll wait until you say its stable before sharing it.
Its awesome what you have done! Thanks for sharing!
Can what I have done here help you?
forum.linuxcnc.org/qtpyvcp/39127-vtk-bac...pi-4?start=40#242880
The following user(s) said Thank You: rodw
Please Log in or Create an account to join the conversation.
17 May 2022 15:23 #243172
by ftree
Replied by ftree on topic RPI4 - Debian / LinuxCNC / EtherCAT / XFCE
Excellent, thanks!
Fixed the ethercat.conf now, correctly sets at first boot.
Fixing screensaver, display and some power things.
Fixed the ethercat.conf now, correctly sets at first boot.
Fixing screensaver, display and some power things.
Please Log in or Create an account to join the conversation.
17 May 2022 20:22 #243199
by rodw
ftree, I am wondering once we get this all working if on first boot, the script should offer the user some options to install different features like ethercat and qtpyvcp and ethercat. Something like what James has done here for Linuxcnc and qtpyvcp on Bullseye. github.com/joco-nz/lcnc-bullseye-installer
But then maybe it just installs everything. If the ethercat service is disabled it probably won't get in the road if say you are using a mesa 7i96 or similar.
In my earlier testing I thought "isolcpus=2,3" made a difference but I have not wanted to do that yet becasue the pi might need to compile 9 hours worth of code! You could try this manually. grub_customizer should be in the debian repo.
Replied by rodw on topic RPI4 - Debian / LinuxCNC / EtherCAT / XFCE
Thanks, I will give installing this a try. It should work by the kernel version...
Can what I have done here help you?
forum.linuxcnc.org/qtpyvcp/39127-vtk-bac...pi-4?start=40#242880
ftree, I am wondering once we get this all working if on first boot, the script should offer the user some options to install different features like ethercat and qtpyvcp and ethercat. Something like what James has done here for Linuxcnc and qtpyvcp on Bullseye. github.com/joco-nz/lcnc-bullseye-installer
But then maybe it just installs everything. If the ethercat service is disabled it probably won't get in the road if say you are using a mesa 7i96 or similar.
In my earlier testing I thought "isolcpus=2,3" made a difference but I have not wanted to do that yet becasue the pi might need to compile 9 hours worth of code! You could try this manually. grub_customizer should be in the debian repo.
Please Log in or Create an account to join the conversation.
Time to create page: 0.103 seconds