Can the OPI5 be Configured to Run LCNC?

More
2 years 10 months ago #287451 by royka
Replied by royka on topic Can the OPI5 be Configured to Run LCNC?
That might make the difference then but when you use it with a FPGA you won't use it anyway. 66 degrees is not very hot.

Finally I was able to make a PWM fan work correctly with the OPi5 so if you would like to use a PWM fan with it you can use  

File Attachment:

File Name: pwmfan-dtb...pi-5.zip
File Size:43 KB

The PWM13 is used 
 
  • Cant do this anymore bye all
  • Offline
  • Platinum Member
  • Platinum Member
More
2 years 10 months ago #287496 by Cant do this anymore bye all
Replied by Cant do this anymore bye all on topic Can the OPI5 be Configured to Run LCNC?

The OPi is cooled, but I am still using my (old and pretty slow) SD card.
Currently the CPU is 66°C warm (don't know if that is already too much)
I will try installing the system to my SATA SSD, and try again

I plan to use my own FPGA card with the machine, but that is a story for another post or thread...
 
What platform are you basing your FPGA design on ?
I've been kinda lazy and just using the hostmot2 sources with various Spartan 6 FPGA boards.
More
2 years 10 months ago - 2 years 10 months ago #287836 by kmike
Replied by kmike on topic Can the OPI5 be Configured to Run LCNC?
Sorry for the late reply, the last days where very busy

Hardware and software data for the attached latency diagram:
- Orange Pi 5, 8GB RAM
- 256GB NVME SSD
  - had to replace the SATA SSD, latency was terrible. In my opinion a SATA SSD is absolutely not recommended for LCNC with the OPI5
- boot: cma=128M idle=poll isolcpus=5,7
- overlays: lcd1
- "end1" IRQ moved to core 5
- kernel: 5.10.160-rt89, config is from royka with some minor changes
- Armbian Bookworm + Xorg + XFCE4 + LCNC 2.9.1 form the LCNC website
- 6 glxgears
- network traffic of about 65MBit/s generated with a test script (send and receive TCP and UDP + a ping flood to my PC)

I did not open a Youtube video, as the support for Xorg was dropped by ARM in 2019, so Xorg is using fbcon driver without any hardware acceleration. Playing a Youtube video basically immediately overloads the whole system (over 160% load with just 1 glxgears), thats why I have made a primitive script to do HTTP GET, UDP TX/RX and a ping flood with my PC. This way I got 60-70 MBits/s traffic on the network adapter.

@Cornholio:
I am using a Gowin GW2A FPGA with a custom board (6x analog out, 2x analog in, 6x step/dir outputs, 6x encoder in, 27 sinking 24V digital inputs, 27 push-pull-float digital outpus, dedicated limit switches and home input for all 6 axis), with the HAL driver and Verilog done from almost scratch. Communication is over UDP. It is very much a work in progress (even missing a watchdog, thats the next to-do) so no public sources at the moment. I just got fed up with the unavailability of the Mesa cards in Europe, thats why I started my own design with parts easily sourced from Mouser and Farnell
Attachments:
Last edit: 2 years 10 months ago by kmike.
The following user(s) said Thank You: Cant do this anymore bye all
  • Cant do this anymore bye all
  • Offline
  • Platinum Member
  • Platinum Member
More
2 years 10 months ago #287840 by Cant do this anymore bye all
Replied by Cant do this anymore bye all on topic Can the OPI5 be Configured to Run LCNC?
Just being a civvy labourer I'm not all that versed in fpga's and stuff. I've got just enough nounce to modify stuff.

What I'd be really interested in is porting the hostmot2 firmware to non xilinx platforms, whilst still being able to use the hostmot2 linuxcnc drivers.
More
2 years 10 months ago #287846 by kmike
Replied by kmike on topic Can the OPI5 be Configured to Run LCNC?
@Cornholio:
On the linuxcnc side of things, I am heavily relying on the hostmot2 drivers, as there is no need to reinvent the wheel, I got used to it, and also makes my life easier :-)
The hardware is very different from the Mesa cards (example: Mesa analog out uses PWM, I use an SPI DAC), but I want to stay as close to hostmot2 as possible. If everything goes according to plan, only the setup part and the outputs (Mesa:SSR vs. half-bride on my board) should be different.

@royka: I will test your PWM overlay with an oscilloscope, as I have only a cheap 5V fan on my heat sink at the moment. I am curious how you did it in an overlay :-)
The following user(s) said Thank You: Cant do this anymore bye all
More
2 years 10 months ago - 2 years 10 months ago #288066 by kmike
Replied by kmike on topic Can the OPI5 be Configured to Run LCNC?
If anyone wants to play around with the image, it can be downloaded here:

mega.nz/file/UCMhiZgZ#Qdg-e3CaQBDQXQ0rN3...dNJfphJSckes99q7FAR8

for Orange Pi 5
5.10.160-rt89 Xunlong kernel, with the config from royka + added support for the "official" 10" display
Armbian Bookworm + Xorg+ Xfce4

At least isolcpus=5,7 has to be added to the bootargs for a decent latency
Last edit: 2 years 10 months ago by kmike.
The following user(s) said Thank You: royka
Time to create page: 1.750 seconds
Powered by Kunena Forum