Raspberry Pi 4 - USB not working under LinuxCNC

More
4 years 6 months ago #241241 by rodw

It should be installable:
packages.debian.org/bookworm/python3-gst-1.0
On a second attempt, I did install this package but this is the error I got with qtplasmac qtvcp
Code:
python3.10: pthread_mutex_lock.c:424: __pthread_mutex_lock_full: Assertion `e != ESRCH || !robust' failed. /home/pi/devel/linuxcnc-dev/scripts/linuxcnc: line 963: 51375 Aborted                 $EMCDISPLAY -ini "$INIFILE" $EMCDISPLAYARGS $EXTRA_ARGS Shutting down and cleaning up LinuxCNC...

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

More
4 years 6 months ago #241243 by MTronics
Hello elovalvo,

great input. Thanks a lot!

My workaround (RasPi 4 w/ 4GB) was:
1) Install Raspberry Pi 10 Buster 32bit from RaspberryPi.com
2) Limit memory used by adding "total_mem=3072" to /boot/config.txt, to avoid USB not working with RT kernel (see next step) i.e., mouse & keyboard not working
3) follow linuxcnc.org to install RT kernel and LinuxCNC, see "7.3. Installing on Raspbian 10"

Again, thanks a lot for your input/help.

Stefan
The following user(s) said Thank You: rodw, fletch

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

More
4 years 6 months ago #241417 by andypugh

despite the 3GB memory limit workaround, I am very interested in a "how to" compile LinuxCNC from source. You mentioned it isn't particularly difficult and I would like to dive into this topic 
...
PS: I am into programming embedded systems (ATMEL chips), and Windows systems, using C/C++, 
Well, in that case you can probably teach me a thing or two :-) I am not a real programmer. 

You basically just need to clone the git repository, then use make in the source directory. 

linuxcnc.org/docs/stable/html/code/building-linuxcnc.html

It has become easier now that there is  packaged realtime kernel to install. 

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

More
4 years 6 months ago #241434 by MTronics
Ok & thanks Andy.
Playing around with the RasPi is quite fun, a lot of fun. A few days ago, I decided to give this platform a serious try and I must say, so far I am very happy with it. I want to use it as a "clonable" CNC controller platform i.e., quickliy recplicate and set-up additional machine controllers - we will see :) Along the first set-up steps, I experienced that the RasPi also serves quite well as an "update" free (at least I have control over it), low power (environment), zero fan noise (quiet office/living), and no personal data bleeding platform.

Again, thanks for sour support!

Stefan, Germany.

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

More
4 years 6 months ago - 4 years 6 months ago #241700 by fletch
From a professional/industrial perspective, I'm completely sold on Pis. We did an emergency replacement of £400 'industrial' x86 boards that were too slow to calculate new certs for contactless card processing. We fitted the Pis with industrial 4Gb SD cards (that cost more that the Pis) and >4 years on, we have yet to have a failure in a pretty harsh environment.
As I said to our customer, if they can survive school children, they can survive anything.
Last edit: 4 years 6 months ago by fletch.
The following user(s) said Thank You: MTronics

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

More
4 years 6 months ago #241705 by rodw
I've got 2 of them and once I worked out how to install preempt-rt, the 64 bit Pi4b has latency for Lcnc is very good but for me  they are of limited use because of the inability to install VTK so I can use QTpyvcp and QTvcp GUI's and also I was unable to install ethercat. I'm a bit dissappointed about that! 

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

Time to create page: 0.170 seconds
Powered by Kunena Forum