On Sat, May 28, 2022 at 01:39:03PM +0200, Hans Rosenfeld wrote:
Interesting. When I played with 2.11BSD a few years
ago I found that it
only did a "fast" boot if rebooted with "shutdown -rf". A cold boot
would always drop into single user and allow running fsck manually.
I use a quite basic simh.ini without fancy memory manipulations.
At the moment the behaviour is:
1) First boot => enter unix at : prompt => no fsck => root shell
2) ^D => "fast boot" => no fsck => multiuser
3) login + reboot => passed : prompt => no "fast boot" => fsck =>
That is with the RA92 image provided with simh for the ESP32,
which contains a command to setup WiFi.
I found at minnie.tuhs.org/Distributions/Boot_Images/2.11_on_Simh
a version where Andru Luvisi has configured a 1MB RAM disk mounted
to /tmp for the temp file required by fsck. Needed to compile a new
kernel, but with the RAM disk fsck runs nicely. I put a # in front of
rwhod in /etc/rc to prevent it beeing started, but then it never went
into multisuser. No idea why.
IIRC /boot or even one of the earlier bootstrap stages
would check a
certain memory location for certain values, which the kernel(?) would
place there in the reboot syscall. As I wanted to always force a fast
boot, I had this in my simh.ini to force a fast boot:
d 157772 177777
d 157774 002400
d 157776 000000
Seems to be related to bootdev here:
73Boot from ra(0,0,0) at 0172150
Boot: bootdev=02400 bootcsr=0172150
But it looks always like this, with and without fastboot.
When You Find Out Your Normal Daily Lifestyle Is Called Quarantine