On 2/1/2014 6:28 PM, W. Martinjak wrote:
> I'm writing on a driver for the machinekit on BBB and I need to upload the
> firmware to the fpga.
> Therefore I need a flavor-dependent path.
> Compiling of the driver works but when I run lcnc i get the message:
> ...undefined symbol: get_rtapi_config
> It seems there is a linking problem with the rtapi lib.
> here is the code snippet:
>
> get_rtapi_config(path, "RUN_IN_PLACE", 4);
> if (strncmp(path, "yes", 3) == 0) {
> if(!get_rtapi_config(path, "EMC2_HOME", PATH_MAX)) {
> snprintf(path, PATH_MAX,
> "%s/src/hal/drivers/pluto_spi_servo_firmware/pluto-spi-bbb.rbf", path);
> f= fopen(path, "rb");
> }else {
> f=
> fopen("/home/linuxcnc/linuxcnc/src/hal/drivers/pluto_spi_servo_firmware/pluto-spi-bbb.rbf",
> "rb");
> }
> }// else { TODO: irgendein firmware dir }
>
> Any ideas?Well, a quick check shows the get_rtapi_config function is defined in the xenomai flavor used with MachineKit. Michael or John might have more insight, but you might want to run "make V=1" to get a full dump of what's happening. That might help expose the problem, and is likely the first thing you'd be asked to provide unless Michael or John are aware of the problem already. I did the user-mode hostmot2 PCI driver for the x86 Xenomai flavor, but AFAIK no one has built pluto drivers for Xenomai (x86 or ARM), or *ANY* FPGA drivers for the BeagleBone. There could easily be a problem with the make files or defines. Using the verbose flag with make and posting the actual make results and not just a snippet with a truncated single error message are probably the best bet for identifying the problem. Is your code somewhere that's publicly visible (github or similar)? -- Charles Steinkuehler [email protected]
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------ WatchGuard Dimension instantly turns raw network data into actionable security intelligence. It gives you real-time visual feedback on key security issues and trends. Skip the complicated setup - simply import a virtual appliance and go from zero to informed in seconds. http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk
_______________________________________________ Emc-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-developers
