Author Topic: microdrive compatibility  (Read 2567 times)

DiTBho

  • Newbie
  • *
  • Posts: 40
    • View Profile
microdrive compatibility
« on: February 17, 2025, 08:20:35 am »
hi,
after 10 years of service, my Hitachi microdrive died.
  • Hitachi HMS360404D5CF00, 4GB
No problem, I have the full backup of the rootfs, the problem is just replacing the broken disk with a new one.

I bought exactly the same model on eBay, but... surprise surprise it is not recognized by my C1000.
Then I returned the drive to the seller and tried a new one. Same behavior, HMS360404D5CF00 not recognized.
Then I tried a Seagate ST1, ST650211CF, which exhibits even stranger behavior:
it responds correctly to the ATA identify command, but panics on every ATA sector read command

Code: [Select]
my-mon/mips, v3.1, Feb 2025

# disk_probe
pATA drive probing ... true
00000000: 84 8a 25 da 00 00 00 10 7e 00 02 00 00 3f 00 95 | ..%..........?..
00000010: 0a 60 00 00 20 20 20 20 20 20 20 20 20 20 33 4d | .`..          3M
00000020: 45 34 4e 58 59 43 20 20 00 03 01 00 00 04 33 2e | E4NXYC  ......3.
00000030: 30 34 20 20 20 20 53 54 36 35 30 32 31 31 43 46 | 04    ST650211CF
00000040: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 |
00000050: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 80 10 |               ..
00000060: 00 00 0a 00 00 00 02 00 00 00 00 03 25 da 00 10 | ............%...
00000070: 00 3f 0a 60 00 95 01 00 0a 60 00 95 00 00 01 00 | .?.`.....`......
00000080: 00 03 00 00 00 00 00 78 00 78 00 00 00 00 00 00 | .......x.x......
00000090: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
000000a0: 00 00 00 00 70 69 50 0c 40 00 70 69 10 0c 40 00 | ....piP.@.pi..@.
000000b0: 00 00 00 00 00 00 40 40 00 00 40 0d 80 80 00 00 | ......@@..@.....
000000c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
000000d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
000000e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
000000f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00000100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00000110: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00000120: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00000130: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00000140: 81 4a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | .J..............
00000150: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00000160: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00000170: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00000180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00000190: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
000001a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
000001b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
000001c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
000001d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
000001e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
000001f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
LBA28={0..9767519} blocks
disk_blocks=9767520
disk_size~=4G 673M
model number : ST650211CF

# disk_read 0
disk_ata_read(),LBA=0
disk_ans=false

# disk_probe
no sign of life from CF drive
(this is a firmware I wrote for a MIPS32/le router, it has a 3.3V CF, exposing the same behavior I see on my C1000)

Quote
Some "OEM Only" drives use the CompactFlash form factor but only provide a 5V IDE/ATA interface.
These will not work in readers or devices which expect a 3.3V interface and full CompactFlash functionality

looking at the Seagate ST1 datasheet, I verified it's LBA28 capable.
I don't see any weird pre-init ATA commands.

Code: [Select]
macmini2-intel ~ # badblocks -svw /dev/sdd
Checking for bad blocks in read-write mode
From block 0 to 4883759
Testing with pattern 0xaa: done
Reading and comparing: done
Testing with pattern 0x55: done
Reading and comparing: done
Testing with pattern 0xff: done
Reading and comparing: done
Testing with pattern 0x00: done
Reading and comparing: done
Pass completed, 0 bad blocks found. (0/0/0 errors)
(The Seagate 5GB on the CF_usb adapter passed all the badblocks tests!)

So I put both the two new MicroDrive into a USB_CF adapter, to check them with GNU/Linux, and ... surprise both perfectly worked with the USB_CF adapter, which operates at 5V. Badblocks passed, zero error reported!

My guess...the Zaurus C1000 CF module must be 3.3V, while these two microdrives only operate at 5V!

The Seagate datasheet vaguely says 3.3V/5V, however ... on the back of the Seagate microdrive it clearly says "+5V", and in fact it does not work on machines with CF powered at 3.3V.

There is no extra label on the Hitachi HMS360404D5CF00

Comparing the microdrive that worked for 10 years on the C1000 with the new one that is not even recognized (does not respond to the Identify command), no difference is noticeable, same production number, same label...

My guess is there are actually two versions
  • Hitachi HMS360404D5CF00, 4GB, 3.3V/5V
  • Hitachi HMS360404D5CF00, 4GB, 5V-only
According to Google, not only there are also OEM versions ... but also custom IBM-made versions for their MIPS WinCE-v1.0 laptop (only sold in Japan), marked "IBM Microdrive" but made with Hitachi parts, who also made the Apple iPod drive, and whatever Apple, IBM or Hitachi microdrive you look at ...
... they are not easy to identify as "OEM" or "non-OEM", as there is no indication on the label!

Some Hitachi microdrives made for Apple iPod have a log on the front, usually the Apple logo, which means it is an OEM drive, 5V only, True-IDE only,
but other Hitachi microdrives have no indication at all.

- - -

is there a list or something about the microdrive compatibility with Zaurus PDA?
« Last Edit: February 17, 2025, 08:25:29 am by DiTBho »

DiTBho

  • Newbie
  • *
  • Posts: 40
    • View Profile
Re: microdrive compatibility
« Reply #1 on: February 17, 2025, 08:30:35 am »
A friend lent me an Hitachi HMS360404D5CF00 microdrive.
Same Hitachi model, and this time it responds to the ATA identify command and to every ATA sector_read command

Code: [Select]
# disk_probe2
pATA drive probing ... true
00000000: 84 8a 1f 00 00 00 00 10 7e 00 02 00 00 3f 00 7a | .............?.z
00000010: 10 00 00 00 20 20 20 20 20 20 20 20 20 20 20 20 | ....
00000020: 4e 32 4c 48 55 45 59 41 00 03 01 00 00 04 44 4e | N2LHUEYA......DN
00000030: 34 4f 43 41 32 41 48 4d 53 33 36 30 34 30 34 44 | 4OCA2AHMS360404D
00000040: 35 43 46 30 30 20 20 20 20 20 20 20 20 20 20 20 | 5CF00
00000050: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 80 20 |               .
00000060: 00 00 0e 00 00 00 02 00 00 00 00 03 1f 00 00 10 | ................
00000070: 00 3f 10 00 00 7a 01 00 10 00 00 7a 00 00 00 00 | .?...z.....z....
00000080: 00 03 00 00 00 00 00 78 00 78 00 00 00 00 00 00 | .......x.x......
00000090: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
000000a0: 00 1e 00 12 70 68 50 0c 40 00 70 48 10 0c 40 00 | ....phP.@.pH..@.
000000b0: 00 00 00 00 00 00 40 60 00 00 00 00 00 00 00 00 | ......@`........
000000c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
000000d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
000000e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
000000f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00000100: 00 00 00 02 00 00 01 11 00 00 00 00 00 00 00 00 | ................
00000110: 00 00 00 00 00 64 00 00 00 00 00 00 00 00 00 00 | .....d..........
00000120: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00000130: 00 00 00 00 00 00 00 00 00 00 00 00 04 b0 00 01 | ................
00000140: 81 00 80 01 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00000150: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00000160: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00000170: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00000180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00000190: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
000001a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
000001b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
000001c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
000001d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
000001e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
000001f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
LBA28={0..7999487} blocks
disk_blocks=7999488
disk_size~=3G 834M
block_n=7M 644K
model number : HMS360404D5CF00
adv PIO mode 00000300
Features/Command sets supported(1) 00006870
Features/Command sets supported(2) 00000c50
Features/Command sets supported(3) 00000040
Features/Command sets supported(4) 00004870
Features/Command sets supported(5) 00000c10
Features/Command sets supported(6) 00000040
Ultra DMA support and current mode 00000000
Advanced power management value 00006040
CFA power mode(1) 00000081
Capabilities bits 00000e00 -> is_LBA_capable=true
block_size=512byte

Code: [Select]
# disk_parts
found mac-part, blocksize=512, scanning ... done

Partition map..................... 32bit  1  63  31K 512
bootstrap......................... 32bit  64  1600  800K
kernel............................ 32bit  1664  65536  32M
swap.............................. 32bit  67200  524288  256M
rootfs............................ 32bit  591488  7408000  3G 545M 192K
(added mac-part to my monitor, it reads 64 sectors!)

This unit works perfectly, and yet... same label, same model number ...
I don't see any aesthetic differences comparing the two labels ...

« Last Edit: February 17, 2025, 08:33:05 am by DiTBho »

glu

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: microdrive compatibility
« Reply #2 on: February 21, 2025, 05:50:11 pm »
Hi DiTBho,

does it have to me microdrive? After mine died I replaced it with a CF card. There is even CF to SD adapter that worked fine too in my SL-C3200

DiTBho

  • Newbie
  • *
  • Posts: 40
    • View Profile
Re: microdrive compatibility
« Reply #3 on: February 22, 2025, 06:12:01 am »
Sure, but it's not the point here