-
Hi, My plan is now to get the root file system onto that microSD card and boot from there (ideally similar to what the boot would be on a jetson-xavier-nx-devkit with microSD card). I started by creating a new machine.conf following the guide in https://github.com/OE4T/meta-tegra/wiki/Creating-a-custom-MACHINE and tried adjusting the build by using some lines of the non-emmc jetson-xavier-nx-devkit.conf, such that my file now looks like this:
The following ./doflash.sh resulted in a system on the emmc. I then used ./dosdcard.sh to generate an image for the sdcard. While booting, I saw this:
The system then continued booting from emmc. My conclusion from that is, that I don't need to edit the boot order as the system tries to boot from SD already (How to do that, see #890 ).
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
If the SDcard is working from Linux but not from cboot, you probably need to break out the cboot sources to find out why. It looks like it's finding the device tree entry for the device (the 'DT-BL' mentioned in the messages), but the driver in cboot isn't able to initialize it. Unfortunately, the 'Failed to initialize' error message isn't particularly helpful, so you may need to insert additional print statements to debug further. You should not change the OTABOOTDEV and OTAGPTDEV settings - all Xavier NX SoMs use that SPI flash device for storing the boot firmware. As far as using doflash.sh to flash the SDcard - I'm not sure. You could try using the |
Beta Was this translation helpful? Give feedback.
-
Solved now.
tegra194-power-tree-p3668.dtsi: added a node that is specifying the powersupply for the node sdhci@3440000.
|
Beta Was this translation helpful? Give feedback.
Solved now.
Other than the new machine.conf based on jetson-xavier-nx-devkit with the SKU and other parameters from the eMMC version, I had to edit following files:
in recipe cboot-t19x:
linux_load.c: copied case BOOT_FROM_USB to BOOT_FROM_SD and set device_instance in the SD-case to 2 (was 0)
config_storage.c: set sd_instance to 2 (was 0)
in recipe linux-tegra:
tegra194-p3668-common.dtsi: added a node for sdhci_sd1: sdhci@3440000 (copied from provided files by board vendor). In addition, I disabled all other sd and emmc related nodes: