SHARE
TWEET

Untitled

a guest Jul 21st, 2014 203 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. With halcmd, cfg= string is one argument in 'do_loadrt_command':
  2.  
  3. jepler@rat:~/src/linuxcnc$ halrun
  4. halcmd: loadrt hal_parport cfg="0 in"
  5. loadrt [0]cfg="0 in"
  6. Note: Using POSIX realtime
  7. config string '0 in'
  8. Linux parport #0 @0xc010 0xc000
  9. halcmd: Note: Using POSIX realtime
  10.  
  11. with haltcl, cfg= string is split to two arguments in 'do_loadrt_command':
  12. jepler@rat:~/src/linuxcnc$ halrun -T
  13. haltcl: loadrt hal_parport cfg="0 in"
  14. loadrt [0]cfg="0 [1]in"
  15. Note: Using POSIX realtime
  16. Invalid paramter `in'
  17. /home/jepler/src/linuxcnc/bin/rtapi_app exited without becoming ready
  18. insmod failed, returned -1
  19. while evaluating {loadrt hal_parport cfg="0 in"}
  20.  
  21. Patch to halcmd:
  22.  
  23. diff --git a/src/hal/utils/halcmd_commands.c b/src/hal/utils/halcmd_commands.c
  24. index 3689555..ce0a4e1 100644
  25. --- a/src/hal/utils/halcmd_commands.c
  26. +++ b/src/hal/utils/halcmd_commands.c
  27. @@ -1057,6 +1057,10 @@ int do_status_cmd(char *type)
  28.  
  29.  int do_loadrt_cmd(char *mod_name, char *args[])
  30.  {
  31. +    printf("loadrt");
  32. +    { int i; for(i=0; args[i] && *args[i]; i++) printf(" [%d]%s", i, args[i]); }
  33. +    printf("\n");
  34. +
  35.      char arg_string[MAX_CMD_LEN+1];
  36.      int m=0, n=0, retval;
  37.      hal_comp_t *comp;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top