On Tuesday, August 20, 2013 8:08:17 PM UTC-4, John Forecast wrote:
> In article <
slrnl164jl...@ID-309335.user.uni-berlin.de>,
>
> Stan Barr <
pla...@dsl.pipex.com> wrote:
>
>
>
> > Hi,
>
> >
>
> > Anyone got KLH10 running on a raspberry pi? I remember something
>
> > being said a while back.
>
>
>
> Yes, I have it running. Here are the changes I made to get it running:
>
>
...
Thanks, John, for your change notes. With these notes, I was able to get KLH10 running on my RPi pretty quickly. [And thanks, Bob & Stan, for your earlier notes -- I was encouraged to try it because of others' successes.]
I did run into one other problem not documented here. osdsup.c references IPC_R and IPC_W, which aren't defined in the RPi's ipc.h file (at least, in my Raspian dated 2014\01\07).
So just before those symbols are used in osdsup.c, I inserted:
#ifndef IPC_R
#define IPC_R 0
#endif
#ifndef IPC_W
#define IPC_W 0
#endif
The code compiles and runs just fine with these definitions.
I looked on my Mac and found that it defines IPC_W to be 000400 and IPC_R to be 000200; I tried those values in the code on my Raspberry, thinking it might be best to define the symbols in a way that would be consistent with other OSes, and those bits aren't used other places in RPi's ipc.h module. Nah. Bad idea. TOPS-20 loaded and started, but Galaxy and others failed to load or failed when they started executing. So I reset to define them both to be 0, and it works just fine again.
Re the ITIME_SYNCH/ITIME_INTRP/CTYIO_INT settings, I didn't see that edit initially and didn't make the change to Makefile.mk, and though TOPS booted, it generated sporadic DTE errors and wouldn't let me log in from the console. So for others attempting this, make sure you change those settings in order to get a working system.
Thanks again for your work on this. It's pretty amusing to have a DEC-20 the size of a pack of cigarettes (wow! been a long time since I've seen one of those!) that costs less than $100.
David