Installation Modes

NOTE:

  • The hardware supports only Raspberry Pi 3B/3B+/4B.
  • The installation is performed by writing images to the SD card. This section describes how to write images using Windows, Linux, and Mac.
  • The image used in this section is the Raspberry Pi image of openEuler. For details about how to obtain the image, see Installation Preparations.
  • [Installation Modes](./Installation Modes)
    • [Writing Images Using Windows](./Writing Images Using Windows)
      • [Formatting the SD Card](./Formatting the SD Card)
      • [Writing Images to the SD Card](./Writing Images to the SD Card)
    • [Writing Images Using Linux](./Writing Images Using Linux)
      • [Checking Drive Partition Information](./Checking Drive Partition Information)
      • [Unmouting the SD Card](./Unmouting the SD Card)
      • [Writing Images to the SD Card](./Writing Images to the SD Card)
    • [Writing Images Using the Mac OS](./Writing Images Using the Mac OS)
      • [Checking Drive Partition Information](./Checking Drive Partition Information)
      • [Unmouting the SD Card](./Unmouting the SD Card)
      • [Writing Images to the SD Card](./Writing Images to the SD Card)

Writing Images Using Windows

This section uses Windows 10 as an example to describe how to write images to the SD card using Windows.

Formatting the SD Card

To format the SD card, perform the following procedure:

  1. Download and install the tool for SD card formatting. The following operations use the SD Card Formatter as an example.

  2. Start the SD Card Formatter. In Select card, select the drive letter of the SD card to be formatted.

    If no image has been installed in the SD card, only one drive letter exists. In Select card, select the drive letter of the SD card to be formatted.

    If an image has been installed in the SD card, one or more drive letters exist. In Select card, select the drive letter E of the boot partition corresponding to the SD card to be formatted. The SD card corresponds to three drive letters: E, G, and H, as shown in the following figure:

    Figure 1 Drive letter
    ![](./figures/Drive letter)

  3. In Formatting options, select a formatting mode. The default mode is Quick format.

  4. Click Format to start formatting. A progress bar is displayed to show the formatting progress.

  5. After the formatting is completed, a dialog box is displayed, indicating that formatting is successfully completed. Click OK.

Writing Images to the SD Card

NOTE:
If the compressed image file openEuler-20.03-LTS-SP2-raspi-aarch64.img.xz is obtained, decompress the file to obtain the openEuler-20.03-LTS-SP2-raspi-aarch64.img image file.

To write the openEuler-20.03-LTS-SP2-raspi-aarch64.img image file to the SD card, perform the following procedure:

  1. Download and install the tool for writing images. The following operations use the Win32 Disk Imager as an example.
  2. Start the Win32 Disk Imager and right-click Run as administrator.
  3. Select the path of the image file in IMG format from the Image File drop-down list box.
  4. In Device, select the drive letter of the SD card to which data is written.
  5. Click Write. A progress bar is displayed to show the progress of writing data to the SD card.
  6. After the write operation is completed, a dialog box is displayed, indicating that the write operation is successfully completed. Click OK.

Writing Images Using Linux

This section describes how to write images to the SD card in the Linux environment.

Checking Drive Partition Information

Run the fdisk -l command as the root user to obtain the information of the SD card and drive partitions. For example, the drive partition corresponding to the SD card can be /dev/sdb.

Unmouting the SD Card

  1. Run the df -lh command to check the mounted volumes.

  2. If the partitions corresponding to the SD card are not mounted, skip this step. If the partitions corresponding to the SD card are mounted, for example, /dev/sdb1 and /dev/sdb3, run the following commands as the root user to unmount the partitions:

    umount /dev/sdb1

    umount /dev/sdb3

Writing Images to the SD Card

  1. If the image obtained is compressed, run the xz -d openEuler-20.03-LTS-SP2-raspi-aarch64.img.xz command to decompress the compressed file to obtain the openEuler-20.03-LTS-SP2-raspi-aarch64.img image file. Otherwise, skip this step.

  2. Run the following command as the root user to write the openEuler-20.03-LTS-SP2-raspi-aarch64.img image to the SD card:

    dd bs=4M if=openEuler-20.03-LTS-SP2-raspi-aarch64.img of=/dev/sdb

    NOTE: Generally, the block size is set to 4 MB. If the write operation fails or the written image cannot be used, you can set the block size to 1 MB and try again. However, the write operation is time-consuming when the block size is set to 1 MB.

Writing Images Using the Mac OS

This section describes how to flash images to the SD card in the Mac environment.

Checking Drive Partition Information

Run the diskutil list command as user root to obtain the information of SD cards and drive partitions. For example, the drive partition corresponding to the SD card can be /dev/disk3.

Unmouting the SD Card

  1. Run the df -lh command to check the mounted volumes.

  2. If the partitions corresponding to the SD card are not mounted, skip this step. If the partitions corresponding to the SD card are mounted, for example, dev/disk3s1 and /dev/disk3s3, run the following commands as the root user to unmount the partitions:

    diskutil umount /dev/disk3s1

    diskutil umount /dev/disk3s3

Writing Images to the SD Card

  1. If the image obtained is compressed, run the xz -d openEuler-20.03-LTS-SP2-raspi-aarch64.img.xz command to decompress the compressed file to obtain the openEuler-20.03-LTS-SP2-raspi-aarch64.img image file. Otherwise, skip this step.

  2. Run the following command as the root user to write the image openEuler-20.03-LTS-SP2-raspi-aarch64.img to the SD card:

    dd bs=4m if=openEuler-20.03-LTS-SP2-raspi-aarch64.img of=/dev/sdb

    NOTE:

    Generally, the block size is set to 4 MB. If the write operation fails or the written image cannot be used, you can set the block size to 1 MB and try again. However, the write operation is time-consuming when the block size is set to 1 MB.

有奖捉虫

“有虫”文档片段

存在的问题

提交类型 issue
有点复杂...
找人问问吧。
PR
小问题,全程线上修改...
一键搞定!
问题类型
规范和低错类

● 错别字或拼写错误;标点符号使用错误;

● 链接错误、空单元格、格式错误;

● 英文中包含中文字符;

● 界面和描述不一致,但不影响操作;

● 表述不通顺,但不影响理解;

● 版本号不匹配:如软件包名称、界面版本号;

易用性

● 关键步骤错误或缺失,无法指导用户完成任务;

● 缺少必要的前提条件、注意事项等;

● 图形、表格、文字等晦涩难懂;

● 逻辑不清晰,该分类、分项、分步骤的没有给出;

正确性

● 技术原理、功能、规格等描述和软件不一致,存在错误;

● 原理图、架构图等存在错误;

● 命令、命令参数等错误;

● 代码片段错误;

● 命令无法完成对应功能;

● 界面错误,无法指导操作;

风险提示

● 对重要数据或系统存在风险的操作,缺少安全提示;

内容合规

● 违反法律法规,涉及政治、领土主权等敏感词;

● 内容侵权;

您对文档的总体满意度

非常不满意
非常满意
创Issue赢奖品
根据您的反馈,会自动生成issue模板。您只需点击按钮,创建issue即可。