chiark / gitweb /
uml: Use console not serial for comms
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 6 Aug 2021 17:54:07 +0000 (18:54 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 6 Aug 2021 17:57:08 +0000 (18:57 +0100)
This seems less odd somehow.  Doesn't seem to make any practical
difference.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
psusan-uml
psusan-uml-inside

index acc4def0e204c589e7f91d03b93f431a767d8af3..3a22f770e2566f4c4bee62b09d2c8854470385aa 100755 (executable)
@@ -2,4 +2,4 @@
 
 bwrap --dev-bind / / --tmpfs /dev/shm \
 linux mem=512M rootfstype=hostfs rootflags=/ rw \
- con=fd:2,fd:2 ssl0=fd:0,fd:1 init=$PWD/psusan-uml-inside
+ con=fd:2,fd:2 con1=fd:0,fd:1 init=$PWD/psusan-uml-inside
index ee6ec47e0aff2f4050accc60a87698acdf1abf01..a31c95bea6c7f4115e0552238a44199e3d1d8657 100755 (executable)
@@ -3,7 +3,7 @@
 mount -t proc none /proc
 mount -t devpts none /dev/pts
 # Redirect I/O to the serial port, but stderr to the console
-exec 0<>/dev/ttyS0 1>&0 2>/dev/console
+exec 0<>/dev/tty1 1>&0 2>/dev/console
 # Set the serial port into raw mode, to run a binary protocol
 stty raw -echo
 # Choose what shell you want to run inside psusan