

#U boot list devices code#
Next, we will use the following code to view the SD card partition. We can use mmc part to view all these partitions, but first we will need to make sure we are on the SD card by using the following code: mmc dev 0 Note that sometimes SD cards or EMMC may have multiple partitions. If part is left blank, it will default to partition 0. Where dev is used to specify the MMC device to switch to, and part is the partition. The mmc dev command is used to change and set the current MMC device. Note that SD cards will always be set as the current MMC device by default. We can see that we currently have one MMC device on our development board, which is 0 (SD). Mmc list is used to check the number of MMC devices that are currently connected to the SD card. Mmc rescan is used to scan MMC devices on the current development board. List attached devices or print device name of given device. As the common use case for Xilinx Linux Images is the usage of Flattened Image Trees, all the Linux images components (Kernel, Ramdisk and DTB) file are contained in a single file (i.e. The ‘mmc wp’ command enables power on write protect function for boot partitions. We can see that the current MMC device is a SD card, with the version number being 3.0, and having a capacity of 14.7 GiB, along with other information. In order to be able to use the FDT commands in U-Boot, the first step is to configure the address where the DTB file is stored. The ‘mmc list’ command displays the list available devices. The command is used directly without any other components. 4.1 List MMC devices In Linux you can list available MMC devices (and partitions) by checking the /dev/ directory. Mmc info is mainly used to return the device information of the selected MMC. This article talks about the U-Boot EMMC and SD card operation commands that are used most commonly.įor related subjects, please refer to the SOC Table of Contents.
