DEPRECATED. Please refer to SBC-sig
raspberrypi
English | 简体中文
This repository is main repository of openEuler RaspberryPi SIG, and provides scripts for building openEuler image for Raspberry Pi and related documents.
In addition, RaspberryPi SIG also aims to migrate openEuler to other SoCs, such as Rockchip and Allwinner.
- raspberrypi
To Do List
- Raspberry Pi
- Rockchip
- Allwinner
How to collaborate
You can get introduction of openEuler SBC SIG from sig-SBC.
- Issues: welcome to collaborate with us by creating new issues or reply opened issues. You can get repository list from sig-SBC.
- Join Slack workspace: openeuler-raspberrypi
- Weekly meeting schedule
- Meeting Time: The 1st and 3rd Wednesday of each month, 17:00 - 17:30 UTC+8.
- Meeting Link: There are two methods to get the meeting link which will be updated before each meeting.
- Log in to the openEuler Community website, then view the booking information of
sig-RaspberryPi例会in the meeting calendar. - Search
openEulerin mini programs of WeChat, addopenEuler mini program. Then click会议and view the booking information ofsig-RaspberryPi例会.
- Log in to the openEuler Community website, then view the booking information of
- Meeting Agenda
- Meeting Minutes
- Warmly welcome to submit Pull Requests.
File description
**NOTE: **
- Recommendation: use the openEuler-RaspberryPi images provided in the chapter How to download latest image of this documentation.
- If you need to customize the image, please refer to Building openEuler image for Raspberry Pi and Cross-compile the kernel.
- documents:
- Install openEuler on an SD card
- How to use Raspberry Pi
- Building openEuler image for Raspberry Pi
- Cross-compile the kernel
- Emulate Raspberry Pi with QEMU
- openEuler 20.03 LTS SP2 alpha version ChangeLog
- openEuler 20.03 LTS SP2 alpha version (UKUI desktop environment and Chinese input method) ChangeLog
- openEuler 20.03 LTS SP2 alpha version (DDE desktop environment and Chinese input method) ChangeLog
- openEuler 20.03 LTS SP2 alpha version (Xfce desktop environment and Chinese input method) ChangeLog
- openEuler 21.09 alpha version ChangeLog
- openEuler 21.09 alpha version (UKUI desktop and Chinese input method) ChangeLog
- openEuler 21.09 alpha version (DDE desktop and Chinese input method) ChangeLog
- openEuler 21.09 alpha version (Xfce desktop and Chinese input method) ChangeLog
- openEuler 21.09 alpha version (LXDE desktop and Chinese input method) ChangeLog
- scripts: Script for building openEuler image for Raspberry Pi
How to download latest image
Basic information of the image is as follows. more images
Other information:
- Firmware source: firmware, bluez-firmware, firmware-nonfree
How to Use image
Refer to Install openEuler on an SD card and How to use Raspberry Pi for details about how to use the image on Raspberry Pi.
How to build image locally
Prepare the environment
To build openEuler AArch64 image for Raspberry Pi, the requirements of running scripts of this repository are as follows:
- OS: openEuler or CentOS 7/8
- Hardware: AArch64 hardware, such as Raspberry Pi
For other architecture hardware, you can use QEMU to build AArch64 system emulation.
Run the scripts to build image
Refer to Script for building openEuler image for Raspberry Pi for details.
Quickly Build without kernel compilation(Recommended)
NOTICE:
Most openEuler versions are currently supported, i.e., 20.09, 20.03 LTS SP1, 21.03, 20.03 LTS SP2, 21.09, 20.03 LTS SP3, 22.03 LTS, 22.09, 22.03 LTS SP1, 23.03, 22.03 LTS SP2, 22.03 LTS SP3, 24.03 LTS, 22.03 LTS SP4 and 24.09. When building an image with Xfce/UKUI/DDE desktop environment, you need to pay attention to three issues:
- For building an image with Xfce desktop environment, note that only openEuler 21.03, 20.03 LTS SP2, 21.09, 20.03 LTS SP3, 22.03 LTS, 22.09, 22.03 LTS SP1, 23.03, 22.03 LTS SP2, 22.03 LTS SP3, 24.03 LTS, 22.03 LTS SP4 and 24.09 are currently supported.
- For building an image with DDE desktop environment, note that only openEuler 20.03 LTS SP1, 21.03, 20.03 LTS SP2, 21.09, 20.03 LTS SP3, 22.03 LTS, 22.09, 22.03 LTS SP1, 23.03, 22.03 LTS SP2, 22.03 LTS SP3, 24.03 LTS, 22.03 LTS SP4 and 24.09 are currently supported.
- Need to set the parameter
-s/--spec. Please refer to the description of this parameter for details.
Build images with packages of raspberrypi-kernel, raspberrypi-firmware, and raspberrypi-bluetooth.
Run the following command to build an image:
sudo bash build-image.sh -d DIR -r REPO -n IMAGE_NAME -s SPEC
The meaning of each parameter:
-
-d, --dir DIR
The directory for storing the image and other temporary files, which defaults to be the directory in which the script resides. If the
DIRdoes not exist, it will be created automatically.After building the image, you can find the image in
DIR/raspi_output/img/as shown in the script output. -
-r, --repo REPO_INFO
The URL/path of target repo file, or the list of repositories' baseurls. Note that, the baseurls should be separated by space and enclosed in double quotes.
Examples are as follows:
- The URL of target repo file:
https://gitee.com/src-openeuler/openEuler-repos/raw/openEuler-21.03/generic.repo. - The path of target repo file:
./openEuler-21.03.repo: for building openEuler 21.03 image, refer to https://gitee.com/src-openeuler/openEuler-repos/blob/openEuler-21.03/generic.repo for details.
- List of repo's baseurls:
"http://repo.openeuler.org/openEuler-21.03/OS/aarch64/ http://repo.openeuler.org/openEuler-21.03/EPOL/aarch64/".
- The URL of target repo file:
-
-n, --name IMAGE_NAME
The image name to be built.
For example,
openEuler-21.03.img. The default isopenEuler-raspi-aarch64.img, or it is automatically generated based on parameter:-n, --name IMAGE_NAME. -
-s, --spec SPEC
Specify the image version:
headless, image without desktop environments.xfce, image with Xfce desktop environment and related software including CJK fonts and IME.ukui, image with UKUI desktop environment and fundamental software without CJK fonts and IME.dde, image with DDE desktop environment and fundamental software without CJK fonts and IME.- The file path of rpmlist, the file contains a list of the software to be installed in the image, refer to rpmlist for details.
The default is
headless. -
-h, --help
Display help information.
Build with kernel compilation
Here, we provide two approaches to build an image, which both include compiling kernel and downloading firmware files of Raspberry Pi. These approaches will take considerably longer.
NOTICE:
Three openEuler versions are currently supported, i.e., 20.03 LTS, 20.09, 20.03 LTS SP1, 21.03, 20.03 LTS SP2, 21.09, 20.03 LTS SP3, 22.03 LTS, 22.09, 22.03 LTS SP1, 23.03, 22.03 LTS SP2, 22.03 LTS SP3, 24.03 LTS, 22.03 LTS SP4 and 24.09. When building an image with Xfce/UKUI/DDE desktop environment, you need to pay attention to four issues:
- For building an image with Xfce desktop environment, note that only openEuler 21.03, 20.03 LTS SP2, 21.09, 20.03 LTS SP3, 22.03 LTS, 22.09, 22.03 LTS SP1, 23.03, 22.03 LTS SP2, 22.03 LTS SP3, 24.03 LTS, 22.03 LTS SP4 and 24.09 are currently supported.
- openEuler 21.03: You need to select the branch openEuler-21.03 of the openEuler kernel, i.e., set the parameter
-k/--kerneltogit@gitee.com:openeuler/kernel.gitand set the parameter-b/--branchtoopenEuler-21.03.- openEuler 20.03 LTS SP2/20.03 LTS SP3: You need to select the branch openEuler-20.03-LTS of the openEuler-RaspberryPi kernel, i.e., set the parameter
-k/--kerneltogit@gitee.com:openeuler/raspberrypi-kernel.gitand set the parameter-b/--branchtoopenEuler-20.03-LTS.- openEuler 21.09: You need to select the branch openEuler-21.09 of the openEuler-RaspberryPi kernel, i.e., set the parameter
-k/--kerneltogit@gitee.com:openeuler/raspberrypi-kernel.gitand set the parameter-b/--branchtoopenEuler-21.09.- openEuler 22.03 LTS: You need to select the branch openEuler-22.03-LTS of the openEuler-RaspberryPi kernel, i.e., set the parameter
-k/--kerneltogit@gitee.com:openeuler/raspberrypi-kernel.gitand set the parameter-b/--branchtoopenEuler-22.03-LTS.- openEuler 22.09: You need to select the branch openEuler-22.09 of the openEuler-RaspberryPi kernel, i.e., set the parameter
-k/--kerneltogit@gitee.com:openeuler/raspberrypi-kernel.gitand set the parameter-b/--branchtoopenEuler-22.09.- openEuler 22.03 LTS SP1: You need to select the branch openEuler-22.03-LTS-SP1 of the openEuler-RaspberryPi kernel, i.e., set the parameter
-k/--kerneltogit@gitee.com:openeuler/raspberrypi-kernel.gitand set the parameter-b/--branchtoopenEuler-22.03-LTS-SP1.- openEuler 23.03: You need to select the branch openEuler-23.03 of the openEuler-RaspberryPi kernel, i.e., set the parameter
-k/--kerneltogit@gitee.com:openeuler/raspberrypi-kernel.gitand set the parameter-b/--branchtoopenEuler-23.03.- openEuler 22.03 LTS SP2: You need to select the branch openEuler-22.03-LTS-SP2 of the openEuler-RaspberryPi kernel, i.e., set the parameter
-k/--kerneltogit@gitee.com:openeuler/raspberrypi-kernel.gitand set the parameter-b/--branchtoopenEuler-22.03-LTS-SP2.- openEuler 22.03 LTS SP3/22.03 LTS SP4: You need to select the branch OLK-5.10 of the openEuler-RaspberryPi kernel, i.e., set the parameter
-k/--kerneltogit@gitee.com:openeuler/raspberrypi-kernel.gitand set the parameter-b/--branchtoOLK-5.10.- openEuler 24.03 LTS/24.09: You need to select the branch OLK-6.6 of the openEuler-RaspberryPi kernel, i.e., set the parameter
-k/--kerneltogit@gitee.com:openeuler/raspberrypi-kernel.gitand set the parameter-b/--branchtoOLK-6.6.- For building an image with UKUI desktop environment, note that only openEuler 20.09, 20.03 LTS SP1, 21.03, 20.03 LTS SP2, 21.09, 20.03 LTS SP3, 22.03 LTS, 22.09, 22.03 LTS SP1, 23.03, 22.03 LTS SP2, 22.03 LTS SP3, 24.03 LTS, 22.03 LTS SP4 and 24.09 are currently supported.
- openEuler 20.09: You need to select the branch openEuler-20.09 of the openEuler-RaspberryPi kernel, i.e., set the parameter
-k/--kerneltogit@gitee.com:openeuler/raspberrypi-kernel.gitand set the parameter-b/--branchtoopenEuler-20.09.- openEuler 20.03 LTS SP1/20.03 LTS SP2/20.03 LTS SP3: You need to select the branch openEuler-20.03-LTS of the openEuler-RaspberryPi kernel, i.e., set the parameter
-k/--kerneltogit@gitee.com:openeuler/raspberrypi-kernel.gitand set the parameter-b/--branchtoopenEuler-20.03-LTS.- openEuler 21.03: You need to select the branch openEuler-21.03 of the openEuler kernel, i.e., set the parameter
-k/--kerneltogit@gitee.com:openeuler/kernel.gitand set the parameter-b/--branchtoopenEuler-21.03.- openEuler 21.09: You need to select the branch openEuler-21.09 of the openEuler-RaspberryPi kernel, i.e., set the parameter
-k/--kerneltogit@gitee.com:openeuler/raspberrypi-kernel.gitand set the parameter-b/--branchtoopenEuler-21.09.- openEuler 22.03 LTS: You need to select the branch openEuler-22.03-LTS of the openEuler-RaspberryPi kernel, i.e., set the parameter
-k/--kerneltogit@gitee.com:openeuler/raspberrypi-kernel.gitand set the parameter-b/--branchtoopenEuler-22.03-LTS.- openEuler 22.09: You need to select the branch openEuler-22.09 of the openEuler-RaspberryPi kernel, i.e., set the parameter
-k/--kerneltogit@gitee.com:openeuler/raspberrypi-kernel.gitand set the parameter-b/--branchtoopenEuler-22.09.- openEuler 22.03 LTS SP1: You need to select the branch openEuler-22.03-LTS-SP1 of the openEuler-RaspberryPi kernel, i.e., set the parameter
-k/--kerneltogit@gitee.com:openeuler/raspberrypi-kernel.gitand set the parameter-b/--branchtoopenEuler-22.03-LTS-SP1.- openEuler 23.03: You need to select the branch openEuler-23.03 of the openEuler-RaspberryPi kernel, i.e., set the parameter
-k/--kerneltogit@gitee.com:openeuler/raspberrypi-kernel.gitand set the parameter-b/--branchtoopenEuler-23.03.- openEuler 22.03 LTS SP2: You need to select the branch openEuler-22.03-LTS-SP2 of the openEuler-RaspberryPi kernel, i.e., set the parameter
-k/--kerneltogit@gitee.com:openeuler/raspberrypi-kernel.gitand set the parameter-b/--branchtoopenEuler-22.03-LTS-SP2.- openEuler 22.03 LTS SP3/22.03 LTS SP4: You need to select the branch OLK-5.10 of the openEuler-RaspberryPi kernel, i.e., set the parameter
-k/--kerneltogit@gitee.com:openeuler/raspberrypi-kernel.gitand set the parameter-b/--branchtoOLK-5.10.- openEuler 24.03 LTS/24.09: You need to select the branch OLK-6.6 of the openEuler-RaspberryPi kernel, i.e., set the parameter
-k/--kerneltogit@gitee.com:openeuler/raspberrypi-kernel.gitand set the parameter-b/--branchtoOLK-6.6.- For building an image with DDE desktop environment, note that only openEuler 20.03 LTS SP1, 21.03, 20.03 LTS SP2, 21.09, 20.03 LTS SP3, 22.03 LTS, 22.09, 22.03 LTS SP1, 23.03, 22.03 LTS SP2, 22.03 LTS SP3, 24.03 LTS, 22.03 LTS SP4 and 24.09 are currently supported.
- openEuler 20.03 LTS SP1/20.03 LTS SP2/20.03 LTS SP3: You need to select the branch openEuler-20.03-LTS of the openEuler-RaspberryPi kernel, i.e., set the parameter
-k/--kerneltogit@gitee.com:openeuler/raspberrypi-kernel.gitand set the parameter-b/--branchtoopenEuler-20.03-LTS.- openEuler 21.03: You need to select the branch openEuler-21.03 of the openEuler kernel, i.e., set the parameter
-k/--kerneltogit@gitee.com:openeuler/kernel.gitand set the parameter-b/--branchtoopenEuler-21.03.- openEuler 21.09: You need to select the branch openEuler-21.09 of the openEuler-RaspberryPi kernel, i.e., set the parameter
-k/--kerneltogit@gitee.com:openeuler/raspberrypi-kernel.gitand set the parameter-b/--branchtoopenEuler-21.09.- openEuler 22.03 LTS: You need to select the branch openEuler-22.03-LTS of the openEuler-RaspberryPi kernel, i.e., set the parameter
-k/--kerneltogit@gitee.com:openeuler/raspberrypi-kernel.gitand set the parameter-b/--branchtoopenEuler-22.03-LTS.- openEuler 22.09: You need to select the branch openEuler-22.09 of the openEuler-RaspberryPi kernel, i.e., set the parameter
-k/--kerneltogit@gitee.com:openeuler/raspberrypi-kernel.gitand set the parameter-b/--branchtoopenEuler-22.09.- openEuler 22.03 LTS SP1: You need to select the branch openEuler-22.03-LTS-SP1 of the openEuler-RaspberryPi kernel, i.e., set the parameter
-k/--kerneltogit@gitee.com:openeuler/raspberrypi-kernel.gitand set the parameter-b/--branchtoopenEuler-22.03-LTS-SP1.- openEuler 23.03: You need to select the branch openEuler-23.03 of the openEuler-RaspberryPi kernel, i.e., set the parameter
-k/--kerneltogit@gitee.com:openeuler/raspberrypi-kernel.gitand set the parameter-b/--branchtoopenEuler-23.03.- openEuler 22.03 LTS SP2: You need to select the branch openEuler-22.03-LTS-SP2 of the openEuler-RaspberryPi kernel, i.e., set the parameter
-k/--kerneltogit@gitee.com:openeuler/raspberrypi-kernel.gitand set the parameter-b/--branchtoopenEuler-22.03-LTS-SP2.- openEuler 22.03 LTS SP3/22.03 LTS SP4: You need to select the branch OLK-5.10 of the openEuler-RaspberryPi kernel, i.e., set the parameter
-k/--kerneltogit@gitee.com:openeuler/raspberrypi-kernel.gitand set the parameter-b/--branchtoOLK-5.10.- openEuler 24.03 LTS/24.09: You need to select the branch OLK-6.6 of the openEuler-RaspberryPi kernel, i.e., set the parameter
-k/--kerneltogit@gitee.com:openeuler/raspberrypi-kernel.gitand set the parameter-b/--branchtoOLK-6.6.- Need to set the parameter
-s/--spec. Please refer to the description of this parameter for details.
Build on host
Run the following command to build an image:
sudo bash build-image-common.sh -n IMAGE_NAME -k KERNEL_URL -b KERNEL_BRANCH -c KERNEL_DEFCONFIG -r REPO -s SPEC --cores N
After building the image, you can find the image in raspi_output_common/img/ of the directory in which the script resides as shown in the script output.
The meaning of each parameter:
-
-n, --name IMAGE_NAME
The image name to be built.
For example,
openEuler-20.03-LTS-SP1.img. The default isopenEuler-raspi-aarch64.img, or it is automatically generated based on parameter:-n, --name IMAGE_NAME. -
-k, --kernel KERNEL_URL
The URL of kernel source repository, which defaults to
https://gitee.com/openeuler/raspberrypi-kernel.git. You can set the parameter asgit@gitee.com:openeuler/raspberrypi-kernel.gitorgit@gitee.com:openeuler/kernel.gitaccording to the requirement. -
-b, --branch KERNEL_BRANCH
The branch name of kernel source repository, which defaults to
openEuler-20.03-LTS.openEuler-21.09,openEuler-20.03-LTSoropenEuler-20.09is recommended. -
-c, --config KERNEL_DEFCONFIG
The filename/path of configuration for compiling kernel, which defaults to
openeuler-raspi_defconfig. If this parameter is the filename of configuration, please make sure the configuration file in arch/arm64/configs of the kernel source. -
-r, --repo REPO_INFO
The URL/path of target repo file, or the list of repositories' baseurls. Note that, the baseurls should be separated by space and enclosed in double quotes.
Examples are as follows:
- The URL of target repo file:
https://gitee.com/src-openeuler/openEuler-repos/raw/openEuler-20.03-LTS-SP1/generic.repo - The path of target repo file:
./openEuler-20.03-LTS-SP1.repo: for building openEuler 20.03 LTS SP1 image, refer to https://gitee.com/src-openeuler/openEuler-repos/blob/openEuler-20.03-LTS-SP1/generic.repo for details.
- List of repo's baseurls:
"http://repo.openeuler.org/openEuler-20.03-LTS-SP1/OS/aarch64/ http://repo.openeuler.org/openEuler-20.03-LTS-SP1/EPOL/aarch64/".
- The URL of target repo file:
-
-s, --spec SPEC
Specify the image version:
headless, image without desktop environments.xfce, image with Xfce desktop environment and related software including CJK fonts and IME.ukui, image with UKUI desktop environment and fundamental software without CJK fonts and IME.dde, image with DDE desktop environment and fundamental software without CJK fonts and IME.- The file path of rpmlist, the file contains a list of the software to be installed in the image, refer to rpmlist for details.
The default is
headless. -
--cores N
The number of parallel compilations, according to the actual number of CPU of the host running the script. The default is the number of processing units available.
Build in a Docker container
Run the following command to build an image:
sudo bash build-image-docker.sh -d DOCKER_FILE -n IMAGE_NAME -k KERNEL_URL -b KERNEL_BRANCH -c KERNEL_DEFCONFIG -r REPO --cores N
After building the image, you can find the image in raspi_output_common/img/ of the directory in which the script resides.
Caution, before running the script, you need to install Docker. The script will automatically import the Docker image into the local system according to the script's parameter: DOCKER_FILE.
In addition to the parameter DOCKER_FILE, the other parameters are the same as the corresponding parameters in Build on host:
-
-d, --docker DOCKER_FILE
The URL/path of the Docker image, which defaults to
https://repo.openeuler.org/openEuler-20.03-LTS-SP1/docker_img/aarch64/openEuler-docker.aarch64.tar.xz. With the default parameter, the script will automatically download the Docker image of openEuler 20.03 LTS SP1 and import it into the local system.