LinuxCNC + Orange Pi (allwincnc)

More
5 years 1 month ago #221262 by 109jb
Replied by 109jb on topic LinuxCNC + Orange Pi (allwincnc)
Not so sure about me being able to "fix" anything. I'm more just trying to see where this is at and if it is usable in its current state.

That said, I have done the following:
  • Installed Armbian
  • Set up USB automount (Found rather quick that Armbian didn't have this)
  • Installed LinuxCNC (Just used the Allwincnc basic setup directions
  • Set up a WHB04B-6 wireless usb CNC pendant
Observations after the above:
  • Definitely not a speed demon. Just using a web browser can crash it, but I'm not intending it for web browsing.
  • LinuxCNC seems to run fine. Can avoid a reatime warning by just allowing it a few seconds to fully start before trying to do anything
  • The default Allwincnc configuration is 3-axes and based on the ini and hal files is set up for 100kHz step rate.
I programmed an ESP-12E microcontroller to act as a step counter and did a bit of testing on it, but have to do more. I will test it with Grbl at 30kHz to see if the step counter is working correctly before giving results of testing with the Orange Pi LinuxCNC install. Going on vacation for a week so progress stopping for now. Will resume  on return.
 
The following user(s) said Thank You: Bari

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

More
5 years 1 month ago #221265 by Bari
Replied by Bari on topic LinuxCNC + Orange Pi (allwincnc)
" just trying to see where this is at" is closer to a fix vs just complaining about the project and expecting others to do the work for them.

The dev that started this project somehow expected u-boot and Armbian to just work. Thank you for spending the time to try and build it and posting your issues.

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

More
5 years 1 month ago #221325 by MX_Master
Replied by MX_Master on topic LinuxCNC + Orange Pi (allwincnc)
Sorry for the project freeze. I'll try to continue, but in other way. I want to make a LinuxCNC based DSP handle controller with LPT, Ethernet, and USB ports, mini display, hand encoder and physical keys. I'll use the black pill (STM32F401xx) board instead of built-in CPU to make a pulse generation (and encoder pulses counting).
The following user(s) said Thank You: Bari

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

More
5 years 1 month ago - 5 years 1 month ago #221326 by Bari
Replied by Bari on topic LinuxCNC + Orange Pi (allwincnc)
Sounds like you want to help with Remora.

forum.linuxcnc.org/18-computer/42276-rem...rocontroller-via-spi

github.com/scottalford75/SKRV2-Mbed-OS5/...ain/OS5-SKRv2-Remora



Also check out:  forum.linuxcnc.org/18-computer/42414-lin...ethernet-using-esp32

I'm still planning on build u-boot properly when the hardware becomes available again for this project. A preempt_rt kernel should be no problem as well. A few of the pine64 boards use Rockchip and Allwinner ARM SOC's with integrated MCU's.

Thank you again for all your work.
Last edit: 5 years 1 month ago by Bari.

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

More
5 years 1 month ago - 5 years 1 month ago #221395 by MX_Master
Replied by MX_Master on topic LinuxCNC + Orange Pi (allwincnc)
Rockchip RK3399 has a few Cortex-M0 cores, Allwinner H3/H5/H6 has a single OpenRISC core, Allwinner H616 has no additional cores.. All the new (and old) chips are different. uboot, kernel and other stuff are different too. We can't catch them all to the one huge project. Much easier to make a tiny project with stable and general code base, which can be used with all chips and all mini PCs.

No, remora is not my way. I know STM32 very well. I can use all hardware features of it to make a good and fast pulses generator/counter. Already done some projects with same functionality.
Last edit: 5 years 1 month ago by MX_Master.

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

More
5 years 1 month ago #221446 by Bari
Replied by Bari on topic LinuxCNC + Orange Pi (allwincnc)
A tailored U-boot for each ARM board is necessary since it is the firmware used at boot to configure the hardware properly. This is similar to the BIOS/EFI used on x86 motherboards. The firmware can keep the core clocks locked vs speed stepped in order to keep jitter low even though we are using the servo thread in this project.

A preempt_rt kernel tailored for each ARM processor also keeps jitter to a minimum and performance to a maximum.

I don't count on the Armbian devs to get preempt_rt kernel configs right. U-boot is also outside the realm of application devs. It tends to fall on the hardware devs to get it right. I'll work on this as boards become available again.

New users from other projects such as GRBL on *duinos and similar are not used to the settings required in the LCN conf and hal files. When they get following errors they don't understand how to correct them in their settings.

When the semiconductor industry settles down in the near future we should be able to have access to the Allwinner boards that use an integrated MCU. Rockchip boards have also have spotty availability currently.
The following user(s) said Thank You: tommylight

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

Time to create page: 0.304 seconds
Powered by Kunena Forum