05-28-2007 02:31 PM
05-28-2007 03:17 PM
05-30-2007 02:41 AM
05-30-2007 09:03 AM
05-30-2007 10:57 AM
@JohnNavratil wrote:
Also, I couldn't find NIKAL 1.4 on the site. If I am successfully building 1.5, does 1.4 help anything?
If you are using NI-DAQmx, NI-SCOPE, NI-DMM, or NI-FGEN, then I would say to be safe you should recompile your kernel with an 8K stack. Of course it really depends on what hardware you are using, and how you happen to be using the API. If you are lazy, or willing to experiment (you may be since you are patching NI-KAL), you could always try using the kernel with a 4K stack and and hope that your use case doesn't cause the machine to Oops, Panic, or otherwise lockup. If it does then you should probably recompile the kernel with a 8K stack.
@JohnNavratil wrote:
Finally, it appears that I must recompile the kernel to implement an 8K stack, in any event. Is this correct? Well, if I must build a kernel in this century, I'd better get started 🙂
05-30-2007 11:05 AM
05-30-2007 11:09 AM
05-30-2007 11:10 AM
Good to hear that the patches helped you on the way! I just had a quick look at your modification and it looks like you only made small changes. If it compiles, I say its good to use
@JohnNavratil wrote:
The attachment contains JHn's patches modified for NIKAL1.5. This was done by inspection, not testing, but does result in a successful compile of nikal.c. This was done on a 2.6.20 kernel source tree and, while the patches were applied in sequence, the intermediate code was NOT compiled on .18 or .19 kernels. Perhaps JHn could review my effort. Also, I couldn't find NIKAL 1.4 on the site. If I am successfully building 1.5, does 1.4 help anything?
I haven't seen the modpost problem with the GPIB driver and now I understand why; It is apparently a result of the DAQ specific binary only blobs that is linked in with the kal interface. Binary only blobs are not a good thing in an evolving kernel... hint hint NI
With the original modpost, I received multiple errors of the form:
make -C /lib/modules/2.6.20-1.2316.fc5/source SUBDIRS=/usr/local/natinst/nikal/src/objects modules
make[1]: Entering directory `/usr/src/kernels/2.6.20-1.2316.fc5-i686'
CC [M] /usr/local/natinst/nikal/src/objects/nipxirmk-interfaceFile.o
CC [M] /usr/local/natinst/nikal/src/objects/nipxirmk-export.o
LD [M] /usr/local/natinst/nikal/src/objects/nipxirmk.o
Building modules, stage 2.
MODPOST 1 modules
FATAL: parse error in symbol dump file
make[2]: *** [__modpost] Error 1
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.20-1.2316.fc5-i686'
make: *** [objects/nipxirmk-interfaceFile.ko] Error 2
ERROR: failed to build nipxirmk.ko
nipxirmk.ko failed to update.
With ninevoltz's modpost, I received floating point exceptions. I'm off to the "NIDAQmx on Fedora Core 5 How-To" thread, bit if anyone has any quick ideas to solving this, I'm all eyes.
Finally, it appears that I must recompile the kernel to implement an 8K stack, in any event. Is this correct? Well, if I must build a kernel in this century, I'd better get started 🙂
05-31-2007 11:09 AM
![]() |
Fedora Core 5 - kernel 2.6.20 -NIKAL 1.5 howto |