DC-SWAT Forum
Connecting IDE disks & ISA (network) card to Dreamcast - Версия для печати

+- DC-SWAT Forum (http://www.dc-swat.ru/forum)
+-- Форум: Sega Dreamcast (/forum-2.html)
+--- Форум: English section (/forum-29.html)
+--- Тема: Connecting IDE disks & ISA (network) card to Dreamcast (/thread-1902.html)

Страниц: 1 2 3


RE: Connecting IDE disks & ISA (network) card to Dreamcast - SWAT - 28.08.2012 09:38

Yes, I plan to do IDE adapter.
Loaders I have different, boot loader on KOS, from SD loader (and in bios loader) without KOS.


RE: Connecting IDE disks & ISA (network) card to Dreamcast - OzOnE - 07.05.2013 17:57

Hi, all!

I know it's been a long while, but I thought I'd say that I finally got around to getting some DC IDE adapter PCB's made.

I just sent off for 40 PCBs to be manufactured in China, so if they work out OK, it should help us get HDD / CF cards working under Dreamshell.

I don't think I'll have much time to play with the direct FPGA GD Emu again, so while we await @cybdyn's invention, we can try getting IDE drives to work. Smile

Mr SWAT, when the PCB's arrive (might take a while), can I send a couple to you? Do you have time to do a bit of work on Dreamshell?

I'm not sure what was stopping DMA from working before (probably KOS), but I think it will still be much faster than SD card even in PIO mode.

What do you think?

Regards,
OzOnE.


RE: Connecting IDE disks & ISA (network) card to Dreamcast - SWAT - 08.05.2013 13:33

Of course! I already bought the adapter IDE -> SD Card, but I'm too lazy to solder wires Smile I have a few slots from GD-ROM, I wanted to make a PCB adapter from them, but I do not have the tools now.

[Изображение: $T2eC16V,!)0E9s37GG1CBRNBlFiGTw~~60_12.JPG]


RE: Connecting IDE disks & ISA (network) card to Dreamcast - OzOnE - 09.05.2013 04:52

Great!

I know you might not have much time for this project now, but I'll send you a G1 adapter as soon as the first ones are soldered.

I think you would find it quite easy to add support to Dreamshell, especially just PIO for now.
Those SD adapters should work OK too (if they don't force a DMA mode??). It will be interesting to see what the speed difference is to the serial port.

I'll PM you when the PCBs arrive.

Regards,
Ash.


RE: Connecting IDE disks & ISA (network) card to Dreamcast - cybdyn - 09.05.2013 11:52

i'm doubt - doesn't the dreamcast will boot properly w/o native gd-rom board?


RE: Connecting IDE disks & ISA (network) card to Dreamcast - SWAT - 09.05.2013 20:40

In this case only bios mod can help.


RE: Connecting IDE disks & ISA (network) card to Dreamcast - OzOnE - 10.05.2013 09:44

@cybdyn - the adapter boards will have the ~33MHz oscillator onboard to allow the AICA chip to start up (to get past the blank screen).
Unfortunately, it will still require a BIOS mod to boot from SD if the GD drive is removed.

It's also designed so the GD drive can be plugged in at the same time (although, it will be too high to fit the lid back on. Sad ).

Multiple adapters can be used to extend the "IDE" cable on the GD drive, or plug it directly into a PC.

Have to see what happens when they arrive, but no super-simple way to boot without the GD drive.
(until you finish your board Big Grin ).


RE: Connecting IDE disks & ISA (network) card to Dreamcast - cybdyn - 11.05.2013 12:58

hm.. i still doubt that bios mod can off access to gd-rom through standart call functions by replacing pointers before they are called.
but i can be wrong - if dreamshell really does it - it's good. cause bios-mod anyway is cheaper than gd-emu)))

dont know when i finish my board - the question : when i start debug it at least)))

btw - i start discover more about ARM controllers, and wanna use one of them in future, i face with a problem of weak tusb3210 controller - that is really 51 core based wuth 128! byte memory )))
so i noticed - the Duenan chosen good parts for his emu Atmel ARM + Cyclone 3.


RE: Connecting IDE disks & ISA (network) card to Dreamcast - OzOnE - 11.05.2013 21:13

I'm hoping that it will just work the same as Dreamshell, so will use "SD-ISO's" for now. (but much faster loading times, without the stuttering in some games).

Most of the retail games seem to use the BIOS syscalls, so as SWAT said, it was fortunate that he was able to add his Dreamshell code to the BIOS and still allow booting of retail games.

I'm not sure if it will be easy to get it to boot directly from CF / HDD from the original BIOS calls though?

Yes, I really must try more projects with the ARM chips. I've always used PIC or AVR chips, but you can get MUCH better performance from ARM processors.

There are a few Arduino style boards with ARM on them now, and there are also some fantastic boards from Olimex with far better features than the Arduino (80MHz / USB bootloader etc.)

Definitely need a board with both ARM and FPGA for a nice dev board though (for GD Emu projects etc.).

Strange to think that the ARM chip was first developed by the people at Acorn Computers many years ago (Steve Furber / Sophie Wilson).
There are apparently more ARM chips in devices Worldwide now than any other processor. More than about 90% of iPhones / iPads / Android devices use them!

btw, I just got direct HDMI output working from the Gamecube last night! (with a few minor issues)
I should be able to apply this to the DC, and most other consoles where the digital signals are available....
http://www.gc-forever.com/forums/viewtopic.php?p=17966#p17966

OzOnE.


RE: Connecting IDE disks & ISA (network) card to Dreamcast - cybdyn - 11.05.2013 22:19

i think the board what i've made yet is enough for "touch" to gd-emu, but arm controller can give more performance with less cost fpga. and new type of test board "arm + fpga" is under developing - but it covered by fog of secretsWink


RE: Connecting IDE disks & ISA (network) card to Dreamcast - OzOnE - 11.05.2013 22:53

Excellent!

I do hope will we have success with this soon.
It's been way too long having to use these "ancient" CD / GD drives now. lol

Doesn't look like Duenan will ever get around to releasing / selling his boards.
Maybe he never actually got it to boot retail games? (just giving him a "challenge". hehe)

I think the IDE adapters are a nice idea, but I'm sure your FPGA design will be the best way to go.
Most people would pay the extra for your plug-and-play SD card solution (only have to remove the lid and GD drive then, instead of soldering a BIOS).

(The IDE adapters can still be used with Dreamshell without soldering though ofc. Just need to boot from the CD instead).

Best of luck with your board. Wink
I'll send you the latest GD Emu Verilog code when you next get time to work on it.
(can't remember if I sent it to you a few months ago?)

Regards,
OzOnE.
P.S. No word on the adapter PCB's yet, but they said it will take a couple of weeks.


RE: Connecting IDE disks & ISA (network) card to Dreamcast - cybdyn - 12.05.2013 20:00

thnx, i got you code, i think it has many useful info, but i'll try make my own, anyway i'll show what i make and will ask if it need.


RE: Connecting IDE disks & ISA (network) card to Dreamcast - OzOnE - 12.05.2013 20:34

Ok, no problem.

I think if you use the nullDC source and try to run the C source on the ARM chip, you'll have much better luck.
I'm pretty sure Duenan would have used chunks of his emulator source for his board?

OzOnE.


RE: Connecting IDE disks & ISA (network) card to Dreamcast - cybdyn - 12.05.2013 20:48

no ideas what duenan got and how it make his gdemu.

i think my current gd-board can be very useful at stange of developing and debuggin code for IDE to SD adaptor.
i paln load any code to DC by usb, emulate IDE device or access through IDE port to real IDE device, and synchronize my board with pc applicaton for see what stores in registers or write to them what i need.


RE: Connecting IDE disks & ISA (network) card to Dreamcast - OzOnE - 13.05.2013 10:20

Just a quick update. Smile .....

(being shipped now)

[Изображение: 15hkguw.jpg]


RE: Connecting IDE disks & ISA (network) card to Dreamcast - cybdyn - 13.05.2013 14:19

coolWink


RE: Connecting IDE disks & ISA (network) card to Dreamcast - SWAT - 14.05.2013 18:35

Ohh very nice! It looks perfect!


RE: Connecting IDE disks & ISA (network) card to Dreamcast - cybdyn - 14.05.2013 19:05

can't wait - when it starts breathing)))


RE: Connecting IDE disks & ISA (network) card to Dreamcast - OzOnE - 21.05.2013 17:17

Hi, all,

I've just tested the adapter with the CF card code, and it works fine.

[Изображение: egcyf4.jpg]
[Изображение: ei1tma.jpg]

There are a few minor issues though...

Firstly, you might notice that the plastic part of the IDE socket (with the notch) is reversed. This is because I wanted the socket on the underside, to make it neater.

I'll see if I can remove and replace the plastic part later instead of cutting a new notch. Some 40-wire IDE cables don't have a notch anyway, and it doesn't matter whether you use a 40-wire IDE or 80-wire "UDMA" cable on the DC.

I'm having a hard time finding the tiny oscillator modules for the adapter...

The footprint on the board is for an Abracon ASF series module, but that is only 5x3mm and I can't seem to find the 33.8688MHz version to buy easily online?

That means the adapter can't currently be used stand-alone, so will need to be used with the GD drive plugged in at the same time.
(The GD drive will end up about an inch higher though.)

EDIT: You can of course connect a (bigger) osc module via the pin header.
I'm not entirely sure if that will allow it to boot into Dreamshell (without the stock GDD connected), so I'll have to find an oscillator that I can test later on.
It's possible to use a slightly faster or slower osc frequency, but that will cause the audio to speed up or slow down too.

The other problem is that the adapter can't be used with the motherboard inside the original case.
I thought I'd taken that into account when I did the design, but it seems I forgot about it and made the board a bit too big...

[Изображение: 2ldkxt.jpg]

These are prototypes though, so some of these issues were to be expected.
Also, if you leave the stock heatsink / shield on the mobo, the plastic part of the IDE socket sits touching the shield (but works fine).

The adapter itself works fine for using a CF card adapter and developing the code. (SD / SATA adapter not tested).

It can actually read using both PIO and DMA, but there is that issue with the DMA "busy" flag on the DC never going low?

I also tried plugging the GD drive directly into the PC via a USB adapter, but it of course didn't show anything (even in Disk Management).

There is a Linux kernel driver available, so it should be possible to port it to a Windows driver??...
http://www.cs.fsu.edu/~baker/devices/lxr/http/source/linux/drivers/cdrom/gdrom.c

You can also use two adapters for extending the cable between the mobo and GD drive.
I will test this today, as I need to solder some more plugs / sockets.

@SWAT and @cybdyn - please PM me your addresses and I'll get some adapters sent out to you as soon as I've had chance to solder them. Smile

I'd like to send you TWO adapters each - do you have a preference for the type? (all types will have the IDE port on of course)...

Mobo (bottom) plug + GDD (top) socket.
Mobo (bottom) plug only.
GDD (top) socket only.

Unfortunately, I can't yet sell these to too many people unless they can help with the coding.
Please understand that the above issues will be fixed in the next batch too. These are just dev prototypes atm.

It is already possible to load ELF / BIN programs to run under KOS, so I'm sure it won't be long until we can boot SD-ISO's with them.
But, just in case people don't know... Wink

*** Disclaimer - These are NOT yet booting game images! ***

OzOnE.

Oh, thought I'd post a couple more photos, to show how high the GD board "hovers" with the adapter in between...
http://oi39.tinypic.com/2j3mr04.jpg

And here is the IDE cable routed to the CF adapter. It can be made MUCH neater of course, but it's just a test setup...
http://oi41.tinypic.com/2gxnts4.jpg


RE: Connecting IDE disks & ISA (network) card to Dreamcast - cybdyn - 21.05.2013 17:46

thnx Ozone, but i dont know what to do with your board, only for some test or for help write code. maybe later i ask you if need. but i think there are many questions to you when i start debug my board. anyway you stuff looks good)) will hope SWAT has ideas how to start work with it)))