Advanced Search

Search Results (Searched for: raspberry pi 3)

09 Dec 2023 22:42 - 10 Dec 2023 01:14

LinuxCNC on Raspberry Pi 5

Category: Installing LinuxCNC

This image can be downloaded from here
drive.google.com/file/d/16kKamxMKPdYAeJp...KLf/view?usp=sharing
I installed this and it's quite nice.  Much like the default Pi release, everything came up normally.  The latency historgram looks good.  I'm trying to talk to a Mesa 7c81.  After I set it up for an XZ lathe I get this error report when launch.  The key part seems to be:

Note: Using POSIX realtime
hm2_rpspi: Can't map peripherals: Invalid argument
hm2_rpspi: cannot map peripheral memory.
hm2_rpspi: rtapi_app_main: Invalid argument (-22)
./my_LinuxCNC_machine.hal:9: waitpid failed /usr/bin/rtapi_app hm2_rpspi
./my_LinuxCNC_machine.hal:9: /usr/bin/rtapi_app exited without becoming ready
./my_LinuxCNC_machine.hal:9: insmod for hm2_rpspi failed, returned -1

One of you can probably point out how to correct the memory management.  Suggestions?  There are less errors on the rspi than in the past.  Maybe if I get the memory setup right it can load the rspi driver?
ulimit -l reports 1030416, much bigger than the 20480 noted in the build document.

 



OK it has nothing to do with ulimit.

If you look at the source and do some investigation you find to begin with the driver is detecting the board as a RPi3. Therefore the driver is trying to use a memory location that is completely wrong. I raised this issue on github, along with a few experiments I've made but as of yet no replies other than my own have been made. The hm2_rpspi driver takes over from the kernel driver for spi, in fact it unloads the spi_bcm2835 driver.

If you really want to investigate further the first thing you'll need to do is setup all the required dependencies to build Linuxcnc from source.

I dont know where you got the info regarding the chip select line from. The hm2_spi driver will communicate via SPI when using halrun, unfortunately when being used in a config the driver is not fast enough. This is due to the fact that this driver uses the linux kernel SPI driver, and this is actually noted in the man page for that driver.

The GPIO interface has changed to such a degree, the RPi5 will not work with many of the utils & libraries that access the GPIO on the RPi4.

And yes I do have access to boards that run both 7i90 & 7c81 firmware that run fine on a RP-400.

[/quote]
[/quote]
09 Dec 2023 22:18

LinuxCNC on Raspberry Pi 5

Category: Installing LinuxCNC

rodw post=287637 userid=20660I did a bit of reading. can you guys try adding this at the beginning of cmdline.txt?

video=HDMI-A-1:1920x1080M@60D 

I also noticed that the RT patch 6.1,66 has been released and the 6.1.66 kernel was merged into the 6.1.y branch yesterday so it would be a good time to build another image.
 
There was no cmdline.txt. Creating one with this line didn't change anything.


cmdline.txt is in a subfolder of /boot
09 Dec 2023 21:31
Replied by chuckp47 on topic LinuxCNC on Raspberry Pi 5

LinuxCNC on Raspberry Pi 5

Category: Installing LinuxCNC

I used the OS customization in the rpi-img program to set them to my own and it worked. It also connected right up to WiFi.
09 Dec 2023 18:49
Replied by thadwald on topic LinuxCNC on Raspberry Pi 5

LinuxCNC on Raspberry Pi 5

Category: Installing LinuxCNC

So what's the password on that image? I can't seem to find it posted anywhere. cnc didn't work for me.
09 Dec 2023 17:21
Replied by chuckp47 on topic LinuxCNC on Raspberry Pi 5

LinuxCNC on Raspberry Pi 5

Category: Installing LinuxCNC

Reading the errors again, these are all about rspi. That's the same as I had in Rod's image.
I suspect that the SPI driver is still not capable of what is expected here. Some research into the SPI situation showed me that there are features like chip select support that are not yet available in the RPi 5 (RP1 chip) driver package. This will be something more to look into, both in the how LinuxCNC is using SPI and what the SPI firmware driver for the RP1 chip is doing.
09 Dec 2023 16:43
Replied by chuckp47 on topic LinuxCNC on Raspberry Pi 5

LinuxCNC on Raspberry Pi 5

Category: Installing LinuxCNC

This image can be downloaded from here
drive.google.com/file/d/16kKamxMKPdYAeJp...KLf/view?usp=sharing

I installed this and it's quite nice.  Much like the default Pi release, everything came up normally.  The latency historgram looks good.  I'm trying to talk to a Mesa 7c81.  After I set it up for an XZ lathe I get this error report when launch.  The key part seems to be:

Note: Using POSIX realtime
hm2_rpspi: Can't map peripherals: Invalid argument
hm2_rpspi: cannot map peripheral memory.
hm2_rpspi: rtapi_app_main: Invalid argument (-22)
./my_LinuxCNC_machine.hal:9: waitpid failed /usr/bin/rtapi_app hm2_rpspi
./my_LinuxCNC_machine.hal:9: /usr/bin/rtapi_app exited without becoming ready
./my_LinuxCNC_machine.hal:9: insmod for hm2_rpspi failed, returned -1


One of you can probably point out how to correct the memory management.  Suggestions?  There are less errors on the rspi than in the past.  Maybe if I get the memory setup right it can load the rspi driver?
ulimit -l reports 1030416, much bigger than the 20480 noted in the build document.

 
09 Dec 2023 16:14
Replied by rodw on topic LinuxCNC on Raspberry Pi 5

LinuxCNC on Raspberry Pi 5

Category: Installing LinuxCNC

Sorry, I was quoting  a source, the file name and location (to a subfolder) may have changed
09 Dec 2023 14:21 - 09 Dec 2023 14:22
Replied by thadwald on topic LinuxCNC on Raspberry Pi 5

LinuxCNC on Raspberry Pi 5

Category: Installing LinuxCNC

This image can be downloaded from here
drive.google.com/file/d/16kKamxMKPdYAeJp...KLf/view?usp=sharing
At first glance everything seems to work regularly and the lowest value that did not show the "Unexpected realtime delay" message was
latency-test 12000

Trying your image now. ... what username and pw does it take?
09 Dec 2023 14:10 - 09 Dec 2023 14:11
Replied by thadwald on topic LinuxCNC on Raspberry Pi 5

LinuxCNC on Raspberry Pi 5

Category: Installing LinuxCNC

rodw post=287637 userid=20660I did a bit of reading. can you guys try adding this at the beginning of cmdline.txt?

video=HDMI-A-1:1920x1080M@60D 

I also noticed that the RT patch 6.1,66 has been released and the 6.1.66 kernel was merged into the 6.1.y branch yesterday so it would be a good time to build another image.
 

There was no cmdline.txt. Creating one with this line didn't change anything.
09 Dec 2023 11:15

LinuxCNC on Raspberry Pi 5

Category: Installing LinuxCNC

I think that the images built with the rpi-img-build are missing some grahpics libs that are included with the Raspberry Pi OS. When the RPi5 is booted with your image and you go to change the resolution there is no monitor info there. There could be a problem with the EDID being read, so it doesn't know what monitor\display it is working with.

Just remember rod that the RPi5 is a different beast compared to the RPi4.
09 Dec 2023 11:07

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

Category: Installing LinuxCNC

Hello. I'm new to the forum. During the day I'm an embedded firmware guy. I've built products using the RPi4 (CM4) and an Olimex Lime board. I want to use LinuxCNC to control an ornamental lathe. I've got an RPi5 here now, as well as a Mesa 7c81 with an RPi4 on its back. I know I have more questions than I can post right now, but I look forward to learning more here. I'm particularly interested in how the RPi5 port is coming.

Here's the result of the latency plot on the 4G RPi4b running the LinuxCNC 2.9.1 Debian 12 Bookworm PREEMPT-RT ISO.  Doesn't look too good,  Is this normal?  We're planning to use DM542 style drivers, so maybe it doesn't have to be perfect, but...  I guess I should try the RTAI based one.  Or maybe I should just jump into the RPi5 project?

 


Just run the latency test without the base thread. There's no need for a base thread when using a Mesa card.
Be warned the hm2_rpspi driver does not work with the RPi5, it requires a rewrite to suit the RPi5 hardware, IO has been moved to the RP1 chip rather than being on the processor itself, I spent a while with this, hence the reason the RPi5 is in a drawer ATM. If you want to reduce the latency disable sound, wfi & bluetooth.
09 Dec 2023 11:02
Replied by rodw on topic LinuxCNC on Raspberry Pi 5

LinuxCNC on Raspberry Pi 5

Category: Installing LinuxCNC

I did a bit of reading. can you guys try adding this at the beginning of cmdline.txt?

video=HDMI-A-1:1920x1080M@60D 

I also noticed that the RT patch 6.1,66 has been released and the 6.1.66 kernel was merged into the 6.1.y branch yesterday so it would be a good time to build another image.
09 Dec 2023 10:52

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

Category: Installing LinuxCNC

Hello. I'm new to the forum. During the day I'm an embedded firmware guy. I've built products using the RPi4 (CM4) and an Olimex Lime board. I want to use LinuxCNC to control an ornamental lathe. I've got an RPi5 here now, as well as a Mesa 7c81 with an RPi4 on its back. I know I have more questions than I can post right now, but I look forward to learning more here. I'm particularly interested in how the RPi5 port is coming.

Here's the result of the latency plot on the 4G RPi4b running the LinuxCNC 2.9.1 Debian 12 Bookworm PREEMPT-RT ISO.  Doesn't look too good,  Is this normal?  We're planning to use DM542 style drivers, so maybe it doesn't have to be perfect, but...  I guess I should try the RTAI based one.  Or maybe I should just jump into the RPi5 project?

If you are interested with a Pi 5 and the image you find here
forum.linuxcnc.org/9-installing-linuxcnc...pi-5?start=60#287616
the graph of latency-hystogram is this
 
09 Dec 2023 08:54

LinuxCNC on Raspberry Pi 5

Category: Installing LinuxCNC

Well ...
I added the network-manager-gnome package in order to get the GUI nm-applet.

I also added the raspberry pi repository 
deb archive.raspberrypi.org/debian/ bookworm main
so I could get raspi-config

isolcpus 2.3
Max latency during a short test was about 15us
I hooked it up to a MESA 7i76s and just worked. So no network latency issues (yet).
I'll let it run for a while.

The 640x480 display limit is a bugger. Any idea how to fix that?

It does run pretty warm. 
Processor utilization running gcode in Axis is around 15% for cores 1 and 2


 

No solutions as of yet, I think its related to not being able to read EDID of the display. Raspberry Pi OS is fine. Which, IMHO, does feel a little snappier, but that's just a "seat of the pants" feeling.
09 Dec 2023 08:48

LinuxCNC on Raspberry Pi 5

Category: Installing LinuxCNC

Why are you running such a low servo thread ?

If you are running Wayland just be wary that any apps that make calls to X lib functions will be a little, ahem, slow.

There is an option in raspi-config to change from Wayland to X.
Displaying 856 - 870 out of 944 results.
Time to create page: 1.029 seconds
Powered by Kunena Forum