View Issue Details

IDProjectCategoryView StatusLast Update
06935WHDLoadGeneralpublic2026-05-06 08:54
Reportermy_pc_is_amiga Assigned ToWepl  
PrioritynormalSeverityminorReproducibilityalways
Status assignedResolutionopen 
Project InfoHD-Installer for OS-Killer
http://whdload.de/
Summary06935: Serial port output gets garbled after quiting whdload install
DescriptionWhen quitting, the serial port does not get restored. Remote terminal no long outputs anymore or prints out garbage.
Steps To ReproduceUse newshell aux: or set debug on (for OS3.3) and then start a WHDLoad install. Quit and you will see serial no longer working. Don't know how to restore.
TagsNo tags attached.
MachineA4000
CPU68040
CPUSpeed25
ChipSetAGA
GFXCardZZ9000
ChipMem2 MB
FastMem16MB and 256MB BigRam+
WorkbenchOS 3.2
KickROM47 - Kick 3.2
KickSoft47 - Kick 3.2
WHDLoad20.0beta

Activities

my_pc_is_amiga

my_pc_is_amiga

2026-04-13 02:58

reporter   note ~14923

Note sure how the my initial report shows Turrican 2 but note that is not just a Turrican 2 slave issue and seems to be a universal issue.
Wepl

Wepl

2026-04-13 09:05

manager   note ~14924

Can you check if 18.6 has this problem too?
Because in 18.7 there was change: WHDLoad now resets custom.serper on exit to stop a possible MIDI/MT32 playback via the serial line (JOTD)
my_pc_is_amiga

my_pc_is_amiga

2026-04-13 14:36

reporter   note ~14925

I checked just now and 18.6 works okay. I don't see any more garbled output.
Wepl

Wepl

2026-04-13 22:37

manager   note ~14926

please try latest beta https://whdload.de/whdload/whd201.lha
custom.serper is now only written if misc.resource is not allocated
my_pc_is_amiga

my_pc_is_amiga

2026-04-14 01:32

reporter   note ~14929

I tried just now with that 20.1 and still an issue
Wepl

Wepl

2026-04-15 20:14

manager   note ~14939

please set option TRACE, run a game which breaks your serial connection and attach the created .whdl_trace here
my_pc_is_amiga

my_pc_is_amiga

2026-05-04 23:30

reporter   note ~14975

Attached is the trace file
.whdl_trace (6,974 bytes)   
[04-May-26 16:23:34.20 7058] ***************************************************************************************************
[04-May-26 16:23:34.20 7058] Slave="Turrican.Slave" Preload PreloadSize=984608 NoCache PAL QuitKey=90 ButtonWait ExecuteStartup="Execute S:WHDLoad-Startup" ExecuteCleanup="Execute S:WHDLoad-Cleanup" SplashDelay=200 Trace
[04-May-26 16:23:34.22 7058] 20.1.7058 eaf=807F waf=7F vbr=0 cacr=80008000 tc=8000 pcr=FFFFFFFF bplcon0=200 chiprev=1F
[04-May-26 16:23:34.26 7058] mem delta 274,916,624
[04-May-26 16:23:34.28 7058] name=   expansion memory attr=505 lower= 7000020 upper= 7F80000 free=  4429232
[04-May-26 16:23:34.28 7058] name=   expansion memory attr=405 lower=40000020 upper=50000000 free=268435424
[04-May-26 16:23:34.30 7058] name=        chip memory attr=703 lower=    1020 upper=  200000 free=  2051968
[04-May-26 16:23:34.34 7058] performing Slave Update Check for 'Turrican.Slave', Stack='Roadshow 4.347 (29.11.2019)'
[04-May-26 16:23:34.74 7058] connecting to host 'cgi.whdload.net' ip=$B91E2039 port=80
[04-May-26 16:23:34.76 7058] local port: 1024
[04-May-26 16:23:34.78 7058] local port: 1025
[04-May-26 16:23:34.90 7058] query: GET /suc.cgi?sum=T_A4W3MUlRYFBgotxMSz8-y4SyKpw-uIOj1KlAEZX9A&key=10191&attn=127&whd=20.1.7058 HTTP/1.0
Host: cgi.whdload.net
User-Agent: WHDLoad 20.1.7058


[04-May-26 16:23:35.16 7058] result: HTTP/1.1 200 OK
Server: nginx
Date: Mon, 04 May 2026 21:24:57 GMT
Content-Type: text/plain;charset=UTF-8
Content-Length: 6
Connection: close

slv=a

[04-May-26 16:23:35.18 7058] ExecuteStartup: Execute S:WHDLoad-Startup 
[04-May-26 16:23:37.46 7058] restart point
[04-May-26 16:23:37.46 7058] int: tbe     d=0 c=0 n=0
[04-May-26 16:23:37.48 7058] int: dskblk  d=700EF1C c=FFEE50 n=700EF6A
[04-May-26 16:23:37.48 7058] int: dskblk  t=0 p=0 n=disk.resource d=700EF1C c=FFEE50
[04-May-26 16:23:37.50 7058] int: softint d=0 c=F81858 n=0
[04-May-26 16:23:37.50 7058] int: ports   d=7000020 c=F817DA n=0
[04-May-26 16:23:37.52 7058] int: ports   t=2 p=120 n=ciaa.resource d=700EC48 c=FFE882
[04-May-26 16:23:37.52 7058] int: ports   t=2 p=20 n=NCR SCSI d=701A680 c=70186D6
[04-May-26 16:23:37.54 7058] int: ports   t=2 p=20 n=AT-IDE d=701C870 c=701E520
[04-May-26 16:23:37.54 7058] int: ports   t=0 p=10 n=janus.library d=7244BA0 c=75AE880
[04-May-26 16:23:37.56 7058] int: ports   t=2 p=-10 n=x-surf-100.device d=77D7734 c=786E4CC
[04-May-26 16:23:37.56 7058] int: coper   d=7000040 c=F817DA n=0
[04-May-26 16:23:37.58 7058] int: vertb   d=7000030 c=F817DA n=0
[04-May-26 16:23:37.58 7058] int: vertb   t=0 p=10 n=graphics.library d=700F460 c=764961C
[04-May-26 16:23:37.60 7058] int: vertb   t=2 p=0 n=gameport.device d=7013E6C c=FFCE14
[04-May-26 16:23:37.60 7058] int: vertb   t=2 p=0 n=timer.device d=7014004 c=FF9782
[04-May-26 16:23:37.62 7058] int: blit    d=700F460 c=FBA1FE n=700F4D6
[04-May-26 16:23:37.62 7058] int: blit    t=0 p=0 n=graphics.library d=700F460 c=FBA1FE
[04-May-26 16:23:37.64 7058] int: aud0    d=0 c=0 n=0
[04-May-26 16:23:37.64 7058] int: aud1    d=0 c=0 n=0
[04-May-26 16:23:37.66 7058] int: aud2    d=0 c=0 n=0
[04-May-26 16:23:37.66 7058] int: aud3    d=0 c=0 n=0
[04-May-26 16:23:37.68 7058] int: rbf     d=0 c=0 n=0
[04-May-26 16:23:37.68 7058] int: dsksync d=700EF1C c=FFEE66 n=700EF80
[04-May-26 16:23:37.70 7058] int: dsksync t=0 p=0 n=disk.resource d=700EF1C c=FFEE66
[04-May-26 16:23:37.70 7058] int: exter   d=7000050 c=F817DA n=0
[04-May-26 16:23:37.72 7058] int: exter   t=2 p=120 n=ciab.resource d=700ECE8 c=FFE928
[04-May-26 16:23:37.72 7058] int: inten   d=0 c=0 n=0
[04-May-26 16:23:37.74 7058] int: nmi     d=7000060 c=F817DA n=0
[04-May-26 16:23:37.86 7058] basesz=80000 abssz=74000 lo=C000@76B3010 hi=0@0 free=180000
[04-May-26 16:23:37.98 7058] _SplashOpen win=75EE9EC
[04-May-26 16:23:38.06 7058] data0: Work:Programs/Games/Turrican/data vdt=DOS\7 dd=DH4,scsi.device/1 ed=A4000T_scsidisk 47.5 (9.9.2023) mxt=FFFFFF msk=7FFFFFFE fs=fs 47.7 (9.8.2025) ddt=DOS\7
[04-May-26 16:23:38.10 7058] mem delta 801,352
[04-May-26 16:23:38.12 7058] name=   expansion memory attr=505 lower= 7000020 upper= 7F80000 free=  5706440
[04-May-26 16:23:38.12 7058] name=   expansion memory attr=405 lower=40000020 upper=50000000 free=268435424
[04-May-26 16:23:38.14 7058] name=        chip memory attr=703 lower=    1020 upper=  200000 free=  1576112
[04-May-26 16:23:38.14 7058] filecache start maxmem=268435424
[04-May-26 16:23:38.16 7058] using mempool puddle=16777214 tresh=4194303 at=$725F370
[04-May-26 16:23:38.16 7058] scanning data0
[04-May-26 16:23:38.22 7058] s=   388 n=highs
[04-May-26 16:23:38.26 7058] s= 97792 n=60000
[04-May-26 16:23:38.30 7058] s= 54500 n=12
[04-May-26 16:23:38.32 7058] s= 72036 n=1c
[04-May-26 16:23:38.36 7058] s= 50292 n=28
[04-May-26 16:23:38.38 7058] s=  5240 n=30
[04-May-26 16:23:38.42 7058] s=134088 n=31
[04-May-26 16:23:38.46 7058] s=143272 n=46
[04-May-26 16:23:38.50 7058] s=125888 n=5c
[04-May-26 16:23:38.54 7058] s=156716 n=70
[04-May-26 16:23:38.58 7058] s=133396 n=89
[04-May-26 16:23:38.60 7058] files=11 min=388 max=156716 avg=88509 sum=973608 exall=1 pudcnt=1 time=0.44
[04-May-26 16:23:38.62 7058] mem delta -16,777,280
[04-May-26 16:23:38.64 7058] name=   expansion memory attr=505 lower= 7000020 upper= 7F80000 free=  5706152
[04-May-26 16:23:38.64 7058] name=   expansion memory attr=405 lower=40000020 upper=50000000 free=251658168
[04-May-26 16:23:38.66 7058] name=        chip memory attr=703 lower=    1020 upper=  200000 free=  1576112
[04-May-26 16:23:46.12 7058] no CDTV detected
[04-May-26 16:23:46.62 7058] found p96: n=ZZ9000 v=VBInt  (0) f=C509041 i=76688BE
[04-May-26 16:23:46.64 7058] xmem 251,609,008@4000B000
[04-May-26 16:23:46.72 7058] mem delta -251,619,328
[04-May-26 16:23:46.72 7058] name=   expansion memory attr=505 lower= 7000020 upper= 7F80000 free=  5703968
[04-May-26 16:23:46.74 7058] name=   expansion memory attr=405 lower=40000020 upper=50000000 free=    49072
[04-May-26 16:23:46.74 7058] name=        chip memory attr=703 lower=    1020 upper=  200000 free=  1568328
[04-May-26 16:23:46.76 7058] resload start
[04-May-26 16:23:46.90 7058] resload end rea=-1 pri=0 sec=0 str=12
[04-May-26 16:23:46.92 7058] restoring p96
[04-May-26 16:23:46.96 7058] no CDTV detected
[04-May-26 16:24:07.00 7058] clock restored
[04-May-26 16:24:07.00 7058] dircache clearing
[04-May-26 16:24:07.02 7058] filecache clearing
[04-May-26 16:24:07.02 7058] caches cleared
[04-May-26 16:24:07.04 7058] check restart
[04-May-26 16:24:07.04 7058] ExecuteCleanup: Execute S:WHDLoad-Cleanup 
[04-May-26 16:24:19.66 7058] exit
[04-May-26 16:24:19.70 7058] mem delta 266,362,072
[04-May-26 16:24:19.70 7058] name=   expansion memory attr=505 lower= 7000020 upper= 7F80000 free=  3196048
[04-May-26 16:24:19.72 7058] name=   expansion memory attr=405 lower=40000020 upper=50000000 free=268435424
[04-May-26 16:24:19.72 7058] name=        chip memory attr=703 lower=    1020 upper=  200000 free=  2051968
.whdl_trace (6,974 bytes)   
my_pc_is_amiga

my_pc_is_amiga

2026-05-04 23:39

reporter   note ~14976

One thing I noticed (last step 5 below):

1) set debug on
2) Serial port works okay and can see CLI commands printing
3) Run WHDload game
4) Quit and serial port is messed up
5) Do a newshell aux: and port seems to get reset. Serial port starts working okay again. The "set debug on" also start to work.
Wepl

Wepl

2026-05-06 08:54

manager   note ~14977

The fix I implemented has no effect because the misc.resource is not allocated.
WHDLoad cannot restore the serial configuration because the custom registers are write-only.
How do you open the serial connection?

Issue History

Date Modified Username Field Change
2026-04-09 17:09 my_pc_is_amiga New Issue
2026-04-12 15:08 Wepl Assigned To => Wepl
2026-04-12 15:08 Wepl Status new => assigned
2026-04-13 02:58 my_pc_is_amiga Note Added: 14923
2026-04-13 09:02 Wepl Project Turrican2 => WHDLoad
2026-04-13 09:05 Wepl Note Added: 14924
2026-04-13 14:36 my_pc_is_amiga Note Added: 14925
2026-04-13 22:37 Wepl Note Added: 14926
2026-04-14 01:32 my_pc_is_amiga Note Added: 14929
2026-04-15 20:14 Wepl Note Added: 14939
2026-05-04 23:30 my_pc_is_amiga Note Added: 14975
2026-05-04 23:30 my_pc_is_amiga File Added: .whdl_trace
2026-05-04 23:39 my_pc_is_amiga Note Added: 14976
2026-05-06 08:54 Wepl Note Added: 14977