On 21.6.2014 г. 04:36, Theo Markettos wrote:
> Dimiter_Popoff <
d...@tgi-sci.com> wrote:
>> I am trying to start using SATA drives in a system with a SOC
>> chip which only has parallel ATA.
>
> What SoC? Intel-based, or something else?
Freescale, an MPC5200B.
>> First the adaptor was with the *wrong* connector - female
>> insetad of male (and the chip was configured as an ATA host SATA
>> device). OK, I made a gender changer.
>
> That could be a problem: some of these adaptors are PATA disc to SATA host
> and some SATA disc to PATA host. Avoid the ones that are double-ended,
> they're less likely to work (from what I read).
The chip is meant to do both ways but it is wired as
host ATA -> device SATA. That with a female connector.... and no
series termination at least on the control signals, IORDY at
the very least. Not that it was much help when I put them though,
but it was noticeable, the problem was halved (if not better),
still no good though.
>
>> Anyone with experience? Has anyone been lucky enough to have
>> an ATA -> SATA (SATA being the disk) convertor at reasonable
>> ATA speeds (33MB/S would be fine for me)?
>
> Yes. The first adaptor I bought aiming to get a Marvell, turned out to have
> a JM20330, didn't fit in the target laptop (would have needed to cut a hole
> in the motherboard). I got a bit fed up at this point, and thought I'd risk
> a JM20330 board that was the right shape. That one worked fine with the SSD
> (Kingston 30GB), Linux boots great. I think it went up to 33MB/s but no
> more (laptop southbridge didn't like DMA for some reason).
That is fairly astonishing. The JM20330 boards I got are unusable.
Here are photos of them after my 2 if not 3 days efforts:
http://tgi-sci.com/misc/DSCF0598.JPG ,
http://tgi-sci.com/misc/DSCF0599.JPG .
1 was the best, nearly worked (did cable CRC errors in a perhaps
retry-able amount but still too many - as opposed to 0 by the other
devices on that cable - and got stuck eventually). Unusable, though
I managed to copy a not so large directory tree once.
2 was the worst, it did not accept the ATA "set features" command
which sets the UDMA mode (rejected setting any mode actually, issuing
the correct status about that...). Unusable.
3 behaved similarly to 1 but almost never managed no cable CRC error,
completely unusable.
The text on the chip in 1 and 3 is the same (probably meaning
same revision), however one is printed and the other is engraved.
I think 1 was the painted one.
> You sure it isn't just expecting you to behave like the BIOS does, and any
> they never tested anything else?
Well I can't possibly know what it expects, what I do know is that
by following the ATA standard I have made 3 HDD models and perhaps
3 (if not 4 or 5) CD/DVD burners work seamlessly.
Then I spent today in further investigation, looked at the bus signals
etc., everything looks good. I played with the programmable timings
(which I had played with 5-6 years ago when I did the ATA interface
for the 5200B), there was just nothing to be had. Except if I slowed
the speed down, but slowing down from 33 MB/S is not acceptable
nowadays, I have a 500G 7200RPM drive which is probably faster
than the 33 anyway (the 5200 won't do more).
Thanks for your reply, I have abandoned the JMicron chip efforts
for now, will look for some Marvell based convertor to test - in a
while, now I have other things to do, that JM sh.t ate the time
I could afford to no sensible result.