Advanced Search

Search Results (Searched for: raspberry)

09 Mar 2024 16:21

Preparing native Raspberry Pi OS for LinuxCNC

Category: Installing LinuxCNC

I created a kind of step by step instruction for the customisation of the RPI Image Builder: github.com/golyakoff/linux-info/blob/mai...Debian12OS/README.md 

Hope I covered the majority of the customization cases in different places of the framework written by rodw.

Please feel free to write your comments :)
09 Mar 2024 01:07

Notes from installation of ethercat on Raspberry Pi 4

Category: EtherCAT

I think it's supposed to be stable; the Etherlab folks have a specific driver for it, but I don't have any specific details on using it handy.
07 Mar 2024 06:12
Replied by stz60 on topic Update auf 2.9.2

Update auf 2.9.2

Category: Deutsch

Installation LinuxCNC 2.9.2 auf RPi4 (RPi 400) + MESA 7i76e

Hallo rodw, tommylight,
bitte diesen Beitrag sinnvoll zuordnen.

es wäre sehr hilfreich,
das Paket <raspi-config> in dem nächsten .img einzubauen.

Mit ein wenig Konsole-Erfahrung ist unter Xfce in wenigen Minuten das
gerade neu installierte LinuxCNC 2.9.2 auf RasberryPi4 auf deutsch oder
beliebig andere Sprache eingerichtet.

hier meine Anleitung kurz und bündig:
(schnellste Instalation)

rpi-4-debian-bookworm-6.1.54-rt15-arm64-ext4-2023-11-17-1731.img.xz
nur auf einen USB-Stick kopieren (ohne "dd" oder "rufus")
LAN mit RPi verbinden
RPi ohne SD-Karte / USB-Stick starten
RPi-Imager "net-install" aus dem Netz holen (Umschalt-Taste halten)
SD-Karte oder USB-Stick in RPi einstecken
RPi-Imager kann Ziel-LW löschen (-> formatiert fat32)
(kann ich nur empfehlen,
beschriebene Speichermedien verursachen Probleme)
(nun verabschiedet sich RPi-Imager, reboot
"net-install" erneut holen)

USB-Stick mit ".img.xz" anstecken
Quelle ".img.xz" und Ziel "SD-Karte/USB-Stick" anklicken -> starten
in ca. 15 Minuten download und install macht RPi ein reboot,
nach Neustart ist System (nach Vorgabe des Entwicklers) installiert
user: cnc pw: cnc

ein erster latency-Test oder LinuxCNC-Sim bringt Freude auf,
nun ja erst mal nur in englisch, umstellen auf DE + Tastatur-DE
ist mir unter Xfce nicht gelungen.
Wenn man "Lxqt" installiert,
kann man dieses recht einfach auf der grafischen Oberfläche erledigen.

Unter Xfce kann man dieses auf der Konsole auch in wenigen Minuten erledigen,
wenn man <rpi-config> installiert. siehe auch:
raspberrypi.stackexchange.com/questions/...lack-of-raspi-config

-> auf Konsole:
sudo nano /etc/apt/sources.list
(diese Zeile zufügen:)
deb archive.raspberrypi.org/debian/ bookworm main
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 7FA3303E
sudo apt update
sudo apt install raspi-config
sudo raspi-config
locale, keyboard -> anwählen -> einstellen
(im WEB gut beschrieben)
finish
(und schon ist alles wie gewünscht)

sudo apt update && sudo apt full-upgrade
sudo reboot

-> nun LinuxCNC einrichten:
sudo apt install mesaflash hostmot2-firmware-all linuxcnc-doc-de mpv
("mpv" eignet sich sehr gut für eine USB-Kamera an der Z-Achse,
wenn angesteckt erscheint das Kamera-Bild):
mpv /dev/video0
pncconf
(2x Verknüpfung auf Desktop markieren)
(dieser Wizard erstellt .hal .ini und weitere Dateien im "home")
(LAN vom Internet trennen, RPi mit Mesa-Karte verbinden)
sudo ifconfig eth0 10.10.10.1 netmask 255.255.255.0
ping 10.10.10.10
(auf Desktop <CNC-Maschine> starten
sudo nano /etc/network/interfaces
(IP dauerhaft einstellen, diese Zeilen zufügen):

auto eth0
iface eth0 inet static
address 10.10.10.1
netmask 255.255.255.0

sudo reboot


-> Kamera einrichten:
ergibt ein nützliches Fadenkreuz,
kann nach belieben angepasst werden, siehe auch:
tallar83 (für LinuxCNC2.9 mpv)


(diese 3 Zeilen in der <CNC-Maschine.ini> unter [Display]zufügen):

# USB-Kamera - Bildgröße 640x480
EMBED_TAB_NAME = Kamera
EMBED_TAB_COMMAND = mpv /dev/video0 -wid {XID} --vf-add=drawbox=320:100:1:280:t=1 --vf-add=drawbox=180:240:280:1:t=1 --vf-add=drawbox=300:220:40:40:t=1 --vf-add=drawbox=280:200:80:80:t=1 --no-border

-> hilfreiche Lektüre:
raspberrypi.stackexchange.com/questions/...lack-of-raspi-config
www.elektronik-kompendium.de/sites/raspberry-pi/1906291.htm
forum.linuxcnc.org/38-general-linuxcnc-q...stieg-auf-mesa-7i76e
docs.google.com/document/d/1jeV_4VKzVmOI...ading=h.macj649sy0yq
docs.google.com/document/d/1jeV_4VKzVmOI...m1x7oiw8VcLFdiY/edit

ich wünsche allen Lesern dieser Anleitung eine gute Nacht,
mir haben die Recherchen viele Stunden gekostet.

stz60
06 Mar 2024 15:14
Replied by Krister on topic LinuxCNC on Raspberry Pi 5

LinuxCNC on Raspberry Pi 5

Category: Installing LinuxCNC

I try to convert a mill setup to a Lathe setup . And now next problem , what is this meaning

Print file information:
RUN_IN_PLACE=no
LINUXCNC_DIR=
LINUXCNC_BIN_DIR=/usr/bin
LINUXCNC_TCL_DIR=/usr/lib/tcltk/linuxcnc
LINUXCNC_SCRIPT_DIR=
LINUXCNC_RTLIB_DIR=/usr/lib/linuxcnc/modules
LINUXCNC_CONFIG_DIR=
LINUXCNC_LANG_DIR=/usr/lib/tcltk/linuxcnc/msgs
INIVAR=inivar
HALCMD=halcmd
LINUXCNC_EMCSH=/usr/bin/wish8.6
LINUXCNC - 2.9.1
Machine configuration directory is '/home/cnc/linuxcnc/configs/my-svarv'
Machine configuration file is 'my-svarv.ini'
INIFILE=/home/cnc/linuxcnc/configs/my-svarv/my-svarv.ini
VERSION=1.1
PARAMETER_FILE=linuxcnc.var
TPMOD=
HOMEMOD=
TASK=milltask
HALUI=
DISPLAY=axis
COORDINATES=X Z
KINEMATICS=trivkins coordinates=XZ
Starting LinuxCNC...
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
Found file(REL): ./Min_svarv.hal
Found file(REL): ./custom.hal
Starting TASK program: milltask
Starting DISPLAY program: axis
Shutting down and cleaning up LinuxCNC...
task: 119 cycles, min=0.000009, max=0.015490, avg=0.008914, 0 latency excursions (> 10x expected cycle time of 0.010000s)
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments

Debug file information:
Note: Using POSIX realtime
note: MAXV max: 6.000 units/sec 360.000 units/min
note: LJOG max: 6.000 units/sec 360.000 units/min
note: LJOG default: 3.000 units/sec 180.000 units/min
note: jog_order='ZX'
note: jog_invert={'X'}
pyvcp_options.hal:11: parameter or pin 'scale.0.gain' not found
3224
3258
Stopping realtime threads
Unloading hal components
Note: Using POSIX realtime


Were is the pin 'scale.0.gain to be ?
06 Mar 2024 15:03
Replied by Krister on topic LinuxCNC on Raspberry Pi 5

LinuxCNC on Raspberry Pi 5

Category: Installing LinuxCNC

Yes its the capital letter syndrom ,I find it
06 Mar 2024 00:26

Comparison between Raspian 12 Bookworm on Raspberry Pi 4 and Raspberry Pi 5

Category: Installing LinuxCNC

I think many posts in this thread are completely unrelated to the topic I started it with.
My idea was to compare the performance of the Raspbian Bookworm (and not the Debian) on Pi4 and Pi5....
ITs difficult for users to compare the products until they have a robust installation method for the pi5. But it has been reported latency is much improved.


The OP has describe a robust installation method within the opening couple of posts. Having tested both methods for the RPi5, the Raspbian OS based method appears to be the better setup.
05 Mar 2024 23:03 - 06 Mar 2024 19:49

Comparison between Raspian 12 Bookworm on Raspberry Pi 4 and Raspberry Pi 5

Category: Installing LinuxCNC

The results are definitely surprising
 
 
[code][code]Regarding this...  is it understood why the latency was so much better in the RPi 5 test, than the RPi 4?  Is this purely a result of improved processor performance, or is there some other underlying reason?  (And, has that result been reproduced?)

Unless I'm misunderstanding, I think that latency is quite a bit better than I currently get on my 10 y.o. AMD PC, which implies I could potentially replace it (and its parallel port) directly with an RPi 5 and its gpio pins.  Which I confess excites me a bit.  :-)

paul
[/code][/code]

05 Mar 2024 12:07
Replied by cornholio on topic Update error

Update error

Category: Installing LinuxCNC

If you look at the thread announcing this release the first post gives clear instructions how to fix this.

I gave up on the official iso the other day as it could not load the firmware for my Ethernet card, even tho when booting to a live session it did. I did also mention it.
As to the raspi firmware that is a bug in the installer from Debian. I don’t know why the issue isn’t mentioned on the download page, but the download also mentions the RPi 5 image supports SPI, which it doesn’t.
So to install the latest Debian version and linuxcnc 2.9.2 on my x86 system I used the Debian netinst image, installed the need kernel manually, used the script mentioned in the docs to install linuxcnc, for less frustrating than trying to use the official image.
Now I’m no slouch in this area, I’ve made my own respin of Mint for Linuxcnc, made my own Raspberry Pi images and messed around with Mesa firmware to run on a couple of Xilinx dev boards. This was absolutely the worst experience trying to install linuxcnc on a machine. It amazes me newbies actually get anywhere.
05 Mar 2024 11:50

LinuxCNC on Raspberry Pi 5

Category: Installing LinuxCNC

Cannot find file for:Min_svarv.hal

This file needs to be in the same folder as your ini and main Hal files.
Could be a typo in your ini file.

If you see a line stating it can’t find a file or a pin doesn’t exist that is the error. Mostly it will be a typo somewhere.
05 Mar 2024 11:44 - 05 Mar 2024 11:45
Replied by pgf on topic Update error

Update error

Category: Installing LinuxCNC

I think it's pretty clear that if I download LinuxCNC_2.9.2-amd64.hybrid.iso from official the link at linuxcnc.org/downloads/ , and the installation fails because unnecessary Raspberry Pi firmware is inoperable on my x86 PC, then it's a bug.

Perhaps it's an unavoidable bug, or very inconvenient to fix. But the release is over 2 months old. Plenty of time for there to be a note on the downloads page with a warning, and the (trivial) fix.

paul
05 Mar 2024 10:23
Replied by Krister on topic LinuxCNC on Raspberry Pi 5

LinuxCNC on Raspberry Pi 5

Category: Installing LinuxCNC

Print file information:
RUN_IN_PLACE=no
LINUXCNC_DIR=
LINUXCNC_BIN_DIR=/usr/bin
LINUXCNC_TCL_DIR=/usr/lib/tcltk/linuxcnc
LINUXCNC_SCRIPT_DIR=
LINUXCNC_RTLIB_DIR=/usr/lib/linuxcnc/modules
LINUXCNC_CONFIG_DIR=
LINUXCNC_LANG_DIR=/usr/lib/tcltk/linuxcnc/msgs
INIVAR=inivar
HALCMD=halcmd
LINUXCNC_EMCSH=/usr/bin/wish8.6
LINUXCNC - 2.9.1
Machine configuration directory is '/home/cnc/linuxcnc/configs/my-svarv'
Machine configuration file is 'my-svarv.ini'
INIFILE=/home/cnc/linuxcnc/configs/my-svarv/my-svarv.ini
VERSION=1.1
PARAMETER_FILE=linuxcnc.var
TPMOD=
HOMEMOD=
TASK=milltask
HALUI=
DISPLAY=axis
COORDINATES=X Z
KINEMATICS=trivkins coordinates=XZ
Starting LinuxCNC...
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
CANNOT FIND FILE FOR:Min_svarv.hal
Shutting down and cleaning up LinuxCNC...
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments

Debug file information:
Note: Using POSIX realtime
1653
Stopping realtime threads
Unloading hal components
Note: Using POSIX realtime
05 Mar 2024 10:16
Replied by Krister on topic LinuxCNC on Raspberry Pi 5

LinuxCNC on Raspberry Pi 5

Category: Installing LinuxCNC

Hi here are the whole error file

 
04 Mar 2024 11:05

LinuxCNC on Raspberry Pi 5

Category: Installing LinuxCNC

Provide more information, typically the whole debug message. As there is very very little information there.
04 Mar 2024 10:20
Replied by Krister on topic LinuxCNC on Raspberry Pi 5

LinuxCNC on Raspberry Pi 5

Category: Installing LinuxCNC

HI i am trying to use rapberry pi 5 and Linuxcnc and i made sucsess with my instalation of 3 axis mill config but when I make a new setup for my lathe I get this mesege . 
Debug file information:
Note: Using POSIX realtime
4652
Stopping realtime threads
Unloading hal components
Note: Using POSIX realtime
Can anyone point me in the right direction so I can try to solve this
Regards Krister

 
03 Mar 2024 18:31
Displaying 136 - 150 out of 964 results.
Time to create page: 1.137 seconds
Powered by Kunena Forum