Hello again,
All sorted.
Another process had got hold of /dev/rtf3.
bios settings were incorrect - interrupt 7 was being snaffled
by the printer port.
This rtl stuff is really very good. Thanks lads.
Cheers,
Matt W.
On Fri, Mar 09, 2001 at 05:05:12PM +0000, Matthew Whillock wrote:
> Hi all,
>
> I am using rtlinux 2.2 and have come across a couple of problems...
>
> When I try to get the sound example program going (by make; make test
> as root) I get the error message "permission denied" when the line
> 'cat linus.au > /dev/rtf3' executes. Any ideas why this should be?
> ls -l /dev/rtf3 returns
>
> crw-rw-rw- 1 root root 150, 3 Apr 19 2000 /dev/rtf3
>
>
> I am developing my own module which uses interrupts 5 and 7. I think
> I have enabled interrupt 7 correctly as folowing (STATUS_INT is defined
> as 7):
>
> #ifdef USE_INTS
> case 4 : // mdp_enbl_stint
> rtl_no_interrupts(old_irq_state);
>
> // debug = rtl_request_global_irq(STATUS_INT, status_handler);
> debug = rtl_request_irq(STATUS_INT, status_handler);
>
> if(debug == 0) {
> rtl_hard_enable_irq(STATUS_INT);
> // next line initializes own hardware card
> outb(ST_STAT_WR_CLR_STIRQ_B | ST_STAT_WR_EN_STIRQ_B, ST_STAT_RW);
> rtl_allow_interrupts();
> }
>
> rtl_restore_interrupts(old_irq_state);
>
> #ifdef DEBUG
> rtl_printf("CONTROL_HANDLER: status int %d\n", debug);
> #endif
>
> break;
>
>
> A logic analyser trace tells me that the interrupt is being generated by
> the hardware under test in the isa slot but is not being picked up by rtl.
> In the bios I have reserved interrupts 5 & 7 as ISA legacy.
>
> I have tried rtl_request_global_irq and rtl_request_irq with no joy.
>
> Can anyone point me in the right direction?
>
> TIA
>
> Cheers,
>
> Matt W.
> --
--
Matthew Whillock
[EMAIL PROTECTED] Dept. of Space and Climate Physics,
Tel: +44 1483 204181 Mullard Space Science Laboratory,
Fax: +44 1483 278312 University College London.
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/