HI everyone:
I refer to the link in the forum, and make changes to our own customized carrier board, but the sd card still works abnormally. The hardware status is measured without problems. It is suspected to be a driver problem. My changes and problems are as follows.
Reference link:
https://devtalk.nvidia.com/default/topic/1062120/jetson-nano/microsd-card-not-detected-on-jetson-nano-production-module/post/5395579/#5395579
https://devtalk.nvidia.com/default/topic/1065480/jetson-nano/jetson-nano-production-module-takes-long-time-to-boot-when-sd-card-is-inserted/
https://devtalk.nvidia.com/default/topic/1064510/sd-card-issue-with-nano-l4t-32-2-1/?offset=4#5392370
device-tree:
[code--------
diff --git a/kernel-dts/porg-plugin-manager/tegra210-porg-plugin-manager.dtsi b/kernel-dts/porg-plugin-manager/tegra210-porg-plugin-manager.dtsi
index 67283d4…bad9b67 100644
— a/kernel-dts/porg-plugin-manager/tegra210-porg-plugin-manager.dtsi
+++ b/kernel-dts/porg-plugin-manager/tegra210-porg-plugin-manager.dtsi
@@ -308,7 +308,8 @@
override@1 {
target = <&sdhci2>;
overlay {
- vmmc-supply = <&max77620_ldo6>;
- status = “okay”;
- vqmmc-supply = <&max77620_ldo6>;
no-sdio;
no-mmc;
sd-uhs-sdr104;
diff --git a/kernel-dts/tegra210-porg-p3448-common.dtsi b/kernel-dts/tegra210-porg-p3448-common.dtsi
index 4e0f741…4be84f9 100644
— a/kernel-dts/tegra210-porg-p3448-common.dtsi
+++ b/kernel-dts/tegra210-porg-p3448-common.dtsi
@@ -256,6 +256,11 @@
status = “disabled”;
/delete-property/ keep-power-in-suspend;
/delete-property/ non-removable;
- mmc-ddr-1_8v;
- mmc-ocr-mask = <3>;
- uhs-mask = <0x0>;
- max-clk-limit = <400000>;
- tap-delay = <3>;
};
sdhci@700b0200 { /* SDMMC2 for Wifi */]
Vi tegra210-p3448-0002-p3449-0000-b00.dts
sdhci@700b0400 { /* SDMMC3 for 6001b SD card */
status = “okay”;//dis-> okay changed by 21091101
vqmmc-supply = <&max77620_ldo6>;
no-sdio;
no-mmc;
sd-uhs-sdr104;
sd-uhs-sdr50;
sd-uhs-sdr25;
sd-uhs-sdr12;
cd-gpios = <&gpio TEGRA_GPIO(Y, 2) 0>;
};
[/code]
Best regards!
demsg.txt (56 KB)
Hi infovlpwm,
Did you ever connect a monitor to configure your ubuntu account? The kernel log looks not the full one.
Hi WayneWWW
I took over the monitor to configure my account, and I could start it normally if I did not connect the sd card.
Best regards!
Please share current dmesg.
Hi WayneWWW
dmesg information see the attachment.
demsg.txt (56 KB)
Did you just paste the same dmesg again? Did this log already have user account configured?
May I ask why does there are 2 boot log in your dmesg? What is the difference between first log and second log?
Hi WayneWWW
The information in the attachment is all the logs from plugging in the tf card and starting up to entering the system. The two boot messages were caused by the first error on the sd card and then restarted after a long time sd
card error.
Please also share your full dts here. Thanks.
Hi WayneWWW
dts file please see the attchment.
sdcard201911191349.txt (269 KB)
Hi,
I believe some changes have been done to the carrier board which might impact the SDMMC interface. It seems you changed vmmc/vqmmc supplies which could be used by other modules as well. Could you share details of what changes have been done to the carrier board?
Also from the shared logs, I don’t see initial kernel boot (virtual memory layout, CPU status, regulator enable, IOMMU init, PMC init etc.) prints before eMMC probe. This means the basic kernel init did not happen before eMMC probe was called.
Hi WayneWWW
About vmmc/vqmmc, The following changes have been made according to the discussion link in the forum
--------
diff --git a/kernel-dts/porg-plugin-manager/tegra210-porg-plugin-manager.dtsi b/kernel-dts/porg-plugin-manager/tegra210-porg-plugin-manager.dtsi
index 67283d4..bad9b67 100644
--- a/kernel-dts/porg-plugin-manager/tegra210-porg-plugin-manager.dtsi
+++ b/kernel-dts/porg-plugin-manager/tegra210-porg-plugin-manager.dtsi
@@ -308,7 +308,8 @@
override@1 {
target = <&sdhci2>;
_overlay_ {
- vmmc-supply = <&max77620_ldo6>;
+ status = "okay";
+ vqmmc-supply = <&max77620_ldo6>;
no-sdio;
no-mmc;
sd-uhs-sdr104;
diff --git a/kernel-dts/tegra210-porg-p3448-common.dtsi b/kernel-dts/tegra210-porg-p3448-common.dtsi
index 4e0f741..4be84f9 100644
--- a/kernel-dts/tegra210-porg-p3448-common.dtsi
+++ b/kernel-dts/tegra210-porg-p3448-common.dtsi
@@ -256,6 +256,11 @@
status = "disabled";
/delete-property/ keep-power-in-suspend;
/delete-property/ non-removable;
+ mmc-ddr-1_8v;
+ mmc-ocr-mask = <3>;
+ uhs-mask = <0x0>;
+ max-clk-limit = <400000>;
+ tap-delay = <3>;
};
sdhci@700b0200 { /* SDMMC2 for Wifi */