PDP-10 / its

Incompatible Timesharing System
Other
868 stars 84 forks source link

luner lander crash #2311

Open drforbin opened 5 months ago

drforbin commented 5 months ago

Luner lander crashes when gtloaded.

:gtload *gt40;gtlem bin

No luck any ideas?

larsbrinkhoff commented 5 months ago

I have also seen that loading GT40 software from ITS often crashes, but I don't know why. @Isysxp, you have been using the GT40, do you have any idea?

Isysxp commented 5 months ago

This is a problem I have seen as well. I have tracked this down to the VT11 cycle time which is set in pdp11_vt.c line 65. This parameter determines how often the VT11 does a dma cycle for the next instruction. The loader used by GTLOAD which is from bootvt.img as in:

set rom enabled set rom0 address=17766000 at rom0 bootvt.img boot rom0

cannot keep up with the VT11 cycle time. If you change line 65 to #define VT11_DELAY 20 it should work. However, the copy of GTLEM BIN I have never moves off the initial text screen. To test, I have set a simh breakpoint at the line clock interrupt vector and it never occurs. The CLK reg is OK with ena+inta. But the CPU int priority is 7 according to the PSW so a CLK int will not happen. I can't see anything in the source to suggest that the PSW is setup prior to enabling the line clock. Any suggestions?

Isysxp commented 5 months ago

Just tried this appalling hack!!! After you get the Lander text screen, pause the GT40 (^e) , type d psw 0 and then c. The app will startup after the specified 10 secs. I suspect that GTLOAD leaves the PSW at PRI 7 and the delay will not expire.

drforbin commented 5 months ago

Thxs vlad and lars for your timely reply. I will try the suggestion tonight and report back. Also vlad. I wanna try and contribute again to lepton. let me know what to do.

drforbin commented 5 months ago

Oh,

I don't get the lander screen or any other. It just crashes. I am able to load the vt07? code into the gt40 and it works as an terminal emulator.

drforbin commented 5 months ago

This is what I'm getting

PDP-11 simulator Open SIMH V4.1-0 Current git commit id: 348f5f29 Disabling XQ /home/mercou/Downloads/its/build/pdp10-ka/gt40-17> set dli address=17775610 %SIM-INFO: Device auto configuration is now disabled. %SIM-INFO: Explicitly setting any address or vector value tells the system %SIM-INFO: that you are planning a specific configuration that may not use %SIM-INFO: use standard values. You must explicitly specify bus address and %SIM-INFO: vector values for any device you enable or otherwise add to the %SIM-INFO: system configuration after this message is issued. Changing the %SIM-INFO: number of lines on a terminal multiplexer is such a change. %SIM-INFO: To avoid complexities dealing with this, it is recommended that %SIM-INFO: you configure all devices which can use standard addresses before %SIM-INFO: changing the address or vector for an unusual device situation. /home/mercou/Downloads/its/build/pdp10-ka/gt40-19> at -u dli 10005,connect=localhost:10019 %SIM-INFO: Listening on port 10005

HALT instruction, PC: 000004 (RTI) sim> cont

HALT instruction, PC: 000002 (HALT) sim> cont

HALT instruction, PC: 000004 (RTI) sim> d psw 0 sim> c

drforbin commented 5 months ago

It appears I'm getting nothing but 0's in the pdp11 memory after the load. I tried loading the vt07 and I'm getting alternating data. Could the gtlem bin file be bad? how do I test this. I dont have alot of tools on ITS to work with.

Isysxp commented 5 months ago

Hi, Have you got the proper boot code running in the GT40? See the its script and instead of run 1000 do boot rom0. Then you should be able to login to its from the GT40.(^z) :login gt40 (this gets you into the correct directory. You need to load the gtlem bin file from its into the GT40 first using gtload :gtload ( is from its then type)gtlem bin The GT40 screen should blank and then after about 1 min, the Lander startup screen should appear. In the GT40 console, do as you did above with the PSW.

drforbin commented 5 months ago

Yes all of that is being done.

this is the ini fle fore the pdp11

set cpu 11/05 set lpt disabled set dz disabled set rk disabled set rl disabled set hk disabled set rx disabled set rp disabled set rq disabled set tm disabled set tq disabled set cpu 16k set tti 8b set dli enabled set dlo enabled set dli lines=1 set dli address=17775610 set dlo0 8b at -u dli 10005,connect=localhost:10019 set vt enabled set vt crt=vr14 set vt scale=1 set vt address=17772000 set vt vec=320 set vt keyboard=nospacewar dep sr 0 set rom enabled set rom0 address=17766000 at rom0 out/pdp10-ka/bootvt.img boot rom0

Once the pdp11 sim halts I dumped the memory above and the memory is just alternating 0's and 2's.

remember the vt07 code runs fine.

Isysxp commented 5 months ago

Do you ever see the Lunar Lander startup screen?

drforbin commented 5 months ago

no, The pdp11 just halts.

drforbin commented 5 months ago

/home/mercou/Downloads/its/build/pdp10-ka/gt40-19> at -u dli 10005,connect=localhost:10019 %SIM-INFO: Listening on port 10005

HALT instruction, PC: 000004 (RTI) sim> cont

HALT instruction, PC: 000002 (HALT) sim> cont

HALT instruction, PC: 000004 (RTI) sim> d psw 0 sim> c

drforbin commented 5 months ago

The entire memory space is nothing but 0's and 2's. The lunar lander code is cross compiled with palx from the mac code. gtlem.91

drforbin commented 5 months ago

anything?

Isysxp commented 5 months ago

OK, firstly, I have patched the repo to correct the crashes that may occur using the its script. I also have updated this script to use the bootvt.img system. The app now works file ... tested on Pi5 (Bookworm) and Windows. And the Lunar Lander hack works as well. Specifically, when you start the its (do its script, are you able to login to ITS via the GT40 screen? Then, when you use GTLOAD to load GTLEM BIN does the GT40 screen blank for about 40 sec while the binary loads? Using this sequence of commands, when does the GT40 app halt?

drforbin commented 5 months ago

The it's script? you mean start?

Yes all of that occurs. But then after the blank it halts. Please look at screen and memory dump above. It looks to me like either the binary is NOT being loaded or the binary is just full of 0's and 2's Please note.

Loading vt07 bin29 works fine

Isysxp commented 5 months ago

I am sorry but I have no further suggestions. I cannot replicate this error. Please confirm your OS and that you have the latest GT40 build from https://github.com/Isysxp/GT40.git. Are you running the GT40 app on the same machine as the PiDP10. (Tested OK on mine: Pi5 Bookworm).

drforbin commented 5 months ago

The it's script? you mean start?

Yes all of that occurs. But then after the blank it halts. Please look at screen and memory dump above. It looks to me like either the binary is NOT being loaded or the binary is just full of 0's and 2's Please note.

Loading vt07 bin29 works fine

drforbin commented 5 months ago

I'm running it on intel i7 laptop running gentoo. The gt40 build is from the its repo. Should I try the above repo build?

drforbin commented 5 months ago

I cloned the GT40 repo and built it. It built fine. I will try and start ITS tonight and connect to the ITS system. Hopefully it will work. I was using the ITS build of GT40 started with the ITS 'start' script before. Stay turned.

drforbin commented 5 months ago

Ok.. I have reproduced your experience using the GT40 repo. Everything seems to work as you describe. But this is NOT the case using the GT40 emulator in ITS repo. Also, Can I get ride of the gt40 motif around the terminal?

Isysxp commented 5 months ago

I am only responsible for the GT40 app. The repo you are referring to is Simh. You will have to ask them to fix this problem.

drforbin commented 5 months ago

I understand that. I am sure they use your code though. How do I get rid of the motif around terminal?