News:

Attention: For security reasons,please choose a user name *different* from your login name.
Also make sure to choose a secure password and change it regularly.

Main Menu

Boot from SD Card Vivado 2014.4

Started by geimel, June 01, 2015, 08:39:01 PM

Previous topic - Next topic

geimel

Hi,
i can't boot from SD Card when i use my own project. With Trenz reference project for TE0720 booting works.


The following Config is made:
Sd Clock 20 MHz
MIO configuration:SD0 MIO 40-45   CD and WP activated on EMIO

in SDK:
testperipheral.c example project from xilinx
fsbl with *((u32 *)0xF8000830) = 0x003F003F; added  in main.c

boot image was created and boot.bin copied to sd card
The fsbl in debug_info prints the following text:

Xilinx First Stage Boot Loader
Release 2014.4   May 29 2015-08:45:06
Devcfg driver initialized
Silicon Version 3.1
Boot mode is SD
SD: rc= 0
SD: Unable to open file BOOT.BIN: 3
SD_INIT_FAIL
FSBL Status = 0xA009

This Boot Mode Doesn't Support Fallback
In FsblHookFallback function

Has somebody an idea about this problem?

Thank you very much

Oleksandr Kiyenko

Hi,

Please try to :
- Change SD Clock to 50 MHz (100 MHz should also work)
- in Zynq EMIO configuration set SD to EMIO
- Connect SD input to logical '0' constant or leave it unconnected
- Generate new FSBL (in Vivado 2014.4 no need to overwrite 0xF8000830)

Best regards
Oleksandr Kiyenko

geimel

SDIO Peripheral Clock set on 50 MHz
IO Peripherals:
SD0 enabled on EMIO, Power not enabled
New FSBL generated

No change, System doesn't boot

What exact do you mean with Connect SD input to logical '0' constant or leave it unconnected
Is there any other thing to do?

Oleksandr Kiyenko

I mean signal SDIO0_CDN from SDIO_0 EMIO.

geimel

Is there a complete reference project which I can use, where the SD Interface is running?

Antti Lukats

Hi,

to our knowledge all our project work with SD card.

But we found some problems recently with some SD cards.

What we have seen, is that hama micro SD cards sometimes to not boot with TE0720 on TE0703 baseboard.
We are still investigating the reasons.

Symptoms:

1 boot from SD (hama) not working, nothing on console, FSBL fails very early. can reset many times, no boot
2 without power off insert apacer SD, reset once
3 without power off insert hama SD (same that did not boot!) reset --> boot success!

the same hama SD with different boot.bin does not have those symptoms.

So can you for some tests use different brand SD Card?

As soon as we have found the root cause for this behavior with SD card boot we apply fix and post the results

Antti Lukats

#6
Hi

please make sure that MIO pullups in PS7 config for SDIO pins are all DISABLED.
we are updating board part files and reference projects. This issue does not make problems with many SD cards, but some cards may either not boot at all, or have random issues.

https://wiki.trenz-electronic.de/display/PD/SD+Card+Interface

we will add info there when the board part files and ref designed are update to disable those pullups on MIO lines.

Please not that those software pullups on MIO40..45 have much more impact on the SD card boot than the R43 resistor on CMD line.

geimel

Quote from: Antti Lukats on June 05, 2015, 01:39:34 PM
Hi

please make sure that MIO pullups in PS7 config for SDIO pins are all DISABLED.
we are updating board part files and reference projects. This issue does not make problems with many SD cards, but some cards may either not boot at all, or have random issues.

https://wiki.trenz-electronic.de/display/PD/SD+Card+Interface

we will add info there when the board part files and ref designed are update to disable those pullups on MIO lines.

Please not that those software pullups on MIO40..45 have much more impact on the SD card boot than the R43 resistor on CMD line.

Thank you very much, This was the solution in my case