Debian 12 - 2.10 master branch image for the Raspberry Pi 4b/400

More
27 Oct 2023 21:11 #283920 by rodw
QTVCP don't have debs for the pi in their repository so it was a dead end there.
Ethercat have pi debs in their repo and I built the linuxcnc ethercat driver for the pi and put it up on my repo. But neither have been tested.

Note we are not installing anything, just configuring apt so these companion prodcuct\s can be installed with sudo apt-get if the user wants to use them. Ethercat while open source has some pecuilar licensing requirements preventing linuxcnc from including it as we are a community, not a registered company..

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

More
30 Oct 2023 20:02 #284141 by mbondaz
Thank's for the answer.
I have used linuxcnx → by_interface→parport →stepper →stepper_mm
I have modified the file  standard_pinout.hal with
# standard pinout config file for 3-axis steppers
# using a parport for I/O
#
# first load the parport driver
#loadrt hal_parport cfg="0x0378"
# Pour les GPIO
#loadrt hal_pi_gpio dir=67108751 exclude=0
loadrt hal_pi_gpio dir=35390224 exclude=31718639

# next connect the parport functions to threads
# read inputs first
#addf parport.0.read base-thread 1
# Je fais la même chose pour les GPIO
addf hal_pi_gpio.read base-thread

# write outputs last
#addf parport.0.write base-thread -1
addf hal_pi_gpio.write base-thread
#
# finally connect physical pins to the signals
#net Xstep => parport.0.pin-03-out
#net Xdir  => parport.0.pin-02-out
#net Ystep => parport.0.pin-05-out
#net Ydir  => parport.0.pin-04-out
#net Zstep => parport.0.pin-07-out
#net Zdir  => parport.0.pin-06-out

net Xstep           => hal_pi_gpio.pin-23-out
net Xdir            => hal_pi_gpio.pin-19-out
net Ystep           => hal_pi_gpio.pin-13-out
net Ydir            => hal_pi_gpio.pin-15-out
net Zstep           => hal_pi_gpio.pin-38-out
net Zdir            => hal_pi_gpio.pin-40-out

# create a signal for the estop loopback
# ça ne change pas
net estop-loop iocontrol.0.user-enable-out iocontrol.0.emc-enable-in

It seams to be easy to understand, except the first line
loadrt hal_pi_gpio dir=35390224 exclude=31718639

for this i used
forum.linuxcnc.org/18-computer/43353-rpi...tion?start=10#226664
to load rpi-gpio_1.0_arm64.deb

rpi--gpio -> the pins i used -> Get HAl -> loadrt hal_pi_gpio dir=35390224 exclude=31718639

That's all. Everything works as I need.
Thank's again.

For information, with a fresh install, I have always latency warnings. With halrun or linuxcnc
Unexpected realtime delay on task 0 with period 50000
I have tried to find something. It always appear at the very beginning of a task, never again...

Cordially

 

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

More
02 Nov 2023 12:48 #284322 by ckuecker
Hi - I tried installing LinuxCNC according to this thread - it's up and running as Linux, good latency. Problem is - I cannot get WiFi working. raspi-config seems to be missing? Any ideas?

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

More
02 Nov 2023 12:51 #284323 by ckuecker
Also, pncconf wizard shows errors - something about unsupported locale setting - happens right after setting up the Mesa board at the X Motor screen.

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

More
02 Nov 2023 20:01 #284367 by ckuecker
Found a thread on install troubles - got WiFi working. Jitter about doubled to 130590 on servo. Still get the locale error in pncconf after a reboot.

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

More
03 Nov 2023 07:19 #284416 by rodw
try running sudo menu-config
That lets you set locale and wifi
The following user(s) said Thank You: mwiktowy, ckuecker

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

More
03 Nov 2023 12:00 #284437 by ckuecker
Found that suggestion. Got everything running now.
I've very impressed with the latency numbers - an order of magnitude better than what I was getting before.
Thanks for the help!

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

More
03 Nov 2023 12:16 #284442 by rodw

I've very impressed with the latency numbers - an order of magnitude better than what I was getting before.
 

Thanks. Good feedback. Getting a decent 64 bit kernel onto the pi makes quite a difference!
A lot of other installs are only 32 bit.

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

More
13 Nov 2023 21:15 #285312 by mwiktowy
Thanks for your work on this. I will get a chance this weekend to see if this works OK with my Mesa card and current configuration.

I didn't know about menu-config so I set TZ on the clock app and I just ended up installing:
"synaptic" for searching for relevant packages to install and the only package were I needed the command line.
"network-manager-gnome" for a network status applet and more advanced gui network management (i.e. setting up a static IP for a Mesa card).
"mousepad" for a confusingly-named lightweight gui text editor that is usually a default in XFCE.

I know that you want to keep things small and that there is some expectation that folks know their way around an apt command but I would suggest those three apps be included in the base image to avoid dead ends for those not familiar with the terminal and CLI. There are minimal dependencies that those bring in.

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

More
13 Nov 2023 21:58 #285316 by cornholio
The standard network manager that comes with XFCE is included and is very good.
Geany is included as a text editor and is far superior.
To tell the truth I’ve never used synaptic for package installation.
The aim of the image was to put together what is required to run Linuxcnc and to do some basic housekeeping.

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

Time to create page: 0.111 seconds
Powered by Kunena Forum