Can the OPI5 be Configured to Run LCNC?

More
3 years 5 months ago #271200 by buzzFab
Replied by buzzFab on topic Can the OPI5 be Configured to Run LCNC?
The new  OrangePi 5 Plus  that was just announced the other day looks interesting. I actually bought the 16GB RAM/256GB eMMC variant of FriendlyELEC’s  NanoPC-T6  the day before the OPi5+ was announced, had I known I would have waited. Hopefully i can figure it out.
They both are using the Rockchip RK3588 and have two 2.5GbE networking interfaces

I have some EtherCat drives so dual ethernet ports is something I want.

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

More
3 years 5 months ago #271220 by royka
Replied by royka on topic Can the OPI5 be Configured to Run LCNC?
To be honest the NanoPC-T6 looks more interesting to me because of the metal case and 12v jack but probably be a little bit more expensive then the OPi5+ because of the eMMC but still reasonable priced.

It should not be a big deal to make it work on the board you've ordered. It does miss the dtb at the moment, I'll add it to the patch later if you can't figure it out and it's not an option in the Armbian compile menu yet.

For a quick/easy start you could try download their Ubuntu Jammy sd card image and install the rt-kernel deb first.
dl.friendlyelec.com/nanopct6

Kernel:
mega.nz/folder/ypZxEAra#6NI9tibbdtoE_mAf8gdvKQ

LinuxCNC:
mega.nz/file/ChwzHZiL#1ItFvunImetNeGEaZu...HPr1BxgGxswiw8_WtTJE
The following user(s) said Thank You: buzzFab

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

More
3 years 5 months ago #271227 by echristley
Replied by echristley on topic Can the OPI5 be Configured to Run LCNC?
What does dtb stand for?

Also, as I bring this together, should I document the effort here, or a separate build thread? I'd like to lay down a clean trail of breadcrumbs that the next person can pick up.

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

More
3 years 5 months ago #271231 by royka
Replied by royka on topic Can the OPI5 be Configured to Run LCNC?
Device Tree Binary, you'll find it somewhere in /boot/dtb
Code:
find /boot -name *.dtb

For me it's all ok, but it might be easier to find and to follow when you start a new thread.
The following user(s) said Thank You: echristley

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

More
3 years 5 months ago - 3 years 5 months ago #271360 by Guglielmi
Replied by Guglielmi on topic Can the OPI5 be Configured to Run LCNC?
Royka (or any other..),
do you know why serials are not working?
Could be disabled in configuration?
armbian-config setting has no "Hardware" configuration, I checked again in the kernel config but I did not found a specific "enable" for serial.
ClassicLadder search for ttyS0, 1,2,3, USB0, USB1
I found that I have a ttyS9, I don't know why.. in case, how to change the list in ClassicLadder?

Now I have OPI5 working fine, driver for GPIO, today I also enabled my custom HMI based on qtpyvcp.. last step is the modbus for spindle and additional I/O I already have, than I replace RPI4

I tried to add "overlays=uart0-m2 uart1-m1 uart3-m0 uart4-m0" as explained in the manual, but nothing..
 
Last edit: 3 years 5 months ago by Guglielmi.

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

More
3 years 5 months ago #271372 by royka
Replied by royka on topic Can the OPI5 be Configured to Run LCNC?
Perhaps you don't have the overlay files in /boot/dtb/rockchip/overlay.
You could download them (save raw) from:
github.com/orangepi-xunlong/linux-orange...dts/rockchip/overlay

Then to compile for example:
dtc -I dts -O dtb -o orangepi-5-uart0.dtbo rk3588-uart0-m2.dts

Place the dtbo file in /boot/dtb/rockchip/overlay/
In armbianEnv.txt
overlay_prefix=orangepi-5
overlays= uart0

The downside to do it this way is when you install/update a new dtb the added overlays will get deleted. There is also an option to put it in something like user-overlays which get not deleted, but I haven't tried that yet.

Would be nice if you would share your driver. About your previous post I read the step rate should be divided by 2 because it's one for up and one for down.
Attachments:
The following user(s) said Thank You: Guglielmi

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

Time to create page: 0.168 seconds
Powered by Kunena Forum