Skip to main content
You can boot up Qualcomm development kits from the SD card.
  1. Prepare the SD card by flashing it with efi.bin and rootfs.img.
  2. Insert the prepared SD card into the SD card slot of the development kit.
The development kit boots up from the SD card, which contains a backup or redundant operating system to ensure continuous operation.

Supported platforms

To prepare a bootable SD card, do the following: Prerequisites Use a Linux desktop system to perform steps 1 through 5 and prepare a bootable SD card. Procedure
  1. Verify the device node for the inserted SD card on any Linux system, for example, /dev/mmcblk1 or /dev/mmcblk2.
  2. To format the SD card, run the mkfs.ext4 <sdcard slot> command on the Linux terminal. In the following example, the dev node for the SD card is /dev/mmcblk1.
    Output:
  3. Use the fdisk command to create two partitions on the SD card to copy efi.bin and rootfs.img.
    1. Create the first partition with the vfat file system to copy efi.bin. To create the partition, run the following command (for example, the dev node is /dev/mmcblk1): In this example, leave the First sector field empty and ensure that Last sector is large enough to copy efi.bin.
      Output:
      To convert the partition to the vfat file system, run the following command:
      Output:
    2. Create the second partition with the ext4 file system to copy rootfs.img as follows: To create the partition, run the following command (for example, the dev node is /dev/mmcblk1): In this example, leave the First sector field empty and ensure that Last sector is large enough to copy rootfs.img.
      Output:
      To convert the partition to the ext4 file system, run the following command:
      Output:
  4. Verify the partitions were created:
    Output:
  5. Copy efi.bin and rootfs.img from the successfully built Qualcomm Linux image on the host computer to the partitions on the SD card. Run the following commands on the host computer:
    • dd if=<path>/efi.bin of=<sdcard slot> bs=4M
    • dd if=<path>/rootfs.img of=<sdcard slot> bs=4M To copy both images from the /tmp path, following is an example of how to copy them to the SD card: In this command, the dev node for the SD card is /dev/mmcblk1.
Result The SD card is now ready to be used as boot media for a Qualcomm Linux development kit. When an SD card is inserted, it is used as fallback boot media only if the primary flash storage (UFS or eMMC) on the development kit is unbootable.

Simulate an unbootable condition

To verify that the SD card is used as fallback boot media, you can force the primary flash storage (UFS or eMMC) into an unbootable state by erasing its EFI partition. Perform the following steps on the development kit while it’s still running from the primary storage, before inserting the SD card:
  1. Log in to the development kit over the UART console or SSH.
  2. Confirm the EFI partition is exposed as /dev/disk/by-partlabel/efi. This partition name comes from the --name=efi entry in the partitions.conf file for your platform. For more information, see Manage partitions in Qualcomm Linux.
  3. Erase the EFI partition by overwriting it with zeros:
  4. Insert the prepared SD card into the SD card slot and reboot the development kit. Because the EFI partition on the primary storage is now erased, the bootloader falls back to booting from the SD card.
Erasing the EFI partition makes the primary storage unbootable until the EFI partition is reflashed. To restore the original boot configuration, reflash the device using the steps in Flash Prebuilt Images or by rebuilding and reflashing the efi.bin image.