I decided to add hard disk capability to my Amstrad PPC640 so I designed an ISA expansion board very similar to the one described at www.einide.net and built an xt-cf-lite v4.1 board with r632 of XUB. Trouble is, I can't seem to get it working. i've checked my handiwork and even made duplicates of the boards but the outcome is the same. I have managed to update the EEPROM using the xt-cf-lite so it gives me some confidence that it is mostly working.
After much messing about with different CF cards (Lemwei, Transcend, SanDisk and even an SD to CF adapter) the furthest I've got is a successful install of MSDOS 5.0 but a CHKDSK reports many errors, and it wont boot. Most of the time I don't get that far, generally speaking FDISK says there are no partitions defined, even after just creating one and rebooting. FDISK /MBR doesn't fix it. Sometimes it won't even see the drive.
Recently I've been using TESTMBR to check out what is going on and i've seen some curious results. If I write all zeros, FFs, 55s or AAs to the MBR they are verified correctly, but if I write a rising sequence or random values I get many validation errors and i get different results each time it tries to read it back.
As a final test I wrote the MBR using FDISK /MBR on the PPC then read the CF card on my linux box and printed out a hex dump of the first sector. I then used TESTMBR to read it on the PPC and compared the results. The PPC seemed to be reading back mostly correct but there is the occasional glitch where two bytes are skipped and the previous byte is repeated. This looks very much like a timing issue, could it be down to using cheap Chinese logic chips? I've just used basic 74LSxxx ics, would it be worth trying 74HCxxx ?
I'd be very grateful for any insight into what could be going on and what to try.
After much messing about with different CF cards (Lemwei, Transcend, SanDisk and even an SD to CF adapter) the furthest I've got is a successful install of MSDOS 5.0 but a CHKDSK reports many errors, and it wont boot. Most of the time I don't get that far, generally speaking FDISK says there are no partitions defined, even after just creating one and rebooting. FDISK /MBR doesn't fix it. Sometimes it won't even see the drive.
Recently I've been using TESTMBR to check out what is going on and i've seen some curious results. If I write all zeros, FFs, 55s or AAs to the MBR they are verified correctly, but if I write a rising sequence or random values I get many validation errors and i get different results each time it tries to read it back.
As a final test I wrote the MBR using FDISK /MBR on the PPC then read the CF card on my linux box and printed out a hex dump of the first sector. I then used TESTMBR to read it on the PPC and compared the results. The PPC seemed to be reading back mostly correct but there is the occasional glitch where two bytes are skipped and the previous byte is repeated. This looks very much like a timing issue, could it be down to using cheap Chinese logic chips? I've just used basic 74LSxxx ics, would it be worth trying 74HCxxx ?
I'd be very grateful for any insight into what could be going on and what to try.








