[GXemul-devel] Booting from HDD? Or: How to start NetBSD without stdin (on a DECstation)?
Status: Alpha
Brought to you by:
gavare
From: Jan-Benedict G. <jb...@lu...> - 2023-03-30 16:13:53
|
Hi! I feel a bit silly, but ... I've now integrated GXemul into my scripts to allow transparently to start either Qemu, GXemul or SIMH, either with in foreground (with active stdio) or in background (stdin < /dev/null, stdout+stderr > logfile) for having emulated systems around as temporary builders. It seems to start up well with: gxemul -E decstation -e 3max -L tap_1 -l 08:00:2b:29:3b:01 -d R:disk.img However, with < /dev/null, I just get the config dump and it stops generating output with "NetBSD/pmax 10.99.2 FFSv1 Primary Bootstrap", and it seems to try to get input: (gdb) bt #0 0x00007fd1f3ea4794 in __GI___select (nfds=nfds@entry=1, readfds=readfds@entry=0x7ffd2dc1a700, writefds=writefds@entry=0x0, exceptfds=exceptfds@entry=0x0, timeout=timeout@entry=0x7ffd2dc1a6f0) at ../sysdeps/unix/sysv/linux/select.c:69 #1 0x000055f709d23151 in d_avail (d=d@entry=0) at ./src/console/console.c:291 #2 0x000055f709d23ae7 in console_stdin_avail (handle=<optimized out>) at ./src/console/console.c:329 #3 console_charavail (handle=<optimized out>) at ./src/console/console.c:357 #4 0x000055f709f1ea4b in lk201_tick (machine=<optimized out>, d=d@entry=0x55f70ac10b20) at ./src/devices/lk201.c:254 #5 0x000055f709ed8607 in dev_dc7085_tick (cpu=0x7fd1ef7ff000, extra=0x55f70ac102c0) at ./src/devices/dev_dc7085.c:153 #6 0x000055f709f2c8ad in machine_run (machine=0x55f70abf21b0) at ./src/machines/machine.c:686 #7 0x000055f709f3d6a1 in emul_run (emul=emul@entry=0x55f70abf1f70) at ./src/core/emul.c:975 #8 0x000055f709d22c36 in main (argc=11, argv=0x7ffd2dc1aae8) at ./src/core/main.c:773 Any chance I can shutdown its stdin? Would be awesome to be able to start it in background. If nothing works, I'd still try to put it into a `screen` or the like, but I'd prefer to not wrap it once more... Thanks, Jan-Benedict -- |