RPI4 - Debian / LinuxCNC / EtherCAT / XFCE

More
4 years 5 months ago - 4 years 5 months ago #243105 by ftree
I've gone as far as I can today.  Have a go!
Code:
git clone https://github.com/djsftree/rpi-img-builder.git cd rpi-img-builder sudo ./install make commit board=bcm2711 when asked paste in   ac27843a367ea253659847aeb491137bf3e9216a make rootfs board=bcm2711 make image board=bcm2711

resulting rpi-*.img image found in root folder
Last edit: 4 years 5 months ago by ftree.

Please Log in or Create an account to join the conversation.

More
4 years 5 months ago - 4 years 5 months ago #243108 by ftree
I might need to add dbus-x11 and a few other packages.  Not sure yet.

I really like lxqt desktop over xfce4.  FalconView has caught my eye.....

github.com/DjangoReinhard/FalconView
 
Last edit: 4 years 5 months ago by ftree.

Please Log in or Create an account to join the conversation.

More
4 years 5 months ago #243109 by rodw
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

Please Log in or Create an account to join the conversation.

More
4 years 5 months ago #243113 by ftree
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? :-)

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.

More
4 years 5 months ago - 4 years 5 months ago #243121 by ftree
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

Code:
# 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: 4 years 5 months ago by ftree.

Please Log in or Create an account to join the conversation.

More
4 years 5 months ago #243130 by rodw
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!


 

Please Log in or Create an account to join the conversation.

Time to create page: 0.183 seconds
Powered by Kunena Forum