TF536 and CDTV's cd drive

68030 + SDRAM + IDE

Moderators: terriblefire, Terriblefire Moderator

utri007
Posts: 132
Joined: Tue Nov 13, 2018 10:20 pm

TF536 and CDTV's cd drive

Post by utri007 » Thu Oct 22, 2020 9:33 am

Is it so, that there is no way to get CD-drive to work with current firmware, even after the boot without a patched cdtv.device?

User avatar
alexh
Posts: 40
Joined: Tue Oct 17, 2017 4:51 pm

Re: TF536 and CDTV's cd drive

Post by alexh » Thu Oct 22, 2020 10:42 am

It was my understanding that TF had created a TF536 firmware which patched a few addresses in the extended ROM which allowed the CDTV to boot from HDD with the TF536 fitted and populated with FastRAM and after boot the CD drive could then be used.

viewtopic.php?f=76&t=1951&start=40#p40202

I don't know if that TF536 FW was ever released.
Principal ASIC Engineer - SystemVerilog, VHDL
Thalion Webshrine - http://thalion.atari.org
STfm,STe,MegaSTe,Falcon060
A500+,A600,A4000/060,CD32,CDTV

utri007
Posts: 132
Joined: Tue Nov 13, 2018 10:20 pm

Re: TF536 and CDTV's cd drive

Post by utri007 » Thu Oct 22, 2020 6:57 pm

Wondering if he could release that version. It should make possible to use CD-drive after boot, but NOT boot from it. That would be enough for me.

bartekmalysz
Posts: 71
Joined: Thu Jun 25, 2020 4:05 pm
Location: Northwich

Re: TF536 and CDTV's cd drive

Post by bartekmalysz » Thu Oct 22, 2020 7:13 pm

That would be enough for plenty of people ;)

User avatar
alexh
Posts: 40
Joined: Tue Oct 17, 2017 4:51 pm

Re: TF536 and CDTV's cd drive

Post by alexh » Fri Oct 23, 2020 7:07 pm

I thought there might be enough information in the CDTV thread to patch the ROM rather than require the firmware which patches on the fly?

viewtopic.php?f=76&t=1951&start=30#p23329

If I am reading this correctly, TF talks about one memory location (0xF38706) which (according to the Amiga Memory Map) is in the CDTV Extended ROM. TF says this address is part of cdfs.library v24.9 and in particular an allocmem with the parameters "MEMF_CLEAR | MEMF_PUBLIC".

So that address should be offset 0x38706 into a Extended CDTV ROM file and the value should be : MEMF_PUBLIC|MEMF_CLEAR = $00010001 (I got the values for the constants from a quick Google)

I looked into the Extended ROM v2.30 with a HEX editor I see @ 0x38704-0x38706 the value $00010001

Now I am not an AmigaOS programmer, but reading the thread and inferring what is going on I think TF's idea for the TF536 CDTV firmware was to patch the data being read back from this address on the fly from MEMF_PUBLIC ($00000001) to MEMF_CHIP ($00000002)?

So if you change the data at the ROM location 0x38706 to $0002 that might allow cdfs.library v24.9 work with a TF536 with FASTRAM fitted. Maybe?

The address location for this code will be different for Extended ROM v2.7 ($3824e) or v1.0 (???)

*THIS IS ONLY A GUESS*

P.S. I thank TF for all his hard work in this area, this is all his work, I'm just trying a rather lame interpretation.
Principal ASIC Engineer - SystemVerilog, VHDL
Thalion Webshrine - http://thalion.atari.org
STfm,STe,MegaSTe,Falcon060
A500+,A600,A4000/060,CD32,CDTV

terriblefire
Moderator Team
Moderator Team
Posts: 3478
Joined: Mon Aug 28, 2017 10:56 pm
Location: Glasgow, UK
Contact:

Re: TF536 and CDTV's cd drive

Post by terriblefire » Fri Oct 23, 2020 9:53 pm

Guys i cant release a patched ROM as its still under copyright. I supposed i could make a script to patch a rom with python or something. All the information is already here.
———
I get cranky when asked to repeat myself.

User avatar
alexh
Posts: 40
Joined: Tue Oct 17, 2017 4:51 pm

Re: TF536 and CDTV's cd drive

Post by alexh » Fri Oct 23, 2020 11:24 pm

Thanks for the reply. A patch script sounds good.

Can you tell us if it just this one location cdfs.device that is required to use the CD drive in Workbench after booting?

There were lots of other allocmem's you found in the other thread, ones that were in cdtv.device too?
Principal ASIC Engineer - SystemVerilog, VHDL
Thalion Webshrine - http://thalion.atari.org
STfm,STe,MegaSTe,Falcon060
A500+,A600,A4000/060,CD32,CDTV

User avatar
alexh
Posts: 40
Joined: Tue Oct 17, 2017 4:51 pm

Re: TF536 and CDTV's cd drive

Post by alexh » Sat Oct 24, 2020 11:51 am

While I don't recommend using CDTV Extended Kickstart v2.07 (better to use the Cloanto v2.30) the same version of cdfs.library v24.9 is in v2.07 as was in v2.30.

So it was easy to find the equivalent address for the byte that TF found within v2.30

It appears at offset $3824E in v2.07 ROMs
Principal ASIC Engineer - SystemVerilog, VHDL
Thalion Webshrine - http://thalion.atari.org
STfm,STe,MegaSTe,Falcon060
A500+,A600,A4000/060,CD32,CDTV

User avatar
alexh
Posts: 40
Joined: Tue Oct 17, 2017 4:51 pm

Re: TF536 and CDTV's cd drive

Post by alexh » Sat Oct 24, 2020 12:13 pm

JOTD of JST/WHDload fame has created a python script patcher based on TFs work.

It is a blind patcher with an added check for the MD5 HASH to make sure it is a valid original v2.30 CDTV ROM before changing the one byte in cdfs.library v24.9 that TF found.

https://github.com/jotd666/amiga68ktool ... dtv_rom.py

I think JOTD is going to add support for v2.07 (hash and different address) and the Cloanto v2.30 HASH (a mod which removes the red screen when no FDD fitted)

I still don't 100% know if this is the only place that must be patched. Hopefully TF can confirm.
Principal ASIC Engineer - SystemVerilog, VHDL
Thalion Webshrine - http://thalion.atari.org
STfm,STe,MegaSTe,Falcon060
A500+,A600,A4000/060,CD32,CDTV

terriblefire
Moderator Team
Moderator Team
Posts: 3478
Joined: Mon Aug 28, 2017 10:56 pm
Location: Glasgow, UK
Contact:

Re: TF536 and CDTV's cd drive

Post by terriblefire » Sat Oct 24, 2020 12:57 pm

alexh wrote:
Sat Oct 24, 2020 12:13 pm
JOTD of JST/WHDload fame has created a python script patcher based on TFs work.

It is a blind patcher with an added check for the MD5 HASH to make sure it is a valid original v2.30 CDTV ROM before changing the one byte in cdfs.library v24.9 that TF found.

https://github.com/jotd666/amiga68ktool ... dtv_rom.py

I think JOTD is going to add support for v2.07 (hash and different address) and the Cloanto v2.30 HASH (a mod which removes the red screen when no FDD fitted)

I still don't 100% know if this is the only place that must be patched. Hopefully TF can confirm.
There is a list of about 30 locations that need patched in the 2.3 rom. I never used the 2.07 rom. Its not 2.7 .. its 2.07 its a much older rom than 2.3.
———
I get cranky when asked to repeat myself.

Post Reply

Return to “TF536”