Page 5 of 10

Re: CDTV Relocator for the TF536

Posted: 17 Aug 2020 21:51
by 8 Bit Dreams
Ah!
then it is just a redrawn version of this:
http://lvd.nedopc.com/Projects/a600_8mb/index.html
now i got it... ;)
this doesn't help us to move forward though..

Re: CDTV Relocator for the TF536

Posted: 18 Aug 2020 00:06
by terriblefire
I am planning to just make a driver that does PIO. Its not like the CD drive is so stonkingly fast that anyone would notice the speed reduction, especially if an 030 with a cache is doing the PIO. That completely eliminates all the ram issues.

Re: CDTV Relocator for the TF536

Posted: 18 Aug 2020 01:18
by dalek
terriblefire wrote: 17 Aug 2020 09:47 Ok i got my dev environment set up on my mac laptop. And i can start testing the driver changes now. Note that even with the allocmem patch i see that the dma gets asked to DMA to fastmem..
That's so weird. I was looking at your cdtv.device.asm. To me it looks like the DMA happens to the buffer "db" allocated withing the device node that gets added to the system with AddDevice. Is it possible that is being added in fast ram? In which case a workaround may be another allocmem and point the device buffer to that instead?

Re: CDTV Relocator for the TF536

Posted: 18 Aug 2020 08:02
by terriblefire
dalek wrote: 18 Aug 2020 01:18
terriblefire wrote: 17 Aug 2020 09:47 Ok i got my dev environment set up on my mac laptop. And i can start testing the driver changes now. Note that even with the allocmem patch i see that the dma gets asked to DMA to fastmem..
That's so weird. I was looking at your cdtv.device.asm. To me it looks like the DMA happens to the buffer "db" allocated withing the device node that gets added to the system with AddDevice. Is it possible that is being added in fast ram? In which case a workaround may be another allocmem and point the device buffer to that instead?
No this only happens for frame 1 and 3 of the CDXL buffer. The second frame goes direct to the buffer supplied by the user and that is almost always in FastMem. The more i think about it the less value i see in the DMA. Now i just need to figure out out to PIO the buffer correctly. If instruction caches are on then it should look about the same speed as DMA anyways.

Re: CDTV Relocator for the TF536

Posted: 18 Aug 2020 22:54
by utri007
@terriblefire
The more i think about it the less value i see in the DMA. Now i just need to figure out out to PIO the buffer correctly. If instruction caches are on then it should look about the same speed as DMA anyways.
What ever you decide it is perfectly OK. As a bright side, after it there is no tons of different expansions wich needed to work with it. :)

Re: CDTV Relocator for the TF536

Posted: 22 Aug 2020 11:33
by terriblefire
Grrrr. Started to get a dev setup working on the CDTV with the rom emulator and I’ve killed the bloody thing AGAIN...

Fscking hate working on this machine
448FFCFA-7993-4362-BE89-46922D92E465.jpeg

Re: CDTV Relocator for the TF536

Posted: 22 Aug 2020 11:57
by go0se
terriblefire wrote: 22 Aug 2020 11:33 Grrrr. Started to get a dev setup working on the CDTV with the rom emulator and I’ve killed the bloody thing AGAIN...
That's the reason you just bought that spare CDTV right? :lol:

What is the issue?

Re: CDTV Relocator for the TF536

Posted: 22 Aug 2020 12:18
by bartekmalysz
No problem, I have 3 more :lol:

Re: CDTV Relocator for the TF536

Posted: 22 Aug 2020 12:20
by terriblefire
go0se wrote: 22 Aug 2020 11:57
terriblefire wrote: 22 Aug 2020 11:33 Grrrr. Started to get a dev setup working on the CDTV with the rom emulator and I’ve killed the bloody thing AGAIN...
That's the reason you just bought that spare CDTV right? :lol:

What is the issue?
PSU blew and it showed a green screen after soldering A19... bloody thing

Re: CDTV Relocator for the TF536

Posted: 22 Aug 2020 16:03
by GadgetUK164
terriblefire wrote: 22 Aug 2020 12:20
go0se wrote: 22 Aug 2020 11:57

That's the reason you just bought that spare CDTV right? :lol:

What is the issue?
PSU blew and it showed a green screen after soldering A19... bloody thing
=( You've not had much luck with the CDTV have you!