Advanced Search

Search Results (Searched for: raspberry)

02 Jan 2024 20:52

RPI 4 apt update warning

Category: Installing LinuxCNC

Hi,

I am getting the following warning when doing a sudo apt-get update on my RPI 4 running bookworm:Hit:5 www.linuxcnc.org bookworm InRelease                        
Reading package lists... Done
W: Skipping acquire of configured file '2.9-rt/source/Sources' as repository 'www.linuxcnc.org bookworm InRelease' does not seem to provide it (sources.list entry misspelt?)I installed linuxcnc 2.9.2 according to  linuxcnc.org/docs/2.9/html/getting-start...lling_on_raspbian_12

uname -a: Linux raspberrypi 6.1.0-rpi7-rpi-v8 #1 SMP PREEMPT Debian 1:6.1.63-1+rpt1 (2023-11-24) aarch64

The following linuxcnc entries in my sources.list:

deb [arch=amd64,arm64 signed-by=/usr/share/keyrings/linuxcnc.gpg] www.linuxcnc.org/ bookworm base 2.9-uspace 2.9-rt
deb-src [arch=amd64,arm64 signed-by=/usr/share/keyrings/linuxcnc.gpg] www.linuxcnc.org/ bookworm base 2.9-uspace 2.9-rt

Do I need to update my sources.list?

Thanks
 
02 Jan 2024 16:38

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

Category: Installing LinuxCNC

Balena works well.

Screen resolution works so much better than anything I have seen so far. Jitter is good and sim looks smooth.

Problems, I have no sound, no Wi-Fi, no network manager and no update manager.

Thank you for all the work.
Scott
01 Jan 2024 20:27

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

Category: Installing LinuxCNC

Hi,
I have tested it a bit on my lathe with gmoccapy. So far so good. With my old iso I had some latency errors they are gone. The audio error on raspberry pi 5 persists.
And I can't move/rotate the gcode viewer with touchscreen.
01 Jan 2024 18:31

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

Category: Installing LinuxCNC

Yes, balena works for me,too.

Great! Please test it out a bit and give me some feedback

It seems that we are using a slightly different compression method that the PI imager does not like.
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)

 
Displaying 706 - 720 out of 1060 results.
Time to create page: 0.929 seconds
Powered by Kunena Forum