err msg: System Error! gcc DAQ
Hi everyone!
I managed to Install an Advantech pci1780 card in a PC with debian 6. I compiled the very first program using gcc without problems, but by the time I execute it, I have the following output: err msg: System Error! Any idea where to look for the error? Thanks in advance. |
I installed gdb, and It seems that the program crashes at the very first instruction. This instruction is a function that is supposed to be in the DAQ library /usr/local/include/Advantech/advdaq.h
I don't know what to do now... Isn't the driver properly compiled? Program exited with code 0377. Gdb gives the next lines: DRV_DeviceOpen (filename=0x80486e7 "/dev/advdaq254", handle=0xbffff67c) at api_devfun.c:169 169 api_devfun.c: No such file or directory. |
useless compiled module?
I recompile the drivers again today. I ran one of the examples and I got this:
Message from syslogd@maize at Feb 10 15:37:39 ... kernel:[ 778.726876] Oops: 0000 [#1] SMP Message from syslogd@maize at Feb 10 15:37:39 ... kernel:[ 778.726881] last sysfs file: /sys/devices/pci0000:00/0000:00:1e.0/0000:05:0a.0/class Message from syslogd@maize at Feb 10 15:37:39 ... kernel:[ 778.726999] Process gdb (pid: 1686, ti=dd944000 task=d7544cc0 task.ti=dd944000) Message from syslogd@maize at Feb 10 15:37:39 ... kernel:[ 778.727002] Stack: Message from syslogd@maize at Feb 10 15:37:39 ... kernel:[ 778.727032] Call Trace: flowsensor@maize:~/daq/advdaq-1.10.0001/examples/console/freq_in/general$ Message from syslogd@maize at Feb 10 15:37:39 ... kernel:[ 778.727106] Code: 0f 84 b1 00 00 00 39 6b 20 74 0c 81 ff 0e 63 00 00 0f 84 a0 00 00 00 39 6b 24 74 0c 81 ff 0b 63 00 00 0f 84 8f 00 00 00 8b 14 24 <8b> 42 04 8b 40 10 8b 70 08 85 f6 74 14 8b 8c 24 e4 00 00 00 89 Message from syslogd@maize at Feb 10 15:37:39 ... kernel:[ 778.727155] EIP: [<e013f4c8>] advdrv_ioctl+0x866/0x919 [advdrv_core] SS:ESP 0068:dd945e48 Message from syslogd@maize at Feb 10 15:37:39 ... kernel:[ 778.727163] CR2: 0000000018948d04 does it mean that I did something wrong compiling the drivers? thanks in advance. |
solved
I got it solved once I bind the card to a device file.
Thanks |
All times are GMT -5. The time now is 07:27 AM. |