Advanced Search

Search Results (Searched for: raspberry)

  • gene_weber
  • gene_weber's Avatar
01 Mar 2025 20:04
Replied by gene_weber on topic Raspberry Pi OS PREEMPT RT 6.13 Kernel Cookbook

Raspberry Pi OS PREEMPT RT 6.13 Kernel Cookbook

Category: Installing LinuxCNC

Yes, RPi suggests that parallel processing 1.5x that number of cores works well. I had also always used the number of cores.
  • jairobbo
  • jairobbo
27 Feb 2025 11:54
Blender Addon for creating 5 axis GCode was created by jairobbo

Blender Addon for creating 5 axis GCode

Category: Show Your Stuff

Hey Guys,

If you have a moment. This video as well as the code is super rough, but I wanted to raise a bit of attention for those that are interested:
I have a modified Ender3 3d printer with two rotational axes. It is controlled by a raspberry pi and an cotopus board 1.1 with remora linuxcnc.

github.com/bbo-git/5AxisSlicerBlenderAddon # indexed slicer with cura engine backend
github.com/bbo-git/5AxisKinSlicerBlenderAddon # spiral toolpath creator and Gcode generation



with kind regards,
Jairo
  • 109jb
  • 109jb
26 Feb 2025 23:23 - 27 Feb 2025 01:55

Closed loop stepper error input hal question

Category: Basic Configuration

Hi all. I am trying to figure out the last step of configuring my machine. For background, I am using a Raspberry Pi 4b with the current LinuxCNC image from the downloads section. The RPi is connected to a Byte2Bot parallel hat which is in turn connected to a parallel port breakout board. I have managed to figure out all of the step, direction, and limit switch stuff and now have a machine that moves, homes, etc.

The final thing I want to do is define an input to LinuxCNC to stop motion if one of my closed loop stepper motors throws a fault. Essentially like hitting the E-stop. The stepper drivers each have a fault output pin and all of these fault outputs from the drives are wired to parallel port pin 10 of the BOB. This should be GPIO 25 (GPIO connector pin 22). For everything else I have done I have used templates and just been able to change pin numbers. I believe the hal entries would look something like this:

net driver-fault <= hal_gpio.GPIO25-in
net driver-fault => iocontrol.0.emc-enable-in

I believe this would result in a stepper driver fault essentially tripping the emergency stop.  I don't have a way to test this right at the moment and was wondering if someone could take a look and see if my thinking is correct?

Thanks,

John B 
  • unknown
  • unknown
23 Feb 2025 18:25
Replied by unknown on topic Byte 2 bot setup will not work.

Byte 2 bot setup will not work.

Category: General LinuxCNC Questions

If you are using the byte to bot supplied files they won't work .
The images you supplied aren't really readable.
What I would suggest is read the docs for the hal_gpio driver and modify your files to suit.
Then loudly complain to byte2bot their files are useless for the raspberry pi .
Also when asking for help attaching your hal & ini files is most helpful.
Also attaching the error files rather than photos of the screen helps as well.
  • unknown
  • unknown
22 Feb 2025 22:44 - 23 Feb 2025 08:12

Linuxcnc & the Raspberry Pi (4 & 5) Official Images Only!!!

Category: Installing LinuxCNC

No, it has nothing to do with the kernel module, disabling the kernel module won't stop the service running. The messages are coming from the service systemd is attempting to start.
One option is to mask the service and have no swap available.
The second option is as I've described and have a little swap if needed.
But it's not the kernel modules that are issue.
Not to be unkind but I didn't pull the solution out of my backside, I spent some time researching the issue, as to what was causing the issue, how to fix the issue and what was supposed to be happening.
The service is for setting up swap in compressed ram. Whilst there is a little overhead in compressing and decompressing the speed for accessing ram is far far quicker than accessing a drive of any sort. If no swapping occurs it will have no affect on latency.
And even before I offered up my solution I ran a few tests to make sure I had the method correct and there were no issues with latency or anything else.
And yes I should have been more vigilant when initially putting everything together.

PLEASE NOTE
all references to zram.service should be zramswap.service
  • unknown
  • unknown
22 Feb 2025 22:22
Replied by unknown on topic Linuxcnc hotspot on raspberry pi

Linuxcnc hotspot on raspberry pi

Category: General LinuxCNC Questions

That would work if network manager was the method used to manage the interfaces and network-manager-gnome was installed. But that's not the way the images are built.
And honestly if you don't setup a firewall as well.....
  • tommylight
  • tommylight's Avatar
22 Feb 2025 20:24
Replied by tommylight on topic Linuxcnc hotspot on raspberry pi

Linuxcnc hotspot on raspberry pi

Category: General LinuxCNC Questions

Question should be
How to set a hotspot on Linux?
Any Linux distro that uses network manager = easy, it goe something like:
-right click on the network icon located up or down on the right side close to the clock
-choose "edit connections"
-double click on the wifi connection
-go to "Wi-Fi" tab
-select "hotspot" from the drop down menu and add info as neede like BSSID etc
-click save
-close
left click on network manager and select the wifi network to reconnect
done.
  • rodw
  • rodw's Avatar
22 Feb 2025 19:08

Linuxcnc & the Raspberry Pi (4 & 5) Official Images Only!!!

Category: Installing LinuxCNC

zram is a kernel option which can be disabled by adding zram.enabled=0 to boot.txt
Do you guys want to try that?
The Debian tools are not really necessary. The kernel docs explain how to configure it manually.
www.kernel.org/doc/html/latest/admin-guide/blockdev/zram.html
  • unknown
  • unknown
22 Feb 2025 19:05
Replied by unknown on topic Linuxcnc hotspot on raspberry pi

Linuxcnc hotspot on raspberry pi

Category: General LinuxCNC Questions

No and if you want to you're on your own. Totally beyond the scope of this forum.
And not a good idea for too many reasons.
  • Lpkkk
  • Lpkkk
22 Feb 2025 18:46
Linuxcnc hotspot on raspberry pi was created by Lpkkk

Linuxcnc hotspot on raspberry pi

Category: General LinuxCNC Questions

Hello did anyone tried to set up a hotspot on raspberry pi to connect remotely? 
  • unknown
  • unknown
22 Feb 2025 09:33

Linuxcnc & the Raspberry Pi (4 & 5) Official Images Only!!!

Category: Installing LinuxCNC

Actually it's my issue for not checking the boot logs, the scripts setup the zram.service. Whether Raspberry OS uses zram is not related to our images, as we use Debian.....as of course you know.
The zram.service is part of the image builder, I've modified the process so the service shouldn't be enabled and later on install systemd-zram-generator and create a config that will use 1GB on a 4GB system, this can be modified if required.
cnc@raspberrypi:~$ dpkg --list | grep "zram"
ii  systemd-zram-generator               1.1.2-2+b2                              arm64        Systemd unit generator for zram devices
ii  zram-tools                           0.3.3.1-1.1                             all          utilities for working with zram

As you can see zram tools are installed, this is whether or not systemd-zram-tools are installed.
The issue is because Bookworm uses systemd the package systemd-zram-generator is required, this is the missing piece of the puzzle. During the build the a different script is used to zram0 which fails.

As you can see from below zram0 is used for swap.
cnc@raspberrypi:~$ sudo swapon 
NAME       TYPE       SIZE USED PRIO
/dev/zram0 partition 1010M   0B  100

Without the mods I've describe above there is no swap. Whether it's need or not, but on a typical debian x86_64 install usually a 1GB swap partition is created.

As you can see it really doesn't affect the total free memory when it's not in use.
free -h
               total        used        free      shared  buff/cache   available
Mem:           3.9Gi       474Mi       2.5Gi        17Mi       1.1Gi       3.5Gi
Swap:          1.0Gi          0B       1.0Gi
And BTW it not caching memory nor mamory glands, but is creating a swap partition that is compressed in memory.

The simplest option is just to mark zram.service as masked and have no swap.

So at the moment I'm building an image with the mods.....and make sure I've done it right.

Rob
  • rodw
  • rodw's Avatar
22 Feb 2025 08:01

Linuxcnc & the Raspberry Pi (4 & 5) Official Images Only!!!

Category: Installing LinuxCNC

Sorry, my research says zram is not installed by default on Raspberry OS. I don't see this is a Linuxcnc issue.
We've always said to use a 4 GB system and with that much ram, mamory caching is not required.
  • unknown
  • unknown
22 Feb 2025 04:54

Linuxcnc & the Raspberry Pi (4 & 5) Official Images Only!!!

Category: Installing LinuxCNC

zram issue Sat Feb 22, 2025

Big thanks to forum user spina for finding this.
Tho not a game stopper, doesn't seem to affect the operation. Just entries into /var/log/boot.log
Is related to swap.
So far no reports of adverse behavior has been reported.
Feb 20 14:49:54 raspberrypi systemd[1]: Failed to start zramswap.service - Linux zramswap setup.
░░ Subject: A start job for unit zramswap.service has failed
░░ Defined-By: systemd
░░ Support: www.debian.org/support
░░
░░ A start job for unit zramswap.service has finished with a failure.
░░
░░ The job identifier is 119 and the job result is failed.
[/boot]

Issue is related to systemd-zram-generator not being installed.

So what is need is to install the missing package, disable the service that comes with the image, installation of the package installs a new service, finally the log files are rotated. Please only execute the instructions listed below.
[code]
sudo apt update
sudo apt install systemd-zram-generator
sudo systemctl mask zramswap.service
sudo logrotate --force /etc/logrotate.conf


A reboot can be done now or you can edit the file mentioned below to prior to rebooting.

By default up to 4GB of ram or half the ram is used, depending on how much ram one has.

On my 4GB system I have the following entry, which allocates 1GB to zram swap......the file to edit is after the # symbol.
# /etc/systemd/zram-generator.conf
[zram0]
zram-size = ram / 4

Apologies for missing this prior to releasing the images.
  • rodw
  • rodw's Avatar
21 Feb 2025 22:44
Replied by rodw on topic EtherCAT plasma torch voltage reader

EtherCAT plasma torch voltage reader

Category: Show Your Stuff

I wasn't thinking of putting it the connector shell but having a surface mount connector if they exist that plugs straight in like a raspberry pi hat.
The amphenol connector used by Hypertherm and Thermal Dynamics, I think comes with surface mount options....

Glad you like my idea, Pretty cool one I thought!
  • 109jb
  • 109jb
21 Feb 2025 06:03

Linuxcnc & the Raspberry Pi (4 & 5) Official Images Only!!!

Category: Installing LinuxCNC

Thanks Rob. I'll get the 7C81 when it comes back in stock.

I thought that I saw somewhere that the 7C81 is now supported in the PNC config Wizard. I could easily be wrong though.

Thanks.
Displaying 241 - 255 out of 920 results.
Time to create page: 1.645 seconds
Powered by Kunena Forum