Re: partial message via usb serial console

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Oct 31, 2007 at 01:07:48AM -0500, Paul B Schroeder wrote:
>>> I understand that getting the kernel messages via a USB console isn't 
>>> reliable.  But I can't get the system/rc/initscripts startup stuff via 
>>> ttyUSB0 either. Or is this just as unreliable..  The only way I get 
>>> system/rc/initscripts startup stuff via ttyUSB0 is if I set 
>>> 'CONSOLE=/dev/ttyUSB0' on my kernel command line..  And in that case the 
>>> baud rate gets changed from 115200 to 9600..  i.e.  The issue I'm trying 
>>> to solve now, is with these messages via ttyUSB0:
>> That's up to your init system, which is specific to your distro.  That
>> CONSOLE= line is probably what init is reading to do what you need it to
>> do.  I don't know about the baud rate issue, sorry, try reading the
>> documentation for your distro about this.
> Well, init is using /dev/console by default.  This works for ttyS1, but not 
> ttyUSB0..  So when I have 'kernel /boot/vmlinuz-2.6.19-1.2895.uplogix.14 ro 
> root=/dev/hda1 panic=5 console=tty0 console=ttyS1,115200', I can do 'echo 
> test >/dev/console' and I see the output on ttyS1..
>
> But when I have 'kernel /boot/vmlinuz-2.6.19-1.2895.uplogix.14 ro 
> root=/dev/hda1 panic=5 console=tty0 console=ttyUSB0,115200' and I do 'echo 
> test >/dev/console', I get absolutely nothing out of ttyUSB0..
>
> So in my case here, adding 'CONSOLE=/dev/ttyUSB0' to the kernel command 
> line ends up in the environment.  So init ends up using CONSOLE as it was 
> set in the environment..  Which I shouldn't have to do.  /dev/console 
> should just work.. This isn't distro specific..  This should be set up in 
> the kernel appropriately..  Correct??

No, the boot console code doesn't modify /dev/console at all from what I
can tell.

sorry,

greg k-h

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
linux-usb-devel@xxxxxxxxxxxxxxxxxxxxx
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

[Index of Archives]     [Video for Linux]     [Photo]     [Yosemite Forum]     [Yosemite Photos]    [Linux Kernel]     [Linux SCSI]     [XFree86]     [Devices]     [Big List of Linux Books]

  Powered by Linux