Advanced Search

Search Results (Searched for: raspberry)

01 Jan 2024 18:13

Linuxcnc 2.9.2 and 2.93 images for Raspberry Pi 4b & 5

Category: Installing LinuxCNC

It appears that there is something about our image that the Rpi Imager does not like.
The guys are working on it.
Could you please try burning with Balena Etcher? etcher.balena.io/
This burnt and validated the image for me.
 
01 Jan 2024 13:05

Linuxcnc 2.9.2 and 2.93 images for Raspberry Pi 4b & 5

Category: Installing LinuxCNC

Hi,
here is the translation:

The input file is not a valid disk image.
The file size 4723000000 bytes is not a multiple of 512 bytes
01 Jan 2024 11:56

Linuxcnc 2.9.2 and 2.93 images for Raspberry Pi 4b & 5

Category: Installing LinuxCNC

Hi,
I get an error if I try to install the image for a Pi 5.
Best and a happy new year

COuld you translate that to English please? I will report it to the upstream guys
01 Jan 2024 09:59

Linuxcnc 2.9.2 and 2.93 images for Raspberry Pi 4b & 5

Category: Installing LinuxCNC

Hi,
I get an error if I try to install the image for a Pi 5.
Best and a happy new year
31 Dec 2023 18:51 - 12 Aug 2024 21:37

Linuxcnc 2.9.2 and 2.93 images for Raspberry Pi 4b & 5

Category: Installing LinuxCNC

 
Hi guys, could you guys with the PI's please test these images for me and provide some feedback
These are refreshes of my earlier 2.9.1 images.
They both use the latest PREMPT_RT 6.1.69 kernel, and Debian Bookworm

2.9.2 for Raspberry Pi 4b/400
drive.google.com/file/d/1Bzx_PqRqdJVTMPl...cDX/view?usp=sharing

2.92 for Raspberry PI 5
drive.google.com/file/d/1HBXliMQE-OvU0PQ...O5K/view?usp=sharing

2.93 for Raspberry PI 4b
drive.google.com/file/d/1Fg2CPTezUyrRFrO...ytT/view?usp=sharing

2.93 for Raspberry PI 5
Pi 5 Image drive.google.com/file/d/127ibNkPRNx4Nw75...UuV/view?usp=sharing


Note 2.93 images include the 6.6.44 kernel, better  screen support on the Pi5 and ethercat repostories installed. See the sticky in the ethercat section on how to install.

Also, those of you with the Pi5, have you had any issues with sound. One user reported he had no sound but the HDMI output is a bit poblematic. The images do include pulseaudio.

For initial login credentials, and initial configuration,  please refer to the download page
linuxcnc.org/downloads
29 Dec 2023 22:23

ColorCNC Colorlight 5A-75E/5A-75B as FPGA controller board

Category: Driver Boards

Just released version 1.2.0 to PyPi with support for Raspberry Pi 5!

This release brings furthermore:
  • An updated watchdog module with an enable pin. This enable pin is HIGH as long the watchdog is happy. It will go LOW when the watchdog bites, for example when the communication gets disrupted. This enable pin can be used to control / disable buffers to bring the machine to a safe state. When recompiling a card, modification of the configuration file is required.
  • Several bug-fixes:
    • in the CLI (correct detection of 64-bit RPi);
    • PWM does not generate errors / warning at compilation;
    • pin numbering of HUB75HAT has been corrected (connectors were mirrored);
    • resolved error with GPIO when there are only inputs or outputs defined..
29 Dec 2023 22:03

LitexCNC: firmware and driver for 5A-75B and 5A-75E

Category: Driver Boards

Just released version 1.2.0 to PyPi with support for Raspberry Pi 5!

This release brings furthermore:
  • An updated watchdog module with an enable pin. This enable pin is HIGH as long the watchdog is happy. It will go LOW when the watchdog bites, for example when the communication gets disrupted. This enable pin can be used to control / disable buffers to bring the machine to a safe state. When recompiling a card, modification of the configuration file is required.
  • Several bug-fixes:
    • in the CLI (correct detection of 64-bit RPi);
    • PWM does not generate errors / warning at compilation;
    • pin numbering of HUB75HAT has been corrected (connectors were mirrored);
    • resolved error with GPIO when there are only inputs or outputs defined..
28 Dec 2023 13:33 - 28 Dec 2023 21:18

Patching the MCP23017 kernel driver device tree to work with hal_gpio (RPi)

Category: HAL

tldr: The following procedure should work for any SPI/I2C/... GPIO Expander with an existend linux kernel/gpiod driver that uses a Device Tree configuration.

I'm currently retrofitting a small CNC mill with LinuxCNC on the Raspberry Pi 4.
To get more GPIOs I wanted to use the MCP23017 I2C Port Expander (www.microchip.com/en-us/product/mcp23017).
For testing I use this board: www.adafruit.com/product/4132
I don't expect the GPIOs to be realtime, but I want to use them in a HAL file.

While resaerching I found this thread (but there is no real solution, only some hints): forum.linuxcnc.org/24-hal-components/464...dapt-the-extended-io
I also took a closer look at the hal_gpio driver.

As documented the hal_gpio driver relies on the gpiod package and the names given by gpioinfo. I was lucky because there is a linux kernel driver for the MCP23017:
github.com/torvalds/linux/blob/master/Do...pinctrl-mcp23s08.txt
github.com/torvalds/linux/blob/master/dr...nctrl-mcp23s08_i2c.c

So I added the Device Tree (/boot/broadcom/overlays/mcp23017.dtbo) that was already provided in the firmware folder on the RPi to the config.txt as an overlay and did a reboot.
cnc@raspberrypi:~$ sudo nano /boot/broadcom/config.txt
 - add follwing at the end of the file:
dtoverlay=mcp23017
 - also enable I2C if not alredy enabled:
dtparam=i2c_arm=on

After running gpioinfo the GPIO extender with the pins was shown, but they didn't have a name ('unnamed').
cnc@raspberrypi:~$ gpioinfo
gpiochip0 - 58 lines:
        line   0:     "ID_SDA"       unused   input  active-high
        ...
        line  57: "RGMII_TXD3"       unused   input  active-high
gpiochip1 - 8 lines:
        line   0:      "BT_ON"       unused  output  active-high
        ...
        line   7:    "SD_OC_N"       unused   input  active-high
gpiochip2 - 16 lines:
        line   0:      unnamed       unused   input  active-high
        line   1:      unnamed       unused   input  active-high
        line   2:      unnamed       unused   input  active-high
        line   3:      unnamed       unused   input  active-high
        line   4:      unnamed       unused   input  active-high
        line   5:      unnamed       unused   input  active-high
        line   6:      unnamed       unused   input  active-high
        line   7:      unnamed       unused   input  active-high
        line   8:      unnamed       unused   input  active-high
        line   9:      unnamed       unused   input  active-high
        line  10:      unnamed       unused   input  active-high
        line  11:      unnamed       unused   input  active-high
        line  12:      unnamed       unused   input  active-high
        line  13:      unnamed       unused   input  active-high
        line  14:      unnamed       unused   input  active-high
        line  15:      unnamed       unused   input  active-high

After some resaech and comparison to the Raspberry Pi GPIO device tree I figured out how to set the GPIO names in the device tree:
 - Decompile the .dtbo in the .dts format with dtc:
cnc@raspberrypi:~$ dtc /boot/broadcom/overlays/mcp23017.dtbo -o mcp23017.dts
 - Edit the .dts file:
cnc@raspberrypi:~$ nano mcp23017.dts
    - change the I2C address if necessary (the adafruit board has the address 0x20):
mcp23017_pins@20
mcp@20
reg = <0x20>;
    - add the GPIO names in the mcp@20 section (ypu can choose your own names):
gpio-line-names = "MCP20_A0","MCP20_A1","MCP20_A2","MCP20_A3","MCP20_A4","MCP20_A5","MCP20_A6","MCP20_A7","MCP20_B0","MCP20_B1","MCP20_B2","MCP20_B3","MCP20_B4","MCP20_B5","MCP20_B6","MCP20_B7";
 - Compile the file back and save it to the firmware folder (keep a backup of the original .dtbo file)
cnc@raspberrypi:~$ dtc mcp23017.dts -o mcp23017.dtbo -O dtb
cnc@raspberrypi:~$ sudo mv /boot/broadcom/overlays/mcp23017.dtbo /boot/broadcom/overlays/mcp23017.dtbo.old
cnc@raspberrypi:~$ sudo mv mcp23017.dtbo /boot/broadcom/overlays/mcp23017.dtbo
 - reboot

After applying the patched Device Tree I got names in the gpioionfo output:
cnc@raspberrypi:~$ gpioinfo
gpiochip0 - 58 lines:
        line   0:     "ID_SDA"       unused   input  active-high
    ...
        line  57: "RGMII_TXD3"       unused   input  active-high
gpiochip1 - 8 lines:
        line   0:      "BT_ON"       unused  output  active-high
        ...
        line   7:    "SD_OC_N"       unused   input  active-high
gpiochip2 - 16 lines:
        line   0:   "MCP20_A0"       unused   input  active-high
        line   1:   "MCP20_A1"       unused   input  active-high
        line   2:   "MCP20_A2"       unused   input  active-high
        line   3:   "MCP20_A3"       unused   input  active-high
        line   4:   "MCP20_A4"       unused   input  active-high
        line   5:   "MCP20_A5"       unused   input  active-high
        line   6:   "MCP20_A6"       unused   input  active-high
        line   7:   "MCP20_A7"       unused   input  active-high
        line   8:   "MCP20_B0"       unused   input  active-high
        line   9:   "MCP20_B1"       unused   input  active-high
        line  10:   "MCP20_B2"       unused   input  active-high
        line  11:   "MCP20_B3"       unused   input  active-high
        line  12:   "MCP20_B4"       unused   input  active-high
        line  13:   "MCP20_B5"       unused   input  active-high
        line  14:   "MCP20_B6"       unused   input  active-high
        line  15:   "MCP20_B7"       unused   input  active-high

Then it is possible to use the GPIOs with the hal_gpio driver:
cnc@raspberrypi:~$ halrun
halcmd: loadrt hal_gpio inputs=MCP20_A0,MCP20_A1 outputs=MCP20_B0,MCP20_B1

halcmd: show pin
Component Pins:
Owner   Type  Dir         Value  Name
     4  bit   OUT         FALSE  hal_gpio.MCP20_A0-in
     4  bit   OUT         FALSE  hal_gpio.MCP20_A0-in-not
     4  bit   OUT         FALSE  hal_gpio.MCP20_A1-in
     4  bit   OUT         FALSE  hal_gpio.MCP20_A1-in-not
     4  bit   IN          FALSE  hal_gpio.MCP20_B0-out
     4  bit   IN          FALSE  hal_gpio.MCP20_B1-out
     4  s32   OUT             0  hal_gpio.read.time
     4  s32   OUT             0  hal_gpio.write.time
28 Dec 2023 04:44

MESA 7i97T, unable to ping board, strange lamp behavior

Category: Driver Boards

Thanks guys. Had multiple issues. Using a laboratory power supply the card boots up fine :-) and after much stuffing around have got the raspberry pi able to ping it.

Thanks again to the great community and support here.
27 Dec 2023 08:52

LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)

Category: Computers and Hardware

Thank you for help.
Currently my setup work on bench with serial communication of the box, just small adjustment of baud rate in rio.v and adjusting port in rio.h!
Still lot to do.
 
Hi Zayoo,
nice !
Are you using a Raspberry with Serial on GPIO or an USB-Serial-Adapter ?


 

I'm using FTDI232 USB to serial converter. My setup is running on VirtualBox on desk PC. 

 

 

cool !
i have had no luck with any USB connections (UART2USB/SPI2USB).
everything works so far, but I always get 'joint follow errors' during movements

but I also have the same problem with direct UART connection on the Raspberry (/dev/AMA0)

 
26 Dec 2023 08:05 - 26 Dec 2023 08:43
25 Dec 2023 10:46 - 25 Dec 2023 11:47

LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)

Category: Computers and Hardware

Thank you for help.
Currently my setup work on bench with serial communication of the box, just small adjustment of baud rate in rio.v and adjusting port in rio.h!
Still lot to do.
 
Hi Zayoo,
nice !
Are you using a Raspberry with Serial on GPIO or an USB-Serial-Adapter ?


 

I'm using FTDI232 USB to serial converter. My setup is running on VirtualBox on desk PC. 

 

24 Dec 2023 00:24

Linumeric-LPT V3 - Ethernet to LPT controller for LinuxCNC

Category: Driver Boards

Hey this looks pretty cool. I was just working on my own remora version using the 411, then stumbled on this. Ive been keeping my eye on your other project for a while though. Mine includes a raspberry pi header.

I am very interested to see your firmware and linuxcnc driver.
23 Dec 2023 12:09
Replied by rodw on topic LinuxCNC on Raspberry Pi 5

LinuxCNC on Raspberry Pi 5

Category: Installing LinuxCNC

My interest is being able to build a img that has Linuxcnc preinstalled on the 6.1.x kernel to remain compatibility with Debian 12 to complement the other installers I have built. Eventually, the kernels and patches will align so until then early adopters will have to follow your methods
Displaying 796 - 810 out of 953 results.
Time to create page: 1.118 seconds
Powered by Kunena Forum