VOGONS


First post, by copper

User metadata
Rank Newbie
Rank
Newbie

I have a Leading Edge Model D 8088/XT clone, which includes a built-in real time clock chip (a MM58167) on IO 300h. The Leading Edge system disks come with a CLKDVR.SYS file you can add to CONFIG.SYS that will keep DOS time up to date for you, assuming you have a battery for the RTC: https://jeffpar.github.io/kbarchive/kb/076/Q76454/

This works, at least in Dos 6.22, except that the year always reverts to 1980 on reboot. The rest of the time and date is correct.

Does anyone know why this might be happening? Is there a way to just set the year to 2023 in AUTOEXEC.BAT every boot?

Reply 1 of 11, by dominusprog

User metadata
Rank Member
Rank
Member

Is there any documentation on CLKDVR.SYS? According to Wikipedia, for a real-time clock to work the jumper J13 must be closed.

https://en.wikipedia.org/wiki/Leading_Edge_Mo … Modern_Upgrades

Duke_2600.png
A-Trend ATC-1020 V1.1 ❇ Cyrix 6x86 150+ @ 120MHz ❇ 32MiB EDO RAM (8MiBx4) ❇ A-Trend S3 Trio64V2 2MiB
Aztech Pro16 II-3D PnP ❇ 8.4GiB Quantum Fireball ❇ Win95 OSR2 Plus!

Reply 2 of 11, by copper

User metadata
Rank Newbie
Rank
Newbie

I set my XT-IDE to 340h, and my Intel 8/16 NIC to 260h, so they don't conflict with the clock on IO 300h. The Leading Edge diagnostic utility shows the clock as enabled. The clock seems to work fine (keeps the time, day, and month when the PC is shut off), it just always thinks it's 1980.

Reply 3 of 11, by dominusprog

User metadata
Rank Member
Rank
Member

Perhaps CLKDVR.SYS have some parameters that must be set. Also found this

https://stason.org/TULARC/pc/motherboards/L/L … REVISION-1.html

Last edited by dominusprog on 2023-08-21, 06:20. Edited 1 time in total.

Duke_2600.png
A-Trend ATC-1020 V1.1 ❇ Cyrix 6x86 150+ @ 120MHz ❇ 32MiB EDO RAM (8MiBx4) ❇ A-Trend S3 Trio64V2 2MiB
Aztech Pro16 II-3D PnP ❇ 8.4GiB Quantum Fireball ❇ Win95 OSR2 Plus!

Reply 5 of 11, by dominusprog

User metadata
Rank Member
Rank
Member

Leading Edge Model D Operator's Guide 😀

https://archive.org/details/leadingedge_model … e4thed_d3187910

Duke_2600.png
A-Trend ATC-1020 V1.1 ❇ Cyrix 6x86 150+ @ 120MHz ❇ 32MiB EDO RAM (8MiBx4) ❇ A-Trend S3 Trio64V2 2MiB
Aztech Pro16 II-3D PnP ❇ 8.4GiB Quantum Fireball ❇ Win95 OSR2 Plus!

Reply 6 of 11, by copper

User metadata
Rank Newbie
Rank
Newbie

The Leading Edge diagnostic and master disk (DOS 3.1 and DOS 2.1) see the year correctly, so this seems to be a DOS problem. 1980 is the DOS default year. I guess CLKDVR.SYS doesn't set the year correctly on DOS 6.22.

Why, I don't know. The KnowledgeBase article says it's supposed to work.

Reply 7 of 11, by Jo22

User metadata
Rank l33t++
Rank
l33t++

Checkit! v3 has a clock test functionality. It'll test both DOS clock and hardware clock.
Not sure how many different RTCs it does support, though. 🤷‍♂️

Edit: The problem might be related to how DOS handles the RTC or how it updates things (all digits or just two for the year).
If I remember correctly, DOS didn't support RTCs before PC DOS 3.0 or similar.
The IBM AT RTC and compatible RTCs are supported, not sure about XT era RTCs.

Edit: IBM "supported" non-IBM PCs with DOS 3.30 first time.

Edit: The RTC could be an MM58167 (also used by AST SixPackPlus?)
Some drivers are available here: https://www.minuszerodegrees.net/rtc/rtc.htm

"Time, it seems, doesn't flow. For some it's fast, for some it's slow.
In what to one race is no time at all, another race can rise and fall..." - The Minstrel

//My video channel//

Reply 8 of 11, by copper

User metadata
Rank Newbie
Rank
Newbie

Oh, maybe the TSR hands DOS 6.22 a two-digit year, but DOS now wants a four-digit year. The TSR is only 735 bytes. It would probably be trivial to decompile and change for someone other than me.

Checkit 3.0 doesn't see it (maybe because of the non-standard IO port). DIAGNOSE.EXE from Leading Edge sees it.

I'll look for other drivers on that page. I see that CLKDVR.SYS is not listed. The 6PakPlus driver may work if I can change the base port.

Reply 10 of 11, by weedeewee

User metadata
Rank l33t
Rank
l33t

looking at the datasheet for the mm58167B... How/where does that chip stores the information for which year it is ? 🤨

Right to repair is fundamental. You own it, you're allowed to fix it.
How To Ask Questions The Smart Way
Do not ask Why !
https://www.vogonswiki.com/index.php/Serial_port