Advanced Search

Search Results (Searched for: raspberry pi 3)

27 Jun 2024 04:19

Preparing native Raspberry Pi OS for LinuxCNC

Category: Installing LinuxCNC

2024/06/27
re raspberry pi and software stepping:

There are two ways to install LinuxCNC discussed in this thread.

The first is to use an ISO image mentioned in the official getting started guide.
Te second way is to the old a system as described by user aso_tm.

The iso solution users wayland and has no screen capture or synaptic
and makes installing synaptic difficult
Also most LinuxCNC apps appear several times in the menus.
All together, these features made me want to build the system.

The second method (ago_tm)
requires additional flags this true the apt install commands
to overcome not trusted sources errors.
Also, gebrated debs involve permission problems
for some me user who is neither me nor wrote.
Beware that the 'copy me' aid copies the $ prompt too.
Getting the build to complete requires several restarts
The first start will show you the error
and the second will hopefully will succeed after modification.
The changes will be to the last line of the copied multiline command.

But, the bottom line is...
neither solution will give you reasonable software stepping
due to huge latencies, between 3 and 7mS (yes mS)
Using latency-histogram --no-base
with 10 glxgears abd 1 youtube vid
OR one VLC vid. ( similar to ago_tm's testing)

So the raspberry pi( my version for) he's not suited to software stepping
and the contributors to this thread suggest using a hardware step generator.

I ask:
1) iI a hardware step generator is used
are latency test meaningless?
Do those tests identify no constraints on the control system?

2) What steps per second can be acgieved?
( my case would be for an rpi4B 4G)

Thanks tjtr33 / tomp

written with nerd-dictation
huh
26 Jun 2024 09:09 - 26 Jun 2024 09:09

EOI in getting SPI going on the RPi5

Category: Computers and Hardware

Just looked at that earlier repo
forum.linuxcnc.org/18-computer/51748-eoi...-rpi5?start=0#294929
That appears to be the same raspberry pi kernel and branch I compile for the images on the downloads page.
So does that mean the Pi5 has had SPI support all along?
25 Jun 2024 16:35

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

Category: Installing LinuxCNC

Another note if you want\need to run Axis you’ll want to use raspi-config to change from wayland to x11. Or anything that depends on the X11 libs, I found the way land compatibility layer really really slow.
25 Jun 2024 15:48 - 25 Jun 2024 16:05

EOI in getting SPI going on the RPi5

Category: Computers and Hardware

Has anyone tried the hal_gpio driver on Pi5? (I don't think that I have)


The latest version of LinuxCNC 2.9.2 you can find here
forum.linuxcnc.org/9-installing-linuxcnc...pi-5?start=40#303752
keeps giving these errors:
pi@raspberrypi:~ $ halrun -I
halcmd: loadrt hal_pi_gpio
Note: Using POSIX realtime
Raspberry Pi 5 Model B Rev 1.0 found
The Pi model 23 is not known to work with this driver but will be assumed to be be using the RPi2+ layout 40 pin connector
HAL_PI_GPIO: can't open /dev/gpiomem:  2 - No such file or directory
If the error is 'permission denied' then try adding the user who runs
LinuxCNC to the gpio group: sudo gpasswd -a username gpio
HAL_PI_GPIO: can't open /dev/mem:  13 - Permission denied
hal_pi_gpio: rtapi_app_main: Operation not permitted (-1)
<stdin>:1: waitpid failed /usr/bin/rtapi_app hal_pi_gpio
<stdin>:1: /usr/bin/rtapi_app exited without becoming ready
<stdin>:1: insmod for hal_pi_gpio failed, returned -1
halcmd:

Instead the hal_gpio module show this
pi@raspberrypi:~ $ halrun -I
halcmd: loadrt hal_gpio inputs=GPIO6,GPIO12,GPIO13,GPIO16,GPIO17,GPIO18,GPIO19 \
halcmd+: outputs=GPIO20,GPIO21,GPIO22,GPIO23,GPIO24,GPIO25,GPIO26,GPIO27 \
halcmd+:  invert=GPIO20,GPIO27 \
halcmd+:   reset=GPIO21,GPIO22
Note: Using POSIX realtime
halcmd: show pin
Component Pins:
Owner   Type  Dir         Value  Name
     4  bit   OUT         FALSE  hal_gpio.GPIO12-in
     4  bit   OUT         FALSE  hal_gpio.GPIO12-in-not
     4  bit   OUT         FALSE  hal_gpio.GPIO13-in
     4  bit   OUT         FALSE  hal_gpio.GPIO13-in-not
     4  bit   OUT         FALSE  hal_gpio.GPIO16-in
     4  bit   OUT         FALSE  hal_gpio.GPIO16-in-not
     4  bit   OUT         FALSE  hal_gpio.GPIO17-in
     4  bit   OUT         FALSE  hal_gpio.GPIO17-in-not
     4  bit   OUT         FALSE  hal_gpio.GPIO18-in
     4  bit   OUT         FALSE  hal_gpio.GPIO18-in-not
     4  bit   OUT         FALSE  hal_gpio.GPIO19-in
     4  bit   OUT         FALSE  hal_gpio.GPIO19-in-not
     4  bit   IN          FALSE  hal_gpio.GPIO20-out
     4  bit   IN          FALSE  hal_gpio.GPIO21-out
     4  bit   IN          FALSE  hal_gpio.GPIO22-out
     4  bit   IN          FALSE  hal_gpio.GPIO23-out
     4  bit   IN          FALSE  hal_gpio.GPIO24-out
     4  bit   IN          FALSE  hal_gpio.GPIO25-out
     4  bit   IN          FALSE  hal_gpio.GPIO26-out
     4  bit   IN          FALSE  hal_gpio.GPIO27-out
     4  bit   OUT         FALSE  hal_gpio.GPIO6-in
     4  bit   OUT         FALSE  hal_gpio.GPIO6-in-not
     4  s32   OUT             0  hal_gpio.read.time
     4  s32   OUT             0  hal_gpio.reset.time
     4  s32   OUT             0  hal_gpio.write.time

halcmd:
25 Jun 2024 14:37

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

Category: Installing LinuxCNC

alright, awesome thank you!

question, your previous images had the rt already installed, is there some limitation to why they arent this time, or is it so you can hit update before loading the kernel?

I chose this procedure because it allows you to choose the best Raspbian configuration (user, password, ssh, wifi, locales, etc..), to update an already existing version, to install the version of LinuxCNC of your choice and other alternatives.

However, for those who don't want to, in these links there are the ready-to-user images with LinuxCNC 2.9.2
(user:pi  pwd:raspberry)

OS: Linux raspberrypi 6.6.32-rpi999-rpi-v8 #1 SMP PREEMPT_RT Mon Jun 24 15:56:31 CEST 2024 aarch64
( image_lcnc_pi4.zip )

OS: Linux raspberrypi 6.6.32-rpi999-rpi-2712 #2 SMP PREEMPT_RT Sun Jun  9 10:10:54 CEST 2024 aarch64
( image_lcnc_pi5.zip )
 
25 Jun 2024 01:43

Mesa 7i96 Ethernet Socket Problems - LC2.9.2 on Raspberry Pi 4B

Category: Driver Boards

With either cable connected, either way around, finger stressing the connection at the 7i96 socket interrupts packets.
The same stressing at the RPi socket is reliable.

I'm a little confused, If this is the case (clearly a hardware problem) , why are you looking for software solutions?
25 Jun 2024 00:12

Mesa 7i96 Ethernet Socket Problems - LC2.9.2 on Raspberry Pi 4B

Category: Driver Boards

There is no network symbol anywhere, and I have searched.

I will later connect the RPi to the WiFi extender via ethernet and see if I can install Network Manager.

I am quite unsure about IP addressing.
The /8 mask and gateway entry are as returned from Terminal commands, and what I gleaned searching the Forum.

I will try the workshop desktop connected to the Mesa in 6 hours time, busy during the day.

My records seem to show the LC2.9.2 image was flashed to the SD card with RPi Imager.
I tried Balena Etcher, but couldn't get it to work.
I will do another SD card with a fresh download and RPi Imager to confirm.

rodw
Are you saying the RPi4 itself needs an update ?

Cold start in workshop, 15 degrees.
Changed W5 and W6 to default 192.168.1.121.
Used menu-config to remove gateway and change address to match.

ping results:
- 123 packets 0% loss,
- 391 packets 73 % loss.

John.
24 Jun 2024 23:10

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

Category: Installing LinuxCNC

alright, awesome thank you!

question, your previous images had the rt already installed, is there some limitation to why they arent this time, or is it so you can hit update before loading the kernel?
24 Jun 2024 20:17

Mesa 7i96 Ethernet Socket Problems - LC2.9.2 on Raspberry Pi 4B

Category: Driver Boards

This may not help but try downloading the latest version of rpi imager and using it to update the Pi's firmware.
Some of the older Pi 4B's require this.
24 Jun 2024 15:49
Replied by jimmyrig on topic LinuxCNC vs Klipper

LinuxCNC vs Klipper

Category: General LinuxCNC Questions

So many questions.....

Why ros? Linuxcnc can do everything (robot and tape dispenser) and takes a few days to setup at most ...
imo ros is not very good.... So clumsy and bloated.... Takes forever to get anything done.... Seems faster to just code things from scratch....But maybe my brain is too smooth to understand it.

Imo if you are using it industrially use linuxcnc with a mesa board (7i96s prob) or a PLC. If it's for fun use whatever you want (klipper, rasp pi, 3x printer boards, etc). Raspberry pis are typically not as reliable as a PC with a mesa board.
24 Jun 2024 15:01 - 24 Jun 2024 15:07

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

Category: Installing LinuxCNC

To install raspian12 bookworm image, prepare an SD card with the RaspiOS version for the type of Raspberry you are interested in (pi4, Pi400, Pi5).
I find it comfortable
www.raspberrypi.com/software/
because it also allows you to select various options (ssh, wifi, locales, etc..).

Boot the SD and run these commands from the terminal to update the RaspiOS version

sudo apt-get update
sudo apt-get upgrade
sudo reboot

Upon reboot, copy the install-kernel files and the zip file to the /tmp directory

Then run these commands from terminal


cd /tmp
chmod +x ./install-kernel
sudo ./install-kernel ./kernel-6.6.32-v8-elv.zip
(in the case of Pi4 and PI400)

or
sudo ./install-kernel ./kernel-6.6.32-v8-16k-elv.zip
(in the case of Pi5)

So you need to edit the cmdline.txt with
sudo nano "/boot/firmware/cmdline.txt"
adding the following commands to the end of the line
isolcpus=2,3 rcu_nocbs=2,3 nohz_full=2,3 max.processor.cstate=1
24 Jun 2024 14:40 - 25 Jun 2024 06:39

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

Category: Installing LinuxCNC

No, the images are different.
If you wait a couple of days I can create updated ones for both versions of Raspberry


Here are the files I promised you

drive.google.com/file/d/1jBEO7Acl0C0t4id.../view?usp=drive_link  (Pi5 - kernel-6.6.32-v8-16k-elv.zip)

drive.google.com/file/d/1B58q4xJgBR4GnxI.../view?usp=drive_link  (Pi4, Pi400 - kernel-6.6.32-v8-elv.zip)

drive.google.com/file/d/1ltrkbEiI_BssNY0.../view?usp=drive_link (install-kernel)

Since for building the RT kernel I followed this procedure (forums.raspberrypi.com/viewtopic.php?t=343387), in the next post I describe the procedures for using.
24 Jun 2024 13:46

Mesa 7i96 Ethernet Socket Problems - LC2.9.2 on Raspberry Pi 4B

Category: Driver Boards

Forgot about this one, the RPi4 network interface is known to go "sleep", some users reported this occurring after boot.

It would be interesting to see if the ping issues happen when the Mesa card is connected to a non-RPi device.
24 Jun 2024 13:42 - 24 Jun 2024 13:51

Mesa 7i96 Ethernet Socket Problems - LC2.9.2 on Raspberry Pi 4B

Category: Driver Boards

Where the network symbol is in the top right, click on that and that opens the network manager. Can't remember whether Rod left this off to reduce image size, so it may not be there. I was assisting Rod when he was putting the image together and I was including a "little bit extra" in the images I was putting together, so that's why the old memory maybe a bit hazy.

I there any reason you have a /8 mask (16,777,216 hosts from memory this is a publcily routable network, it's be a while since my networking course) rather than a /24 mask (256 hosts which is reserved for private\home networks ) and there is no need for a gateway as there are no other devices on that network subnet. Who recommended these values ?
24 Jun 2024 12:11 - 24 Jun 2024 12:14

Mesa 7i96 Ethernet Socket Problems - LC2.9.2 on Raspberry Pi 4B

Category: Driver Boards

Using the official download image without any modifications.

I cannot find Network Manager on this release.

Used Terminal to launch "menu-config".
Get a dialog box with options to edit entries.
All wifi channels deactivated.
Only one one wired channel activated and edited per:
- Device: eth0 ( ::::: ) as reported by "ip a",
- IPv4 config: Auto,
- Address: 10.10.10.11/8,
- Gateway" 10.10.10.1,
- IPv6: Ignore,
- Automatically connect: [x],
- Available all users: [x].

All workshop equipment and ancillaries de-energized.
Steppers powered off.
VFD in adjacent cubicle powered on, but not operating spindle.
Operation as reported earlier with lost packets.

John.
Displaying 286 - 300 out of 944 results.
Time to create page: 0.720 seconds
Powered by Kunena Forum