Ticket #1223 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

SD card no longer operational with 2.6.24

Reported by: abraxa@… Owned by: openmoko-kernel@…
Priority: highest Milestone:
Component: kernel Version: current svn head
Severity: critical Keywords:
Cc: buglog@… Blocked By:
Blocking: Estimated Completion (week):
HasPatchForReview: PatchReviewResult:
Reproducible:

Description

As described in http://lists.openmoko.org/pipermail/openmoko-kernel/2008-
February/000808.html the SD card does get detected but no valid partition table
is found. This behavior started after the update to 2.6.24.

Attachments

log.txt (25.8 KB) - added by mwester@… 5 years ago.
Console log, 2.6.24 kernel with micro-sd card inserted

Change History

comment:1 Changed 5 years ago by danielmewes@…

Actually neither reading nor writing the card works correctly. When I create a
file system on /dev/mmcblk0 using my notebook's card reader, the Neo cannot read
it. Also, wenn I write some string (e.g. echo "This is a test sentence" >
/dev/mmcblk0) onto the card using a GTA01 with 2.6.24 kernel, it shows up that
only the "T" at the beginning is actually written to the card.

Perhaps there's some timing issue?

I tested using both the shipped 512 MB card as well as another 2 GB Sandisk
micro SD.

Changed 5 years ago by mwester@…

Console log, 2.6.24 kernel with micro-sd card inserted

comment:2 Changed 5 years ago by balrogg@…

A quick potential fix for the only-first-byte-transferred (but probably
only-every-fourth-byte-transferred-ok) issue:

in linux-2.6/drivers/mmc/host/s3cmci.c

  • *(host->pio_ptr) = readl(from_ptr);

+ *(u32 *) host->pio_ptr = readl(from_ptr);

(untested!)

comment:3 Changed 5 years ago by mwester@…

  • Status changed from new to closed
  • Resolution set to fixed

Should be fixed in svn versions 4096 and beyond. (Re-open if this is not the case).

Note: See TracTickets for help on using tickets.