DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 28th September 2008
pitbac23 pitbac23 is offline
New User
 
Join Date: Sep 2008
Posts: 1
Thanked 0 Times in 0 Posts
Default probleme with serial port

Hello all ,
i have change my system debian linux to freebsd( pcBSD)
all working as well , but the serial does not work correctly.
Under linux the problem does not appears.
my problem is than my serial port does work .

the first step than i have make is look with dmesg if my serial are detected .
the result of the commande
dmesg | grep -E sio*

Code:
<16550A-compatible COM port> port 0x2f8-0x2ff irq 3 flags 0x10 on acpi0
sio0: type 16550A
sio0: [FILTER]
if i have correctly read the handbook of freeBSD that's means than the serial are compiled and detect.

after i have check the option of my serial port with command

stty -a -f < /dev/ttyd0

Code:
speed 9600 baud; 0 rows; 0 columns;
lflags: -icanon -isig -iexten -echo -echoe -echok -echoke -echonl
        -echoctl -echoprt -altwerase -noflsh -tostop -flusho -pendin
        -nokerninfo -extproc
iflags: -istrip -icrnl -inlcr -igncr -ixon -ixoff ixany imaxbel -ignbrk
        -brkint -inpck -ignpar -parmrk
oflags: -opost onlcr -ocrnl -oxtabs -onocr -onlret
cflags: cread cs8 parenb -parodd hupcl clocal cstopb -crtscts -dsrflow
        -dtrflow -mdmbuf
cchars: discard = ^O; dsusp = <undef>; eof = ^D; eol = <undef>;
        eol2 = <undef>; erase = ^?; erase2 = <undef>; intr = ^C;
        kill = ^U; lnext = ^V; min = 0; quit = ^\; reprint = ^R;
        start = ^Q; status = <undef>; stop = ^S; susp = ^Z; time = 1;
        werase = ^W;
and for give more detail of my /dev/list

ls -l /dev

Code:
crw-r--r--  1 root  wheel       0,  32 26 sep 00:23 acpi
crw-rw-rw-  1 root  operator    0,  77 26 sep 00:23 ad0
crw-rw-rw-  1 root  operator    0,  78 26 sep 00:23 ad0s1
crw-rw-rw-  1 root  operator    0,  81 26 sep 00:23 ad0s1a
crw-rw-rw-  1 root  operator    0,  82 26 sep 00:23 ad0s1b
crw-rw-rw-  1 root  operator    0,  83 26 sep 00:23 ad0s1c
crw-rw-rw-  1 root  operator    0,  79 26 sep 00:23 ad1
crw-rw-rw-  1 root  operator    0,  84 26 sep 00:23 ad1s1
crw-rw-rw-  1 root  operator    0,  86 26 sep 00:23 ad1s1a
crw-rw-rw-  1 root  operator    0,  87 26 sep 00:23 ad1s1b
crw-rw-rw-  1 root  operator    0,  88 26 sep 00:23 ad1s1c
crw-rw-r--  1 root  operator    0,  98 26 sep 00:23 apm0
crw-r-----  1 root  operator    0,  80 26 sep 00:23 ar0
crw-r-----  1 root  operator    0,  85 26 sep 00:23 ar0s1
crw-r-----  1 root  operator    0,  89 26 sep 02:23 ar0s1a
crw-r-----  1 root  operator    0,  90 26 sep 02:23 ar0s1b
crw-r-----  1 root  operator    0,  91 26 sep 00:23 ar0s1c
crw-------  1 root  operator    0,  31 26 sep 00:23 ata
crw-------  1 root  wheel       0,  47 26 sep 00:23 atkbd0
crw-------  1 root  kmem        0,  15 26 sep 00:23 audit
crw-------  1 root  wheel       0,  95 26 sep 00:23 bpf0
crw-------  1 root  wheel       0,  10 26 sep 00:29 console
crw-------  1 root  wheel       0,  65 26 sep 00:23 consolectl
crw-rw-rw-  1 root  wheel       0,  11 26 sep 00:23 ctty
crw-rw----  1 uucp  dialer      0,  44 26 sep 00:23 cuad0
crw-rw----  1 uucp  dialer      0,  45 26 sep 00:23 cuad0.init
crw-rw----  1 uucp  dialer      0,  46 26 sep 00:23 cuad0.lock
crw-------  1 root  wheel       0,  27 26 sep 00:23 dcons
crw-------  1 root  wheel       0,   4 26 sep 00:23 devctl
cr--------  1 root  wheel       0,  75 26 sep 00:23 devstat
crw-------  1 root  wheel       0,  28 26 sep 00:23 dgdb
lrwxr-xr-x  1 root  wheel           11 26 sep 02:23 dumpdev -> /dev/ar0s1b
drw-rw-rw-  2 root  operator       512 26 sep 00:23 fd
crw-------  1 root  wheel       0,  13 26 sep 00:23 fido
crw-r-----  1 root  operator    0,   5 26 sep 00:23 geom.ctl
crw-------  1 root  wheel       0,  24 26 sep 00:23 io
lrwxr-xr-x  1 root  wheel            6 26 sep 00:23 kbd0 -> atkbd0
lrwxr-xr-x  1 root  wheel            7 26 sep 00:23 kbd1 -> kbdmux0
crw-------  1 root  wheel       0,  16 26 sep 00:23 kbdmux0
crw-------  1 root  wheel       0,   6 26 sep 00:23 klog
crw-r-----  1 root  kmem        0,  26 26 sep 00:23 kmem
lrwxr-xr-x  1 root  wheel           12 26 sep 00:23 log -> /var/run/log
crw-r-----  1 root  operator    0,  96 26 sep 00:23 md0
crw-------  1 root  wheel       0,  74 26 sep 00:23 mdctl
crw-r-----  1 root  kmem        0,  25 26 sep 00:23 mem
dr-xr-xr-x  2 root  wheel          512 26 sep 00:23 net
lrwxr-xr-x  1 root  wheel            7 26 sep 00:23 net1 -> net/vr0
lrwxr-xr-x  1 root  wheel           10 26 sep 00:23 net2 -> net/pflog0
lrwxr-xr-x  1 root  wheel            7 26 sep 00:23 net3 -> net/lo0
lrwxr-xr-x  1 root  wheel           11 26 sep 00:23 net4 -> net/pfsync0
crw-------  1 root  wheel       0,   3 26 sep 00:23 network
crw-------  1 root  wheel       0,  66 26 sep 00:23 nfs4
crw-------  1 root  kmem        0,  14 26 sep 00:23 nfslock
crw-rw-rw-  1 root  wheel       0,  29 27 sep 15:55 null
crw-r--r--  1 root  wheel       0,   7 26 sep 00:23 pci
crw-------  1 root  wheel       0,  67 26 sep 00:23 pf
crw-rw-rw-  1 root  wheel       0,  99 27 sep 15:57 ptyp0
crw-rw-rw-  1 root  wheel       0,   8 26 sep 02:23 random
lrwxr-xr-x  1 root  wheel            4 26 sep 00:23 stderr -> fd/2
lrwxr-xr-x  1 root  wheel            4 26 sep 00:23 stdin -> fd/0
lrwxr-xr-x  1 root  wheel            4 26 sep 00:23 stdout -> fd/1
crw-------  1 root  wheel       0,  12 26 sep 00:23 sysmouse
crw-------  1 root  wheel       0,  41 26 sep 00:23 ttyd0
crw-------  1 root  wheel       0,  42 26 sep 00:23 ttyd0.init
crw-------  1 root  wheel       0,  43 26 sep 00:23 ttyd0.lock
crw--w----  1 root  tty         0, 100 27 sep 15:57 ttyp0
crw-------  1 root  tty         0,  49 26 sep 00:35 ttyv0
crw-------  1 root  wheel       0,  50 26 sep 00:23 ttyv1
crw-------  1 root  wheel       0,  51 26 sep 00:23 ttyv2
crw-------  1 root  wheel       0,  52 26 sep 00:23 ttyv3
crw-------  1 root  wheel       0,  53 26 sep 00:23 ttyv4
crw-------  1 root  wheel       0,  54 26 sep 00:23 ttyv5
crw-------  1 root  wheel       0,  55 26 sep 00:23 ttyv6
crw-------  1 root  wheel       0,  56 26 sep 00:23 ttyv7
crw-------  1 root  wheel       0,  57 26 sep 00:23 ttyv8
crw-------  1 root  wheel       0,  58 26 sep 00:23 ttyv9
crw-------  1 root  wheel       0,  59 26 sep 00:23 ttyva
crw-------  1 root  wheel       0,  60 26 sep 00:23 ttyvb
crw-------  1 root  wheel       0,  61 26 sep 00:23 ttyvc
crw-------  1 root  wheel       0,  62 26 sep 00:23 ttyvd
crw-------  1 root  wheel       0,  63 26 sep 00:23 ttyve
crw-------  1 root  wheel       0,  64 26 sep 00:23 ttyvf
lrwxr-xr-x  1 root  wheel            6 26 sep 00:23 urandom -> random
crw-rw-rw-  1 root  operator    0,  34 26 sep 00:23 usb
crw-rw-rw-  1 root  operator    0,  33 26 sep 00:23 usb0
crw-rw-rw-  1 root  operator    0,  35 26 sep 00:23 usb1
crw-rw-rw-  1 root  operator    0,  36 26 sep 00:23 usb2
crw-rw-rw-  1 root  operator    0,  37 26 sep 00:23 usb3
crw-rw-rw-  1 root  operator    0,  38 26 sep 00:23 usb4
crw-rw-rw-  1 root  operator    0,  76 26 sep 00:23 xpt0
crw-rw-rw-  1 root  wheel       0,  30 26 sep 00:23 zero
and for give information on the type of file

file /dev/ttyd0

Code:
ttyd0: character special (0/41)
file /dev/cuad0
Code:
cuad0: character special (0/44)
When i read a lot of message on the web
normaly the serial port have mknod with c 4 64 type but here is 0 44
maybe the probleme come from there
freebsd use devfs for install device file .
mknod report error with no such file or directory
and MAKEDEV are not present on directory.

all help are welcom to try to solve t his problem .
thx in advance
Reply With Quote
  #2   (View Single Post)  
Old 29th September 2008
deemon's Avatar
deemon deemon is offline
Fdisk Soldier
 
Join Date: May 2008
Location: Estonia
Posts: 50
Thanked 6 Times in 5 Posts
Default

What do you mean by 'does not work'? Please elaborate on that.
__________________
Fhtagn nagh Yog-Sothoth
Reply With Quote
  #3   (View Single Post)  
Old 4th October 2008
vermaden's Avatar
vermaden vermaden is offline
Administrator
 
Join Date: Apr 2008
Location: pl_PL.lodz
Posts: 1,051
Thanked 118 Times in 93 Posts
Default

@pitbac23

Check /etc/ttys mate, from what I remember you need to enable serial devices

Change that in /etc/ttys:
Code:
ttyd0   "/usr/libexec/getty std.9600"   dialup  off secure
ttyd1   "/usr/libexec/getty std.9600"   dialup  off secure
ttyd2   "/usr/libexec/getty std.9600"   dialup  off secure
ttyd3   "/usr/libexec/getty std.9600"   dialup  off secure
... into that:
Code:
ttyd0   "/usr/libexec/getty std.9600"   dialup  on secure
ttyd1   "/usr/libexec/getty std.9600"   dialup  on secure
ttyd2   "/usr/libexec/getty std.9600"   dialup  on secure
ttyd3   "/usr/libexec/getty std.9600"   dialup  on secure
... and reboot, then try minicom -s or other tool you use for the job.

You should also try cuad devices, like:
Code:
/dev/cuad0
/dev/cuad1
/dev/cuad2
...
__________________
religions, worst damnation of mankind
"If 386BSD had been available when I started on Linux, Linux would probably never had happened." Linus Torvalds

Linux is not UNIX! Face it! It is not an insult. It is fact: GNU is a recursive acronym for “GNU's Not UNIX”.
vermaden's: links resources deviantart spreadbsd
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Serial connections JMJ_coder General software and network 9 25th July 2008 03:28 PM
Serial Consoles ddekok FreeBSD General 4 26th June 2008 07:16 PM
Usb serial adapter Business_woman FreeBSD General 10 4th June 2008 03:06 PM
Virtual serial port motorollin Other BSD and UNIX/UNIX-like 7 31st May 2008 01:27 PM
Mounting a second serial hd keyboard112 Other BSD and UNIX/UNIX-like 4 12th May 2008 08:06 AM


All times are GMT. The time now is 10:33 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick