October 30th, 2026, 9:51
fzabkar wrote:I notice that the IBM WD-325N HDD has a 4KB MCU. It's amazing what could be done with a tiny amount of ROM and RAM in those days.
SGATFMT3 wrote:In the case of AT (IDE) drives:
AT (IDE) drives can be divided into three separate scenarios: Early,
Swift and ZBR.
1. EARLY: When AT interface drives (aka IDE - integrated drive
electronics, but so are SCSI's) were first introduced (ST157A family),
we strongly warned and cautioned against any attempt to lo-level
format the drives because 1) the factory written defect-mapping files
might be erased on reserved areas of the drive, and 2) the optimized
interleave and skewing values used would be forfeited giving slow
transfer rates. At this stage of development, SGATFMT3 lists these
drives only as a fall back option, in lieu of a factory repair format.
If the drive has somehow lost its original format, or the partition
structure been corrupted by a virus etc., SGATFMT3 could be used to
reformat _without_ the benefit of the defect mapping files. Any
defects will need to be "rediscovered" again; first, by the DOS high
level format and second, by a third-party disk scanning utility.
These utilities are quite likely to locate all of the hard errors, but
unlikely to find the soft errors. The only way to completely evaluate
a drive for both hard and soft error is by a factory repair with
extremely sophisticated diagnostic equipment. (See the glossary
section for HARD and SOFT ERRORS.)
2. SWIFT: As the AT interface products became more sophisticated
with new technology and the introduction of the Swift drives (models
like ST1239A, ST1201A etc), lo-level formatting became pretty much
"half" of a problem. When these drives are in translation mode
(non-physical geometry definitions), a lo-level format is harmless to
the factory defect-mapping files and optimized skewing (albeit
destructive to user data) since it doesn't re-sector the drive. If,
however, the Swift drive is in true physical mode, then the lo-level
format will re-sector the drive.
3. ZBR: Finally, today's AT interface drives (like the ST-1144A and
ST-3144A) are often Zone Bit Recorded (ZBR). ZBR drives, have variable
sectors per track, depending on the zone of the drive. The outside
tracks, being larger in circumference (i.e. track length is longer),
are able to hold more sectors than the innermost tracks. In this
scenario, it is IMPOSSIBLE to define the drive in CMOS setup with true
physical values. Cylinders and heads, yes.... but not the sectors per
track. Therefore, these drive are ALWAYS in translation mode and
immune to a re-sectoring lo-level format. On ZBR AT interface drives
(Seagate, at least... others UNK), the factory defect mapping files
are fully protected, and since the drive is always in translation, the
optimized skewing is also protected.
October 31st, 2026, 2:42
October 31st, 2026, 6:53
rasz_pl wrote:fzabkar wrote:I missed posts, replied on vogons, gonna repeat here - do NOT try formatting IDE (even xt ide) disks with MFM formatting tools.
Well, as the drive is already toast a try was worth anyway. But now I'm going an alternative route and I have something cooking in the pan. I don't know if that's gonna be successful and there's a high probability it won't, but we'll see. More updates on this later.
I saw yesterday your post on Vogons, today I'll post some photos of the ST125N's circuit board. As I use a dumb phone and I don't have a smopho (smartphone), I made the previous photos with an old Microsoft Phone I had around, that's why they were so crappy. Today I'll use something better.elizabethtaylor wrote:Michele, the platter swap is impressively methodical, but I'd suspect the LLF trouble lies with the servo/index track rather than the donor surfaces. Stepper drives like the WDI-325 still depend on a fixed index pulse and the original sector geometry written at the factory. Since you moved platters between a 325 and a 387, the track-to-head alignment and the recorded index reference won't necessarily match the new stack
October 31st, 2026, 8:32
October 31st, 2026, 18:47
hannahmiller wrote:Does the PS/2 setup utility expose those parameters, or does it assume the original drive geometry?
hannahmiller wrote:That would explain why it stops short. Keep the original platters labeled so you can backtrack.
November 1st, 2026, 3:51
elizabethtaylor wrote:Stepper drives like the WDI-325 still depend on a fixed index pulse and the original sector geometry written at the factory
elizabethtaylor wrote:The controller's low-level format routine may also be gated on a valid defect table or geometry table burned into ROM.
mima85 wrote:In the last days, with the help of Google's AI (sorry folks, I don't know i8031 assembly so I had to rely on big brother's tools, even if I'm not actually fond of AI and the whole vibe coding thing) I, naively I admit, made the robots slopify me some assembly source code to put together a sort of "factory restore" firmware, of which I thoroughly outlined the specifications. I gave to the AI the hex dump of the original IBM's firmware to make it extract from the IBM's code all that's needed to handle all the hardware and the low-level format routine itself, which appears to be actually present into the original code, and to build over it the custom firmware.
mima85 wrote:If you want I can share the code, my specifications and some other stuff that came out during the conversations
November 1st, 2026, 9:10
November 5th, 2026, 4:26
November 5th, 2026, 15:06
rasz_pl wrote:What Im trying to say is you are going to need a bigger boat.
rasz_pl wrote:For WD drive start with making robot produce annotated disassembly to the point it can name functions. Im you will need:
Trace which 8031 IO connect to two TEA3717 pins 7 8 9. Thats between 3 and 6 IO taken care of.
Trace which 8031 IO go to big IBM chip - this one incorporates
Capture all 8031 IOs, [...] give that to AI + as much pinout as you can gather. Dont mix two boards you havePick just one and stick to it, AIs are stupid and easily confuse when given too much choice.
November 5th, 2026, 18:26
November 5th, 2026, 21:35
mima85 wrote:rasz_pl wrote:What Im trying to say is you are going to need a bigger boat.
Yep, I experienced that. Code from the Google's AI is utter slop
mima85 wrote:By making Google re-analyze for each session the source it spitted out the first time, it kept finding errors, telling me how to correct them. Every time I corrected them as per detailed explanation of the AI, iterated the check/correct cycles until it told me the code was OK, closed the session, opened a new session the day after and it still found errors. And sometimes it told me to do corrections that actually in some sections brought the code back as it was initially.
mima85 wrote:rasz_pl wrote:For WD drive start with making robot produce annotated disassembly to the point it can name functions. Im you will need:
Trace which 8031 IO connect to two TEA3717 pins 7 8 9. Thats between 3 and 6 IO taken care of.
Trace which 8031 IO go to big IBM chip - this one incorporates
Capture all 8031 IOs, [...] give that to AI + as much pinout as you can gather. Dont mix two boards you havePick just one and stick to it, AIs are stupid and easily confuse when given too much choice.
Wouldn't be the disassembled original source code be enough?
mima85 wrote: Unfortunately I don't have any logic analyzer, just an analog oscilloscope and an old lab multimeter (the stuff I mainly need to occasionally fix my old analog synthesizers).
mima85 wrote:In the meantime I started to disassemble the original IBM code using Ghidra. As I said I don't know anything of Assembly, the thing that I understood today is that if I make Ghidra start the disassembly from the reset and interrupt vectors, by sequentially following the code and all the jumps it can get out most if not all of the actual code. And all the sections of bytes between any type of jump or return instruction and the next block of actual code are data and padding. Am I right with my understanding? Sorry for the silly question, as said I'm a total novice with this type of stuff.
November 6th, 2026, 3:46
rasz_pl wrote:Old schoolers will scream about committing crimes and calling Internet Police on me for this AI tutorial. How dare someone with no 8031 assembly knowledge attempt to do anything!!1Reality of 2026 is the setup above has a _very_ high chance of one-shotting this firmware and assisting with modifying it to your needs with minimal interventions.
Powered by phpBB © phpBB Group.