Linux Users

Highlighted

Linux Kernel Sources for NIVISA

I attempted to run the NI VISA installer on my Linux system. It complained that it is necessary to have the kernel sources on the platform to install. I happen to have the kernel sources for my kernel build, however the sources are on the platform I used to make the kernel image. What all do I need to move over to my Linux system, and where do I need to put it, or what do I need to do for the installer to find it?

0 Kudos
Message 1 of 2
(758 Views)
1 REPLY 1

Re: Linux Kernel Sources for NIVISA

You need the same kernel tree (literally: the same - including config, ...) and the same toolchain, same compiler flags. Otherwise you'll risk subtile problems that are virtually impossible to track down. Kernel modules are supposed to be built (and run) with exactly the same kernel image. They're not like shared libraries - they're pieces of the kernel, there is no fixed ABI (consider the whole kernel as like one statically linked binary, where some pieces happen to remain in separate files).

 

Anyways, as NI only provides binary drivers (the locally compiled code are just some wrappers), expect subtle crashes, data losses (eg. destroyed filesystems), perhaps even hardware damage.

 

It's gambling Russian Roulette ! 

 

Linux Embedded / Kernel Hacker / BSP / Driver development / Systems engineering
0 Kudos
Message 2 of 2
(497 Views)
Reply
This is an open group. Sign in and click the "Join Group" button to become a group member and start posting.