On 24/04/06, Hans-Werner Hilse <[EMAIL PROTECTED]> wrote:
> Hi again,
>
> On Mon, 24 Apr 2006 15:09:43 +0100 Mick <[EMAIL PROTECTED]>
> wrote:
>
> > I've got partial success!  I can modprobe smsc-ircc2 which seems to
> > successfully install the module:
> > =====================
> > # modprobe -v smsc-ircc2 ircc_sir=0x3e8 ircc_irq=3
> > insmod /lib/modules/2.6.15-gentoo-r1/kernel/drivers/net/irda/smsc-ircc2.ko
> > ircc_sir=0x3e8 ircc_irq=3
>
> So it doesn't report an error here, correct?

Yes, no error.  The module is installed fine as long as I have run
setserial first.

>
> > But only after I have run setserial:
> > =====================
> > # setserial /dev/ttyS2 uart none
> > =====================
> >
> > The log shows:
> > [...]
>
> OK, this probably means that you have the default serial driver
> installed and it claims the device. The setserial is needed in order to
> release the port again. You might want to try to have the default
> serial driver not touch the IrDA port at all -- the simplest thing
> would be to try running without serial plug support for the start.

I am sure that if I could first improve my understanding with regards
to how serial ports are being used, I would be able to find the
solution much easier ;-)

I have enabled serial drivers in the kernel because I intend to
configure the winmodem for dialup connections, as well as being able
to connect my Psion PDA on the serial port.

How does it exactly work?  What is the "serial plug support"?  Are you
referring to the kernel modules for serial ports?
>
> > Then I start /etc/init.d/irda:
> > =====================
> > Apr 24 15:03:37 lappy irattach: tcgetattr: Input/output error
> > Apr 24 15:03:37 lappy irattach: Stopping device /dev/ttyS2
> > Apr 24 15:03:37 lappy irattach: ioctl(SIOCGIFFLAGS): No such device
> > Apr 24 15:03:37 lappy irattach: exiting ...
> > =====================
>
> This seems to indicate that you're trying to use /dev/ttyS2. But as
> you're not using the serial port IrDA driver but an extended FIR driver
> the device is probably "irda0" (and it doesn't have a path, as it's a
> network device). Try "ifconfig -a", it should be listed. I don't have
> IrDA on my current machine, so I can't tell what exact configuration
> setting must be changed from "/dev/ttyS2" to "irda0". Start with this,
> first.

Actually, ifconfig gives me not ida0, but irlan0:
========================
irlan0    Link encap:Ethernet  HWaddr 00:00:00:00:00:00
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:4
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
========================

> > Should I perhaps run all this is a different order?
>
> As I said, try modprobing after the "setserial" call or even omit
> serial support in the kernel.

I will be rolling up a new kernel soon so I can try leaving out the
serial support drivers.  As I said above I desperately need to
understand how the serial port functionality works in linux.  If this
is getting too much OT for the list please email me directly so that
we don't consume bandwidth.  :-)
--
Regards,
Mick

-- 
gentoo-user@gentoo.org mailing list

Reply via email to