Re: [linux-usb-devel] partial message via usb serial console

Paul B Schroeder <[email protected]>
Newsgroups gmane.linux.usb.user,gmane.linux.usb.devel
Organization Uplogix, Inc.
Message-ID <[email protected]>
> 
>> 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??

Also, /dev/console looks okay to me:
[root@A101100369 ~]# ls -l /dev/console
crw------- 1 root root 5, 1 Oct 31 00:54 /dev/console


Thanks...Paul...


-------------------------------------------------------------------------
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/
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.