Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* DEQNA/DELQA - Checksum calculation?
@ 2002-02-23  0:36 sword7
  2002-02-23  1:01 ` Mark Hittinger
  2002-02-26 22:21 ` antonio.carlini
  0 siblings, 2 replies; 9+ messages in thread
From: sword7 @ 2002-02-23  0:36 UTC (permalink / raw)


Hello folks:

I am working on my DEQNA emulation in progress for my emulator.  KA655
firmware want checksum to check station address when I entered 'b xqa0' at 
>>> prompt.  If not match, it will display CTRLERR message.  Does anyone 
know checksum formula for station address?  I found out that each pair of 
bytes are added and shifted left by one on tracings from log file then 
check results aganist last two bytes (after 6-byte Ethernet address).

I have not implemented ethernet calls to Linux operating system yet so 
that I set up a fake ethernet address like 01:02:03:04:05:06 with checksum
0F:16 (got a result from tracings).  That's why my DEQNA emulation is 
half-implemented on my emulator at this time.

Also, according to NetBSD/vax sources, I noticed that DEQNA is similar
like DELQA.  What is difference between DEQNA and DELQA?  To
detect DELQA by write 1 to interrupt vector register to find out.  If 
zero, then it is DEQNA.

Thank you!

-- Tim Stark

-- 
Timothy Stark	<><	Inet: sword7@speakeasy.org
--------------------------------------------------------------------------
"For God so loved the world, that he gave his only begotten Son, that 
whosoever believeth in him should not perish, but have everlasting life.
Amen." -- John 3:16 (King James Version Bible)


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: DEQNA/DELQA - Checksum calculation?
  2002-02-23  0:36 DEQNA/DELQA - Checksum calculation? sword7
@ 2002-02-23  1:01 ` Mark Hittinger
  2002-02-23 23:05   ` sword7
  2002-02-26 22:21 ` antonio.carlini
  1 sibling, 1 reply; 9+ messages in thread
From: Mark Hittinger @ 2002-02-23  1:01 UTC (permalink / raw)


sword7@speakeasy.org writes:
>Also, according to NetBSD/vax sources, I noticed that DEQNA is similar
>like DELQA.  What is difference between DEQNA and DELQA?  To
>detect DELQA by write 1 to interrupt vector register to find out.  If 
>zero, then it is DEQNA.

DELQA was newer, faster, less buggy than the DEQNA.

Post 5.2 VMS starting making DEQNA's unsupported. 

Later

Mark Hittinger
bugs@pu.net


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: DEQNA/DELQA - Checksum calculation?
  2002-02-23  1:01 ` Mark Hittinger
@ 2002-02-23 23:05   ` sword7
  2002-02-23 23:21     ` Mark Hittinger
                       ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: sword7 @ 2002-02-23 23:05 UTC (permalink / raw)


In comp.sys.dec Mark Hittinger <bugs@pu.net> wrote:
> DELQA was newer, faster, less buggy than the DEQNA.

> Post 5.2 VMS starting making DEQNA's unsupported. 

Ok, I get it.  I will see if OpenVMS v7.2 works with DEQNA.  If not,
I have modify my DEQNA emulation to funcion as DELQA.  Do both DEQNA
and DELQA have same functions/registers?

I still am looking for information about checksum calcuation because
KA655 firmware refuse to boot XQA0 (MOP) without right checksum value
in last two bytes of 8 bytes station address (PROM).

Thank you!

-- Tim Stark

-- 
Timothy Stark	<><	Inet: sword7@speakeasy.org
--------------------------------------------------------------------------
"For God so loved the world, that he gave his only begotten Son, that 
whosoever believeth in him should not perish, but have everlasting life.
Amen." -- John 3:16 (King James Version Bible)


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: DEQNA/DELQA - Checksum calculation?
  2002-02-23 23:05   ` sword7
@ 2002-02-23 23:21     ` Mark Hittinger
  2002-02-24  3:37     ` Dennis Henriksen
  2002-02-25  1:54     ` Jeff Campbell
  2 siblings, 0 replies; 9+ messages in thread
From: Mark Hittinger @ 2002-02-23 23:21 UTC (permalink / raw)


sword7@speakeasy.org writes:
>Ok, I get it.  I will see if OpenVMS v7.2 works with DEQNA.  If not,
>I have modify my DEQNA emulation to funcion as DELQA.  Do both DEQNA
>and DELQA have same functions/registers?

They probably don't look exactly alike.  I stopped messing with VMS after 5.5
came out.  There was a sysgen paramater that allowed the continued yet
unsupported use of DEQNA after 5.2 but there were always threats that at some 
point it would be removed.

There were so many things wrong with the DEQNA that you probably don't really
want to emulate it :-)

Later

Mark Hittinger
bugs@pu.net


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: DEQNA/DELQA - Checksum calculation?
  2002-02-23 23:05   ` sword7
  2002-02-23 23:21     ` Mark Hittinger
@ 2002-02-24  3:37     ` Dennis Henriksen
  2002-02-24  4:08       ` Mark Hittinger
  2002-02-26 12:06       ` Harti Brandt
  2002-02-25  1:54     ` Jeff Campbell
  2 siblings, 2 replies; 9+ messages in thread
From: Dennis Henriksen @ 2002-02-24  3:37 UTC (permalink / raw)


sword7@speakeasy.org wrote:

> In comp.sys.dec Mark Hittinger <bugs@pu.net> wrote:
> 
>>DELQA was newer, faster, less buggy than the DEQNA.
>>
> 
>>Post 5.2 VMS starting making DEQNA's unsupported. 
>>
> 
> Ok, I get it.  I will see if OpenVMS v7.2 works with DEQNA.  If not,
> I have modify my DEQNA emulation to funcion as DELQA.  Do both DEQNA
> and DELQA have same functions/registers?


Please excuse a dumb question, but didn't the DEQNA work with some
of the pre vax systems pdp-11 and/or pdp-10 ? If so than the DEQNA
simulation would be of value in those simulators or am I mistaken ?

 
> I still am looking for information about checksum calcuation because
> KA655 firmware refuse to boot XQA0 (MOP) without right checksum value
> in last two bytes of 8 bytes station address (PROM).


Really looking forward to the next snapshot of the TS10 - Have you decided
whether or not you'll include the various supporting files eg KA630.rom ?

 
> Thank you!
> 
> -- Tim Stark
> 
> 




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: DEQNA/DELQA - Checksum calculation?
  2002-02-24  3:37     ` Dennis Henriksen
@ 2002-02-24  4:08       ` Mark Hittinger
  2002-02-26 12:06       ` Harti Brandt
  1 sibling, 0 replies; 9+ messages in thread
From: Mark Hittinger @ 2002-02-24  4:08 UTC (permalink / raw)


Dennis Henriksen <opus@osrl.net_spamfree> writes:
>Please excuse a dumb question, but didn't the DEQNA work with some
>of the pre vax systems pdp-11 and/or pdp-10 ? If so than the DEQNA
>simulation would be of value in those simulators or am I mistaken ?

Not for the PDP-10 but it would be of some value on the PDP-11.  Chances are
the later versions of RSX, RT, and RSTS also attempted to drop official 
support for the DEQNA in favor of the DELQA.

The DEQNA support would only be needed for those who want to run the older
versions of the operating systems (like the ones Bob S. liberated for us)
so I assume it is of value - but I think Timothy is still in more of a 
development mode - getting his emulator to run the latest cut of OpenVMS
first. :-)

Now someone like me might rather run VMS 5.5 (still looking for a copy of
VMS 5.5 that is for the 4000/90) or run RSTS v7/9 instead of the latest
cuts. :-)

Later

Mark Hittinger
bugs@pu.net


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: DEQNA/DELQA - Checksum calculation?
  2002-02-23 23:05   ` sword7
  2002-02-23 23:21     ` Mark Hittinger
  2002-02-24  3:37     ` Dennis Henriksen
@ 2002-02-25  1:54     ` Jeff Campbell
  2 siblings, 0 replies; 9+ messages in thread
From: Jeff Campbell @ 2002-02-25  1:54 UTC (permalink / raw)


sword7@speakeasy.org wrote:
> 
> In comp.sys.dec Mark Hittinger ?bugs@pu.net? wrote:
> ? DELQA was newer, faster, less buggy than the DEQNA.
> 
> ? Post 5.2 VMS starting making DEQNA's unsupported.
> 
> Ok, I get it.  I will see if OpenVMS v7.2 works with DEQNA.  If not,
> I have modify my DEQNA emulation to funcion as DELQA.  Do both DEQNA
> and DELQA have same functions/registers?

Basically yes. The big differences are the handshake method used in
handling buffer descriptor lists and some CSR bit meanings. I wish
that the DEQNA/DELQA engineers had adopted the MSCP methods of doing
this. 8-)

Anyway, the reason the DEQNA was replaced is that it was broken
internally. You are implementing an emulated DEQNA/DELQA. Your code will
not actually *be* a DEQNA with it's INTERNAL errors. The software
interface
a DEQNA presents to a device driver writer is ok. If you code to that
interface your emulated DEQNA should be ok as well. The OS software
does not know about what the DEQNA is doing internally.

So I would recommend that since you have a DEQNA manual go ahead and
implement it. You will need only minor changes if later you decide to
implement a DELQA interface.

> 
> I still am looking for information about checksum calcuation because
> KA655 firmware refuse to boot XQA0 (MOP) without right checksum value
> in last two bytes of 8 bytes station address (PROM).

From section 3.3.5 of the DELQA manual:

<quote>

Two byte locations of the SA ROM include the checksum of the Ethernet
physical address. The checksum is accessed by reading the first two
bytes in reverse order, as follows.

1. Clear CSR00 (Receiver Enable) to disable Ethernet reception.
2. Clear CSR08 (Internal Loopback) and set CSR09 (External Loopback) to
   put the DELQA into external loopback mode.
3. Read the lower byte of word 1 in the DELQA I/O block.
4. Read the lower byte of word 0 in the DELQA I/O block.
5. To clear external loopback mode;
   Either set and then clear CSR01 (Software Reset)
   or write zero to EL (External Loopback).

</quote>

The manual doesn't give the arithmetic method of calculating the
checksum, but DEC typically used 2's complement checksums ignoring
any carrys. The sum of the data and it's checksum should be zero.

Not having tried this 8-), I think what you want to do is:

  1) MOVZBW each of the 6 SA bytes to a register. ADDW2 that register
     to a SUM register.
  2) put the DELQA in 'read checksum mode'
  3) MOVZBW the low byte of the second SA ROM address to a register.
  4) MOVZBW the low byte of the first SA ROM to another register.
  5) take the DELQA out of 'read checksum mode'
  6) shift left 8 places the step 4 register.
  7) ADDW2 the step 3 register to the step 4 register.
  8) ADDW2 the step 4 register to the SUM register mentioned in step 1

The step 1 SUM register low word should be zero when done.

> 
> Thank you!
> 
> -- Tim Stark
> 
> --
> Timothy Stark   ???     Inet: sword7@speakeasy.org
> --------------------------------------------------------------------------
> "For God so loved the world, that he gave his only begotten Son, that
> whosoever believeth in him should not perish, but have everlasting life.
> Amen." -- John 3:16 (King James Version Bible)


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: DEQNA/DELQA - Checksum calculation?
  2002-02-24  3:37     ` Dennis Henriksen
  2002-02-24  4:08       ` Mark Hittinger
@ 2002-02-26 12:06       ` Harti Brandt
  1 sibling, 0 replies; 9+ messages in thread
From: Harti Brandt @ 2002-02-26 12:06 UTC (permalink / raw)


On Sun, 24 Feb 2002, Dennis Henriksen wrote:

DH>sword7@speakeasy.org wrote:
DH>
DH>> In comp.sys.dec Mark Hittinger <bugs@pu.net> wrote:
DH>>
DH>>>DELQA was newer, faster, less buggy than the DEQNA.
DH>>>
DH>>
DH>>>Post 5.2 VMS starting making DEQNA's unsupported.
DH>>>
DH>>
DH>> Ok, I get it.  I will see if OpenVMS v7.2 works with DEQNA.  If not,
DH>> I have modify my DEQNA emulation to funcion as DELQA.  Do both DEQNA
DH>> and DELQA have same functions/registers?
DH>
DH>
DH>Please excuse a dumb question, but didn't the DEQNA work with some
DH>of the pre vax systems pdp-11 and/or pdp-10 ? If so than the DEQNA
DH>simulation would be of value in those simulators or am I mistaken ?

They work with PDP11s and I have a DEQNA emulation in my p11-emulator.

ftp://ftp.fokus.fhg.de/pub/cc/cats/usr/harti/p11

harti
--
harti brandt, http://www.fokus.gmd.de/research/cc/cats/employees/hartmut.brandt/private
              brandt@fokus.fhg.de



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: DEQNA/DELQA - Checksum calculation?
  2002-02-23  0:36 DEQNA/DELQA - Checksum calculation? sword7
  2002-02-23  1:01 ` Mark Hittinger
@ 2002-02-26 22:21 ` antonio.carlini
  1 sibling, 0 replies; 9+ messages in thread
From: antonio.carlini @ 2002-02-26 22:21 UTC (permalink / raw)


sword7@speakeasy.org wrote:

> Also, according to NetBSD/vax sources, I noticed that DEQNA is similar
> like DELQA.  What is difference between DEQNA and DELQA?  To
> detect DELQA by write 1 to interrupt vector register to find out.  If 
> zero, then it is DEQNA.


According to the DELQA manual, to distinguish
between a DEQNA and a DLEQA in DEQNA-lock mode,
do the following:

1. Write VAR<00> = 1
2. Immediately read  VAR
    If VAR<00>=1 this is a DELQA
    If VAR<00>=0 this is a DEQNA
3. Write VAR<00> = 0

The text implies that you should actually
start with VAR<00>=0 for the test to
be valid (and it should normally
be set that way anyway).

So it sounds like NetBSD is doing the right thing.

Antonio




-- 

---------------
Antonio Carlini             arcarlini@iee.org



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2002-02-26 22:21 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-02-23  0:36 DEQNA/DELQA - Checksum calculation? sword7
2002-02-23  1:01 ` Mark Hittinger
2002-02-23 23:05   ` sword7
2002-02-23 23:21     ` Mark Hittinger
2002-02-24  3:37     ` Dennis Henriksen
2002-02-24  4:08       ` Mark Hittinger
2002-02-26 12:06       ` Harti Brandt
2002-02-25  1:54     ` Jeff Campbell
2002-02-26 22:21 ` antonio.carlini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox