![]() This gets pretty involved to be honest though. Then checkout the 3.2.35 version by using this command: You could try and download the kernel source for kernel 3.2.35, and then cross compile using Eclipse. The source code to the kernel is not shipped with the cRIO-9068 (as it shouldn't be, it's massive).Ī quick google search did not produce a easy place to download the kerenel source code (which is incredibly unforunite). The process of compiling a Linux driver requires the source code (or at least the header files) for the version of the Kernel you are compiling it against. This, however, is just source code and needs to be compiled down to a Linux driver. I believe that the file that NI-MarkN linked to. The cRIO-9068 has plenty of horsepower for compiling applications.Ī quick google showed that these folks had some issues getting xboxdrv working as well: I personally am against cross compiling if you can get away with it. ![]() It looks like you have figured this part out and gotten opkg up and running. If you are lucky the functions that are being used by the driver won't require the initalization of a framebuffer or graphics unit (the cRIO-9068 has neither). With that being said, I don't think you'll be able to get xboxdrv working on the cRIO-9068 due to its dependance on x11. With some modifications to it's configuration files, you can use it to pull down a vast ecosystem of pre-compiled tools. The cRIO-9068 ships with a package manger called opkg. I saw your request over in the real-time section of the forums. However let me know if you have any more questions and I will try my best to help. Please note that since Linux ecosystem is extremely vast we can't provide full support for using 3rd party add-ons and tools. It's very basic but might be a good starting point if you decide to approach the driver development yourself. ![]() You might want to check-out "xpad", which is a default driver for xbox controllers that comes with linux kernel in some linux distributions. ![]() What kind of library dependency issues you had exactly when compiling? From what I found xboxdrv 0.8.5 will require the following libraries and tools: g++ - GNU C++ Compiler, libusb-1.0, pkg-config, libudev, boost, scons, uinput (userspace input kernel module), git (only to download the development version), X11, libdbus, glib From what I see, it's very likely that a simple driver would be quicker to write rather than work on adapting the xboxdrv one. As far as I know the xboxdrv is mainly focused on Ubuntu distribution of Linux so I'd be unsure whether it will work with myRIO simply. Unfortunately, xboxdrv isn't so I'm not sure on the next step just yet.Īs you have already implied, for the library to work it will have to be re-compiled for the RTOS that myRIO runs. Update #1: I have just managed to use opkg to install the libusb-0.1-dev library as it is included in the Angstrom repository (after changing the feed address). It seems like something that might be pretty cool to have working with the MyRIO as there are lots of applications that you might want to use a controller for!įailing that - any ideas on other controller suggestions? Something I could interface to with Digital Inputs? I'm a little rusty so if anyone can point me in the right direction I'd really appreciate it! I have a reasonable understanding of linux but in terms of compiling from source etc. Once installed, how would I interface with the device from LabVIEW Real Time? I guess it should be possible to compile this driver for the MyRIO and install it using opkg? I did some reading around and there is a linux driver for a wide range of Xbox compatible controllers called 'xboxdrv'. Plugging the controller into the USB port and it shows up as usbdev1.2 under /dev a wired Xbox 360 controller) to the MyRIO?Īs it's got a USB port and is running Linux RT - I imagine it should be possible to get the device installed/recognised by the OS on the MyRIO but I'm not sure what the next step would be in terms of trying to get that data into LabVIEW Real Time? Has anyone tried to interface a console controller (i.e.
0 Comments
Leave a Reply. |