Tx2-4g R32.3.1 control sdcard power

Want to disable power to the sdcard during boot up, and then turn on sdcard power after boot.

Finding a very large sdcard can make boot take a very long time.

Terry

hello terrysu50z,

how about detect the sd card after kernel booting-up?
could you please try this, you may add large enough boot-detect-delay into device tree.
for example,
of_property_read_u32(np, "nvidia,boot-detect-delay", &tegra_host->boot_detect_delay);

 	sdhci@3460000 {
 		uhs-mask = <0x0>; /*enable HS400 mode*/
+		nvidia,boot-detect-delay = <xxx>  // unit in ms

Thanks for the info,

will this delay cboot, and u-boot also?

u-boot is adding a large delay and sometimes hangs

Terry

hello terrysu50z,

could you please share what’s the value you’ve assign to boot-detect-delay?
is there bootloader logs for reference?

u-boot could hang/take a long time during the boot before I started looking at this problem,

My questions is will this delay cause cboot and u-boot to skip looking at the sdcard?

Do I have to set the gpio to low/high to power off the sdcard during boot?

What gpio do I need to look at to control the power to the sdcard?

Thanks,

hello terrysu50z,

it won’t skip looking at the sdcard, the code flow remain the same but only put work task in global workqueue after delay.

you have some way to turn off the sdcard and turn it back on, from an app,

We are seeing very long boot times sometimes based on what is on the sdcard

makes our standalone kiosk system look bad sometimes.

Terry

hello terrysu50z,

what exactly the content of the sdcard, how can we reproduce this issue locally?
besides, do you have kernel init logs for reference, thanks

hello terrysu50z,

please also check Boot Sequence and Sysboot Configuration Files, you may try modify default booting scan sequence.

I am having problems on the make part of the build process.

DTC arch/arm/dts/tegra20-harmony.dtb
arch/arm/dts/tegra20-harmony.dts:3:10: fatal error: dt-bindings/input/input.h: No such file or directory
#include <dt-bindings/input/input.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
scripts/Makefile.lib:299: recipe for target ‘arch/arm/dts/tegra20-harmony.dtb’ failed

I originally used /usr/bin/dtc, and I changed it to use kernel/dtc and it still fails.

How do I get u-boot to build.

Terry

found a thread and got a new download of u-boot and it compiles.

attaching the output from the flash.sh of u-boot only it failed.

seattleUBOOT.out (15.4 KB)

hello terrysu50z,

may I know what’s your command-line to update kernel partition.
according to the logs, *** Updating [LNX] with boot.img ***.
please execute this… $ sudo ./flash.sh -r -k kernel jetson-tx2 mmcblk0p.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.