RPI4 - Debian / LinuxCNC / EtherCAT / XFCE

More
18 May 2022 09:33 #243256 by rodw
6 glx gears all day
   

Started compiling vtk at 8:30 pm. See how we go in 16 gb...

Following Tchmiimy's approach on this page:
github.com/pyvista/pyvista-support/issues/432

See you in the morning :)
 
Attachments:

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

More
18 May 2022 21:31 #243296 by rodw
Success! I hope...
After 5 hours, there was still about 2000 files remaining to be built with ninja. (of just under 10000)
apt install -y build-essential mesa-common-dev mesa-utils freeglut3-dev ninja-build git cmake    
git clone --recursive https://gitlab.kitware.com/vtk/vtk.git
mkdir build
cd build
cmake -GNinja -DVTK_WHEEL_BUILD=ON -DVTK_WRAP_PYTHON=ON ../vtk/
ninja
python setup.py bdist_wheel

Then checking with python
cnc@bcm2711:~/devel/build$ python3
>>> import vtk
>>> print(vtk.vtkVersion.GetVTKSourceVersion())
vtk version 9.1.0
>>> exit()

Now I just have to find where the wheel file is living
 
The following user(s) said Thank You: elovalvo

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

More
18 May 2022 22:00 #243299 by rodw
The wheel is in
build/dist
on my pi it is called
vtk-9.1.20220518.dev0-cp310-cp310-linux_aarch64.whl

So tonight I'll be onto installing qtpyvcp
The following user(s) said Thank You: elovalvo

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

More
18 May 2022 22:53 - 18 May 2022 23:00 #243304 by elovalvo

The wheel is in
build/dist
on my pi it is called
vtk-9.1.20220518.dev0-cp310-cp310-linux_aarch64.whl

So tonight I'll be onto installing qtpyvcp



To install qtvcp you need these commands:

sudo apt-get install python3-gst-1.0
cd /usr/lib/python3/dist-packages/qtvcp/designer
sed 's/x86_64/aarch64/g' ./install_script > /tmp/install_64_script
sudo cp /tmp/install_64_script .
sudo chmod a+x ./install_64_script
./install_64_script

and than
select 3 = Yes, for a package installation
Last edit: 18 May 2022 23:00 by elovalvo.
The following user(s) said Thank You: rodw

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

More
19 May 2022 11:42 #243333 by rodw
elovalvo's method to install qtvcp did not work for me, At least the install script ran perfectly instead of erroring. I was getting segmentation faults with qtplasmac, and other sample screens did not load.

but adding
processor.max_cstate=1

to cmdline.txt made a substantial improvement on latency

 
10 glx gears vs 6 previously. I'll let it run overnight again.
I just have to try  qtpyvcp but that will be another night.

I did grab a 64 bit SD card today so its time to try rebuilding the image tomorrow.
We had incessant internet outages today so could not get any work done, let alone playing with this..
Attachments:

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

More
19 May 2022 14:25 - 19 May 2022 14:25 #243346 by ftree
processor.max_cstate=1

Excellent, will add to the boot cmd too!

I now have LXQT v1.1 installed as default. Will commit that soon.

I have forked forked FalconView with a view to make it look inkeeping with an modern LXQT based ui.

Busy getting the robot working on EtherCAT....
Last edit: 19 May 2022 14:25 by ftree.

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

More
19 May 2022 18:40 #243356 by rodw
Well, overnight the latency is a bit worse but the shape is much narrower
Attachments:

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

More
19 May 2022 18:54 #243357 by rodw
hmm, clicking on a png image (screenshot)  would not open it. 
sudo apt install feh
fixed that

Just experiment with cstates before adding to your image. I just realised the horizontal scale was different between my overnight runs so it might be worse..

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

More
19 May 2022 21:29 #243363 by rodw
THis command installs the linuxcnc dependencies for those who want to update the debian package by building from source
sudo apt install -y dpkg-dev dh-python intltool libboost-python-dev libgtk2.0-dev libmodbus-dev libeditreadline-dev libusb-1.0-0-dev libxmu-dev netcat-openbsd tcl8.6-dev tk8.6-dev yapps2 asciidoc dblatex  docbook-xsl dvipng ghostscript graphviz groff imagemagick inkscape python3-lxml source-highlight w3c-linkchecker xsltproc texlive-extra-utils texlive-font-utils texlive-fonts-recommended texlive-lang-cyrillic texlive-lang-french texlive-lang-german texlive-lang-polish texlive-lang-spanish texlive-latex-recommended asciidoc-dblatex texlive-xetex

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

More
19 May 2022 21:56 #243364 by tommylight
There are some red dots on that graph so might have excursions that are out of visible area, use this
latency-histogram --nobase --sbinsize 1000 --show
The following user(s) said Thank You: rodw

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

Time to create page: 0.270 seconds
Powered by Kunena Forum