From: "Philippe Mathieu-Daudé" <1809291@bugs.launchpad.net>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [Bug 1809291] Re: ARM PL181 (mmc for Security Digital Card) not working in Ubuntu 18.10 (CMD 2, 3 timeout). The SDC driver worked fine in Ubuntu 18.04 and earlier versions but not in Ubuntu 18.10
Date: Wed, 01 May 2019 19:48:14 -0000 [thread overview]
Message-ID: <155674009432.14336.4563620623907169400.malone@gac.canonical.com> (raw)
In-Reply-To: 154532874183.18487.10011391612831676105.malonedeb@gac.canonical.com
I googled some code from comment #2 and got a hit for "u32 RCA = (u32)0x45670000; // QEMU's hard-coded RCA". Then I found kcwang's book: https://link.springer.com/content/pdf/10.1007%2F978-3-319-51517-5.pdf and read:
"I am also grateful to Springer International Publishing AG for allowing me to disclose the source code of this book to the public for free, which are available at http://www.eecs.wsu.edu/~cs460/ARMhome for download". This link gives 404, however googling again "site:www.eecs.wsu.edu/~cs460" I found https://www.eecs.wsu.edu/~cs460/samples/ which thankfully provides sdc.tgz with the source files and binaries mentioned.
With the command provided in the bug description I could bisect to:
4e5cc6756586e967993187657dfcdde4e00288d9 is the first bad commit
commit 4e5cc6756586e967993187657dfcdde4e00288d9
Author: Philippe Mathieu-Daudé <f4bug@amsat.org>
Date: Thu Feb 22 15:12:54 2018 +0000
sdcard: simplify SD_SEND_OP_COND (ACMD41)
replace switch(single case) -> if()
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Alistair Francis <alistair.francis@xilinx.com>
Message-id: 20180215221325.7611-17-f4bug@amsat.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
** Changed in: qemu
Status: Incomplete => Confirmed
** Summary changed:
- ARM PL181 (mmc for Security Digital Card) not working in Ubuntu 18.10 (CMD 2,3 timeout). The SDC driver worked fine in Ubuntu 18.04 and earlier versions but not in Ubuntu 18.10
+ SD Card not working in Ubuntu 18.10 (CMD 2,3 timeout). The device worked fine in Ubuntu 18.04 and earlier versions but not in Ubuntu 18.10
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1809291
Title:
SD Card not working in Ubuntu 18.10 (CMD 2,3 timeout). The device
worked fine in Ubuntu 18.04 and earlier versions but not in Ubuntu
18.10
Status in QEMU:
Confirmed
Bug description:
ARM PL181 MMC card no longer working in qemu-system-arm in Ubuntu 18.10
The MMC driver code worked fine in Ubuntu 15.10 to 18.04.
The command to run qemu-system-arm is
qemu-system-arm -M versatilepb -m 256M -sd sdimage -kernel t.bin
-serial mon:stdio
During SDC initialization, SDC commands 2, 3, 9, 13, 7, 16 all timeout,
which cause subsequent read/write commands 17/24 to fail also.
Tried both ARM versatilepb and realview-pb-a8, realview-pbx-a9 boards:
all the same.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1809291/+subscriptions
next prev parent reply other threads:[~2019-05-01 20:00 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-20 17:59 [Qemu-devel] [Bug 1809291] [NEW] ARM PL181 (mmc for Security Digital Card) not working in Ubuntu 18.10 (CMD 2, 3 timeout). The SDC driver worked fine in Ubuntu 18.04 and earlier versions but not in Ubuntu 18.10 k.c. Wang
2018-12-20 18:21 ` [Qemu-devel] [Bug 1809291] " Philippe Mathieu-Daudé
2018-12-20 18:53 ` k.c. Wang
2019-01-22 18:54 ` Peter Maydell
2019-05-01 17:25 ` Philippe Mathieu-Daudé
2019-05-01 17:25 ` Philippe Mathieu-Daudé
2019-05-01 19:48 ` Philippe Mathieu-Daudé [this message]
2019-05-01 19:48 ` Philippe Mathieu-Daudé
2019-05-02 3:47 ` [Qemu-devel] [Bug 1809291] Re: SD Card not working in Ubuntu 18.10 (CMD 2, 3 timeout). The device " Philippe Mathieu-Daudé
2019-05-02 3:47 ` Philippe Mathieu-Daudé
2019-12-05 13:54 ` Misa.Z
2020-11-12 17:29 ` The Lemon Man
2020-11-16 18:40 ` Philippe Mathieu-Daudé
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=155674009432.14336.4563620623907169400.malone@gac.canonical.com \
--to=1809291@bugs.launchpad.net \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).