I'm concentrating on error output from hal_motenc.c. After linuxcnc fails, I run dmesg, and it shows me:
13224.908831] USERMODE CHECK: OK.
[13224.908832] USERMODE CHECK PROVIDED (ns): KernelLatency 581, UserLatency 694.
[13224.908833] FINAL CALIBRATION SUMMARY (ns): KernelLatency 581, UserLatency 694.
[13224.916982] RTAI[math]: loaded, using musl libm.
[13224.956497] MOTENC: ERROR, unknown card detected
[13227.661406] RTAI[math]: unloaded.
[13227.700054] SCHED releases registered named ALIEN PEDV$D
[13227.702510] RTAI[malloc]: unloaded.
Note the "unknown card detected" right there in the middle of the Snip.
Then I edit hal_motenc.c so it is:
rtapi_print_msg(RTAPI_MSG_INFO, "MOTENC: Card is %s, ID: %d\n", pDevice->pTypeName, pDevice->boardID);
if ( pDevice->boardType == 0 ) {
rtapi_print_msg(RTAPI_MSG_ERR, "MOTENC: ERROR, unknown card detected 0728\n");
... everything the same except I've appended the data ("0728") to the error message.
Then I do make, setuid and the environment thing, and I don't get the error message with the date! I get the old error message. My new code is either not getting linked or not getting run.
I'm missing something. Please give me a clue. Thanks.