{"id":360813,"date":"2024-05-21T01:00:46","date_gmt":"2024-05-21T01:00:46","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=360813"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=360813","title":{"rendered":"<span>Orange Pi 5 (\u043a\u0430\u043a \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u0439&#8230;)<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u041d\u0435\u0434\u0430\u0432\u043d\u043e \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u044f <a href=\"http:\/\/www.orangepi.org\/index.html\" rel=\"noopener noreferrer nofollow\">OrangePi<\/a> \u043e\u0431\u043d\u043e\u0432\u0438\u043b\u0430 \u043b\u0438\u043d\u0435\u0439\u043a\u0443 \u043e\u0434\u043d\u043e\u043f\u043b\u0430\u0442\u043d\u044b\u0445 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u043e\u0432 Orange Pi 5\/5B\/5+, \u0440\u0430\u0441\u043f\u0430\u044f\u0432 \u043d\u0430 \u043f\u043b\u0430\u0442\u0430\u0445 <a href=\"http:\/\/www.orangepi.org\/html\/hardWare\/computerAndMicrocontrollers\/details\/Orange-Pi-5-32GB.html\" rel=\"noopener noreferrer nofollow\">32GB LDDR4 RAM<\/a>. \u041e\u0434\u043d\u0430\u043a\u043e \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043b\u0430\u0442\u044b \u0432\u043f\u043e\u043b\u043d\u0435 \u043f\u0440\u0438\u043b\u0438\u0447\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u0438 \u0441 \u043c\u0435\u043d\u044c\u0448\u0438\u043c \u043e\u0431\u044a\u0435\u043c\u043e\u043c \u043f\u0430\u043c\u044f\u0442\u0438 \u043d\u0430 \u0431\u043e\u0440\u0442\u0443, \u0430 \u043d\u0430\u043b\u0438\u0447\u0438\u0435 SPI Nor Flash \u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f NVMe \u0434\u0438\u0441\u043a\u0430 \u0434\u0435\u043b\u0430\u044e\u0442 \u044d\u0442\u0438 \u043f\u043b\u0430\u0442\u044b \u0434\u043e\u0441\u0442\u043e\u0439\u043d\u044b\u043c\u0438 \u043a\u043e\u043d\u043a\u0443\u0440\u0435\u043d\u0442\u0430\u043c\u0438 \u0441\u0440\u0435\u0434\u0438 \u043e\u0434\u043d\u043e\u043f\u043b\u0430\u0442\u043d\u044b\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432.<\/p>\n<p>\u041d\u0430\u0441 \u0437\u0430\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u043b \u043f\u0435\u0440\u0432\u044b\u0439 \u043e\u0431\u0440\u0430\u0437\u0435\u0446 \u0441\u0435\u0440\u0438\u0438 5\/5B\/5+, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e <a href=\"http:\/\/www.orangepi.org\/html\/hardWare\/computerAndMicrocontrollers\/details\/Orange-Pi-5.html\" rel=\"noopener noreferrer nofollow\">Orange Pi 5<\/a>, \u043d\u0430 \u043f\u0440\u0435\u0434\u043c\u0435\u0442 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u043d\u0430 \u0434\u0430\u043d\u043d\u043e\u043c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0435 \u043f\u043e\u0432\u0435\u0434\u0435\u0442 \u0441\u0435\u0431\u044f <a href=\"https:\/\/www.tianocore.org\/\" rel=\"noopener noreferrer nofollow\">EDK II<\/a> \u0438 \u043c\u043e\u0436\u043d\u043e \u043b\u0438 \u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u0430\u043a, \u043a\u0430\u043a \u043c\u044b \u043f\u0440\u0438\u0432\u044b\u043a\u043b\u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u043e\u0431\u044b\u0447\u043d\u044b\u043c\u0438 \u041f\u041a.<\/p>\n<h2>Toolchain<\/h2>\n<p>\u0413\u043e\u0442\u043e\u0432\u044b\u0439\u00a0toolchain\u00a0\u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u043d\u0430 64-\u0440\u0430\u0437\u0440\u044f\u0434\u043d\u044b\u0445\u00a0<strong>Linux<\/strong>-\u043c\u0430\u0448\u0438\u043d\u0430\u0445 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043d\u0430 \u043d\u0430\u0448\u0435\u043c\u00a0<strong>FTP<\/strong>-\u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0435\u00a0<a href=\"https:\/\/ftp.radix.pro\/radix\/toolchains\/x86_64\" rel=\"noopener noreferrer nofollow\">toolchains\/x86_64<\/a>. \u0412\u044b\u0431\u0438\u0440\u0430\u0442\u044c \u0437\u0434\u0435\u0441\u044c \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044e\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u0430\u0440\u0445\u0438\u0432\u0430 \u0441 \u0438\u043c\u0435\u043d\u0435\u043c\u00a0<strong>aarch64-RK358X-linux-glibc-*.tar.xz<\/strong>.<\/p>\n<p>\u0421\u043b\u0435\u0434\u0443\u0435\u0442 \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u0434\u0430\u043d\u043d\u044b\u0439 toolchain \u043d\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0430\u0435\u043c \u0438 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 \/opt\/toolchains\/. \u0414\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043a\u0430\u0442\u0430\u043b\u043e\u0433 \u0438 \u0440\u0430\u0441\u043f\u0430\u043a\u043e\u0432\u0430\u0442\u044c \u0430\u0440\u0445\u0438\u0432:<\/p>\n<pre><code class=\"bash\">mkdir -p \/opt\/toolchains cd \/opt\/toolchains tar xJvf aarch64-RK358X-linux-glibc-1.9.8.tar.xz<\/code><\/pre>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c toolchain \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e, \u043d\u043e \u0434\u043b\u044f \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u0431\u0443\u0434\u0435\u0442 \u043d\u0435 \u043b\u0438\u0448\u043d\u0438\u043c \u0437\u0430\u0434\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f:<\/p>\n<pre><code class=\"bash\">CROSS_COMPILE=\/opt\/toolchains\/riscv64-RV64GC-linux-glibc\/1.9.8\/bin\/riscv64-rv64gc-linux-gnu- <\/code><\/pre>\n<p>\u041a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u0431\u044b\u0447\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0432 Make-\u0444\u0430\u0439\u043b\u0430\u0445 U-Boot \u0438\u043b\u0438 \u044f\u0434\u0440\u0430 Linux.<\/p>\n<p>\u0414\u043b\u044f \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u0441\u0431\u043e\u0440\u043a\u0438\u00a0toolchain-\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0441\u0440\u0435\u0437 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f\u00a0<a href=\"https:\/\/csvn.radix.pro\/toolchains\" rel=\"noopener noreferrer nofollow\">toolchains<\/a>, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440,<\/p>\n<pre><code class=\"bash\">svn co svn:\/\/radix.pro\/radix\/toolchains\/trunk toolchains<\/code><\/pre>\n<p>\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0443\u00a0<strong>make<\/strong>\u00a0\u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u043c \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0435:<\/p>\n<pre><code class=\"bash\">cd toolchains\/products\/RK358X-glibc\/1.9.8 make -j8<\/code><\/pre>\n<p>\u041d\u0430\u043f\u043e\u043c\u043d\u0438\u043c \u0437\u0434\u0435\u0441\u044c, \u0447\u0442\u043e \u043f\u0435\u0440\u0435\u0434 \u0441\u0431\u043e\u0440\u043a\u043e\u0439 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u0442\u044c \u043a\u0430\u0442\u0430\u043b\u043e\u0433 \/opt\/toolchains\/ \u0434\u043b\u044f \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u0438\u00a0toolchain-\u0430 \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u043f\u0440\u0430\u0432\u0430 \u043d\u0430 \u043d\u0435\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e, \u043e\u0442 \u0438\u043c\u0435\u043d\u0438 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u0431\u043e\u0440\u043a\u0430.<\/p>\n<h2>U-Boot<\/h2>\n<p>\u0414\u043b\u044f \u0441\u0431\u043e\u0440\u043a\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a\u0430 \u043b\u0443\u0447\u0448\u0435 \u0432\u0441\u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u0434 \u0438\u0437 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f\u00a0<a href=\"https:\/\/source.denx.de\/u-boot\/custodians\/u-boot-rockchip.git\" rel=\"noopener noreferrer nofollow\">u-boot-rockchip<\/a>. \u0413\u0434\u0435 \u0442\u0435\u0433\u043e\u043c\u00a0<strong>u-boot-rockchip-20231024<\/strong>\u00a0\u043e\u0442\u043c\u0435\u0447\u0435\u043d \u0441\u0440\u0435\u0437, \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u044e\u0449\u0438\u0439 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 SPI Nor Flash XM25QU128C. \u0414\u0430\u043d\u043d\u0430\u044f \u043c\u0438\u043a\u0440\u043e\u0441\u0445\u0435\u043c\u0430 \u0440\u0430\u0441\u043f\u0430\u044f\u043d\u0430 \u043d\u0430 \u043f\u043b\u0430\u0442\u0435 \u0438 \u043c\u043e\u0436\u0435\u0442 \u0441\u043b\u0443\u0436\u0438\u0442\u044c \u0434\u043b\u044f \u0440\u0430\u0437\u043c\u0435\u0449\u0435\u043d\u0438\u044f \u043a\u0430\u043a \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a\u0430 U-Boot, \u0442\u0430\u043a \u0438 efi-\u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a\u0430 EDK II.<\/p>\n<p>\u0421\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a \u043c\u043e\u0436\u043d\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n<pre><code class=\"bash\">git clone https:\/\/source.denx.de\/u-boot\/custodians\/u-boot-rockchip.git cd u-boot-rockchip git archive --format=tar --prefix=u-boot-rockchip-2023.10\/ u-boot-rockchip-20231024 | \\     xz >..\/u-boot-rockchip-2023.10.tar.xz cd .. rm -rf u-boot-rockchip tar xJvf u-boot-rockchip-2023.10.tar.xz git clone https:\/\/github.com\/rockchip-linux\/rkbin.git cd rkbin git archive --format=tar --prefix=rkbin-20230519\/ d6ccfe401ca84a98ca3b85c12b9554a1a43a166c | \\     xz >..\/rkbin-20230519.tar.xz cd .. rm -rf rkbin tar xJvf rkbin-20230519.tar.xz  cd u-boot-rockchip-2023.10 make orangepi-5-rk3588s_defconfig make BL31=..\/rkbin-20230519\/bin\/rk35\/rk3588_bl31_v1.38.elf \\       ROCKCHIP_TPL=..\/rkbin-20230519\/bin\/rk35\/rk3588_ddr_lp4_2112MHz_lp5_2736MHz_v1.11.bin \\      CROSS_COMPILE=\/opt\/toolchains\/aarch64-RK358X-linux-glibc\/1.9.8\/bin\/aarch64-rk358x-linux-gnu- cd ..<\/code><\/pre>\n<p>\u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435, \u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0435 u-boot-rockchip-2023.10, \u0431\u0443\u0434\u0443\u0442 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u044b \u0434\u0432\u0430 \u0444\u0430\u0439\u043b\u0430:\u00a0<strong>idbloader.img<\/strong>\u00a0\u0438\u00a0<strong>u-boot.itb<\/strong>. \u041d\u0430 SD-\u043a\u0430\u0440\u0442\u0443 \u0434\u0430\u043d\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u043f\u043e \u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u0430\u0434\u0440\u0435\u0441\u0430\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n<pre><code class=\"bash\">dd if=idbloader.img of=\/dev\/sdh bs=512 seek=64 dd if=u-boot.itb of=\/dev\/sdh bs=512 seek=16384<\/code><\/pre>\n<p>\u0413\u0434\u0435 \u0438\u043c\u044f \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u00a0<strong>\/dev\/sdh<\/strong>\u00a0\u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u043d\u0430 \u0438\u043c\u044f, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u043e\u0439 SD-\u043a\u0430\u0440\u0442\u0435.<\/p>\n<h2>EDK II<\/h2>\n<p>\u0421\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439\u00a0<a href=\"https:\/\/github.com\/edk2-porting\/edk2-rk3588\/\" rel=\"noopener noreferrer nofollow\">edk2-rk3588<\/a>, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0432\u0435\u0434\u0435\u0442\u0441\u044f \u0440\u0430\u0431\u043e\u0442\u0430 \u043f\u043e \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u044e \u0442\u0430\u043a\u0438\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 \u043a\u0430\u043a Orange Pi 5\/5B\/5+, Radxa ROCK 5A\/5B \u0438 \u043c\u043d\u043e\u0433\u0438\u0445 \u0434\u0440\u0443\u0433\u0438\u0445 \u043f\u043b\u0430\u0442 \u043d\u0430 \u0431\u0430\u0437\u0435 \u0441\u0435\u043c\u0435\u0439\u0441\u0442\u0432\u0430 SoCs \u043e\u0442 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 Rockchip.<\/p>\n<p>\u041f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u043a\u043e\u0434\u0430 EDK II \u0438 \u0435\u0433\u043e \u0441\u0431\u043e\u0440\u043a\u0430 \u043d\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0438:<\/p>\n<pre><code class=\"bash\">git clone https:\/\/github.com\/edk2-porting\/edk2-rk3588.git cd edk2-rk3588 git checkout -b v0.9.1.1 e9f0d3363e7db645e84a979542cc96b487d05f01 git submodule update --init --recursive CROSS_COMPILE=\/opt\/toolchains\/aarch64-RK358X-linux-glibc\/1.9.8\/bin\/aarch64-rk358x-linux-gnu- \\ .\/build.sh --device orangepi-5 \\             --skip-rootfs-gen<\/code><\/pre>\n<p>\u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043b\u0443\u0447\u0435\u043d \u043e\u0431\u0440\u0430\u0437\u00a0<strong>RK3588_NOR_FLASH.img<\/strong>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439, \u0434\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430, \u043c\u043e\u0436\u043d\u043e \u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0441 SD-\u043a\u0430\u0440\u0442\u044b:<\/p>\n<pre><code>dd if=RK3588_NOR_FLASH.img of=\/dev\/sdh<\/code><\/pre>\n<p>\u0438 \u0443\u0436\u0435 \u0437\u0430\u0442\u0435\u043c, \u043f\u0440\u043e\u0448\u0438\u0442\u044c \u0435\u0433\u043e \u043d\u0430 \u043c\u0438\u043a\u0440\u043e\u0441\u0445\u0435\u043c\u0443 XM25QU128C.<\/p>\n<p>\u0415\u0441\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u0432 \u0437\u0430\u043f\u0438\u0441\u0438 EDK II. \u0412\u043e-\u043f\u0435\u0440\u0432\u044b\u0445, \u044d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0435\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435\u00a0<strong>Linux<\/strong>\u00a0\u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0443\u0442\u0438\u043b\u0438\u0442\u044b\u00a0<strong>flashcp<\/strong>:<\/p>\n<pre><code class=\"bash\">\/sbin\/flashcp RK3588_NOR_FLASH.img \/dev\/mtd0<\/code><\/pre>\n<p>\u0412\u043e-\u0432\u0442\u043e\u0440\u044b\u0445, \u044d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e U-Boot, \u0435\u0441\u043b\u0438 \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u043e\u0431\u0440\u0430\u0437 \u0432 \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u043d\u0430 \u0437\u0430\u0433\u0440\u0443\u0437\u043e\u0447\u043d\u043e\u0439 SD-\u043a\u0430\u0440\u0442\u0435.<\/p>\n<p>\u0414\u043e\u043f\u0443\u0441\u0442\u0438\u043c, \u0447\u0442\u043e \u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0435\u00a0<strong>\/boot\/edk2\/<\/strong>, \u0432 \u043f\u0435\u0440\u0432\u043e\u043c \u0440\u0430\u0437\u0434\u0435\u043b\u0435 \u0441 \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u043c\u043e\u0439 Ext4, \u043c\u044b \u0438\u043c\u0435\u0435\u043c \u043e\u0431\u0440\u0430\u0437 EDK II \u0441 \u0438\u043c\u0435\u043d\u0435\u043c spi-flash.image. \u0422\u043e\u0433\u0434\u0430 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0432 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0443 U-Boot \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043b\u0430\u0432\u0438\u0448\u0438 &lt;Space>, \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0438\u0442\u044c \u0437\u0430\u043f\u0438\u0441\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n<pre><code class=\"bash\">orange-pi5# orange-pi5# sf probe SF: Detected XM25QU128C with page size 256 Bytes, erase size 4 KiB, total 16 MiB  orange-pi5# load mmc 0:1 ${kernel_addr_r} \/boot\/edk2\/spi-flash.image 7012864 bytes read in 597 ms (11.2 MiB\/s)  orange-pi5# sf erase 0 +${filesize} SF: 7016448 bytes @ 0x0 Erased: OK  orange-pi5# sf write ${kernel_addr_r} 0 ${filesize} device 0 offset 0x0, size 0x6b0200 SF: 7012864 bytes @ 0x0 Written: OK<\/code><\/pre>\n<p>\u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e EDK II \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0442\u044c \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0441 NVMe \u0434\u0438\u0441\u043a\u0430. \u041f\u0440\u0438\u0447\u0435\u043c \u043d\u0430 NVMe \u0434\u0438\u0441\u043a\u0435 \u043d\u0435\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a \u0432 \u043d\u0435\u0440\u0430\u0437\u043c\u0435\u0447\u0435\u043d\u043d\u043e\u043c \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0435, \u0438 \u043c\u044b \u0432\u043f\u0440\u0430\u0432\u0435 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043d\u0430 \u0434\u0438\u0441\u043a\u0435 \u0440\u0430\u0437\u0434\u0435\u043b\u044b \u0442\u0430\u043a, \u043a\u0430\u043a \u043c\u044b \u043f\u0440\u0438\u0432\u044b\u043a\u043b\u0438 \u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0430 \u043e\u0431\u044b\u0447\u043d\u044b\u0445 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0445 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430\u0445.<\/p>\n<hr\/>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c, \u0435\u0441\u043b\u0438 \u043c\u044b \u0440\u0430\u0437\u043c\u0435\u0442\u0438\u043c \u0434\u0438\u0441\u043a, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n<pre><code>\/sbin\/fdisk -l \/dev\/nvme0n1 Disk \/dev\/nvme0n1: 238.47 GiB, 256060514304 bytes, 500118192 sectors Disk model: NXM-256 2242                             Units: sectors of 1 * 512 = 512 bytes Sector size (logical\/physical): 512 bytes \/ 512 bytes I\/O size (minimum\/optimal): 512 bytes \/ 512 bytes Disklabel type: gpt Disk identifier: C50F960E-227F-6A4D-A6C8-78553D0C0822  Device             Start       End   Sectors   Size Type \/dev\/nvme0n1p1      2048    526335    524288   256M EFI System \/dev\/nvme0n1p2    526336 168298495 167772160    80G Linux filesystem \/dev\/nvme0n1p3 168298496 467913911 299615416 142.9G Linux filesystem \/dev\/nvme0n1p4 467914752 500117503  32202752  15.4G Linux swap<\/code><\/pre>\n<p>\u0438 \u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0435 <strong>\/efi\/boot\/<\/strong> \u043d\u0430 \u043f\u0435\u0440\u0432\u043e\u043c \u0440\u0430\u0437\u0434\u0435\u043b\u0435 \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u043c \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a <strong>bootaa64.efi<\/strong>, \u0442\u043e \u0434\u043b\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043d\u0430\u043c \u043e\u0441\u0442\u0430\u043d\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0442\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c <strong>grub.cfg<\/strong> \u0444\u0430\u0439\u043b, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0440\u0430\u0441\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f \u0432 \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0439 \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0435 <strong>\/boot\/grub\/<\/strong>.<\/p>\n<p>\u0414\u043b\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u044b, \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0435\u0439 \u043d\u0430 \u043f\u043b\u0430\u0442\u0435 Orange Pi 5, <strong>grub.cfg<\/strong> \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n<pre><code>set menu_color_normal=black\/light-gray set menu_color_highlight=white\/light-gray set background_color=black  set timeout=5  font '\/boot\/grub\/fonts\/dejavusansmono.pf2' loadfont dejavusansmono  menuentry 'Radix cross Linux' {   set root_uuid=491dab81-2ec5-4dd4-83dc-626dfbabcb0f   set part_uuid=0b5eaaf9-64c5-9f4c-9683-7305368f52e2    insmod gzio   insmod xzio   insmod part_gpt   insmod ext2    search --set=root --fs-uuid $root_uuid   devicetree ($root)\/boot\/rockchip\/rk3588s-orangepi-5.dtb   linux ($root)\/boot\/Image root=PARTUUID=$part_uuid ro rootwait console=ttyS2,1500000n8 console=tty1 }<\/code><\/pre>\n<p>\u0417\u0434\u0435\u0441\u044c, \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 <strong>root_uuid<\/strong> \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 <strong>UUID<\/strong> \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0439 \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b, \u0430 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 <strong>part_uuid<\/strong> \u0440\u0430\u0432\u043d\u043e <strong>UUID<\/strong> \u0440\u0430\u0437\u0434\u0435\u043b\u0430, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0430 \u044d\u0442\u0430 \u0444\u0430\u0439\u043b\u043e\u0432\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430.<\/p>\n<hr\/>\n<p>\u041e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0434\u0430\u043d\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u043c\u043e\u0436\u043d\u043e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0433\u043e\u0442\u043e\u0432\u044b\u0445 \u043e\u0431\u0440\u0430\u0437\u043e\u0432 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0430\u0434\u043e \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0444\u0430\u0439\u043b\u044b <strong>orange-pi5.boot-records<\/strong>, <strong>orange-pi5.ext4fs<\/strong> \u0438\u0437 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430 <a href=\"https:\/\/ftp.radix.pro\/radix\/system\/releases\/1.9.226\/rk358x-glibc\/orange-pi5\/\" rel=\"noopener noreferrer nofollow\">orange-pi5<\/a> \u0438 \u0437\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0438\u0445 \u043d\u0430 SD-\u043a\u0430\u0440\u0442\u0443 \u0441 \u043f\u043e\u043c\u043e\u0448\u044c\u044e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u043a\u043e\u043c\u0430\u043d\u0434:<\/p>\n<pre><code class=\"bash\">cat orange-pi5.boot-records orange-pi5.ext4fs > SDHC.img  dd if=SDHC.img of=\/dev\/sdh<\/code><\/pre>\n<p>\u0420\u0430\u0437\u0443\u043c\u0435\u0435\u0442\u0441\u044f, \u0438\u043c\u044f \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 <strong>\/dev\/sdh<\/strong> \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043d\u0430 \u0438\u043c\u044f, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u043e\u0439 SD-\u043a\u0430\u0440\u0442\u0435.<\/p>\n<p>\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0432 Orange Pi 5 \u0441 SD-\u043a\u0430\u0440\u0442\u044b, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0440\u043e\u0448\u0438\u0442\u044c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0440\u0443\u0447\u043d\u043e \u0441\u043e\u0431\u0440\u0430\u043d\u043d\u044b\u0439 EDK  II \u0438\u043b\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0441\u0438\u0441\u0442\u0435\u043c\u0443 <a href=\"https:\/\/radix.pro\/devices\/orange-pi5\/\" rel=\"noopener noreferrer nofollow\">Radix cross Linux<\/a> \u043d\u0430 NVMe \u0434\u0438\u0441\u043a \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0443\u0442\u0438\u043b\u0438\u0442\u044b <strong>setup<\/strong>.<\/p>\n<p>\u041f\u0440\u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u0441\u0442\u0430\u0440\u0442\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0441 NVMe \u0434\u0438\u0441\u043a\u0430 \u0432\u044b \u0443\u0432\u0438\u0434\u0438\u0442\u0435 EDK II \u0432 \u0440\u0430\u0431\u043e\u0442\u0435,<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/6cb\/fa5\/f0b\/6cbfa5f0bbe0a8e88b75f8dc705bcdb5.jpg\" alt=\"Fig.1 EDK II\" title=\"Fig.1 EDK II\" width=\"1280\" height=\"960\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/6cb\/fa5\/f0b\/6cbfa5f0bbe0a8e88b75f8dc705bcdb5.jpg\" data-blurred=\"true\"\/><\/p>\n<div><figcaption>Fig.1 EDK II<\/figcaption><\/div>\n<\/figure>\n<p>\u0430 \u043f\u043e \u043a\u043b\u0430\u0432\u0438\u0448\u0435 F2 \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 Tianocore, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043e\u0431\u0440\u0430\u043d \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u0434\u043b\u044f SoC RK3588s. \u0414\u0430\u043b\u0435\u0435 \u0432 \u0440\u0430\u0431\u043e\u0442\u0443 \u0432\u0441\u0442\u0443\u043f\u0438\u0442 \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a GRUB:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/44f\/19f\/fa1\/44f19ffa1e9fc7b6d8f5690d8ba19714.jpg\" alt=\"Fig.2. GRUB\" title=\"Fig.2. GRUB\" width=\"1280\" height=\"960\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/44f\/19f\/fa1\/44f19ffa1e9fc7b6d8f5690d8ba19714.jpg\" data-blurred=\"true\"\/><\/p>\n<div><figcaption>Fig.2. GRUB<\/figcaption><\/div>\n<\/figure>\n<p>\u043a\u043e\u0442\u043e\u0440\u044b\u0439, \u0432 \u0441\u0432\u043e\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c, \u043f\u0435\u0440\u0435\u0434\u0430\u0441\u0442 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u044f\u0434\u0440\u0443 Linux.<\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/775488\/\"> https:\/\/habr.com\/ru\/articles\/775488\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u041d\u0435\u0434\u0430\u0432\u043d\u043e \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u044f <a href=\"http:\/\/www.orangepi.org\/index.html\" rel=\"noopener noreferrer nofollow\">OrangePi<\/a> \u043e\u0431\u043d\u043e\u0432\u0438\u043b\u0430 \u043b\u0438\u043d\u0435\u0439\u043a\u0443 \u043e\u0434\u043d\u043e\u043f\u043b\u0430\u0442\u043d\u044b\u0445 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u043e\u0432 Orange Pi 5\/5B\/5+, \u0440\u0430\u0441\u043f\u0430\u044f\u0432 \u043d\u0430 \u043f\u043b\u0430\u0442\u0430\u0445 <a href=\"http:\/\/www.orangepi.org\/html\/hardWare\/computerAndMicrocontrollers\/details\/Orange-Pi-5-32GB.html\" rel=\"noopener noreferrer nofollow\">32GB LDDR4 RAM<\/a>. \u041e\u0434\u043d\u0430\u043a\u043e \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043b\u0430\u0442\u044b \u0432\u043f\u043e\u043b\u043d\u0435 \u043f\u0440\u0438\u043b\u0438\u0447\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u0438 \u0441 \u043c\u0435\u043d\u044c\u0448\u0438\u043c \u043e\u0431\u044a\u0435\u043c\u043e\u043c \u043f\u0430\u043c\u044f\u0442\u0438 \u043d\u0430 \u0431\u043e\u0440\u0442\u0443, \u0430 \u043d\u0430\u043b\u0438\u0447\u0438\u0435 SPI Nor Flash \u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f NVMe \u0434\u0438\u0441\u043a\u0430 \u0434\u0435\u043b\u0430\u044e\u0442 \u044d\u0442\u0438 \u043f\u043b\u0430\u0442\u044b \u0434\u043e\u0441\u0442\u043e\u0439\u043d\u044b\u043c\u0438 \u043a\u043e\u043d\u043a\u0443\u0440\u0435\u043d\u0442\u0430\u043c\u0438 \u0441\u0440\u0435\u0434\u0438 \u043e\u0434\u043d\u043e\u043f\u043b\u0430\u0442\u043d\u044b\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432.<\/p>\n<p>\u041d\u0430\u0441 \u0437\u0430\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u043b \u043f\u0435\u0440\u0432\u044b\u0439 \u043e\u0431\u0440\u0430\u0437\u0435\u0446 \u0441\u0435\u0440\u0438\u0438 5\/5B\/5+, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e <a href=\"http:\/\/www.orangepi.org\/html\/hardWare\/computerAndMicrocontrollers\/details\/Orange-Pi-5.html\" rel=\"noopener noreferrer nofollow\">Orange Pi 5<\/a>, \u043d\u0430 \u043f\u0440\u0435\u0434\u043c\u0435\u0442 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u043d\u0430 \u0434\u0430\u043d\u043d\u043e\u043c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0435 \u043f\u043e\u0432\u0435\u0434\u0435\u0442 \u0441\u0435\u0431\u044f <a href=\"https:\/\/www.tianocore.org\/\" rel=\"noopener noreferrer nofollow\">EDK II<\/a> \u0438 \u043c\u043e\u0436\u043d\u043e \u043b\u0438 \u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u0430\u043a, \u043a\u0430\u043a \u043c\u044b \u043f\u0440\u0438\u0432\u044b\u043a\u043b\u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u043e\u0431\u044b\u0447\u043d\u044b\u043c\u0438 \u041f\u041a.<\/p>\n<h2>Toolchain<\/h2>\n<p>\u0413\u043e\u0442\u043e\u0432\u044b\u0439\u00a0toolchain\u00a0\u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u043d\u0430 64-\u0440\u0430\u0437\u0440\u044f\u0434\u043d\u044b\u0445\u00a0<strong>Linux<\/strong>-\u043c\u0430\u0448\u0438\u043d\u0430\u0445 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043d\u0430 \u043d\u0430\u0448\u0435\u043c\u00a0<strong>FTP<\/strong>-\u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0435\u00a0<a href=\"https:\/\/ftp.radix.pro\/radix\/toolchains\/x86_64\" rel=\"noopener noreferrer nofollow\">toolchains\/x86_64<\/a>. \u0412\u044b\u0431\u0438\u0440\u0430\u0442\u044c \u0437\u0434\u0435\u0441\u044c \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044e\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u0430\u0440\u0445\u0438\u0432\u0430 \u0441 \u0438\u043c\u0435\u043d\u0435\u043c\u00a0<strong>aarch64-RK358X-linux-glibc-*.tar.xz<\/strong>.<\/p>\n<p>\u0421\u043b\u0435\u0434\u0443\u0435\u0442 \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u0434\u0430\u043d\u043d\u044b\u0439 toolchain \u043d\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0430\u0435\u043c \u0438 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 \/opt\/toolchains\/. \u0414\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043a\u0430\u0442\u0430\u043b\u043e\u0433 \u0438 \u0440\u0430\u0441\u043f\u0430\u043a\u043e\u0432\u0430\u0442\u044c \u0430\u0440\u0445\u0438\u0432:<\/p>\n<pre><code class=\"bash\">mkdir -p \/opt\/toolchains cd \/opt\/toolchains tar xJvf aarch64-RK358X-linux-glibc-1.9.8.tar.xz<\/code><\/pre>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c toolchain \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e, \u043d\u043e \u0434\u043b\u044f \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u0431\u0443\u0434\u0435\u0442 \u043d\u0435 \u043b\u0438\u0448\u043d\u0438\u043c \u0437\u0430\u0434\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f:<\/p>\n<pre><code class=\"bash\">CROSS_COMPILE=\/opt\/toolchains\/riscv64-RV64GC-linux-glibc\/1.9.8\/bin\/riscv64-rv64gc-linux-gnu- <\/code><\/pre>\n<p>\u041a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u0431\u044b\u0447\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0432 Make-\u0444\u0430\u0439\u043b\u0430\u0445 U-Boot \u0438\u043b\u0438 \u044f\u0434\u0440\u0430 Linux.<\/p>\n<p>\u0414\u043b\u044f \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u0441\u0431\u043e\u0440\u043a\u0438\u00a0toolchain-\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0441\u0440\u0435\u0437 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f\u00a0<a href=\"https:\/\/csvn.radix.pro\/toolchains\" rel=\"noopener noreferrer nofollow\">toolchains<\/a>, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440,<\/p>\n<pre><code class=\"bash\">svn co svn:\/\/radix.pro\/radix\/toolchains\/trunk toolchains<\/code><\/pre>\n<p>\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0443\u00a0<strong>make<\/strong>\u00a0\u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u043c \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0435:<\/p>\n<pre><code class=\"bash\">cd toolchains\/products\/RK358X-glibc\/1.9.8 make -j8<\/code><\/pre>\n<p>\u041d\u0430\u043f\u043e\u043c\u043d\u0438\u043c \u0437\u0434\u0435\u0441\u044c, \u0447\u0442\u043e \u043f\u0435\u0440\u0435\u0434 \u0441\u0431\u043e\u0440\u043a\u043e\u0439 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u0442\u044c \u043a\u0430\u0442\u0430\u043b\u043e\u0433 \/opt\/toolchains\/ \u0434\u043b\u044f \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u0438\u00a0toolchain-\u0430 \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u043f\u0440\u0430\u0432\u0430 \u043d\u0430 \u043d\u0435\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e, \u043e\u0442 \u0438\u043c\u0435\u043d\u0438 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u0431\u043e\u0440\u043a\u0430.<\/p>\n<h2>U-Boot<\/h2>\n<p>\u0414\u043b\u044f \u0441\u0431\u043e\u0440\u043a\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a\u0430 \u043b\u0443\u0447\u0448\u0435 \u0432\u0441\u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u0434 \u0438\u0437 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f\u00a0<a href=\"https:\/\/source.denx.de\/u-boot\/custodians\/u-boot-rockchip.git\" rel=\"noopener noreferrer nofollow\">u-boot-rockchip<\/a>. \u0413\u0434\u0435 \u0442\u0435\u0433\u043e\u043c\u00a0<strong>u-boot-rockchip-20231024<\/strong>\u00a0\u043e\u0442\u043c\u0435\u0447\u0435\u043d \u0441\u0440\u0435\u0437, \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u044e\u0449\u0438\u0439 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 SPI Nor Flash XM25QU128C. \u0414\u0430\u043d\u043d\u0430\u044f \u043c\u0438\u043a\u0440\u043e\u0441\u0445\u0435\u043c\u0430 \u0440\u0430\u0441\u043f\u0430\u044f\u043d\u0430 \u043d\u0430 \u043f\u043b\u0430\u0442\u0435 \u0438 \u043c\u043e\u0436\u0435\u0442 \u0441\u043b\u0443\u0436\u0438\u0442\u044c \u0434\u043b\u044f \u0440\u0430\u0437\u043c\u0435\u0449\u0435\u043d\u0438\u044f \u043a\u0430\u043a \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a\u0430 U-Boot, \u0442\u0430\u043a \u0438 efi-\u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a\u0430 EDK II.<\/p>\n<p>\u0421\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a \u043c\u043e\u0436\u043d\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n<pre><code class=\"bash\">git clone https:\/\/source.denx.de\/u-boot\/custodians\/u-boot-rockchip.git cd u-boot-rockchip git archive --format=tar --prefix=u-boot-rockchip-2023.10\/ u-boot-rockchip-20231024 | \\     xz >..\/u-boot-rockchip-2023.10.tar.xz cd .. rm -rf u-boot-rockchip tar xJvf u-boot-rockchip-2023.10.tar.xz git clone https:\/\/github.com\/rockchip-linux\/rkbin.git cd rkbin git archive --format=tar --prefix=rkbin-20230519\/ d6ccfe401ca84a98ca3b85c12b9554a1a43a166c | \\     xz >..\/rkbin-20230519.tar.xz cd .. rm -rf rkbin tar xJvf rkbin-20230519.tar.xz  cd u-boot-rockchip-2023.10 make orangepi-5-rk3588s_defconfig make BL31=..\/rkbin-20230519\/bin\/rk35\/rk3588_bl31_v1.38.elf \\       ROCKCHIP_TPL=..\/rkbin-20230519\/bin\/rk35\/rk3588_ddr_lp4_2112MHz_lp5_2736MHz_v1.11.bin \\      CROSS_COMPILE=\/opt\/toolchains\/aarch64-RK358X-linux-glibc\/1.9.8\/bin\/aarch64-rk358x-linux-gnu- cd ..<\/code><\/pre>\n<p>\u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435, \u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0435 u-boot-rockchip-2023.10, \u0431\u0443\u0434\u0443\u0442 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u044b \u0434\u0432\u0430 \u0444\u0430\u0439\u043b\u0430:\u00a0<strong>idbloader.img<\/strong>\u00a0\u0438\u00a0<strong>u-boot.itb<\/strong>. \u041d\u0430 SD-\u043a\u0430\u0440\u0442\u0443 \u0434\u0430\u043d\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u043f\u043e \u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u0430\u0434\u0440\u0435\u0441\u0430\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n<pre><code class=\"bash\">dd if=idbloader.img of=\/dev\/sdh bs=512 seek=64 dd if=u-boot.itb of=\/dev\/sdh bs=512 seek=16384<\/code><\/pre>\n<p>\u0413\u0434\u0435 \u0438\u043c\u044f \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u00a0<strong>\/dev\/sdh<\/strong>\u00a0\u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u043d\u0430 \u0438\u043c\u044f, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u043e\u0439 SD-\u043a\u0430\u0440\u0442\u0435.<\/p>\n<h2>EDK II<\/h2>\n<p>\u0421\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439\u00a0<a href=\"https:\/\/github.com\/edk2-porting\/edk2-rk3588\/\" rel=\"noopener noreferrer nofollow\">edk2-rk3588<\/a>, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0432\u0435\u0434\u0435\u0442\u0441\u044f \u0440\u0430\u0431\u043e\u0442\u0430 \u043f\u043e \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u044e \u0442\u0430\u043a\u0438\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 \u043a\u0430\u043a Orange Pi 5\/5B\/5+, Radxa ROCK 5A\/5B \u0438 \u043c\u043d\u043e\u0433\u0438\u0445 \u0434\u0440\u0443\u0433\u0438\u0445 \u043f\u043b\u0430\u0442 \u043d\u0430 \u0431\u0430\u0437\u0435 \u0441\u0435\u043c\u0435\u0439\u0441\u0442\u0432\u0430 SoCs \u043e\u0442 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 Rockchip.<\/p>\n<p>\u041f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u043a\u043e\u0434\u0430 EDK II \u0438 \u0435\u0433\u043e \u0441\u0431\u043e\u0440\u043a\u0430 \u043d\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0438:<\/p>\n<pre><code class=\"bash\">git clone https:\/\/github.com\/edk2-porting\/edk2-rk3588.git cd edk2-rk3588 git checkout -b v0.9.1.1 e9f0d3363e7db645e84a979542cc96b487d05f01 git submodule update --init --recursive CROSS_COMPILE=\/opt\/toolchains\/aarch64-RK358X-linux-glibc\/1.9.8\/bin\/aarch64-rk358x-linux-gnu- \\ .\/build.sh --device orangepi-5 \\             --skip-rootfs-gen<\/code><\/pre>\n<p>\u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043b\u0443\u0447\u0435\u043d \u043e\u0431\u0440\u0430\u0437\u00a0<strong>RK3588_NOR_FLASH.img<\/strong>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439, \u0434\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430, \u043c\u043e\u0436\u043d\u043e \u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0441 SD-\u043a\u0430\u0440\u0442\u044b:<\/p>\n<pre><code>dd if=RK3588_NOR_FLASH.img of=\/dev\/sdh<\/code><\/pre>\n<p>\u0438 \u0443\u0436\u0435 \u0437\u0430\u0442\u0435\u043c, \u043f\u0440\u043e\u0448\u0438\u0442\u044c \u0435\u0433\u043e \u043d\u0430 \u043c\u0438\u043a\u0440\u043e\u0441\u0445\u0435\u043c\u0443 XM25QU128C.<\/p>\n<p>\u0415\u0441\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u0432 \u0437\u0430\u043f\u0438\u0441\u0438 EDK II. \u0412\u043e-\u043f\u0435\u0440\u0432\u044b\u0445, \u044d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0435\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435\u00a0<strong>Linux<\/strong>\u00a0\u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0443\u0442\u0438\u043b\u0438\u0442\u044b\u00a0<strong>flashcp<\/strong>:<\/p>\n<pre><code class=\"bash\">\/sbin\/flashcp RK3588_NOR_FLASH.img \/dev\/mtd0<\/code><\/pre>\n<p>\u0412\u043e-\u0432\u0442\u043e\u0440\u044b\u0445, \u044d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e U-Boot, \u0435\u0441\u043b\u0438 \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u043e\u0431\u0440\u0430\u0437 \u0432 \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u043d\u0430 \u0437\u0430\u0433\u0440\u0443\u0437\u043e\u0447\u043d\u043e\u0439 SD-\u043a\u0430\u0440\u0442\u0435.<\/p>\n<p>\u0414\u043e\u043f\u0443\u0441\u0442\u0438\u043c, \u0447\u0442\u043e \u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0435\u00a0<strong>\/boot\/edk2\/<\/strong>, \u0432 \u043f\u0435\u0440\u0432\u043e\u043c \u0440\u0430\u0437\u0434\u0435\u043b\u0435 \u0441 \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u043c\u043e\u0439 Ext4, \u043c\u044b \u0438\u043c\u0435\u0435\u043c \u043e\u0431\u0440\u0430\u0437 EDK II \u0441 \u0438\u043c\u0435\u043d\u0435\u043c spi-flash.image. \u0422\u043e\u0433\u0434\u0430 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0432 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0443 U-Boot \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043b\u0430\u0432\u0438\u0448\u0438 &lt;Space>, \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0438\u0442\u044c \u0437\u0430\u043f\u0438\u0441\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n<pre><code class=\"bash\">orange-pi5# orange-pi5# sf probe SF: Detected XM25QU128C with page size 256 Bytes, erase size 4 KiB, total 16 MiB  orange-pi5# load mmc 0:1 ${kernel_addr_r} \/boot\/edk2\/spi-flash.image 7012864 bytes read in 597 ms (11.2 MiB\/s)  orange-pi5# sf erase 0 +${filesize} SF: 7016448 bytes @ 0x0 Erased: OK  orange-pi5# sf write ${kernel_addr_r} 0 ${filesize} device 0 offset 0x0, size 0x6b0200 SF: 7012864 bytes @ 0x0 Written: OK<\/code><\/pre>\n<p>\u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e EDK II \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0442\u044c \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0441 NVMe \u0434\u0438\u0441\u043a\u0430. \u041f\u0440\u0438\u0447\u0435\u043c \u043d\u0430 NVMe \u0434\u0438\u0441\u043a\u0435 \u043d\u0435\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a \u0432 \u043d\u0435\u0440\u0430\u0437\u043c\u0435\u0447\u0435\u043d\u043d\u043e\u043c \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0435, \u0438 \u043c\u044b \u0432\u043f\u0440\u0430\u0432\u0435 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043d\u0430 \u0434\u0438\u0441\u043a\u0435 \u0440\u0430\u0437\u0434\u0435\u043b\u044b \u0442\u0430\u043a, \u043a\u0430\u043a \u043c\u044b \u043f\u0440\u0438\u0432\u044b\u043a\u043b\u0438 \u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0430 \u043e\u0431\u044b\u0447\u043d\u044b\u0445 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0445 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430\u0445.<\/p>\n<hr\/>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c, \u0435\u0441\u043b\u0438 \u043c\u044b \u0440\u0430\u0437\u043c\u0435\u0442\u0438\u043c \u0434\u0438\u0441\u043a, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n<pre><code>\/sbin\/fdisk -l \/dev\/nvme0n1 Disk \/dev\/nvme0n1: 238.47 GiB, 256060514304 bytes, 500118192 sectors Disk model: NXM-256 2242                             Units: sectors of 1 * 512 = 512 bytes Sector size (logical\/physical): 512 bytes \/ 512 bytes I\/O size (minimum\/optimal): 512 bytes \/ 512 bytes Disklabel type: gpt Disk identifier: C50F960E-227F-6A4D-A6C8-78553D0C0822  Device             Start       End   Sectors   Size Type \/dev\/nvme0n1p1      2048    526335    524288   256M EFI System \/dev\/nvme0n1p2    526336 168298495 167772160    80G Linux filesystem \/dev\/nvme0n1p3 168298496 467913911 299615416 142.9G Linux filesystem \/dev\/nvme0n1p4 467914752 500117503  32202752  15.4G Linux swap<\/code><\/pre>\n<p>\u0438 \u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0435 <strong>\/efi\/boot\/<\/strong> \u043d\u0430 \u043f\u0435\u0440\u0432\u043e\u043c \u0440\u0430\u0437\u0434\u0435\u043b\u0435 \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u043c \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a <strong>bootaa64.efi<\/strong>, \u0442\u043e \u0434\u043b\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043d\u0430\u043c \u043e\u0441\u0442\u0430\u043d\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0442\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c <strong>grub.cfg<\/strong> \u0444\u0430\u0439\u043b, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0440\u0430\u0441\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f \u0432 \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0439 \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0435 <strong>\/boot\/grub\/<\/strong>.<\/p>\n<p>\u0414\u043b\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u044b, \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0435\u0439 \u043d\u0430 \u043f\u043b\u0430\u0442\u0435 Orange Pi 5, <strong>grub.cfg<\/strong> \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n<pre><code>set menu_color_normal=black\/light-gray set menu_color_highlight=white\/light-gray set background_color=black  set timeout=5  font '\/boot\/grub\/fonts\/dejavusansmono.pf2' loadfont dejavusansmono  menuentry 'Radix cross Linux' {   set root_uuid=491dab81-2ec5-4dd4-83dc-626dfbabcb0f   set part_uuid=0b5eaaf9-64c5-9f4c-9683-7305368f52e2    insmod gzio   insmod xzio   insmod part_gpt   insmod ext2    search --set=root --fs-uuid $root_uuid   devicetree ($root)\/boot\/rockchip\/rk3588s-orangepi-5.dtb   linux ($root)\/boot\/Image root=PARTUUID=$part_uuid ro rootwait console=ttyS2,1500000n8 console=tty1 }<\/code><\/pre>\n<p>\u0417\u0434\u0435\u0441\u044c, \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 <strong>root_uuid<\/strong> \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 <strong>UUID<\/strong> \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0439 \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b, \u0430 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 <strong>part_uuid<\/strong> \u0440\u0430\u0432\u043d\u043e <strong>UUID<\/strong> \u0440\u0430\u0437\u0434\u0435\u043b\u0430, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0430 \u044d\u0442\u0430 \u0444\u0430\u0439\u043b\u043e\u0432\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430.<\/p>\n<hr\/>\n<p>\u041e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0434\u0430\u043d\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u043c\u043e\u0436\u043d\u043e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0433\u043e\u0442\u043e\u0432\u044b\u0445 \u043e\u0431\u0440\u0430\u0437\u043e\u0432 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0430\u0434\u043e \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0444\u0430\u0439\u043b\u044b <strong>orange-pi5.boot-records<\/strong>, <strong>orange-pi5.ext4fs<\/strong> \u0438\u0437 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430 <a href=\"https:\/\/ftp.radix.pro\/radix\/system\/releases\/1.9.226\/rk358x-glibc\/orange-pi5\/\" rel=\"noopener noreferrer nofollow\">orange-pi5<\/a> \u0438 \u0437\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0438\u0445 \u043d\u0430 SD-\u043a\u0430\u0440\u0442\u0443 \u0441 \u043f\u043e\u043c\u043e\u0448\u044c\u044e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u043a\u043e\u043c\u0430\u043d\u0434:<\/p>\n<pre><code class=\"bash\">cat orange-pi5.boot-records orange-pi5.ext4fs > SDHC.img  dd if=SDHC.img of=\/dev\/sdh<\/code><\/pre>\n<p>\u0420\u0430\u0437\u0443\u043c\u0435\u0435\u0442\u0441\u044f, \u0438\u043c\u044f \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 <strong>\/dev\/sdh<\/strong> \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043d\u0430 \u0438\u043c\u044f, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u043e\u0439 SD-\u043a\u0430\u0440\u0442\u0435.<\/p>\n<p>\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0432 Orange Pi 5 \u0441 SD-\u043a\u0430\u0440\u0442\u044b, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0440\u043e\u0448\u0438\u0442\u044c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0440\u0443\u0447\u043d\u043e \u0441\u043e\u0431\u0440\u0430\u043d\u043d\u044b\u0439 EDK  II \u0438\u043b\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0441\u0438\u0441\u0442\u0435\u043c\u0443 <a href=\"https:\/\/radix.pro\/devices\/orange-pi5\/\" rel=\"noopener noreferrer nofollow\">Radix cross Linux<\/a> \u043d\u0430 NVMe \u0434\u0438\u0441\u043a \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0443\u0442\u0438\u043b\u0438\u0442\u044b <strong>setup<\/strong>.<\/p>\n<p>\u041f\u0440\u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u0441\u0442\u0430\u0440\u0442\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0441 NVMe \u0434\u0438\u0441\u043a\u0430 \u0432\u044b \u0443\u0432\u0438\u0434\u0438\u0442\u0435 EDK II \u0432 \u0440\u0430\u0431\u043e\u0442\u0435,<\/p>\n<figure class=\"full-width\">\n<div><figcaption>Fig.1 EDK II<\/figcaption><\/div>\n<\/figure>\n<p>\u0430 \u043f\u043e \u043a\u043b\u0430\u0432\u0438\u0448\u0435 F2 \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 Tianocore, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043e\u0431\u0440\u0430\u043d \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u0434\u043b\u044f SoC RK3588s. \u0414\u0430\u043b\u0435\u0435 \u0432 \u0440\u0430\u0431\u043e\u0442\u0443 \u0432\u0441\u0442\u0443\u043f\u0438\u0442 \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a GRUB:<\/p>\n<figure class=\"full-width\">\n<div><figcaption>Fig.2. GRUB<\/figcaption><\/div>\n<\/figure>\n<p>\u043a\u043e\u0442\u043e\u0440\u044b\u0439, \u0432 \u0441\u0432\u043e\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c, \u043f\u0435\u0440\u0435\u0434\u0430\u0441\u0442 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u044f\u0434\u0440\u0443 Linux.<\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/775488\/\"> https:\/\/habr.com\/ru\/articles\/775488\/<\/a><br \/><\/br><\/br><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-360813","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/360813","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=360813"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/360813\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=360813"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=360813"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=360813"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}