Re: partial message via usb serial console

Paul B Schroeder <[email protected]>
Newsgroups gmane.linux.usb.devel,gmane.linux.usb.user
Organization Uplogix, Inc.
Message-ID <[email protected]>
>>
>>>> Oh, and ttyUSB0 doesn't end up functioning as a console whatsoever once 
>>>> init starts up..
>>> That should work properly, do you have your inittab set up correct for
>>> that?  That is required.
>> The only inittab entry that I've added is to run agetty to use it as a 
>> login console..  That works fine..  i.e. I added:
>> a0:2345:once:/sbin/agetty /dev/ttyS1 -t 60 115200
>>
>> I'm not getting output from the initscripts though..  Is there something 
>> else I need to add to my inittab??  I wasn't aware of anything else I 
>> needed to add..
> 
> Take a look at Documentation/serial-console.txt  You need to modify
> inittab to spawn on ttyUSB0 not ttyS1, as that's not where the
> usb-serial console is at :)
> 
Oops..  My mistake..  I copied and pasted the wrong line..  This is actually 
what I have in my inittab:
a0:2345:once:/sbin/agetty /dev/ttyS1 -t 60 115200
a1:2345:once:/sbin/agetty /dev/ttyUSB0 -t 60 115200

That part works just fine..  I can log in no problem..

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:


INIT: version 2.86 booting

Setting clock  (utc): Tue Oct 30 11:52:40 GMT 2007 [  OK  ]
Starting udev: [  OK  ]
Setting hostname A101100369:  [  OK  ]
Checking filesystems
Checking all file systems.
[/sbin/fsck.ext3 (1) -- /] fsck.ext3 -a /dev/hda1
/1: clean, 8606/128016 files, 258078/511684 blocks
[/sbin/fsck.ext3 (1) -- /storage] fsck.ext3 -a /dev/hda6
/storage1: clean, 700/8266016 files, 319468/8259033 blocks
[/sbin/fsck.ext3 (1) -- /uplogix] fsck.ext3 -a /dev/hda5
/uplogix1: clean, 300/1006880 files, 52167/1006103 blocks
[  OK  ]
Remounting root filesystem in read-write mode:  [  OK  ]
Mounting local filesystems:  [  OK  ]
Enabling /etc/fstab swaps:  [  OK  ]
INIT: Entering runlevel: 3
Entering non-interactive startup
Applying iptables firewall rules: [  OK  ]
Bringing up loopback interface:  [  OK  ]



-------------------------------------------------------------------------
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-devel
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.