mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Antony Pavlov <antonynpavlov@gmail.com>
To: Ahmad Fatoum <a.fatoum@pengutronix.de>
Cc: Ahmad Fatoum <ahmad@a3f.at>, barebox@lists.infradead.org
Subject: Re: [PATCH v2 2/2] RISC-V: sifive: enable SPI Flash and SD in config
Date: Tue, 23 Aug 2022 17:35:26 +0300	[thread overview]
Message-ID: <20220823173526.72add109d20cb0b195bb74ed@gmail.com> (raw)
In-Reply-To: <afdbea2b-35a5-840d-e8e0-3548fc6203fc@pengutronix.de>

On Tue, 23 Aug 2022 07:18:02 +0200
Ahmad Fatoum <a.fatoum@pengutronix.de> wrote:

Hello Ahmad,

> Hello Antony,
> 
> On 22.08.22 13:32, Antony Pavlov wrote:
> > On Tue, 26 Apr 2022 08:46:04 +0200
> > Ahmad Fatoum <ahmad@a3f.at> wrote:
> > 
> > Hi Ahmad!
> > 
> > I'm trying to run SiFive target with emulate.pl, e.g.
> > 
> > barebox$ dd if=/dev/zero of=/tmp/1M count=1 bs=1M
> > barebox$ ./test/emulate.pl sifive_defconfig  -- -drive file=/tmp/1M,if=sd
> > ...
> > qemu-system-riscv64: -drive file=/tmp/1M,if=sd: machine type does not support if=sd,bus=0,unit=0
> > Error running emulator: 256
> > 
> > I use QEMU emulator version 5.2.0 (Debian 1:5.2+dfsg-11+deb11u2), please see https://gitlab.com/frantony/barebox-gitlab-ci-runner .
> 
> I am running QEMU emulator version 7.0.0 (Debian 1:7.0+dfsg-2~bpo11+2), where the above
> worked for just fine.
> 
> > If I skip the '-drive file=/tmp/1M,if=sd' qemu option then I see "Load access fault", e.g.
> > 
> > barebox$ ./test/emulate.pl sifive_defconfig
> > ...
> > barebox 2022.08.0-00162-g7fce4ae853b0 #1 @1661158478
> 
> Without -drive if=sd, MMC controller is probed, but no card can be detected:
> 
>   WARNING: mci0: Cannot reset the SD/MMC card
>   WARNING: mci0: Cannot reset the SD/MMC card
> 
> No crashes here. Can you update to a newer QEMU version on your CI host?
> 

I suppose I can install qemu-system-riscv*7.0 from bullseye-backports (see  
https://packages.debian.org/bullseye-backports/qemu-system-misc).

-- 
Best regards,
  Antony Pavlov



  reply	other threads:[~2022-08-23 14:34 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-26  6:46 [PATCH v2 1/2] spi: Port SiFive SPI controller driver Ahmad Fatoum
2022-04-26  6:46 ` [PATCH v2 2/2] RISC-V: sifive: enable SPI Flash and SD in config Ahmad Fatoum
2022-08-22 11:32   ` Antony Pavlov
2022-08-23  5:18     ` Ahmad Fatoum
2022-08-23 14:35       ` Antony Pavlov [this message]
2022-08-30 11:05       ` Antony Pavlov
2022-04-29  7:08 ` [PATCH v2 1/2] spi: Port SiFive SPI controller driver Sascha Hauer

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=20220823173526.72add109d20cb0b195bb74ed@gmail.com \
    --to=antonynpavlov@gmail.com \
    --cc=a.fatoum@pengutronix.de \
    --cc=ahmad@a3f.at \
    --cc=barebox@lists.infradead.org \
    --subject='Re: [PATCH v2 2/2] RISC-V: sifive: enable SPI Flash and SD in config' \
    /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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox