-
Notifications
You must be signed in to change notification settings - Fork 304
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VAX date stuck at year of 2010 #1053
Comments
In order for your system clock device to track consistently when you're not running VMS within the simulated system, you have to ATTACH it to a battery backup clock state container.
Info about this is available via:
|
however,how to make one data file to solve it,i don't have a real microvax3900 |
I don't understand this question. As I said earlier, your configuration file (should contain an ATTACH command for the CLK device which represents the battery backup for the clock chip on the original real hardware. If that system didn't have a battery installed, each time the system booted the date and time would have to be set manually. Once you have such an ATTACH command in the configuration used EACH time the simulator is started, the date and time will only have to be manually set the first time the system is booted and future reboots will behave as you expect. You might have to explicitly reset the date and time once every 16 or so months since the time is maintained in a 32bit register which updates once every 10ms and thus the value will wrap after about that time. A manual update of the time probably isn't needed for any OS which is rebooted more frequently than every 16 months. :-) FYI. The configuration file DOES NOT NEED Nice name: naY9yjoS6ZqhOd35sIFH Maybe you can make that a little bit more readable by adding your full name to your github profile. |
i am sorry ,i have read date(1) manpage,and made it |
i install simh from aur simh-git
version is gfc5bda90
https://aur.archlinux.org/packages/simh-git
MicroVAX 3900 simulator V4.0-0 Current git commit id: 6728b3f
the output of "sim> SHOW VERSION" while running the simulator which is having the issue
MicroVAX 3900 simulator V4.0-0 Current
Simulator Framework Capabilities:
64b data
64b addresses
Threaded Ethernet Packet transports:PCAP:TAP:VDE:NAT:UDP Idle/Throttling support is available
Virtual Hard Disk (VHD) support
RAW disk and CD/DVD ROM support Asynchronous I/O support (Lock free asynchronous event queue)
Asynchronous Clock support
FrontPanel API Version 12
Host Platform:
Compiler: GCC 11.1.0
Simulator Compiled as C arch: x64 (Release Build) on Jun 30 2021 at 09:43:20
Build Tool: simh-makefile
Memory Access: Little Endian
Memory Pointer Size: 64 bits
Large File (>2GB) support
SDL Video support: SDL Version 2.0.14, PNG Version 1.6.37, zlib: 1.2.11
PCRE RegEx (Version 8.45 2021-06-15) support for EXPECT commands
OS clock resolution: 1ms
Time taken by msleep(1): 1ms
Ethernet packet info: libpcap version 1.10.1 (with TPACKET_V3)
OS: Linux localhost 5.12.14-artix1-1 #1 SMP PREEMPT Thu, 01 Jul 2021 20:51:04 +0000 x86_64
GNU/Linux
tar tool: tar (GNU tar) 1.34
curl tool: curl 7.77.0 (x86_64-pc-linux-gnu) libcurl/7.77.0 OpenSSL/1.1.1k zlib/1.2.11 zst
d/1.5.0 libidn2/2.3.1 libpsl/0.21.1 (+libidn2/2.3.0) libssh2/1.9.0 nghttp2/1.43.0
git commit id: 6728b3f
git commit time: 2021-06-22T03:54:25-0700
the simulator configuration file (or commands) which were used when the problem occurred.
this is my configuration script for installation
cat nbsd.vax.inst.arch
load -r /usr/lib/simh-git/ka655x.bin
set cpu 256M
set cpu idle=netbsd
set rq1 cdrom
attach rq1 nbsdvax.iso
set rq0 rauser=16384
attach rq0 nbsdvax.img
attach nvr vax.nvr
attach xq0 nat:tcp=65533:10.0.2.15:22
boot cpu
the expected behavior and the actual behavior
and i install NetBSD 9.2 on simh-microvax3900
then the time is correct but date is back to 2010
cat nbsd.vax.arch
load -r /usr/lib/simh-git/ka655x.bin
set cpu 256M
set cpu idle=netbsd
attach rq0 nbsdvax.img
attach nvr vax.nvr
attach xq0 nat:tcp=65533:10.0.2.15:22
boot cpu
sim> set cpu 256M
sim> set cpu idle=netbsd
sim> attach rq0 nbsdvax.img
sim> attach nvr vax.nvr
NVR: buffering file in memory
sim> attach xq0 nat:tcp=65533:10.0.2.15:22
NAT args: tcp=65533:10.0.2.15:22
NAT network setup:
gateway =10.0.2.2/24(255.255.255.0)
DNS =10.0.2.3
dhcp_start =10.0.2.15
redir TCP =65533:10.0.2.15:22
Protocol[State] FD Source Address Port Dest. Address Port RecvQ SendQ
TCP[HOST_FORWARD] 8 * 65533 10.0.2.15 22 0 0
Eth: opened OS device nat:tcp=65533:10.0.2.15:22
boot
Loading boot code from internal ka655x.bin
KA655X-B V5.3, VMB 2.7
Performing normal system tests.
40..39..38..37..36..35..34..33..32..31..30..29..28..27..26..25..
24..23..22..21..20..19..18..17..16..15..14..13..12..11..10..09..
08..07..06..05..04..03..
Tests completed.
boot DUA0
ssh -p 65533 root@localhost
(root@localhost) Password for root@nbsd.fake.com:
Last login: Thu Jul 8 01:33:53 2010 from 10.0.2.2
NetBSD 9.2 (GENERIC) #0: Wed May 12 13:15:55 UTC 2021
Welcome to NetBSD!
We recommend that you create a non-root account and use su(1) for root access.nbsd# date
Mon Jul 12 02:11:59 UTC 2010
nbsd# date -d 2021-07-12
Mon Jul 12 00:00:00 UTC 2021
nbsd# date
Mon Jul 12 02:12:11 UTC 2010
The text was updated successfully, but these errors were encountered: