SANE 1.00 on Sparc Linux

Guy G. Sotomayor (ggs@shiresoft.com)
Tue, 29 Dec 1998 00:50:59 -0800

Hi,

I've spent the last couple of days getting SANE to compile and run on
Sparc Linux. It compiles and works now, but not straight "out of the
box". Here are the changes I had to make:

in backend/abaton.c (line 1116):

< s->val[OPT_X_RESOLUTION] = *(SANE_Word *)val;

---
>            s->val[OPT_X_RESOLUTION].w = *(SANE_Word *)val;

I had to completely remove the references to sanei_pio and sanei_ab306. I did this quickly and thus also removed the mustek support from being built as it would get unresolved references to sanei_ab306. The problem with sanei_pio and sanei_ab306 is that they include io.h which on the sparc is a kernel header file and doesn't build properly if included from user space. The code in sanei_pio appears to make the assumption of being on an x86 platform and uses the inb/outb family of calls which don't exist on a sparc. sanei_ab306 appears to have the same problem. I did not investigate why the mustek support always references the sanei_ab306 code.

The third and final problem was that the umax code ran my sparc out of virtual memory.

This was done on a RH 5.1 Sparc/Linux with a 2.1.131 kernel. Sun IPX w/64MB and 51MB of swap.

The good news with all of this is that my Microtek ScanMaker IISP now works under Linux.

TTFN - Guy

--
Source code, list archive, and docs: http://www.mostang.com/sane/
To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com