Command_&_ciodas16/330_problem

Hi,

I still have troubles with the examples using 'command'. If anyone could give a hint based on the following data, I would be very happy.
This time a little more specific:

--Last entry in /etc/rc.d/rc.local:

    /sbin/modprobe das16
    /usr/sbin/comedi_config /dev/comedi0 cio-das16/330 0x330,5,1

    

According to the PC-board's manual, DMA channels 0,5-7 are available, but the board is not initialized when entering     for example '0' instead of '1' above. It is initialized without giving the DMA, or when omitting the IRQ (5 here) and using a DMA and the timer option (0x300,,1,,,,,1). The result is still the same.


--A look in /proc/dma gives:

    [daniel_at_localhost /proc]$ more dma
    1: das16
    4: cascade



--If I run a demo using command, the typical error message is (the last row):



    [daniel_at_localhost demo]$ ./select
    test ret=1
    start: now 0
    scan_begin: unknown(0x00000000) 100000000
    convert: timer 1000000
    scan_end: count 1
    stop: count 10
    test ret=1
    start: now 0
    scan_begin: unknown(0x00000000) 100000000
    convert: timer 1000000
    scan_end: count 1
    stop: count 10
    ret=-1
    errno=11
    comedi_command: Resource temporarily unavailable
    [daniel_at_localhost demo]$



--When starting 'comedilib/demo/cmd' I get:



    [daniel_at_localhost demo]$ ./cmd
    command before testing:
    start: now 0
    scan_begin: follow 0
    convert: timer 1000000
    scan_end: count 4
    stop: count 1000
    first test returned 0 (success)
    start: now 0
    scan_begin: follow 0
    convert: timer 1000000
    scan_end: count 4
    stop: count 1000
    second test returned 0 (success)
    start time: 1039716406.466552



Then nothing happens. I left that process going and started another example and got the following error:

        ...

    ret=-1
    errno=16
    comedi_command: Device or resource busy



This message give hope, but where do I go next?



I also tried the mmap-example, which gave:



    [daniel_at_localhost demo]$ ./mmap
    buffer size is 65536
    map=0xffffffff
    command_test failed


Where is the Gordian knot?

/Daniel L Sandin

Received on 2002-12-12Z18:01:45