LinuxCNC on Raspberry Pi 5

More
2 years 11 months ago #285805 by Cant do this anymore bye all
Going by my experience the Linuxcnc hm2_rpspi driver needs a rework. So far I haven't been able to get it to work. Hopefully it shouldn't be too much or require a major rewrite.

Please Log in or Create an account to join the conversation.

More
2 years 11 months ago - 2 years 11 months ago #285809 by Calysto
Replied by Calysto on topic LinuxCNC on Raspberry Pi 5
What's the difference between hm2_rpspi and hm2_spi? As far as I know I only use hm2_spi.

edit:
answer:"The hm2_rpspi HAL driver does not use /dev/spi, instead it enables and
talks to the SPI hardware directly, so it works even if the Linux kernel
doesn't know about the SPI hardware."

But why shouldn't you use the linux-kernel for talking to your mesa card? Speed?
Last edit: 2 years 11 months ago by Calysto.

Please Log in or Create an account to join the conversation.

More
2 years 11 months ago #285814 by Cant do this anymore bye all
Neither does hm2_spi work.
Code:
alcmd: loadrt hostmot2 Note: Using POSIX realtime hm2: loading Mesa HostMot2 driver version 0.15 halcmd: loadrt hm2_spi spidev_path=/dev/spidev0.1 probe 24000000 hm2/hm2_7i90.0: Low Level init 0.15 hm2/hm2_7i90.0: invalid IDROM PortWidth 0, this board has 24 pins per connector, aborting load hm2/hm2_7i90.0: IDRom: hm2/hm2_7i90.0: IDRom Type: 0x9009374D hm2/hm2_7i90.0: Offset to Modules: 0x00184803 hm2/hm2_7i90.0: Offset to Pin Description: 0x00400400 hm2/hm2_7i90.0: Board Name: hm2/hm2_7i90.0: FPGA Size: 0 hm2/hm2_7i90.0: FPGA Pins: 0 hm2/hm2_7i90.0: Port Width: 0 hm2/hm2_7i90.0: IO Ports: 0 hm2/hm2_7i90.0: IO Width: 0 hm2/hm2_7i90.0: Clock Low: 0 Hz (0 KHz, 0 MHz) hm2/hm2_7i90.0: Clock High: 0 Hz (0 KHz, 0 MHz) hm2/hm2_7i90.0: Instance Stride 0: 0x00000000 hm2/hm2_7i90.0: Instance Stride 1: 0x00000000 hm2/hm2_7i90.0: Register Stride 0: 0x00000000 hm2/hm2_7i90.0: Register Stride 1: 0x00000000 hm2_spi: rtapi_app_main: Invalid argument (-22) <stdin>:2: waitpid failed /home/cnc/linuxcnc-dev/bin/rtapi_app hm2_spi <stdin>:2: /home/cnc/linuxcnc-dev/bin/rtapi_app exited without becoming ready <stdin>:2: insmod for hm2_spi failed, returned -1

I had to patch the mesaflash code to use 8 bit words to even get that to talk to a 7i90

Please Log in or Create an account to join the conversation.

More
2 years 11 months ago #285815 by Cant do this anymore bye all
Update to forum.linuxcnc.org/9-installing-linuxcnc...pi-5?start=20#285814

patched hm2_spi to force 8 bit words and driver does load.

Please Log in or Create an account to join the conversation.

More
2 years 11 months ago #285932 by Calysto
Replied by Calysto on topic LinuxCNC on Raspberry Pi 5
Does that mean we can use a mesa-spi card together with a rpi5? Tomorrow I will try mine (7c80). The image rodw made, looks and works promising!
On a Rpi4 a could not make use of USB3 speed together with my SSD, now I can!

Please Log in or Create an account to join the conversation.

More
2 years 11 months ago #285958 by Cant do this anymore bye all
Only by building Linuxcnc yourself and patching the code for the hm2_spi driver.
I think it’s going to be a low priority for the devs unless someone who’s name ain’t mud makes some noise about it.

So mate it looks like it’s going to be up to you.

Please Log in or Create an account to join the conversation.

Time to create page: 0.075 seconds
Powered by Kunena Forum