Advanced Search

Search Results (Searched for: raspberry pi 3)

  • rodw
  • rodw's Avatar
09 Jul 2024 08:06

Notes from installation of ethercat on Raspberry Pi 4

Category: EtherCAT

3 years is a long time in this space.
I would try installing the Raspberry pi 5 image on the downloads page and then follow these instructions
forum.linuxcnc.org/ethercat/45336-etherc...-how-to-step-by-step

The ethercat repositories should be installed for you already so hopefully, you will find there is no need to build from source if iGh supports the pi5 now.
 
  • seyad
  • seyad
09 Jul 2024 06:55

Notes from installation of ethercat on Raspberry Pi 4

Category: EtherCAT

Hi Hakan,
I am using Raspberry pi5. I build Linuxcnc from source code .now i started installing ethercat from source code following your notes but now i am facing some issues in etherlab master build ($make dkms_build) in this line.
i also attached output log. is there any other way for RP5 ..?    
  • HerrNamenlos123
  • HerrNamenlos123's Avatar
08 Jul 2024 20:50
Replied by HerrNamenlos123 on topic How to diagnose crashing LinuxCNC

How to diagnose crashing LinuxCNC

Category: Installing LinuxCNC

Alright, I found the solution already.

Firstly:
I was able to get debug information out of LinuxCNC by having xinit instead loading a script, that calls LinuxCNC and redirects its output to a file.

Secondly:
It turned out LinuxCNC cannot run as root, however xinit must run as root, which means the script needed to use "sudo -u cnc linuxcnc" to run it as a normal user even though xinit runs it as root.

And thirdly:
There was also an issue where it did not load forever and apparently it was waiting for user input in the console, which was not visible.
In the end it turned out it's a lot easier to run "sudo xinit" in one terminal, to run the xorg server, and in another terminal run linuxcnc manually, thereby not having an issue with root and you can also do user input.

I cannot attach a Screenshot here but it works now and I have LinuxCNC running fullscreen on a Raspberry PI, without a desktop environment.
  • HerrNamenlos123
  • HerrNamenlos123's Avatar
08 Jul 2024 19:46 - 08 Jul 2024 19:51
How to diagnose crashing LinuxCNC was created by HerrNamenlos123

How to diagnose crashing LinuxCNC

Category: Installing LinuxCNC

I just followed linuxcnc.org/docs/stable/html/getting-st...th_preempt_rt_kernel and installed Raspbian bookworm Lite on a Raspberry 3B, and installed the Preempt-RT Kernel, and then installed LinuxCNC using the install script.

I have no desktop environment and want to run only the LinuxCNC application using the X11 server, without any other bloat.

Now, after installing xorg, i can successfully run LinuxCNC using
sudo xinit linuxcnc $* -- :0 vt$XDG_VTNR


Now, the terminal of the rpi turns into a black window, that renders LinuxCNC fullscreen, without a desktop environment. (Screenshot in Attachments)

However, when I select any config (e.g. sim->axis->axis) and click ok, the window closes and the normal EMC2 splash screen appears for a few seconds, like it should, and then it just closes without any message and the X11 server stops.

Following is the command line output:
> sudo xinit linuxcnc $* -- :0 vt$XDG_VTNR


X.Org X Server 1.21.1.7
X Protocol Version 11, Revision 0
Current Operating System: Linux cnc 6.6.31+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.6.31-1+rpt1 (2024-05-29) aarch64
Kernel command line: coherent_pool=1M 8250.nr_uarts=0 snd_bcm2835.enable_headphones=0 snd_bcm2835.enable_headphones=1 snd_bcm2835.enable_hdmi=1 snd_bcm2835.enable_hdmi=0  vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  console=ttyS0,115200 console=tty1 root=PARTUUID=6396eb0b-02 rootfstype=ext4 fsck.repair=yes rootwait cfg80211.ieee80211_regdom=GB
xorg-server 2:21.1.7-3+rpt2+deb12u7 (https://www.debian.org/support)
Current version of pixman: 0.42.2
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Mon Jul  8 21:42:58 2024
(==) Using config directory: "/etc/X11/xorg.conf.d"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
xinit: connection to X server lost

waiting for X server to shut down (II) Server terminated successfully (0). Closing log file.


And here is the same command with a script that just echos "hi":
sudo xinit ./test.sh $* -- :0 vt$XDG_VTNR


X.Org X Server 1.21.1.7
X Protocol Version 11, Revision 0
Current Operating System: Linux cnc 6.6.31+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.6.31-1+rpt1 (2024-05-29) aarch64
Kernel command line: coherent_pool=1M 8250.nr_uarts=0 snd_bcm2835.enable_headphones=0 snd_bcm2835.enable_headphones=1 snd_bcm2835.enable_hdmi=1 snd_bcm2835.enable_hdmi=0  vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  console=ttyS0,115200 console=tty1 root=PARTUUID=6396eb0b-02 rootfstype=ext4 fsck.repair=yes rootwait cfg80211.ieee80211_regdom=GB
xorg-server 2:21.1.7-3+rpt2+deb12u7 (www.debian.org/support)
Current version of pixman: 0.42.2
        Before reporting problems, check wiki.x.org
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Mon Jul  8 21:44:26 2024
(==) Using config directory: "/etc/X11/xorg.conf.d"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
hi
xinit: connection to X server lost

waiting for X server to shut down (II) Server terminated successfully (0). Closing log file.
[/code]

So, as you can see, command line output is printed directly and LinuxCNC does not produce any.

How can I diagnose this issue? If LinuxCNC stops without any command line output, can I find a log file somewhere? Or can I enable some debug features?

Thank you for any answers!
  • timaer
  • timaer
08 Jul 2024 08:18

How to dynamically switch one ethercat servo motor from spindle to axis ?

Category: General LinuxCNC Questions

Hi,I'v watched your youtube video.It looks that the most of the solution need to use Mesa board.but I'm now using Raspberry pi ,so do I have to buy a Mesa board for achiving the spindle / axis as one functionality?
  • electrosteam
  • electrosteam
08 Jul 2024 04:30 - 08 Jul 2024 04:32

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

Category: Driver Boards

Trying to get the LC2.8.4 set-up, I screwed up the install badly, so reverted to the LC2.9.2.
Installed the new (old stock) replacement 7i96 and the original RPi 4B 4GB.

The set-up went smoothly with the help and assistance of fellow Forum Members residing here in Sydney .

Axis opens and ping tests perform flawlessly.
Now to make chips.

I will make a desktop system with the old 7i96 and the RPi 4B 8GB to see if the original "perceived" sensitivity of physical movement of the ethernet plug exhibits itself.

But, considering how I screwed up two LC2.8.4 installs, I fear it will be a 'mea culpa' event.

This is my setup:
- download LC2.9.2 from official site,
- Raspberry Imager flashed the SD card,
- nil adjustments to the RPi 4B 4GB operation,
- Mesa jumpers 192.168.1.121.

$menu-config:
Wired connection 1
eth0 (:::::)
IPv4 <Manual>
192.168.1.120/24
255.255.255.0
(No custom routing)
[x] Require IPv4 addressing
IPv6 <Ignore>
[x] Auto connect
[x] Available all users

Keep well,
John.
Displaying 886 - 891 out of 891 results.
Time to create page: 1.162 seconds
Powered by Kunena Forum