Werner Almesberger <[EMAIL PROTECTED]> writes:
> [ Copied to [EMAIL PROTECTED] because of the bug reports ]
>
> Nathan Catlow wrote:
> > I am looking forward to some motorola L7089 <-> linux S5 IR action
>
> I've made some progress, but so far, things don't look great. My
> configuration:
> - PC: i386 architecture, 2.3.18 kernel, Tekram IRmate 210.
> - PDA: Psion S5, under EPOC (sigh), no aditional software installed.
> - Phone: Motorola L7089
>
> Getting IrDA to work with 2.3.18 was a bit of a nightmare. I've applied
> the 2.3.16 patch. Then I ran into the following problems:
>
> - trivial: net/irda/ircomm/Makefile adds ircomm_tty_ioctl.c to O_OBJS.
> Should be .o
Already submitted to Alan!
> - tricky: net/irda/irlmp.c:irlmp_register_service calls get_random_bytes,
> but drivers/char/random.c isn't initialized yet (kernel oopses with a
> fairly nebulous stack trace). My ugly hack-around: call rand_initialize
> in irlmp_register_service if not compiled as a module and remove the
> original call to rand_initialize in drivers/char/mem.c. A cleaner
> solution would probably involve deferring the calls to get_random_bytes
> until they are really needed, i.e. when some user process starts using
> IrDA.
Yes, some of the gurus are looking at moving the init rand_initialize to an
earlier place in the init. But I agree that we should probably not use this
function until it's really necessary.
> Since I had more problems (probably just configuration), I
> eventually switched to using modules, assuming that's what's tested
> better.
> - nasty: had various crashes when removing modules or closing things. So
> I eventually strictly followed this sequence:
> reboot # very important step :-(
> insmod irda; insmod irtty
> insmod tekram # my IR dongle
> irattach /dev/ttyS1 -d tekram # on ttyS1
> insmod ircomm; insmod ircomm-tty
> mknod /dev/irnine c 161 0 # largely undocumented feature (?)
> # see also /proc/tty/drivers
> irmanager -d 1
> dip -t
> port irnine
> term
Most of these things are fixed in my 2.3.18ac5-irda1 patch that should
hopefully be available quite soon (ac6?). There will however be some
changes with the device driver initialization (to avoid crashes in 2.3), so
we will probably have to do a "ifconfig irda0 up", to start a driver. I'm
currently not sure how to do this the best way, but we probably have to let
irattach do it (for FIR drivers as well).
-- Dag
_______________________________________________
Linux-IrDA mailing list - [EMAIL PROTECTED]
http://www.pasta.cs.UiT.No/mailman/listinfo/linux-irda