Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: How to setup serial console in open suse 11.0

  1. #1

    Default How to setup serial console in open suse 11.0

    I am using opensuse 11.0, I have to use serial sonsole. I modified menu.lst and inittab.but when i connect my usb board no output on screen.
    with this command screen/dev/ttyS0 115200 I am connecting.
    But in windows it wroking.
    please shre your ideas it very helpfull to me

  2. #2

    Default how to setup serial console in open suse 11.0

    I am using opensuse 11.0, I have to use serial sonsole. I modified menu.lst and inittab.but when i connect my usb board no output on screen.
    with this command screen/dev/ttyS0 115200 I am connecting.
    But in windows it wroking.
    please shre your ideas it very helpfull to me
    Edit/Delete Message Reply With Quote

  3. #3
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,857

    Default Re: How to setup serial console in open suse 11.0

    I am not sure I do understand all you tell.

    The screen command (I read the man page as fast as possible) is about emulating an ANSI/VT100) terminal in a window. Do I understand this completely wrong? The command as you type it is:
    Code:
    screen/dev/ttyS0 115200
    I suppose a space should be there right after the screen:
    Code:
    screen /dev/ttyS0 115200
    But the man page says:
    screen [ -options ] [ cmd [ args ] ]
    screen -r [[pid.]tty[.host]]
    screen -r sessionowner/[[pid.]tty[.host]]
    Because of no -r option the first line is the one you use. That means that /dev/ttyS0 should be an existing command (which it is not, it is a character device special file) and 115200 is its argument.

    Further you seem to be a bit lazy in using the keyboard, leaving it to others filling in the holes. Why do you not tell what the changes to menu.lst and initab are. At least I (and most here) am not clairevoyant.

    One of the things I (maybe wrongly) understood is that you connect the terminal via USB. Now I know that the special files for terminals connected to COM ports are /dev/ttyS0, etc. But I am not sure about USB connected ones. Are you? Is /dev/ttyS0 created by udev? (and, when yes, not because you also have a COM port).
    Henk van Velden

  4. #4
    Join Date
    Jun 2008
    Location
    Frisco, TX
    Posts
    1,233

    Default Re: How to setup serial console in open suse 11.0

    On Tue, 2009-05-05 at 10:36 +0000, govardhanmattela wrote:
    > I am using opensuse 11.0, I have to use serial sonsole. I modified
    > menu.lst and inittab.but when i connect my usb board no output on
    > screen.
    > with this command screen/dev/ttyS0 115200 I am connecting.
    > But in windows it wroking.
    > please shre your ideas it very helpfull to me
    >
    >


    After modifying /etc/inittab with a line like:
    S0:12345:respawn:/sbin/agetty -L 115200 ttyS0 vt102

    You have to tel init... that is: telinit q

    If you don't see the agetty process running... then
    something else is wrong.



  5. #5
    Join Date
    Mar 2009
    Location
    Caribbean
    Posts
    242

    Default Re: how to setup serial console in open suse 11.0

    Hi,

    I don't know if this is what you want, but try using putty in wine. pretty sure that might work with your serial cable

  6. #6

    Default Re: how to setup serial console in open suse 11.0


  7. #7
    Join Date
    Jan 2008
    Location
    U.K East Anglia
    Posts
    2,581

    Default Re: how to setup serial console in open suse 11.0

    Topics merged

    Andy
    To be is to do = Immanuel Kant
    To do is to be = Descartes.
    Do be do be do = Frank Sinatra

    SuSE user since 7.0,Linux user since 1994

  8. #8

    Default Re: How to setup serial console in open suse 11.0

    Make your life easier and install Putty from the repositories. No need for Wine. Once it's installed you can open up Konsole and type "putty" and it'll launch, or you can create a shortcut for it.

    If you're using a USB-to-Serial connection odds are that the dev ID for it is ttyUSB0. You can verify it by looking under /dev after plugging the adapter in to see if it's listed.

    To launch a serial console connection in Putty, launch Putty, select Serial for the connection type, and enter in /dev/ttyUSB0 where the COM port normally goes. You can select your baud, bits, parity, and whatever else you want to modify under the serial settings on the bottom left hand side of the screen.

    Hope that helps.

  9. #9
    Join Date
    Jul 2008
    Location
    Voorhout, Netherlands
    Posts
    262

    Default Re: How to setup serial console in open suse 11.0

    govardhanmattela wrote:
    > I am using opensuse 11.0, I have to use serial sonsole. I modified
    > menu.lst and inittab.but when i connect my usb board no output on
    > screen.


    What is this 'usb board' ? First thing of business is to establish if
    this device is set-up properly and working as expected.

    > with this command screen/dev/ttyS0 115200 I am connecting.
    > But in windows it wroking.
    > please shre your ideas it very helpfull to me


    As cjcox said: uncomment a agetty line in /etc/inittab to get a normal
    serial console.
    S0:12345:respawn:/sbin/agetty -L 38400 ttyS0 vt102

    If you want to monitor the grup and boot messages, add this to
    /boot/grup/menu.lst

    default 0
    timeout 3
    serial --unit=0 --speed=38400 --word=8 --parity=no --stop=1
    terminal --timeout=3 serial console

    On each kernel line add: console=tty1 console=ttyS0,38400
    E.g.:
    ###Don't change this comment - YaST2 identifier: Original name: linux###
    title openSUSE 10.3 - 2.6.22.19-0.2 (default)
    root (hd0,0)
    kernel /vmlinuz-2.6.22.19-0.2-default root=/dev/system/lv1 vga=0x31a resume=/dev/sdb1 splash=silent \
    console=tty1 console=ttyS0,38400
    initrd /initrd-2.6.22.19-0.2-default

    Theo

  10. #10
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,686
    Blog Entries
    4

    Default Re: How to setup serial console in open suse 11.0

    Because a USB serial adapter requires a driver, you may not be able to get serial connectivity from the moment of booting. GRUB will not know how to talk to a USB device*. So the earliest the kernel will be able to interact with the serial console is when the driver is activated, say from the initrd.

    However a real serial port is known to GRUB and it does have code to deal with it.

    * AFAIK GRUB doesn't have the necessary code in it. I did a quick search on grub usb serial driver and got some hits of some similar requests from other people. IMO it might make an interesting project to add usbserial support to GRUB. There are quite a few models of USB serial adapters so perhaps it would have to be modular and initially cater to the ones with hardware info and hopefully the most common also.

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •