RPI4 - Debian / LinuxCNC / EtherCAT / XFCE

More
4 years 5 months ago #243256 by rodw
6 glx gears all day
 

Attachment not found

 

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 :)
 

Please Log in to join the conversation.

More
4 years 5 months ago #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)
Code:
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
Code:
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
 

Please Log in to join the conversation.

More
4 years 5 months ago #243299 by rodw
The wheel is in
build/dist
on my pi it is called
Code:
vtk-9.1.20220518.dev0-cp310-cp310-linux_aarch64.whl

So tonight I'll be onto installing qtpyvcp

Please Log in to join the conversation.

More
4 years 5 months ago #243304 by elovalvo

The wheel is in
build/dist
on my pi it is called
Code:
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:

Code:
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

Please Log in to join the conversation.

More
4 years 5 months ago #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
Code:
processor.max_cstate=1

to cmdline.txt made a substantial improvement on latency

 

Attachment not found


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..

Please Log in to join the conversation.

More
4 years 5 months ago #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....

Please Log in to join the conversation.

More
4 years 5 months ago #243356 by rodw
Well, overnight the latency is a bit worse but the shape is much narrower

Attachment not found

Please Log in to join the conversation.

More
4 years 5 months ago #243357 by rodw
hmm, clicking on a png image (screenshot)  would not open it. 
Code:
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 to join the conversation.

More
4 years 5 months ago #243363 by rodw
THis command installs the linuxcnc dependencies for those who want to update the debian package by building from source
Code:
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 to join the conversation.

More
4 years 5 months ago #243364 by tommylight
There are some red dots on that graph so might have excursions that are out of visible area, use this
Code:
latency-histogram --nobase --sbinsize 1000 --show

Please Log in to join the conversation.

Time to create page: 0.213 seconds
Powered by Kunena Forum