Differences

This shows you the differences between two versions of the page.

Link to this comparison view

virtualisation:serial-interface [2019/09/30 17:31] (current)
juraschek created
Line 1: Line 1:
 +====== Serial Interface ======
 +
 +===== Router Setting =====
 +
 +Please change the mode of the serial Interface you want to use to "​none" ​
 +
 +{{ :​virtualisation:​screenshot_2019-09-30_16-58-17.png?​nolink |}}
 +
 +===== lxc settings =====
 +
 +The Serial intefaces als already available for the lxc containter and needed to be add as a filesystem node in the guest. ​
 +
 +Before you create the node you need to get the MAJOR and MINOR Number which can seen in the ls  in the router root shell. ​
 +
 +<​konsole>​
 +crw-rw-rw- ​   1 root     ​root ​       4,  64 Sep 30 15:59 /dev/ttyS0
 +crw-rw-rw- ​   1 root     ​root ​       4,  65 Jan  1  1970 /dev/ttyS1
 +crw-rw-rw- ​   1 root     ​root ​       4,  66 Jan  1  1970 /dev/ttyS2
 +crw-rw-rw- ​   1 root     ​root ​       4,  67 Jan  1  1970 /dev/ttyS3
 +crw-rw-rw- ​   1 root     ​root ​       4,  68 Jan  1  1970 /dev/ttyS4
 +crw-rw-rw- ​   1 root     ​root ​       4,  69 Jan  1  1970 /dev/ttyS5
 +crw-rw-rw- ​   1 root     ​root ​       4,  70 Jan  1  1970 /dev/ttyS6
 +crw-rw-rw- ​   1 root     ​root ​       4,  71 Jan  1  1970 /dev/ttyS7
 +</​konsole>​
 +
 +then in the lxc container you can create the the device with the commands
 +
 +<konsole root>
 +mknod /​dev/​ttyHostSerial0 c 4 65
 +mknod /​dev/​ttyHostSerial1 c 4 64
 +</​konsole>​
 +
 +and then access the interface with microcom for example
 +
 +<konsole root>
 +microcom -s 115200 /​dev/​ttyHostSerial0
 +microcom -s 115200 /​dev/​ttyHostSerial1
 +
 +</​konsole>​
 +
 +
 + 
 +