[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Alpha version of ECP camera driver for 2.4 kernels
Hey all,
Note that if you don't want to play with your kernel,
or are not comfortable with device drivers, don't try
to use this package yet. It'll clean up in the
future...
Attached is an alpha version of the Mark IV ISA, ECP
and test camera driver. It has a Makefile, 1 source
file, and two scripts. Before the camera_load script
is run, you'll need to make the directory /dev/tassiv
(as root), and <insmod parport>. You'll need to edit
the Makefile to give a path to your kernel - mine is
/usr/local/src/linux-2.4.5. Now type make. Last,
execute the camera_load script as root. It's change
the permissions of /dev/tassiv and makes the correct
nodes.
Please note that you may have to re-compile your
kernel with IEEE 1284 support, and experimental pieces
DMA/FIFO and SuperIO. The DMA/FIFO will may be used
in the future.
This only works with 2.4 version of kernels, as the
2.2 versions don't have the parport support I'm using.
The only problems I've had was when I tried to use
insb from 0x301 with 16M of data without any schedule
calls. One reboot later I fixed the problem :-)
There are three files in the /dev/tassiv directory
camera_test: This file will spew endless cyclical
data at you. The data is interleaved like the real
camera data. The first data starts as 0x0000 and goes
to 0xFFFF, while the second data starts at 0xFFFF and
goes to 0x0000. Try dd /dev/tassiv/camera_test bs=16
count=0 | od -x -Ax, or change the 16 to 16M for a
'full' set of data.
camera_isa: This file will read data from port 0x301,
(as much as you tell it). If you have a MarkIV ISA
card, this should read it. dd works here also.
camera_ecp: This is the 'real' file. Currently,
it'll force the port into ECP mode, and then try to
read the data. It fails with 'No data available' at
this time (provided the port supports ECP mode and
your kernel is compiled with IEEE 1284 support - check
your kernel error log for problems). I'll need some
kind of hardware (maybe my other windows pc) before I
take this piece further. It doesn't execute the
proposed write trigger at this time. dd will work
here also.
Once again, this is alpha, so be wary.
Later,
Rob
tassiv_camera.tar.gz