LinuxCNC + Orange Pi (allwincnc)

More
5 years 5 months ago #209651 by tjtr33
Replied by tjtr33 on topic LinuxCNC + Orange Pi (allwincnc)
20may2021
Tosay I found 50 OPi+2e and 100 OPi 3 2G at Shenzhen Xunlong Software CO.,Limited
Thru Aliexpress

www.aliexpress.com/store/group/Allwinner...pHead_12427654.1_0_1

I bought 1 Opi+2e from them and an Opi3 2G locally ( I am in Thailand)
There is a Kickstarter for an H3 board but a year old and missing its target.

I got the +2e ror sentimental reasons ( heavy on the mental)
I got the H6 as a hope for the future

There's a lot of H3 settop boxes, but I dont think you'll find a nice 40pin header.

Most of my recent purchases of H3 and LP1768 boards
have been cancelled by sellers

They advertize but have no stock
and are too 'inscrutable' to deliver a starightforward answer.

HTH

tomp

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

More
5 years 5 months ago #209672 by MX_Master
Replied by MX_Master on topic LinuxCNC + Orange Pi (allwincnc)
H5/H6 support is WIP.
Chips deficit is global :)

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

More
5 years 4 months ago - 5 years 4 months ago #211166 by mwidlok
Replied by mwidlok on topic LinuxCNC + Orange Pi (allwincnc)
Hello,
First of all many thanks to MX_Master for this project. I already have it installed on orangePi H3 board with 1GB RAM, and it drives steppers flawlessly. Back to the questions: What is the status of "encoder" module for H3?

I've tried to set it up (without real machine, using function generator as input) and instantly got following error:
HAL: ERROR: pin_new(arisc.encoder.0.A-all-edges) called with already-initialized memory
HAL: ERROR: pin_new(arisc.encoder.0.A-all-edges) called with already-initialized memory

Quick check of the code pointed me to "arisc.c" from github, line 521 & 522, 529 & 530:
Code:
EXPORT_PIN(HAL_IN,a_inv,"A-invert", 0); EXPORT_PIN(HAL_IN,a_inv,"A-all-edges", 0);
Is that correct? Shouldn't it rather be:
Code:
EXPORT_PIN(HAL_IN,a_inv,"A-invert", 0); EXPORT_PIN(HAL_IN,a_all,"A-all-edges", 0);

I will try to check it myself, but I need to prepare devel environment on orangePi to compile linuxcnc & drivers and H3 is slow.

PS.
Compiled the module and found another problem (line 917):
Code:
for (ch = pwm_ch_cnt; ch--; )
That caused instant rtapi error with signal 11, definitely it should be:
Code:
for (ch = enc_ch_cnt; ch--; )
Now linuxcnc works, however it does not read spindle speed or position (both values are 0). Either my hal config is wrong or encoder module is not ready yet. Please point me to the right direction.
Thanks, Michael Widlok.
Last edit: 5 years 4 months ago by mwidlok.

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

More
5 years 4 months ago - 5 years 4 months ago #211185 by Doogie
Replied by Doogie on topic LinuxCNC + Orange Pi (allwincnc)
Did you guys see the Recore project which uses an Allwinner A64? I just learned about it and found out that the Allwinner A64 has an onboard micro controller, an AR100(OpenRISC) cpu which the Recore people put Klipper on for doing stepgen. Klipper is only for 3D printers though. If we got Remora onto that AR100/OpenRISC processor then LinuxCNC is your uncle for everything from CNC, 3D printers and laser cutters. Welp, Scott Alford just reminded me that MBed is only for ARM chips and Remora is built on MBedOS so porting it to the OpenRISC/AR100 wouldn't be an easy task. Darn, the versatility of full LinuxCNC on Remora(or Mesa) is the bomb.

The BananaPi and Pine64 use the Allwinner A64 chip and then there's the $150 Recore board with motor drivers and stuff for motor control.
Last edit: 5 years 4 months ago by Doogie.
The following user(s) said Thank You: Bari

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

More
5 years 4 months ago #211198 by MX_Master
Replied by MX_Master on topic LinuxCNC + Orange Pi (allwincnc)

mwidlok wrote: What is the status of "encoder" module for H3?

I'll try to fix all errors as soon as possible ;)

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

More
5 years 4 months ago #211205 by mwidlok
Replied by mwidlok on topic LinuxCNC + Orange Pi (allwincnc)
Thanks MX_Master.
Anyway while I understand (more or less) how the driver + arisc firmware works I am completely missing place where the arisc firmware is loaded to the processor. Could You please explain it a bit? I think that I might be able to help with some minor bugs if You want.

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

Time to create page: 0.623 seconds
Powered by Kunena Forum