We have a custom carrier for our TX2 NX and we’re currently trying to enable an SD card.
I’ve been looking through related posts but so far I’m getting an error code that I haven’t found any specification on.
Specifically, the error is (Full log bellow in dmesg,txt):
[ 2.049333] mmc1: error -22 whilst initialising SD card
[ 2.106941] sdhci-tegra 3440000.sdhci: no support for card's volts
I did not link any of the posts I have got through because there’s a lot them, so feel free to refer me to any of them again for something I may be overlooking or not understanding at all.
I’m not sure if the changed I’m making to the dts’s are being relevant at all because I’m always getting the mmc1: error -22 and I’m not sure why nor what it means.
Also, SD card works fine so it being broken is definitely not the problem.
Can someone try to guide me through what I need to do for our TX2 NX to recognize the SD card?
Edit: I’ve also found something that might be incorrect about our image. cat /proc/device-tree/sdhci@3400000/status yields disbaled
Which I’m assuming is incorrect.
sdhci@3400000 has nothing related to your issue. Each sdhci has a mapping to the hardware.
sdhci@3400000 is sdmmc1 of the soc, but TX2-NX has no pin out for this, so this controller has nothing to do with your issue because you are using sdmmc3.
For TX2-NX, please disable and remove bcmdhd from the device tree because it is using the sdmmc3 controller which you are using now.
That makes sense. I will keep that in mind moving forward.
Here’s the full dmesg: dmesg (1).txt (62.7 KB)
Also, to compile the dts files, I’m just running make ARCH=arm64 O=../kernel_out -j8 dtbs but I’m not sure if it’s taking any effect because i’m always seeing the same error messages in dmesg. Is this correct or do we need to do anything else before before flashing, in order to only change the device trees?
I was having a problem compiling the dts (which I now figured out what I was doing wrong).
Like you said, I disabled bcmdhd, and now we’re able to detect and write to the SD card, though we’re not able to hotplug it. What could try to do to allow hotpluging?
The connections to the SD Card are rather simple, and so far seem to work well. The current problem is the hot plug line which is connected to GPIO 08.
Before checking your log, I want to know what does that mean “hotplug” not work. Are you able to see the error message coming out when you hotplug the sdcard?
If you can, then it means the hotplug can work, the issue may not something else. Hotplug is not some magic. It is just GPIO to trigger.
We don’t see anything in dmesg when we insert and remove the sd card, if that’s what you’re asking. The only way it’s working right now is if we boot with the sd card already inserted.
So we boot up with the sd inserted.
We removed the sd (nothing happens, i.e. looks like as if it’s still inserted)
We re insert sd (nothing happens)
When we tried to read from the card again, that log happened (It did open though)
No, I’m not sure. I’m not even sure what it does honestly. It’s there from other solutions we tried to find online. Could you clarify, if you don’t mind?