public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* serial port multiplexing
@ 2005-08-25 12:20 Rahul Tank
  2005-08-31 10:10 ` Russell King
  0 siblings, 1 reply; 4+ messages in thread
From: Rahul Tank @ 2005-08-25 12:20 UTC (permalink / raw)
  To: Linux-kernel

 Hello all,

    I am a newbee tryinging for serial port
multiplexing. Currently my driver supports for one
port
(/dev/ttyS0). However i want to use the same physical
port for 2 virtual ports.I am NOT sending two type of
data simultaneously. I want to first reigister my
driver for /dev/ttyS0. When the kernel  has booted ,i
want to disable it. Then i want to enable the driver
to register for say /dev/ttyS1.
  in short i don't want the console to have controle
over the serial port.
  The point of doing such is that i want my serial
port to be free. I can telnet to this potr from other
machine and test few stuff. i hope i have properly
mentioned my problem.

 plz let me know how should i proceed.
 thanks in advance.

 regards,
  rahul





	

	
		
____________________________________________________
Send a rakhi to your brother, buy gifts and win attractive prizes. Log on to http://in.promos.yahoo.com/rakhi/index.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: serial port multiplexing
  2005-08-25 12:20 serial port multiplexing Rahul Tank
@ 2005-08-31 10:10 ` Russell King
  2005-08-31 10:16   ` Jan-Benedict Glaw
  0 siblings, 1 reply; 4+ messages in thread
From: Russell King @ 2005-08-31 10:10 UTC (permalink / raw)
  To: Rahul Tank; +Cc: Linux-kernel

On Thu, Aug 25, 2005 at 01:20:45PM +0100, Rahul Tank wrote:
>     I am a newbee tryinging for serial port
> multiplexing. Currently my driver supports for one
> port
> (/dev/ttyS0). However i want to use the same physical
> port for 2 virtual ports.I am NOT sending two type of
> data simultaneously. I want to first reigister my
> driver for /dev/ttyS0. When the kernel  has booted ,i
> want to disable it. Then i want to enable the driver
> to register for say /dev/ttyS1.
>   in short i don't want the console to have controle
> over the serial port.

Try setting the kernel message level to zero after boot.  That
will prevent the kernel from displaying any further messages to
that serial port, except when a serious problem (eg, oops) occurs.

-- 
Russell King
 Linux kernel    2.6 ARM Linux   - http://www.arm.linux.org.uk/
 maintainer of:  2.6 Serial core

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: serial port multiplexing
  2005-08-31 10:10 ` Russell King
@ 2005-08-31 10:16   ` Jan-Benedict Glaw
  2005-08-31 10:19     ` Russell King
  0 siblings, 1 reply; 4+ messages in thread
From: Jan-Benedict Glaw @ 2005-08-31 10:16 UTC (permalink / raw)
  To: Rahul Tank, Linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1410 bytes --]

On Wed, 2005-08-31 11:10:48 +0100, Russell King <rmk+lkml@arm.linux.org.uk> wrote:
> On Thu, Aug 25, 2005 at 01:20:45PM +0100, Rahul Tank wrote:
> >     I am a newbee tryinging for serial port
> > multiplexing. Currently my driver supports for one
> > port
> > (/dev/ttyS0). However i want to use the same physical
> > port for 2 virtual ports.I am NOT sending two type of
> > data simultaneously. I want to first reigister my
> > driver for /dev/ttyS0. When the kernel  has booted ,i
> > want to disable it. Then i want to enable the driver
> > to register for say /dev/ttyS1.
> >   in short i don't want the console to have controle
> > over the serial port.
> 
> Try setting the kernel message level to zero after boot.  That
> will prevent the kernel from displaying any further messages to
> that serial port, except when a serious problem (eg, oops) occurs.

Alternatively, IIRC one of the printk-nullifying patches were taken
some time ago. You should be able to eleminate any printk()s through
kernel configuration in the embedded menu.

MfG, JBG

-- 
Jan-Benedict Glaw       jbglaw@lug-owl.de    . +49-172-7608481             _ O _
"Eine Freie Meinung in  einem Freien Kopf    | Gegen Zensur | Gegen Krieg  _ _ O
 für einen Freien Staat voll Freier Bürger"  | im Internet! |   im Irak!   O O O
ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA));

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: serial port multiplexing
  2005-08-31 10:16   ` Jan-Benedict Glaw
@ 2005-08-31 10:19     ` Russell King
  0 siblings, 0 replies; 4+ messages in thread
From: Russell King @ 2005-08-31 10:19 UTC (permalink / raw)
  To: Rahul Tank, Linux-kernel

On Wed, Aug 31, 2005 at 12:16:10PM +0200, Jan-Benedict Glaw wrote:
> On Wed, 2005-08-31 11:10:48 +0100, Russell King <rmk+lkml@arm.linux.org.uk> wrote:
> > On Thu, Aug 25, 2005 at 01:20:45PM +0100, Rahul Tank wrote:
> > >     I am a newbee tryinging for serial port
> > > multiplexing. Currently my driver supports for one
> > > port
> > > (/dev/ttyS0). However i want to use the same physical
> > > port for 2 virtual ports.I am NOT sending two type of
> > > data simultaneously. I want to first reigister my
> > > driver for /dev/ttyS0. When the kernel  has booted ,i
> > > want to disable it. Then i want to enable the driver
> > > to register for say /dev/ttyS1.
> > >   in short i don't want the console to have controle
> > > over the serial port.
> > 
> > Try setting the kernel message level to zero after boot.  That
> > will prevent the kernel from displaying any further messages to
> > that serial port, except when a serious problem (eg, oops) occurs.
> 
> Alternatively, IIRC one of the printk-nullifying patches were taken
> some time ago. You should be able to eleminate any printk()s through
> kernel configuration in the embedded menu.

Yes, except I believe the OP wants to see the initial kernel messages,
and then want to shut the kernel up once it has booted.

-- 
Russell King
 Linux kernel    2.6 ARM Linux   - http://www.arm.linux.org.uk/
 maintainer of:  2.6 Serial core

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-08-31 10:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-25 12:20 serial port multiplexing Rahul Tank
2005-08-31 10:10 ` Russell King
2005-08-31 10:16   ` Jan-Benedict Glaw
2005-08-31 10:19     ` Russell King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox