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