# SD 카드에서 Linux 운영 체제 부팅

SD 카드에서 Qualcomm 개발 키트를 부팅할 수 있습니다.

`EFI.bin` 및 `system.img` 로 플래시한 SD 카드를 준비하고, 준비된 SD 카드를 개발 키트의 SD 카드 슬롯에 삽입하세요. 개발 키트가 SD 카드에서 부팅되며, 여기에는 지속적인 작업이 보장되도록 백업 또는 중복 운영 체제가 포함됩니다.

SD 카드에서 Qualcomm 개발 키트를 부팅하려면 다음을 수행하세요.

1. SD 카드를 Qualcomm 개발 키트에 삽입합니다. 삽입한 SD 카드의 기기 노드(예: `/dev/mmcblk1` 또는 `/dev/mmcblk2`)를 확인합니다.
2. SD 카드를 포맷하려면 UART 셸에서 `mkfs.ext4 <sdcard slot>` 명령어를 실행합니다.

    다음 예시에서 SD 카드의 dev 노드는 `/dev/mmcblk1` 입니다.

mkfs.ext4 /dev/mmcblk1
        Copy to clipboard

    출력:

mke2fs 1.46.5 (30-Dec-2021)
        Found a dos partition table in /dev/mmcblk1
        Proceed anyway? (y,N) y
        Discarding device blocks: done
        Creating filesystem with 3889536 4k blocks and 972944 inodes
        Filesystem UUID: 069e04f8-0b72-4a94-aa93-f5ec03bea38d
        Superblock backups stored on blocks:
           32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208
        
        Allocating group tables: done
        Writing inode tables: done
        Creating journal (16384 blocks): done
        Writing superblocks and filesystem accounting information: done
        Copy to clipboard
3. `fdisk` 명령어를 사용하여 SD 카드에 파티션을 두 개 만들고 `efi.bin` 및 `system.img` 를 복사합니다.

    1. 첫 번째 파티션을 `vfat` 파일 시스템으로 만들어 `efi.bin` 을 복사합니다.

        파티션을 만들려면 다음 명령어를 실행하세요(예를 들어 dev 노드는 `/dev/mmcblk1` 입니다).

fdisk /dev/mmcblk1
            Copy to clipboard

        출력:

Welcome to fdisk (util-linux 2.37.4).
            Changes will remain in memory only, until you decide to write them.
            Be careful before using the write command.
            
            The device contains 'ext4' signature and it will be removed by a write command.
            See fdisk(8) man page and --wipe option for more details.
            
            Device doesn't contain a recognized partition table.
            Created a new DOS disklabel with disk identifier 0xa5fa6b03.
            
            Command (m for help): n
            Partition type
               p   primary (0 primary, 0 extended, 4 free)
               e   extended (container for logical partitions)
            Select (default p): p
            Partition number (1-4, default 1): 1
            First sector (2048-31116287, default 2048):
            Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-31116287, default 31116287): +512M
            
            Created a new partition 1 of type 'Linux' and of size 512 MiB.
            
            Command (m for help): w
            The partition table has been altered.
            Calling ioctl() to re-read partition table.
            Syncing disks.
            Copy to clipboard

        파티션을 `vfat` 파일 시스템으로 변환하려면 다음 명령어를 실행하세요.

mkfs.vfat /dev/mmcblk1p1
            Copy to clipboard

        출력:

mkfs.fat 4.2 (2021-01-31)
            Copy to clipboard

참고

이 예시에서 `First sector` 필드를 비워 두고 `Last sector` 가 `efi.bin` 을 복사할 만큼 큰지 확인하세요.
    2. `ext4` 파일 시스템으로 두 번째 파티션을 만들어 다음과 같이 `system.img` 를 복사합니다.

        파티션을 만들려면 다음 명령어를 실행하세요(예를 들어 dev 노드는 `/dev/mmcblk1` 입니다).

fdisk /dev/mmcblk1
            Copy to clipboard

        출력:

Welcome to fdisk (util-linux 2.37.4).
            Changes will remain in memory only, until you decide to write them.
            Be careful before using the write command.
            
            Command (m for help): n
            Partition type
               p   primary (1 primary, 0 extended, 3 free)
               e   extended (container for logical partitions)
            Select (default p): p
            Partition number (2-4, default 2): 2
            First sector (1050624-31116287, default 1050624):
            Last sector, +/-sectors or +/-size{K,M,G,T,P} (1050624-31116287, default 31116287): +10G
            
            Created a new partition 2 of type 'Linux' and of size 10 GiB.
            
            Command (m for help): w
            The partition table has been altered.
            Calling ioctl() to re-read partition table.
            Syncing disks.
            Copy to clipboard

        파티션을 `ext4` 파일 시스템으로 변환하려면 다음 명령어를 실행하세요.

mkfs.ext4 /dev/mmcblk1p2
            Copy to clipboard

        출력:

mke2fs 1.46.5 (30-Dec-2021)
            Discarding device blocks: done
            Creating filesystem with 2621440 4k blocks and 655360 inodes
            Filesystem UUID: 9e470d01-77fe-4382-a273-ab8b022bdd8b
            Superblock backups stored on blocks:
                     32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632
            
            Allocating group tables: done
            Writing inode tables: done
            Creating journal (16384 blocks): done
            Writing superblocks and filesystem accounting information: done
            Copy to clipboard

> 
> 
> 참고
> 
> 
> 이 예시에서 `First sector` 필드를 비워 두고 `Last sector` 가 `system.img` 를 복사할 만큼 큰지 확인하세요.
4. 다음과 같이 파티션이 만들어졌는지 확인합니다.

lsblk -f /dev/mmcblk1
        Copy to clipboard

    출력:

NAME FSTYPE FSVER LABEL UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
        mmcblk1
        |
        |-mmcblk1p1
        |    vfat               1EAC-8FF8
        `-mmcblk1p2
             ext4               9e470d01-77fe-4382-a273-ab8b022bdd8b
        Copy to clipboard
5. 호스트 컴퓨터의 성공적으로 빌드된 Qualcomm Linux 이미지에서 `efi.bin` 및 `system.img` 를 scp 명령어를 사용하여 기기에 복사합니다.

scp -r <efi.bin> <IP_address>:<path>
        scp -r <system.img> <IP_address>:<path>
        Copy to clipboard
6. 기기에서 `efi.bin` 및 `system.img` 를 SD 카드의 파티션으로 복사하려면 기기에서 다음 명령어를 실행합니다.

    - `dd if=<path>/efi.bin of=<sdcard slot> bs=4M`
    - `dd if=<path>/system.img of=<sdcard slot> bs=4M`

    기기의 `/tmp` 경로에서 두 이미지를 모두 복사하려는 경우, SD 카드에 복사하는 방법에 대한 다음 예시를 참조하세요.

dd if=/tmp/efi.bin of=/dev/mmcblk1p1 bs=4M
        
        dd if=/tmp/system.img of=/dev/mmcblk1p2 bs=4M
        Copy to clipboard

참고

이 명령어에서 SD 카드의 dev 노드는 `/dev/mmcblk1` 입니다.
7. SD 카드가 이미지를 부팅할 준비가 되었습니다. UFS 또는 eMMC의 EFI 파티션이 손상되었거나 systemd-boot가 실패하면 기기가 SD 카드에서 부팅되어 지속적인 작업을 보장합니다.

Last Published: Dec 23, 2025

[Previous Topic
Qualcomm Linux용 OTA 업데이트](https://docs.qualcomm.com/bundle/publicresource/80-70020-27KO/topics/ota_update_for_qualcomm_linux.md) [Next Topic
efivar 도구를 사용하여 UEFI 환경 변수 관리](https://docs.qualcomm.com/bundle/publicresource/80-70020-27KO/topics/manage_uefi_environment_variables_using_efivar_tool.md)