La conectarea dintr-un terminal (tty2) la un port serial (ttyS1) cu
minicom, la un alt  port serial (ttyS0), iar intr-un alt terminal
(tty1) aculta getty, dupa logare se pot lansa comenzi normal, merge
inclusiv links,  putin mc care blocheaza complet tty1 (cel cu getty)
nu se mai poate intrerupe cu ^C:
/sbin/getty -L ttyS0 115200 vt100

Setarile minicom

   │ A -    Serial Device      : /dev/ttyS1                                │
   │ B - Lockfile Location     : /var/lock                                 │
   │ C -   Callin Program      :                                           │
   │ D -  Callout Program      :                                           │
   │ E -    Bps/Par/Bits       : 115200 8N1                                │
   │ F - Hardware Flow Control : Yes                                       │
   │ G - Software Flow Control : No                                        │

setserial -a /dev/ttyS0
/dev/ttyS0, Line 0, UART: 16550A, Port: 0x03f8, IRQ: 4
       Baud_base: 115200, close_delay: 50, divisor: 0
       closing_wait: 3000
       Flags: spd_normal skip_test

# setserial -a /dev/ttyS1
/dev/ttyS1, Line 1, UART: 16550A, Port: 0x02f8, IRQ: 3
       Baud_base: 115200, close_delay: 50, divisor: 0
       closing_wait: 3000
       Flags: spd_normal skip_test

Porturile seriale sunt pe aceiasi placa de baza si sunt legate prin
cablu null-modem.

##################################################


In inittab sunt decomentate
T0:23:respawn:/sbin/getty -L ttyS0 9600 vt100
T1:23:respawn:/sbin/getty -L ttyS1 9600 vt100

La reinitializarea procesului init (init q) nu ar trebui sa existe
niste procese care sa asculte pe cele doua porturi seriale seriale
similar celor pentru terminale (la logare) ?
#ps aux | grep getty
root      3806  0.0  0.0   1568   452 tty5     Ss+  08:57   0:00
/sbin/getty 38400 tty5
root      3811  0.0  0.0   1572   456 tty6     Ss+  08:57   0:00
/sbin/getty 38400 tty6
root     15445  0.0  0.0   1568   452 tty2     Ss+  21:18   0:00
/sbin/getty 38400 tty2
root     15452  0.0  0.0   1568   452 tty1     Ss+  21:18   0:00
/sbin/getty 38400 tty1
root     15455  0.0  0.0   1572   456 tty3     Ss+  21:18   0:00
/sbin/getty 38400 tty3
root     15464  0.0  0.0   1568   452 tty4     Ss+  21:19   0:00
/sbin/getty 38400 tty4

Minicom nu vrea sa se coneteze deloc nici la ttyS0 nici la ttyS1 (cu
setarile de rigoare la 9600 bit). Nu are unde ?
_______________________________________________
RLUG mailing list
[email protected]
http://lists.lug.ro/mailman/listinfo/rlug

Raspunde prin e-mail lui