Find the answer to your Linux question:
Results 1 to 4 of 4
Hello I am stuck with my serial port , I need some help please I am using a linux version from lfs and my linux can not detect any serial ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2010
    Posts
    1

    Serial port problem


    Hello
    I am stuck with my serial port , I need some help please

    I am using a linux version from lfs and my linux can not detect any serial port.
    I have read lots of article about it, What i understand is kernel (2.6 for me) detects serial ports automatically.
    I looked at my bios settings and there are serial ports which are set to irqs however "dmesg | grep ttys" is not showing any ttys output,
    I also looked at /proc/devices here is output

    Character devices:
    1 mem
    2 pty
    3 ttyp
    4 /dev/vc/0
    4 tty
    5 /dev/tty
    5 /dev/console
    5 /dev/ptmx
    7 vcs
    10 misc
    13 input
    21 sg
    29 fb
    128 ptm
    136 pts
    180 usb
    189 usb_device

    I install setserial proc however dont want to use it without knowing what I am doing . Could you describe how can I setup a serial port on my linux.
    Thank you

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,737
    There are no entries in /dev like /dev/ttyS0, /dev/ttyS1, etc? What kernel are you running (you can find out with the command uname -r)?
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Just Joined!
    Join Date
    Jun 2010
    Posts
    15
    You can't get ttyS0... by reading /proc/devices, I think 'ls -l /dev/ ', you can find your
    ttyS0 ttyS1 ..and so on, you can use minicom to use it .

  4. $spacer_open
    $spacer_close
  5. #4
    Linux User
    Join Date
    Mar 2008
    Posts
    287

    Serial port problem

    Try ls -l /dev/* | grep -i ttyS it is a bit shorter listing.
    By any chance do you have a dialup modem attatched? It may well be on a serial port if so.
    Baring the preceding, try "cd /proc" and "cat ioports". Scan the listing for serial and/or addresses (on the left) of 2F8 and 3F8. Those are the serial ports.

Posting Permissions

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