This is what I do in my ks to achieve what you are
looking for.  You can do the same manually or script
it too.  It got kernel output to both places.  I don't
remember if rc script output came on both sides or
only on serial.  In this example I set serial to be
9600, you can do whatever you want.  I prepend the
original lilo.conf with the serial line and then
append it with the append line.  You also have to do 
the other magic.  This evolved by reading several
how-to's.  I did this some time ago so let me know if
it does not do what I claimed.  

/bin/echo "serial=0,9600n8" > /etc/lilo.conf #
/bin/cat /etc/lilo.save >> /etc/lilo.conf #
/bin/echo "append=\"console=tty0 console=ttyS0,9600\""
>> /etc/lilo.conf #
/bin/rm -f /dev/console /dev/tty0 #
/bin/mknod -m 622 /dev/console c 5 1 #
/bin/mknod -m 622 /dev/tty0 c 4 0 #





--- "Richard A. Smith" <[EMAIL PROTECTED]> wrote:
> On Thu, 19 Jul 2001 17:38:25 +1000, Keith Owens
> wrote:
> 
> >>I have console=ttyS2 in my kernel command line but
> I only get the
> >>kernel messages and not the rest.
> >
> >kernel printk writes to all consoles.  User space
> writes to
> >/dev/console, when /dev/console is 5,1 it writes to
> the _last_ console=
> >specified on the boot command line.  you only get
> one copy of
> >the init messages, you just have to choose which is
> more useful.
> 
> Hmmm.. ok guess I will have to come up with some
> wrapper in rc that
> tees the output to 2 differnent places like
> suggested earlier.
> 
> Is there a reason the kernel does it this way? 
> Seems counter to
> being able to specify mutiple consoles in the boot
> commands.
> 
> 
> 
> 
> 
> 
> --
> Richard A. Smith                         Bitworks,
> Inc.               
> [EMAIL PROTECTED]               501.846.5777      
>                  
> Sr. Design Engineer        http://www.bitworks.com  
> 
> 
> 
> 
> --
> To unsubscribe from this list, send a message to
> [EMAIL PROTECTED]
> with the command "unsubscribe linux-embedded" in the
> message body.
> For more information, see
<http://waste.org/mail/linux-embedded>.



__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

--
To unsubscribe from this list, send a message to [EMAIL PROTECTED]
with the command "unsubscribe linux-embedded" in the message body.
For more information, see <http://waste.org/mail/linux-embedded>.

Reply via email to