From: Burkhard K. <bu...@bu...> - 2000-12-31 17:48:09
|
Hi everyone, I tried to get hpoj-0.7 running with kernel 2.4.0-test12. I encountered the same compiler errors someone else reported earlier to this list. But after changing the ieee12844pp.c module accordingly (define PARPORT_CONTROL_DIRECTION, substitue parport_write_econtrol, and substitute queue_task(tq_scheduler) with schedule_task) I was not able to run anything but ./hpo devid. ./hpo listpml would yield error -100 in mlcpp_intr and scanimage MLCError 7. I thus tried to replace parport_write_econtrol with the original code (outb(PAR_ECP_CONTROL_BIDIRECTIONAL 0x34, ECONTROL(l->port)) since using parport_write_control (as recommended by the original poster) was not very sensible. This did not change the outcome. With debugging turned on in ieee12844pp.o I see the following log for ./hpo listpml: do_neg(c5067d9c,mode=0x04): in_1284=0, neg_mode=0x10. c5067d9c: event=2. c5067d9c: event=6. negotiate(c5067d9c,mode=0x04): rejected! mlcpp0: mlcpp_intr ERROR -100 state=2 event=6 reset=1 recv=4 rcv=0 send=2 do_neg(c5067d9c,mode=0x00): in_1284=1, neg_mode=0x04. c5067d9c: event=23. PAR_WAIT_SET_CLEAR(l=c5067d9c,set=0x0088,clear=0x0050): timed out waiting for event=23! One further note on compiling the modules. The recommended compiler for 2.4.0 kernels is now egcs 1.1.2. But with many distributions comes gcc 2.95.x. linux/Documentation/Changes strongly recommends to use 2.95 with the -fno_strict_aliasing flag. I therefore suggest to add an EXTRA_CFLAGS=-fno_strict_aliasing field to the makefile, which might be uncommented by gcc 2.95.x users. Burkhard -- Burkhard Kohl bu...@bu... |