• Status Closed
  • Percent Complete
  • Task Type Patches
  • Category Drivers
  • Assigned To
  • Operating System Sansa e200
  • Severity Low
  • Priority Very Low
  • Reported Version Daily build (which?)
  • Due in Version Undecided
  • Due Date Undecided
  • Votes 1
  • Private
Attached to Project: Rockbox
Opened by barrywardell - 2007-08-21
Last edited by barrywardell - 2007-08-22

FS#7634 - SDHC support

Current microSD cards only support sizes up to 2GB. In order to support larger card sizes up to 32GB, support for the SD specification version 2.00 is required ( This patch should add support for these microSD High Capacity cards, while maintaining backwards compatibility with older microSD cards.

Disclaimer: I’ve based this patch entirely on reading the SD specification version 2.00. It hasn’t been tested on an e200 yet, so since it meddles with the disk access, if I’ve made a mistake somewhere it could lead to data loss both from the SD card and the e200’s internal memory.

Closed by  barrywardell
2007-08-22 00:33
Reason for closing:  Accepted

Updated patch to not do the bank switching stuff for SDHC cards. Still untested.

framo commented on 2007-08-21 01:47

Hi Barry, many thanks for the quick posting of this patch after my comment on my problem with seeing a 4GB microSDHC card on my Sansa e280.
After applying the patch with today’s svn code, I get the following error though: “ATA error: -219 Press ON to debug” and then a lot of numbers when I press the menue button.

same result here. after restoring a previous build, all is well (no corruption on SD or internal flash as far as i can tell). i look forward to seeing how this turns out, thanks for your hard work.

How about this?

I’ve just tried this with my own 4GB microSDHC on my Sansa and it seems to work fine. I haven’t tested thoroughly though.

I just got a stack overflow when connecting the USB cable. No other patches added, except this one. While this is one of the first times I’ve gotten a stack overflow, AFAIK it usually says “*PANIC* Stkov [stack name]” though mine didn’t have a “stack name” and just said “*PANIC* Stkov”. I wasn’t able to reproduce the error, but it could possibly be related I guess.

framo commented on 2007-08-21 19:44

Barry, you are a star, I can’t believe it works!
My 4GB SanDisk microSDHC card is readable with this patch on my Sansa e280.
It shows up as a <microSD1> folder in the root directory and I am able to browse and play songs from it.
I can also use Rockbox to copy/paste between the SDHC card and the internal memory or rename/delete files.
Cut/Paste between the card and the internal memory gives a “failed” error message but it still works.
Thank you so much!

Updated version. Reads the CSD version 2.0 properly so we now have currcard→max_read_bl_len, currcard→block_size, currcard→numblocks and currcard→capacity are filled in properly. Probably won’t make any operational difference.

The cut/paste bug is a separate issue that had gone unnoticed. I’ve committed a fix to SVN.

I’m not sure about the stkov problem, but I’m guessing that’s a separate problem too.


Available keyboard shortcuts


Task Details

Task Editing