All ioctl commands for sd card go to timeout

Open
#3,866 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
c, linux

Research direction

Reproduce sudo ./mmc status get /dev/mmcblk0 on the reported Pi 3B+ setup and inspect the resulting dmesg output. Start at the sdhost-bcm2835 __mmc_blk_ioctl_cmd error shown in the report, then determine why the ioctl times out. Done means identifying the cause and confirming that SD-card ioctl commands return successfully.

Written by the indexing model from the issue text.

Description

WIth sdtools or mmc all cmd go to timeout.
For example if i try
sudo ./mmc status get /dev/mmcblk0
then i'll get
ioctl: Connection timed out
Could not read response to SEND_STATUS from /dev/mmcblk0

I have a Pi3B+ with debian 10 (buster)
kernel: Linux raspberrypi 5.4.51-v7+ #1333 SMP Mon Aug 10 16:45:19 BST 2020 armv7l GNU/Linux
With dmesg I see
[ 941.588296] mmcblk0:
[ 1783.869652] sdhost-bcm2835 3f202000.mmc: __mmc_blk_ioctl_cmd: cmd error -110

Thanks.

Dominant language
C
Stars
13.2k
Forks
5.5k
Avg merge
2d 21h
Merged PRs (30d)
21

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from raspberrypi/linux

All issues in raspberrypi/linux

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.