All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Maydell <1895895@bugs.launchpad.net>
To: qemu-devel@nongnu.org
Subject: [Bug 1895895] Re: Attaching SD-Card to specific SD-Bus Sabrelite (ARM)
Date: Mon, 23 Nov 2020 19:04:15 -0000	[thread overview]
Message-ID: <160615825578.15804.5383460161621433474.malone@wampee.canonical.com> (raw)
In-Reply-To: 160029128826.621.15541420718494673931.malonedeb@chaenomeles.canonical.com

The fsl-imx* SoC devices need to create aliases onto the sd-buses with
unique names; see discussion here:


https://lore.kernel.org/qemu-devel/CAFEAcA_PFGc2Ka-egqYqzMq0Nu_aRiNUPif0yntg4L56UTi7MQ@mail.gmail.com/

** Changed in: qemu
       Status: New => Confirmed

** Tags added: arm

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1895895

Title:
  Attaching SD-Card to specific SD-Bus Sabrelite (ARM)

Status in QEMU:
  Confirmed

Bug description:
  Currently, I am looking for a method of attaching an sd-card to a
  specific bus as opposed to defaulting to the first.

  QEMU Version: 5.0.0
  Specifically trying to use qemu-system-arm binary

  
  Running an "info qtree" shows the output seen in the attached image. I have attempted multiple different combinations of arguments to attempt to get the sd-card to appear on the FOURTH sd-bus but no luck. The machine type being used is Sabrelite. It should be noted that I was able to PATCH QEMU to achieve the result I expected but I had hoped this functionality was already available and did not require modification to QEMU itself.

  
  For reference, this is the patch that was made to source to allow the card to attach to a specific bus. After the change was made, an sd-card could be attached to a bus with the following flags:

  -drive file=sdcard.img,format=raw,id=mycard -device sd-
  card,drive=mycard,bus=sd-bus.0

  
  diff qemu-5.1.0.orig/hw/sd/sdhci.c qemu-5.1.0/hw/sd/sdhci.c
  1311a1312,1314
  >     static int index=0;
  >     char name[64];
  >     sprintf(name, "sd-bus.%d", index++);
  1313c1316
  <                         TYPE_SDHCI_BUS, DEVICE(s), "sd-bus");
  ---
  >                         TYPE_SDHCI_BUS, DEVICE(s), name);


  If there is a way to attach an sd-card to the specific bus that does
  NOT require this change, I'd appreciate it.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1895895/+subscriptions


  reply	other threads:[~2020-11-23 19:12 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-16 21:21 [Bug 1895895] [NEW] Attaching SD-Card to specific SD-Bus Sabrelite (ARM) David Aghaian
2020-11-23 19:04 ` Peter Maydell [this message]
2020-11-24 10:44 ` [Bug 1895895] " Philippe Mathieu-Daudé
2021-04-30 16:07 ` Thomas Huth

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=160615825578.15804.5383460161621433474.malone@wampee.canonical.com \
    --to=1895895@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.