A friend of mine made a G-code interpreter for the Beaglebone. It opens up a circular buffer and passes commands to a small program running on the PRU: https://github.com/hzeller/beagleg
I've added an enhancement issue to OpenGB for adding BeagleG support: https://github.com/re-3D/opengb/issues/17