On 5/25/2015 7:44 AM, Andrew Back wrote:
> Hi Charles,
>
> I work with Stuart and since he won't be reunited with the mill until
> Wednesday, I thought I'd take a look at this.
>
> On Friday, 22 May 2015 17:37:59 UTC+1, Charles Steinkuehler wrote:
>>
>> On 5/22/2015 4:49 AM, Stuart Childs wrote:
>>>
>>> Things I am not sure about:
>>>
>>> - should I be worried that nothing appears in 'slot 0' when I cat the
>>> capemgr file
>>
>> No, it just means the cape EEPROM isn't programmed.
>>
>
> Does it need programming, or is that just for automatic loading of
> overlays/drivers?
It's OK if the EEPROM isn't programmed. It just means the cape
overlay needs to be manually loaded instead of automatically loaded at
boot.
>> - what to change in the configs to get linuxcnc to start up happily.
>>> - should any of the above configs Just Work?
>>
>> The Probotix/Comet configurations should work. I've tested them on
>> actual Probotix hardware, but it's been a while. The PMDX HAL file
>> won't work with your hardware, but the ini file settings may be
>> helpful in crafting a Shapeoko config for the Probotix board.
>>
>> The error you're seeing is when the PRU driver is loading (assuming
>> you've got the stock HAL file, that's what's on line 18), and I don't
>> think I've seen that particular error before (it's not the common
>> "can't find the PRU binary" problem that was fixed a while ago).
>
> None of the config has been modified and it's all stock from the latest
> disk image and packages.
>
> Please provide details of what's in your /var/log/linuxcnc.log file
>> and how you're trying to run the software (local with HDMI display,
>> remote via X11 tunneled through ssh, etc).
>>
>
> Tried both local and tunneled over SSH.
>
> The linuxcnc.log created when attempting to start Probotix CometNP_Metric
> configuration from the local desktop is attached.
Thanks, that points out the problem (line 29 of the log):
> May 25 12:14:11 beaglebone msgd:0: hal_lib:1661:rt hal_pin_newfv:28 HAL error: length 49 invalid for name starting 'hal_pru_generic.stepgen.00.dbg_pos_minus_'
In summary, the HAL name for a pin is too long. The solution is to
pass a halname= parameter to the PRU driver, and change the HAL file
signal names to match.
To fix this in the Comet HAL file, append "halname=hpg" (without the
quotes) to line 18 (the loadrt line for the PRU driver). Then change
all instances of "[PRUCONF](DRIVER)" to "hpg" _except_ for the one on
line 18 (and again, without the quotes).
I'll try to get a fix checked in soon, but it will be a while until
packages are built. Holler if you run into any more problems getting
the configuration running.
--
Charles Steinkuehler
cha...@steinkuehler.net