#1557 closed defect (fixed)
spi-sd-card: disk device barfs on low-capacity 2GB cards
Reported by: | Arnout Vandecappelle | Owned by: | Sebastian Huber |
---|---|---|---|
Priority: | normal | Milestone: | 4.10 |
Component: | unspecified | Version: | 4.10 |
Severity: | major | Keywords: | |
Cc: | arnout@… | Blocked By: | |
Blocking: |
Description
The SPI SD card driver sets the block size of low-capacity 2GB cards to 512 bytes even though the card reports 1024 bytes. However, the number of blocks should then also be doubled.
Failing that, the disk device layer (rtems_disk_create_log()) barfs because the partition size is larger than the disk size.
Attachments (1)
Change History (4)
Changed on 06/14/10 at 13:58:14 by Arnout Vandecappelle
Attachment: | 0001-libchip-i2c-spi-sd-card.c-Low-capacity-2GByte-cards-.patch added |
---|
comment:1 Changed on 06/14/10 at 14:36:42 by Joel Sherrill
Owner: | changed from Joel Sherrill to Sebastian Huber |
---|
comment:2 Changed on 06/14/10 at 15:10:23 by Sebastian Huber
Resolution: | → fixed |
---|---|
Status: | new → closed |
Fixed on CVS head and 4.10 branch.
comment:3 Changed on 10/10/17 at 06:35:44 by Sebastian Huber
Component: | misc → unspecified |
---|
Note: See
TracTickets for help on using
tickets.
Low capacity 2GByte cards are set back to block size 512, so block_number should be doubled.