Scripts of building images for Raspberry Pi.
AArch64
There are two approaches to fetch the scripts:
Download the source code of this repository.
You can install raspberrypi-build using rpm
or dnf
command based on openEuler 20.09 repository.
dnf install raspberrypi-build
After installing raspberrypi-build, you can find the scripts and related files for building openEuler image of Raspberry Pi in /opt/raspberrypi-build
.
Run the following command to build an image:
sudo bash build-image.sh -d DIR -r REPO -n IMAGE_NAME
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 DIR
does 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
Required! 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: currently unavailable
The path of target repo file: ./openEuler-20.09.repo
The content of the repo file is as follows:
[OS]
name=OS
baseurl=http://119.3.219.20:82/openEuler:/20.09/standard_$basearch/
enabled=1
gpgcheck=0
[EPOL]
name=EPOL
baseurl=http://119.3.219.20:82/openEuler:/20.09:/Epol/standard_$basearch/
enabled=1
gpgcheck=0
List of repo's baseurls: "http://119.3.219.20:82/openEuler:/20.09/standard_aarch64/ http://119.3.219.20:82/openEuler:/20.09:/Epol/standard_aarch64/"
-n, --name IMAGE_NAME
The image name to be built.
For example, openEuler-20.09-raspi-aarch64.img
. The default is openEuler-raspi-aarch64.img
, or it is automatically generated based on parameter: -n, --name IMAGE_NAME
.
-h, --help
Display help information.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。