Installation Modes
NOTE
- The hardware supports only Raspberry Pi 3B/3B+/4B/400.
- The installation is performed by writing images to the SD card. This section describes how to write images on 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.
Writing Images on Windows
This section uses Windows 10 as an example to describe how to write images to the SD card in the Windows environment.
Formatting the SD Card
To format the SD card, perform the following procedures:
Download and install a SD card formatting tool. The following operations use SD Card Formatter as an example.
Start 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. For example, the SD card corresponds to three drive letters: E, G, and H. In Select card, you can select the drive letter E of the boot partition.
In Formatting options, select a formatting mode. The default mode is Quick format.
Click Format to start formatting. A progress bar is displayed to show the formatting progress.
After the formatting is completed, the message "Formatting was successfully completed" is displayed. Click OK.
Writing Images to the SD Card
NOTE If the compressed image file openEuler-22.03-LTS-SP3-raspi-aarch64.img.xz is obtained, decompress the file to obtain the openEuler-22.03-LTS-SP3-raspi-aarch64.img image file.
To write the openEuler-22.03-LTS-SP3-raspi-aarch64.img image file to the SD card, perform the following procedures:
- Download and install a tool for writing images. The following operations use Win32 Disk Imager as an example.
- Start Win32 Disk Imager and right-click Run as administrator.
- Select the path of the image file in IMG format from the Image File drop-down list box.
- In Device, select the drive letter of the SD card to which the image is written.
- Click Write. A progress bar is displayed to show the progress of writing the image to the SD card.
- After the write operation is completed, a dialog box is displayed, indicating that the write operation is successfully completed. Click OK.
Writing Images on 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 drive information of the SD card. For example, the drive partition corresponding to the SD card can be /dev/sdb.
Unmounting the SD Card
Run the
df -lh
command to check the mounted volumes.If the partitions corresponding to the SD card are not mounted, skip this step. If the partitions (for example, /dev/sdb1 and /dev/sdb3) are mounted, run the following commands as the root user to unmount them:
umount /dev/sdb1
umount /dev/sdb3
Writing Images to the SD Card
If the image obtained is compressed, run the
xz -d openEuler-22.03-LTS-SP3-raspi-aarch64.img.xz
command to decompress the compressed file to obtain the openEuler-22.03-LTS-SP3-raspi-aarch64.img image file. Otherwise, skip this step.Run the following command as the root user to write the
openEuler-22.03-LTS-SP3-raspi-aarch64.img
image to the SD card:dd bs=4M if=openEuler-22.03-LTS-SP3-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 on Mac
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 the root user to obtain the drive information of the SD card. For example, the drive partition corresponding to the SD card can be /dev/disk3.
Unmounting the SD Card
Run the
df -lh
command to check the mounted volumes.If the partitions corresponding to the SD card are not mounted, skip this step. If the partitions (for example, dev/disk3s1 and /dev/disk3s3) are mounted, run the following commands as the root user to unmount them:
diskutil umount /dev/disk3s1
diskutil umount /dev/disk3s3
Writing Images to the SD Card
If the image obtained is compressed, run the
xz -d openEuler-22.03-LTS-SP3-raspi-aarch64.img.xz
command to decompress the compressed file to obtain the openEuler-22.03-LTS-SP3-raspi-aarch64.img image file. Otherwise, skip this step.Run the following command as the root user to write the image
openEuler-22.03-LTS-SP3-raspi-aarch64.img
to the SD card:dd bs=4m if=openEuler-22.03-LTS-SP3-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.