[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [linrad] parallel port and linux/linrad
Thanks for your help.
Linrad and the wse converters are now working proper on the parallel ports.
73's Jurgen PE1LWT
> -----Oorspronkelijk bericht-----
> Van: owner-linrad@xxxxxxxxxxxxxxxxxxxxxx [mailto:owner-
> linrad@xxxxxxxxxxxxxxxxxxxxxx] Namens Leif Asbrink
> Verzonden: dinsdag 14 december 2004 0:04
> Aan: linrad@xxxxxxxxxxxxxxxxxxxxxx
> Onderwerp: RE: [linrad] parallel port and linux/linrad
>
> Hi Jurgen and all,
>
> > After finding out that my onboard parallel port is not running
> > well, and I really like to control my wse converter, I installed
> > a pci parallel port adapter.
> > As usual I ran into problems..
> >
> > After finding out with lspci -v I found the addresses of my pci card
> > D000
> > CC00
> > C800
> > C400
> > C000
> >
> > I added this info in /etc/modules.conf
> > Alias parport_lowlevel parport_pc
> > Option parport_pc io=0x378,d000,c8000 irq=none,none,none
> I do not think you have to inform Linux about the pci card.
> Just put it in the PC and tell Linrad where to write:-)
>
> > I edited hwaredef.h in the Linrad directory
> > Changed 0x378 to d000
> Changed to 0xd000 i guess;-)
>
> > Did configure and make , and ran into the following result:
> >
> > Linrad is starting up, but going into the hardware test mode
> > the following svgalib error is prompted:
> > Svgalib signal 11: segmentation fault received
>
> Hmmm, I was unaware of this problem, but when telling my Linrad to
> write to 0xd000 I also get the same error.......
>
>
> The solution is easy. In order to write directly to the hardware
> Linrad asks for permission with ioperm(). This will give access
> to ports up to 0x3ff only. In order to write to higher port
> one has to change the I/O privilege level.
>
> There is a routine users_open_devices() around line 184 in hwaredriver.c.
> Add a line:
> iopl(3);
>
> Place it immediately before the line:
> ioperm(HWARE_PORT,4,1);
>
> On my computer that solves the problem and Linrad runs happily
> writing to non-existing hardware:-)
>
> Hopefully your pci card will do its work:-)
>
>
> 73
>
> Leif
LINRADDARNIL