Re: [PATCH v2 2/2] RISC-V: sifive: enable SPI Flash and SD in config

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

 



Hello Antony,

On 22.08.22 13:32, Antony Pavlov wrote:
> On Tue, 26 Apr 2022 08:46:04 +0200
> Ahmad Fatoum <ahmad@xxxxxx> 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?

Thanks,
Ahmad

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |




[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux