65 points · by zdw · 9mo ago · 40 comments
With a USB adapter though it's up to the adapter itself to support that which they generally don't do
If it is something important like old equipment, a CompactFlash SLC card with a PATA adapter is a proven solution.
Usually it is better to drop an old OS image into a 86box, and make the recovered backing image read-only. =3
ATAboy is about accessing early IDE HDD on current computers.
My question was which usb-ide chipsets are known to handle CHS (and not just LBA).
It's a shame really that ULPI is such a complicated interface, at least compared to RMII or SDIO, otherwise you could just buy a high speed USB ULPI phy and use it with the RP2350 via PIO. Eben even mentioned at some point someone working on a PIO ULPI implementation, but I'm assuming that went nowhere because they couldn't make it work reliably.
An alternative approach I've been considering is using a ch32v305 as a "smart" USB-HS bridge, and connecting the RP2350 via SDIO to it. The problem with that of course is you have to implement most of the USB stack on the ch32v305, and the documentation on those chips isn't great to put it mildly.
edit: whoops, that's bytes not bits per second
It also bears pointing out these microcontrollers have built-in parallel memory interface buses, which are likely compatible with IDE (which is just ISA == the 8088/8086 parallel bus on a cable.) With DMA, ketchup and fries…
cy4611b___usb_2_0_usb_to_ata_reference_design https://www.farnell.com/datasheets/62992.pdf Back around 2005 a lot of USB HDD enclosures used this exact chip.
All the above needs is LBA to CHS translation.
I intentionally did not suggest those because dealing with an 8051 isn't something I'd inflict even on my worst enemy, let alone an open source hobby project.
That said if it's vibe coded I guess the AI can deal with it? shrug
surely armed with a C compiler + LLM, this is a non problem nowadays?
"While cheap, modern adapters usually only work with newer "LBA" type drives, ATAboy works all the way back to the earliest CHS only, PIO Mode 0, ATA disks."
So I guess this would work on some particularly ancient drives that a USB adapter wouldn't work with - not that I've ever encountered one. It is vibecoded, but sounds like it would work fine to get an image off of the drive, which won't be very large compared to even modest contemporary storage capacities.
ATA (aka IDE or EIDE) was all they had before SATA so these adapters were all over the place.
WTF is a Pi for?
There's small little chips that do exactly this interface, still probably plenty available surplus for cheap since ATA is not popular any more.
Any ATA HDD that works on a mainstream USB adapter will handle CHS for DOS usage just fine, or LBA. Pretty much automatically. This was already smoothed out before about 1994 or so.
DOS of the '90's could handle LBA anyway, I like the MS-DOS from Win98SE which was not available separately by then but after W98 is installed to a FAT32 partition, the key DOS OS files in W98 will be available to copy to a fresh fat32 volume. You pretty much copy the same (newer) DOS files from W98 to your DOS root that it would have after installing DOS 6.22
Here's a USB adapter now:
https://www.amazon.com/SATA-Adapter-Converter-Cable-Drive/dp...
Not only that but Windows 10 will still install and run on drives with these old connectors just fine in BIOS mode as expected but also partitioned & formatted with the latest GPT HDD layout, GPT would boot with UEFI rather than BIOS for most mainstream configurations.
But also if you do it right, GPT will boot a plain MBR HDD if the UEFI can find a suitable FAT32 BOOT folder.
UEFI + GPT alone is just too lame to run DOS on bare metal any more. Not without BIOS mode or CSM enabled. GPT is still a show-stopper though, DOS needs MBR drive layout :(
OTOH MS-DOS will still install & run on any PC or drive, even NVMe, as long as there is a CSM or legacy BIOS mode and you are not stuck with a crippled mother board having only UEFI. GPT-only means no DOS for you. Not without some kludge like a virtual machine.
The purpose of UEFI + GPT was to make it so you couldn't run DOS, Win3.x, W9x, Wxp, Vista, W7, and Linux ever again on bare metal.
Not without CSM. The key UEFI module.
Or do you have some "smoking gun" evidence?
I think the setup screen is a really nice touch and not something an AI would come up with.
[1] https://github.com/redruM0381/ATAboy/commit/4e55223acd1c8cdc...
[2] or someone else? it keeps using the phrase "your friend"
Seems like an admission they’ve not really read the code either.