Trenz Electronic GmbH Support Forum

Trenz Electronic Products => UltraScale => Topic started by: charlie5902 on January 02, 2019, 02:41:22 PM

Title: SD Card issues
Post by: charlie5902 on January 02, 2019, 02:41:22 PM
Hi,

I have been trying to get Linux working with the TE0803/TEBF0808 nd have some pretty good success. I am able to boot off of micro-SD using the StartKit Vivado project for HW. Problem is that the SD card is not accessible from the kernel even though it boots OK from the card.

The error I get is: mmc1: error -110 whilst initialising SD card

In addition (not sure if this related at all) I have been running with FreeRTOS and Xilinx SDK on the same HW up until now but need to port all my work to Linux. With Xilinx SDK and their file system library I was able to read files off of the SD card reliably for small files but started getting data corruption with large files, something like > 28 MB or somewhere in that area, not exactly sure. I only mention this in case there is possible a common denominator. The read functions did not report an error but the data checksum would be different on each read attempt of the file.

The Linux faiiure is a show stopper for me at the moment and any thoughts/advice/suggestions would be extremely welcome.

Thanks,

Charlie
Title: Re: SD Card issues
Post by: charlie5902 on January 06, 2019, 03:36:03 PM
Update : OK so I got it working.
The solution is to add a modification to the device tree for sdhci1 to set the no-1-v-8 property as called out in the device tree section of the Wiki for the board.
The tricky part was to apply the change in the right place for petalinux to pick up on it.
<proj-root>/project-spec/meta-user/recipes-bsp/device-tree/files/system-user.dtsi.
It is now working properly.

Title: Re: SD Card issues
Post by: JH on January 07, 2019, 03:53:02 PM
Hi,

sorry that I didn't answer earlier, but I was on holiday.
But good to hear that you find the solution by yourself.

br
John
Title: Re: SD Card issues
Post by: charlie5902 on February 01, 2019, 10:13:16 PM
Hi John - thought I'd run this by you in case you have some thoughts on an SD issue I am having.
Petalinux 2018.2 is always automounting the SD as read-only. I need to write files to one of the partitions.
I've tried modifying a custom fstab but it has no effect.
Is it possible there is something needed in the device tree to overcome this?
Any other thoughts or suggestions?

Thanks,
Charlie
Title: Re: SD Card issues
Post by: JH on February 04, 2019, 08:29:50 AM
Hi,
did you use microSD slot of the TEBF0808? If yes, change to SD or change the CPLD Firmware:
Download Firmware source code from:
and change slave CPLD top.vhd line 601 from "MIO44 <= '1'when SD_CD_S = '0' else X4;" to "MIO44 <= '0' when SD_CD_S = '0' else X4;"

If you has an other problem, try out our reference design fir 2018.2:

br
John