Xilinx ZynqMP - ZCU102: SPL not able to use MMC/SD card

Joel Carlson JoelsonCarl at gmail.com
Tue Nov 30 02:20:12 CET 2021


On Mon, Nov 29, 2021 at 4:01 PM Daniel Cizinsky <listy at gebbeth.cz> wrote:
>
> On Tue, Nov 09, 2021 at 09:21:41PM +0100, Daniel Cizinsky wrote:
> > Hi!
> >
> > I am trying to switch to as much current vanilla SW as possible on Xilinx
> > ZCU102 evaluation board.  But I am stuck at a very early stage.
> >
> > I've got U-Boot + SPL + Linux kernel & userspace compilled, but even after
> > trying hard I had no success in running SPL to read ATF, not even speaking
> > about the main U-Boot.
> I don't even know whether my e-mail went through to the conference. I just
> wanted to know, if not being able to use SD card on this board using a
> vanilla modern U-Boot SPL is a known bug, or if there are any people
> outthere using it successfully. Probably not, or they are not interested in
> sharing the simple fact.

Your messages seem to have gone to the mailing list fine.  Just so you
see someone reply, here's a response, though it may not be
particularly helpful. It's kind of like "how do I do X" and someone
answers "have you tried Y"?

I have a ZCU102 eval board. I am not using mainline U-Boot, though,
and instead use Xilinx's version of U-Boot.

repo: git://github.com/xilinx/u-boot-xlnx.git
version: xilinx-v2020.2
defconfig: xilinx_zynqmp_virt

I do modify the config to have CONFIG_OF_LIST="zynqmp-zcu102-rev1.0".

SD boot with that works fine for me.  I understand the appeal of being
on mainline if possible, but consider trying Xilinx's tree to help
your debugging (if you still have SD issues with that, then perhaps it
is a hardware problem with your board?).

>
> With rc3 I'm getting exactly the same errors:
>
> U-Boot SPL 2022.01-rc3 (Nov 29 2021 - 23:50:47 +0100)
> PMUFW:  v1.1
> Loading new PMUFW cfg obj (2024 bytes)
> Silicon version:        3
> EL Level:       EL3
> Multiboot:      0
> Trying to boot from MMC2
> spl: could not initialize mmc. error: -19
> Trying to boot from MMC1

My own boot output is very similar up to this point, but then I get:

spl_load_image_fat_os: error reading image u-boot.bin, err - -2
[some ATF prints]
U-Boot 2020.01 (Nov 24 2021 - 19:05:46 -0700)


and full U-Boot is loaded at that point  (it ends up loading
u-boot.itb off the SD card, which contains the ATF, full U-Boot, and
the device tree for U-Boot, if I recall correctly)

[snip]

Best of luck,
Joel


More information about the U-Boot mailing list