Can the OPI5 be Configured to Run LCNC?
in boot.cmd I have:
line 26: if test "${console}" = "display" || test "${console}" = "both"; then setenv consoleargs "console=tty1"; fi
line 27: if test "${console}" = "serial" || test "${console}" = "both"; then setenv consoleargs "console=ttyS2,1500000 ${consoleargs}"; fi
correct? finally based on your suggestion we have console=display, so the second line should not executed..
I found that with last version of kernel it's changed here.. but I don't want to rebuild all..
Please Log in or Create an account to join the conversation.
Ok did the preempt_rt kernel work? That's funny I would've thought that isolcpus=0-3 irqaffinity=4 or 5 works better in that case, probably it's not as simple as I thought. For the Opi5 it might help indeed to isolate 4-7 instead of 5,7.
If it helps, the Odroid N2+ I played with had BIG/LITTLE cores, first 4 cores were big, last 2 little.
Best performance was isolcpus=2,3,4,5
How was the latency on the s922x? Did a test with the s912 which worked surprisingly well, perhaps that kernel also works on the s922x
Please Log in or Create an account to join the conversation.
So without console=display it will enable display and serial. armbianEnv.txt overrides what's in boot.scr
You could edit boot.cmd and recompile (see last line), but it's easier to edit the armbianEnv.txt
Please Log in or Create an account to join the conversation.
I tried all combinations
If it helps, the Odroid N2+ I played with had BIG/LITTLE cores, first 4 cores were big, last 2 little.
Best performance was isolcpus=2,3,4,5
Ok did the preempt_rt kernel work? That's funny I would've thought that isolcpus=0-3 irqaffinity=4 or 5 works better in that case, probably it's not as simple as I thought. For the Opi5 it might help indeed to isolate 4-7 instead of 5,7.
How was the latency on the s922x? Did a test with the s912 which worked surprisingly well, perhaps that kernel also works on the s922x
You should never isolate Core 0 as there are a number of system interrupts tied to it.
Yes, we did compile a good preempt_rt but had a regression so have not got back to it due to other projects!
I was hoping Leonid my Armbain mentor might have fixed it in the mean time
Please Log in or Create an account to join the conversation.
irqaffinity=4,5 might help for that.
The kernel I'd compiled for s9xx:
mega.nz/folder/qshRQAbR#0p25gwbiAXH41v2ZB6fZMg
Hopefully you'll get it working, would be nice to see more much better rpi4 alternatives.
Please Log in or Create an account to join the conversation.
- echristley
- Offline
- Premium Member
- Posts: 99
- Thank you received: 23
And so the work begins. I've all all the parts (I think), to get this conversion done.
The first step is to LinuxCNC running on this OPi5. I'll be following royka's previous instructions, found here
The forum doesn't seem to be picture friendly. You can link, but not add one to a post. So, I'm going to keep the picture heavy, blow-by-blow rundown of my process here
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
I tested the ttyFIQ0 and it works as additional port (3 pins beside GPIO). Building the overlay that just disable that port, it disappears correctly.
When I add the second part where uart2 is enabled the OPI5 doesn't boot. So I tried a different way.. just renaming ttyFIQ0 to ttyS2 and it worked.
Sure it's not a very elegant solution, I should rename it after every boot, I placed it in the driver.. but finally works.
The signal is quite bad compared to other serials, it's slow to go up, I can see pulses really rounded but I will check with a RS232-RS485 converter.
There is a better way to just rename that "file" when it is created? ..or inside the overlay?
Please Log in or Create an account to join the conversation.
- echristley
- Offline
- Premium Member
- Posts: 99
- Thank you received: 23
When I got home, following the LinuxCNC install directions posted in the OP, I installed the Arbiam OS on the OPi5. I had to download and install Belena Etcher, a program for writing the images to SD cards. The RaspberryPi writer wouldn't work. Said the image was corrupted. Anyway, on the other computer right now, I'm watching a This Old Tony video, the one where he tries to replace the ball bearings in a ball nut. He's such a hoot. In the background, I have the linuxcnc latency test running and have 20,312 in the servo thread and 7,375 in the base thread.
I haven't figured out how to post a picture to this forum, but with six glxgears running, and browsing this forum with Firefox ESR This is with nothing more that royka's image, and the installation of linuxcnc-uspace. Is wayland really needed?
Attachments:
Please Log in or Create an account to join the conversation.
- echristley
- Offline
- Premium Member
- Posts: 99
- Thank you received: 23
Looking at what people are reporting from other computers, I think I can call this good enough for now and move on to the next steps? Linking the GPIO pins to the BOB and getting them configured to drive steppers? I think for that I need the dtb prepared by Guglielmi (I think)?
Please Log in or Create an account to join the conversation.