LinuxCNC + Orange Pi (allwincnc)

More
3 years 5 months ago #270502 by Guglielmi
Replied by Guglielmi on topic LinuxCNC + Orange Pi (allwincnc)
Why not to try?!
I know it takes time..
Well, I investigated these days and now I have doubts on which way to try (as first  )
1. Edit and try ARISC driver
2. Implement a new driver based on WiringOP

The first is a driver that works but sure with wrong addresses, references etc.. not sure I'm able to find a good reference and exchange what is wrong for new hardware.
The second way, maybe is more promising because I tested WiringOP and with OPI5 works to read and write IO, and it's in C, so if I will find a way to clean a C driver in a way I can use functions in HAL file, I'm pretty sure we can use functions from WiringOP classes..

I'm now searching on web or trying to clean an existing driver and get a good starting point.
I try to consider the Raspberry driver and ARISC and try the best base.
Can you help me on this?
Do you know where I can find documentation for create a C driver from scratch and build it?
By the way I was able to build a first prototype using HALCOMPILE and it generated a "so" file.
It was not working but most probably it should be cleaned more that I did...
 

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

More
3 years 5 months ago #270505 by wzor
Replied by wzor on topic LinuxCNC + Orange Pi (allwincnc)
The author wrote that it was a u-boot problem. And every time a new version of Armbian comes out, the u-boot changes!
The author wrote about it on the forum www.cnc-club.ru/forum/viewtopic.php?t=16788 .
That's it!

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

More
3 years 5 months ago #270623 by mwidlok
Replied by mwidlok on topic LinuxCNC + Orange Pi (allwincnc)
Guglielmi,
ARISC driver is a pair of 2 cooperating programs: arisc-hal is a portion that works with Linuxcnc as a real-time task, then You have arisc-fw that is a program for a separate RISC core in a Allwinner chip (I don't know if MX_Master implemented it for any other chip). RISC core works without operation system, and it's task is high-speed sampling/setting GPIO lines. That's why You only need ~1ms servo thread in Linuxcnc, no base thread.

Look at
github.com/allwincnc/linuxcnc/tree/master/src/hal/drivers/arisc
github.com/allwincnc/fw

First is the source for HAL portion, second is firmware for RISC core (You need different compiler for that one).

WiringPi/WiringOP access GPIO lines with normal operation system, so You need a very fast real-time base-thread in Linuxcnc, I think that this has already been done.
The following user(s) said Thank You: Guglielmi

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

More
3 years 5 months ago #270627 by mwidlok
Replied by mwidlok on topic LinuxCNC + Orange Pi (allwincnc)
Wzor,
I can not read Russian, but that is something that I was afraid of. This driver will need quite a lot of maintenance work just to keep it running. Also usage of RISC core is poorly documented.

I've tried to clean original code (both hal + risc) and even managed to get my version working with H3. However I've run into rather strange problems with GPIOs (one can not be driven from RISC, works with HAL). Also debugging RISC fw is in fact impossible.

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

More
3 years 5 months ago #270744 by Guglielmi
Replied by Guglielmi on topic LinuxCNC + Orange Pi (allwincnc)
Thanks, in meanwhile I searched documentation and info about and I'm also convinced makes no sense as starting point for new implementation, too complex. Now I'm experimenting to use WiringOP in a simple driver because I'm convinced running it in the base thread should be enough performant. I have some issue to understand how to make a new C driver working but.. I will work on it. I open another post in HAL section for my issue.  GPIO for OPI5 .

If someone want to contribute, I'm pretty sure with OP5 using his GPIO the CNC works super fine.. at least for what I have to do 
The following user(s) said Thank You: Rodm1

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

More
3 years 4 months ago #272832 by Rodm1
Replied by Rodm1 on topic LinuxCNC + Orange Pi (allwincnc)
I just installed Armbian 3.11 on my OP LTS 3 what is required to install Linux CNC at this point? Must I download a Linux CNC file or can this be installed threw the terminal? Is the install similar to a install on Linux or different? 

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

Time to create page: 0.341 seconds
Powered by Kunena Forum