TF536 and CDTV's cd drive

68030 + SDRAM + IDE

Moderators: terriblefire, Terriblefire Moderator

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

TF536 and CDTV's cd drive

Post by utri007 »

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: 698
Joined: Tue Oct 17, 2017 4:51 pm
Location: Oxfordshire

Re: TF536 and CDTV's cd drive

Post by alexh »

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.

https://www.exxosforum.co.uk/forum/viewt ... =40#p40202

I don't know if that TF536 FW was ever released.
Principal ASIC Engineer - SystemVerilog, VHDL
Thalion Webshrine - http://thalion.atari.org
STf,STfm,STe,MegaST,MegaSTe,Falcon060
A500+,A600,A4000/060,CD32,CDTV
utri007
Posts: 161
Joined: Tue Nov 13, 2018 10:20 pm

Re: TF536 and CDTV's cd drive

Post by utri007 »

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: 76
Joined: Thu Jun 25, 2020 4:05 pm
Location: Northwich

Re: TF536 and CDTV's cd drive

Post by bartekmalysz »

That would be enough for plenty of people ;)
User avatar
alexh
Posts: 698
Joined: Tue Oct 17, 2017 4:51 pm
Location: Oxfordshire

Re: TF536 and CDTV's cd drive

Post by alexh »

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?

https://www.exxosforum.co.uk/forum/viewt ... =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
STf,STfm,STe,MegaST,MegaSTe,Falcon060
A500+,A600,A4000/060,CD32,CDTV
terriblefire
Moderator Team
Moderator Team
Posts: 5368
Joined: Mon Aug 28, 2017 10:56 pm
Location: Glasgow, UK

Re: TF536 and CDTV's cd drive

Post by terriblefire »

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.
———
"It is not necessarily a supply voltage at no load, but the amount of current it can provide when touched that
indicates how much hurting you shall receive."
User avatar
alexh
Posts: 698
Joined: Tue Oct 17, 2017 4:51 pm
Location: Oxfordshire

Re: TF536 and CDTV's cd drive

Post by alexh »

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
STf,STfm,STe,MegaST,MegaSTe,Falcon060
A500+,A600,A4000/060,CD32,CDTV
User avatar
alexh
Posts: 698
Joined: Tue Oct 17, 2017 4:51 pm
Location: Oxfordshire

Re: TF536 and CDTV's cd drive

Post by alexh »

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
STf,STfm,STe,MegaST,MegaSTe,Falcon060
A500+,A600,A4000/060,CD32,CDTV
User avatar
alexh
Posts: 698
Joined: Tue Oct 17, 2017 4:51 pm
Location: Oxfordshire

Re: TF536 and CDTV's cd drive

Post by alexh »

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
STf,STfm,STe,MegaST,MegaSTe,Falcon060
A500+,A600,A4000/060,CD32,CDTV
terriblefire
Moderator Team
Moderator Team
Posts: 5368
Joined: Mon Aug 28, 2017 10:56 pm
Location: Glasgow, UK

Re: TF536 and CDTV's cd drive

Post by terriblefire »

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.
———
"It is not necessarily a supply voltage at no load, but the amount of current it can provide when touched that
indicates how much hurting you shall receive."
Post Reply

Return to “TF536”