I have followed all the forum posts in order to get our custom board sdcard working,
I am left with the final issue, after a hardreboot everything is fine,
After a softreboot (sudo reboot) i get many errors from the emmc (same as i saw in other posts)
Anyway i have attempted to add nvidia,vmmc-always-on like it said in the other posts,
But its either not working or i am not placing the nvidia,vmmc-always-on in the correct DTS file
Please can you specify exactly to which DTS file and the location in the the file that I should the nvidia,vmmc-always-on.
The softreboot issue has returned. I get emmc errors again when performing softreboot .
The issue is as following:
when i add max-clk-limit = <400000> to the sdhci@700b0400 scope, there are no emmc errors but the read/write rates from the SD card are very low.
If i remove the max-clk-limit = <400000> i get the emmc errors when i perform softreboot.
Please specify the changes I need to apply to the DTS file in order to solve this problem.
I have tried it with your solution and also many values in max-clk-limit and it still didnt work.
Anyway, I have noticed that when I perform power cycle and ran dmesg, I saw the following messages :
.
.
[ 1.842452] mmc1: SDHCI controller on sdhci-tegra.2 [sdhci-tegra.2] using ADMA 64-bit with 64 bit addr
.
.
[ 1.907874] mmc1: host does not support reading read-only switch, assuming write-enable
.
.
[ 2.057052] mmc1: Tuning correction cannot be applied [ 2.057075] mmc1: hw tuning done …
[ 2.057185] mmc1: new ultra high speed SDR104 SDHC card at address aaaa
.
.
It looks like that in hardreboot a hardware tuning is being done.
But when I perform software reset and run dmesg, I didnt see the hw tuning line:
.
.
[ 1.898276] mmc1: SDHCI controller on sdhci-tegra.2 [sdhci-tegra.2] using ADMA 64-bit with 64 bit addr
.
.
[ 1.942074] mmc1: host does not support reading read-only switch, assuming write-enable
.
.
[ 1.946669] mmc1: new high speed SDHC card at address aaaa
.
.
Is there a way to force an emmc hardware tuning when performing software reboot?