- Posts: 109
- Thank you received: 0
BeagleBone Black and PRU Driver for Linuxcnc? Or switch to RP-4 / Mesa?
Please Log in to join the conversation.
Your earlier post even points that out. forum.linuxcnc.org/18-computer/42276-rem...spi?start=170#216453
Please Log in to join the conversation.
2 Glasscales
2 MPGs
1 Spindle Encoder
Plus the usual stuff on a lathe (Pwmgen for 2 Steppers, inputs for limit switches, PWM for Spindle Speed, some inputs for hardware buttons)
I got rid of the Glassscales meanwhile so it seems I can get away with a single 7i76. I just quickly checked the Remora and I don't think it would provide the number of inputs I need.
But I'm not on this route yet as I have not fully used the time set by my timebox of porting the code.
I did look at the code here: github.com/SebKuzminsky/hostmot2-firmware-beaglebone and believe this is an attempt to load FW to the PRUs via hostmod2. There are some hard coded valued in the main.c and my impression is that this was an attempt but is far away from the functionality provided by the machinekit driver (e.g. it seems to do only PWM out on hard coded PINs)
BR,
Malte
Please Log in to join the conversation.
Please Log in to join the conversation.
If you are building from source then just:
git checkout andypugh/bb_pru
And compile as usual.
I haven't tested it which is why it has not yet been merged with the LinuxCNC mainline.
Please Log in to join the conversation.
Please Log in to join the conversation.
elinux.org/Beagleboard:BeagleBoneBlack_D...l_Revs.29_Machinekit
I havent tried any iof the non machinekit images in a long time, so dont know for sure, but this one seems rt, or some of the ROS images appear to be rt kernels
elinux.org/Beagleboard:BeagleBoneBlack_D...line_.285.4.x_lts.29
edit, also I think newer images come with the graphics driver installed, but they have to also be a TI kernel, so -ti -rt kernel image
here is some info on the graphics driver if you feel up to it, my hope is with the driver installed, axis wont be so bogged down by software generated graphics, but I have not completed the install with driver, as i ran into xrandr issues. here are some links about it
very.busted.systems/PowerVR-SGX-on-the-beaglebone-black-in-2019
elinux.org/BeagleBoneBlack/SGX_%2B_Qt_EG...ston#The_NEW_Version
Please Log in to join the conversation.
ahh good to knowMalteS wrote: I did look at the code here: github.com/SebKuzminsky/hostmot2-firmware-beaglebone and believe this is an attempt to load FW to the PRUs via hostmod2. There are some hard coded valued in the main.c and my impression is that this was an attempt but is far away from the functionality provided by the machinekit driver (e.g. it seems to do only PWM out on hard coded PINs)
If you want to experiment with the PRU driver then I created a test branch of LinuxCNC with it included.
If you are building from source then just:
git checkout andypugh/bb_pru
And compile as usual.
I haven't tested it which is why it has not yet been merged with the LinuxCNC mainline.
ahh it was in a separate repo, this one looks like a machinekit port correct?
Please Log in to join the conversation.
ahh it was in a separate repo, this one looks like a machinekit port correct?If you want to experiment with the PRU driver then I created a test git checkout andypugh/bb_pru
Yes, it is the Machinekit driver merged in to LinuxCNC. It will only get compiled if the platform is BBB, I think.
Which is why I didn't test it at the time. And then the user who asked for it didn't test it either...
Please Log in to join the conversation.
I managed to compile your branch on the BBB and Linuxcnc starts if not supplied with a config file.
The hal_pru_generic driver is not build by default and I figured that I need to define TARGET_PLATFORM_BEAGLEBONE and set PASM to point to the pru assembler. I got the assembler off github and compiled that for the BBB.
So running:
make TARGET_PLATFORM_BEAGLEBONE=1 PASM="/home/machinekit/experiment/am335x_pru_package/pru_sw/utils/pasm"
Results in the output below that I'm not yet quite able to interpret.
If there are good ideas
Please Log in to join the conversation.
