Ticket #1395 (closed enhancement: community)
SDHC-Support
| Reported by: | openmoko@… | Owned by: | openmoko-kernel@… |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | u-boot | Version: | current svn head |
| Severity: | minor | Keywords: | |
| Cc: | buglog@… | Blocked By: | |
| Blocking: | Estimated Completion (week): | ||
| HasPatchForReview: | PatchReviewResult: | ||
| Reproducible: |
Description
Would be nice to have u-boot support SDHC-Cards.
Attachments
Change History
Changed 5 years ago by openmoko@…
- Attachment SampleOutputOfMMCInit.txt added
comment:2 Changed 5 years ago by roh
i think this can be considered 'working' quite some time.
did a quick test with freerunner prototype 85 and a sandisk 4gb microsd:
root@om-gta02:/media/card# fdisk -l /dev/mmcblk0
Disk /dev/mmcblk0: 4075 MB, 4075290624 bytes
126 heads, 62 sectors/track, 1018 cylinders
Units = cylinders of 7812 * 512 = 3999744 bytes
Device Boot Start End Blocks Id System
/dev/mmcblk0p1 1 1018 3976277 83 Linux
root@om-gta02:/media/card# df -h /dev/mmcblk0p1
Filesystem Size Used Available Use% Mounted on
/dev/mmcblk0p1 3.7G 18.2M 3.5G 1% /media/card
in my case the card is ext2 formated
but thats only valid inside a booted linux kernel.
for uboot i fear this is a wontfix since a sdhc card can still be booted via kernel in flash, and fs on sdhc
comment:3 Changed 5 years ago by andy
- Status changed from new to closed
- Resolution set to community
I added support for SDHC on Glamo SD in U-Boot some months ago and tested it on a 4GB Sandisk SDHC card I bought. Unlike Linux U-Boot doesn't have a protocol stack concept, so it only applies to the GTA02 driver.
Also, at that time ext2 support in U-Boot simply didn't work, you have to currently make a VFAT partition initially to hold the uImage.bin so U-Boot can parse the FS. With that done SDHC boot is fine on GTA02 (on my large sample population of 1 card, anyway).
For me, adding support for SDHC in GTA01 is a WONTFIX though, but if someone else in interested they should diff the protocol parts of the Glamo MCI driver and the s3c one in U-Boot and bring the changes over. That being the case I will close this with the new figleaf "community" (while kinda expecting this very act may spark someone to actually do it ;-) )

Sample output of mmcinit for a Kingston-4GB-SDHC-card