I wrote: > I have finished the packaging of SANE 1.0.10 on IRIX, using the SGI MIPSpro C > compiler. You can update the supported platforms page on the SANE web site > with the following info:
But of course, I forgotten to test the Kodak DC240 backend. And infact, I've had again problems with the initialization code. The fact is that, on IRIX at least, after the tcsendbreak(), tcdrain() is needed, otherwise the camera will not be inited correctly and the backend will refuse to work. I have applied the same modification to Kodak DC210 backend, which is similar (but I cannot test it, since I haven't that camera). Here are the patches (note: the patch for the DC210 backend here replaces completely the patch provided in my previous message) diff -ruN sane-backends-1.0.10/backend/dc210.c sane-backends-1.0.10-patched/backend/dc210.c --- sane-backends-1.0.10/backend/dc210.c Fri Jan 10 12:21:51 2003 +++ sane-backends-1.0.10-patched/backend/dc210.c Sun Feb 9 02:39:45 2003 @@ -403,6 +403,9 @@ #ifdef HAVE_TCSENDBREAK tcsendbreak (camera->fd, 0); +# if defined(__sgi) + tcdrain (camera->fd); +# endif # elif defined(TCSBRKP) ioctl (camera->fd, TCSBRKP, 0); # elif defined(TCSBRK) @@ -412,9 +415,9 @@ /* and wait for it to recover from the break */ #ifdef HAVE_USLEEP - usleep (breakpause); + usleep (breakpause); #else -+ sleep (1); + sleep (1); #endif if (send_pck (camera->fd, init_pck) == -1) diff -ruN sane-backends-1.0.10/backend/dc240.c sane-backends-1.0.10-patched/backend/dc240.c --- sane-backends-1.0.10/backend/dc240.c Fri Jan 10 12:21:51 2003 +++ sane-backends-1.0.10-patched/backend/dc240.c Sun Feb 9 02:39:50 2003 @@ -448,6 +448,9 @@ #ifdef HAVE_TCSENDBREAK tcsendbreak (camera->fd, 0); +# if defined(__sgi) + tcdrain (camera->fd); +# endif # elif defined(TCSBRKP) ioctl (camera->fd, TCSBRKP, 0); # elif defined(TCSBRK) Andrea