I've been trying to get Remora running on RP2040 via Ethernet on a Raspberry pi 5. The error i'm getting when trying to run LinuxCNC is:
The error doesn't seem to be related to the pi 5 specifically so I'm hoping to get the pi 5 working with remora-ethernet, does anyone have a clue what I can try to fix it?
I've used the RP-2040-Ethernet-Remora firmware from:
github.com/scottalford75/Remora-RP2040-W5500
(UF2 file from the standard build folder, tried compiling it myself but came across multiple problems, I can give details if needed)
and using config and component from
github.com/scottalford75/Remora-NVEM/tre...Components/Remora-nv
and
github.com/scottalford75/Remora-NVEM/tre...es/remora-nvem-basic
When powering the RP-2040 all outputs seem to be flickering, can anyone tell if this is normal?
I tried measuring the signal and it's lots of seamingly random peaks, my logic analyser only goes up to 24Mhz and it's all peaks at minimal time period.
In my setup I'm also connecting the W5500 with dupont wires, could this cause my problems maybe? (Read somewhere that the SPI communcation at stock speeds and these wires might not work)
Besides that I also read somethwere that the ethernet cable between pi and RP2040 needs to be a crossover cable. I've tried quickly making one but that also doesn't seem to make a difference.
I don't really know how to debug the error i'm getting so hopefully someone can help me.
I made a list of all commands I used to get my pi up and running, maybe it is usefull for someone trying to do the same or debugging my problem so here is what i've done:
Setting up my crappy touchdisplay:
in /boot/broadcom/config.txt adding
hdmi_force_hotplug=1
hdmi_drive=2
config_hdmi_boost=4
in cmdline.txt
adding "video=HDMI-A-1:1920x1080@60D" at the end
Setting up tightVNC:
Setting up other vnc servers was difficult, got this one working by
nano ~/.vnc/xstartup
change to:
#!/bin/sh
xsetroot -solid grey
export XKL_XMODMAP_DISABLE=1
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
startxfce4 &
To automatically start it at boot:
sudo nano /etc/rc.local
add this:
sudo -u cnc /usr/bin/tightvncserver :1 -geometry 1920x1080
before the exit 0:
To automatically log in to linuxcnc account at boot:
sudo nano /etc/lightdm/lightdm.conf
autologin-user=cnc
Setting up the static ethernet connection on Raspberry pi 5:
in sudo menu-config I changed ipv4 to manual and set the adres to 10.10.10.11 and gateway 0.0.0.0
(There is no /etc/dhcpcd.conf anymore on pi 5 it seems but this does the trick it seems)
installing nvem-remora component:
sudo halcompile --install remora-nv.c
Settings up RP2040
first uploading remora.uf2 to the pico board
(for upload_config.py tftpy is needed, installing tftpy normally didn't work, forgot the exact error)
python3venv venv
source venv/bin/activate
pip install tftpy
deactivate
./venv/bin/python3 upload_config.py nvem-basic-config.txt
In basic config I changed pin designators from PE_13, PE_12 to GP2, GP3 and left nvem board designator the same, is this correct?
Is there any way to check the communication over ethernet and if everything is going correctly? when I do ping 10.10.10.10 it responds back perfectly fine it seems.
To run Linuxcnc:
linuxcnc remora-nvem.ini
and in the ini i changed AXIS to qrvcp qtdragon_hd (axis didn't want to run for some reason but qtdragon seems fine)