HDD GURU FORUMS
http://forum.hddguru.com/

Cloned drive has intermittent Linux crc error
http://forum.hddguru.com/viewtopic.php?f=10&t=42401
Page 1 of 1

Author:  2014beta [ May 14th, 2022, 15:14 ]
Post subject:  Cloned drive has intermittent Linux crc error

Have an old arcade machine that runs Linux OS, IDE drive. Cloned IDE drive to SATA SSD. Arcade machine boots with SATA IDE adapter Bacchae mobo has no SATA ports. Works fine every time

Cloned to a different brand SSD and intermittently get CRC errors when uncompressing the kernel on boot, other times it works fine. Thinking it was a bad drive, I cloned to another drive of the same brand. Same intermittent CRC error

It appears there is some incompatibility with the brand of SSD and/or the SATA IDE adapter. Any tips on what to look for on which drives/adapters will work?

Author:  labtech [ May 15th, 2022, 11:44 ]
Post subject:  Re: Cloned drive has intermittent Linux crc error

It is kind of "hit or miss" with rare set ups like that.
Could you buy the same brand/model SSD that was successful first time around?

Author:  fzabkar [ May 15th, 2022, 11:59 ]
Post subject:  Re: Cloned drive has intermittent Linux crc error

Which adapter are you using? What is the bridge IC?

Author:  sourcerer [ May 16th, 2022, 14:02 ]
Post subject:  Re: Cloned drive has intermittent Linux crc error

CRC errors usually means communication problems between the disk and the computer, so check/replace the cables, clean the contacts, mount/shield the cables away from potentially interfering EM fields.

Author:  fzabkar [ May 16th, 2022, 14:29 ]
Post subject:  Re: Cloned drive has intermittent Linux crc error

The datasheets for various SATA-IDE bridge ICs stipulate an allowable operating range of 3.3V +/-0.3V for the digital I/O supply. I expect that the arcade game runs off 5V, as would most PCs (?). Therefore I'm wondering just how reliable the IDE interface can be. :-?

JMicron JM20330:
http://www.users.on.net/~fzabkar/temp/JM20330_Spec_Rev.-2.3.pdf

Sunplus SPIF223A ATA to Serial ATA Bi-directional Bridge, QFP-64:
http://monitor.espec.ws/files/spif223a_182.pdf

Marvell 88SA8052 SATA-PATA bridge (page 17):
http://cache.amobbs.com/bbs_upload782111/files_24/ourdev_524768.pdf

Attachments:
spif223a_182.pdf [280 KiB]
Downloaded 218 times
ourdev_524768.pdf [861.66 KiB]
Downloaded 220 times
JM20330_Spec_Rev.-2.3.pdf [1.56 MiB]
Downloaded 320 times

Author:  fzabkar [ May 16th, 2022, 16:00 ]
Post subject:  Re: Cloned drive has intermittent Linux crc error

This thread claims that the IDE specification guarantees that a voltage level of 2.4V on any I/O pin will be seen as a high logic state.

https://forums.parallax.com/discussion/116800/ide-interface-at-3-3v

Nevertheless I'm wondering if modifying the 3.3V regulator on the adapter so that it delivers 3.6V might improve things.

Author:  2014beta [ May 16th, 2022, 19:27 ]
Post subject:  Re: Cloned drive has intermittent Linux crc error

fzabkar wrote:
Which adapter are you using? What is the bridge IC?


So I think there was a lot of value to this question. First, the SSD uses a Ramaxel controller.

The two SATA->IDE controllers that failed were JM20330 and some other chip that I couldn't make out the letters on.

I picked up the more expensive StarTech IDE2SAT2 which uses Marvell 88SA8052 and it works beautifully. I was about 8 for 8 in boots without errors.

So there is an obvious difference between the chips...does anyone know any cheaper controllers that might have better compatibility?

Author:  2014beta [ May 16th, 2022, 19:30 ]
Post subject:  Re: Cloned drive has intermittent Linux crc error

fzabkar wrote:
The datasheets for various SATA-IDE bridge ICs stipulate an allowable operating range of 3.3V +/-0.3V for the digital I/O supply. I expect that the arcade game runs off 5V, as would most PCs (?). Therefore I'm wondering just how reliable the IDE interface can be. :-?

JMicron JM20330:
http://www.users.on.net/~fzabkar/temp/JM20330_Spec_Rev.-2.3.pdf

Sunplus SPIF223A ATA to Serial ATA Bi-directional Bridge, QFP-64:
http://monitor.espec.ws/files/spif223a_182.pdf

Marvell 88SA8052 SATA-PATA bridge (page 17):
http://cache.amobbs.com/bbs_upload782111/files_24/ourdev_524768.pdf


The arcade has a conventional computer power supply. Getting very close to 12V and 5V at the adapter. I've not seen the Sunplus yet, will see if I can find an adapter to test with that chip

Author:  fzabkar [ May 16th, 2022, 20:48 ]
Post subject:  Re: Cloned drive has intermittent Linux crc error

Those three bridges I listed all have the same pinout. The differences are in the supply voltages and configuration pins. You can see this in the Marvell PDF.

The JMicron datasheet describes the MODE pins. These allow you to select a slower UDMA interface rate. Perhaps that's the trick? You might also try disabling the SSC pin, if it isn't already.

Rohm also has a bridge which appears to be pin compatible (BU29504KV):

http://www.farnell.com/datasheets/46182.pdf

BTW, I'm not surprised that you are having problems with JMicron. Their JM20337 USB-SATA/PATA bridge had an insidious data corruption bug.

http://www.hddoracle.com/viewtopic.php?f=56&t=632

Here's a bridge from Genesis Logic (GL831A, different pinout):

http://www.arrivalelectronics.co.uk/uploads/files/GL831ADatasheet_103.pdf

Author:  2014beta [ May 17th, 2022, 7:07 ]
Post subject:  Re: Cloned drive has intermittent Linux crc error

fzabkar wrote:
Those three bridges I listed all have the same pinout. The differences are in the supply voltages and configuration pins. You can see this in the Marvell PDF.

The JMicron datasheet describes the MODE pins. These allow you to select a slower UDMA interface rate. Perhaps that's the trick? You might also try disabling the SSC pin, if it isn't already.

Rohm also has a bridge which appears to be pin compatible (BU29504KV):

http://www.farnell.com/datasheets/46182.pdf

BTW, I'm not surprised that you are having problems with JMicron. Their JM20337 USB-SATA/PATA bridge had an insidious data corruption bug.

http://www.hddoracle.com/viewtopic.php?f=56&t=632

Here's a bridge from Genesis Logic (GL831A, different pinout):

http://www.arrivalelectronics.co.uk/uploads/files/GL831ADatasheet_103.pdf


Attachments:
File comment: This is great info, thank you. I suppose I can try mode 000: 100mb/s. What do the 0s represent? Assuming I need to short the pins to ground or some voltage?
Screenshot_20220517-070406.png
Screenshot_20220517-070406.png [ 497.66 KiB | Viewed 7563 times ]

Author:  fzabkar [ May 17th, 2022, 14:26 ]
Post subject:  Re: Cloned drive has intermittent Linux crc error

Logic states 1 and 0 are set by a pullup or pulldown resistor. That is, the relevant pin is either pulled up to the 3.3V supply, or pulled down to ground. I assume a logic state of 1 corresponds to a pullup, and a logic state of 0 to a pulldown, but I'm not sure. You can refer to the schematic diagram on page 17 of the Marvell PDF to see how these pins are configured.

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/