#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)

0001-libchip-i2c-spi-sd-card.c-Low-capacity-2GByte-cards-.patch (823 bytes) - added by Arnout Vandecappelle on 06/14/10 at 13:58:14.
Low capacity 2GByte cards are set back to block size 512, so block_number should be doubled.

Download all attachments as: .zip

Change History (4)

Changed on 06/14/10 at 13:58:14 by Arnout Vandecappelle

Low capacity 2GByte cards are set back to block size 512, so block_number should be doubled.

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: newclosed

Fixed on CVS head and 4.10 branch.

comment:3 Changed on 10/10/17 at 06:35:44 by Sebastian Huber

Component: miscunspecified
Note: See TracTickets for help on using tickets.