Rockbox mail archiveSubject: iriver H320 freeze after ATA power down
iriver H320 freeze after ATA power down
From: ruttmannn--- via rockbox-dev <rockbox-dev_at_cool.haxx.se>
Date: Thu, 8 Dec 2016 13:24:07 +0100
lately I'm trying to put some flash storage into an iriver H320. I want to use microSDXC, because of low prices and power consumption. So I bought some PATA to CompactFlash adapter and a CompactFlash to microSDXC interface (https://www.aliexpress.com/item/High-Speed-Dual-Micro-SD-SDHC-SDXC-TF-to-CF-Adapter-MicroSD-to-Compact-Flash-Type/32733162720.html)
And it worked out of the box with the current bootloader and current rockbox git head. I mean everything works: USB bootloader mode, Rockbox, Rockbox USB mode, updating database... Put 60GB of data on it via USB: Not one glitch.
Besides one bug, that I managed to fix:
After Rockbox put the disk to sleep the CF/microSDXC drive was unusable afterwards. Any further disk access did freeze Rockbox (Reset Pin...).
After a little trial and error I found out, that ATA power off is the reason for that freeze. So I compiled Rockbox with /*#define HAVE_ATA_POWER_OFF*/ in iriver300.h and this version is working very well.
I wonder now:
1 How comes, that Rockbox starts the storage perfectly at cold boot, but fails to do, after switching ATA power on again?
2 How much power is lost, if the ATA interface is always powered vs powered down?
thanks for any hints
Received on 2016-12-08