qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [Bug 1809291] Re: ARM PL181 (mmc for Security Digital Card)


From: Philippe Mathieu-Daudé
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

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é <address@hidden>
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é <address@hidden>
    Reviewed-by: Alistair Francis <address@hidden>
    Message-id: address@hidden
    Signed-off-by: Peter Maydell <address@hidden>


** 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]