JeffyCN / meta-rockchip

Yocto BSP layer for the Rockchip SOC boards
Other
129 stars 96 forks source link

is it support RK3588S? #121

Closed masoudjalalir closed 1 month ago

masoudjalalir commented 3 months ago

hello friends, i have an orangepi5B, which has RK3588s is it possible to make image for it(using Yocto project and meta-openembedded?

JeffyCN commented 3 months ago

this is only for evb boards. for other boards please check the readme about using custom kernel and loader

masoudjalalir commented 3 months ago

Reading this part " V. Supporting new Machine "?

masoudjalalir commented 3 months ago

i got these errors

ERROR: linux-rockchip-5.10-r0 do_compile: oe_runmake failed ERROR: linux-rockchip-5.10-r0 do_compile: ExecutionError('/home/im/Desktop/yocto_BSB/build/tmp/work/rk3588s-poky-linux/linux-rockchip/5.10/temp/run.do_compile.1522209', 1, None, None) ERROR: Logfile of failure stored in: /home/im/Desktop/yocto_BSB/build/tmp/work/rk3588s-poky-linux/linux-rockchip/5.10/temp/log.do_compile.1522209

Log data follows: | DEBUG: Executing shell function do_compile | NOTE: KBUILD_BUILD_TIMESTAMP: Sat Jan 8 10:24:03 UTC 2022 | NOTE: make -j 12 CC=aarch64-poky-linux-gcc -fuse-ld=bfd -fcanon-prefix-map -fmacro-prefix-map=/home/im/Desktop/yocto_BSB/build/tmp/work-shared/rk3588s/kernel-source=/usr/src/debug/linux-rockchip/5.10 -fdebug-prefix-map=/home/im/Desktop/yocto_BSB/build/tmp/work-shared/rk3588s/kernel-source=/usr/src/debug/linux-rockchip/5.10 -fmacro-prefix-map=/home/im/Desktop/yocto_BSB/build/tmp/work/rk3588s-poky-linux/linux-rockchip/5.10/linux-rk3588s-standard-build=/usr/src/debug/linux-rockchip/5.10 -fdebug-prefix-map=/home/im/Desktop/yocto_BSB/build/tmp/work/rk3588s-poky-linux/linux-rockchip/5.10/linux-rk3588s-standard-build=/usr/src/debug/linux-rockchip/5.10 -fdebug-prefix-map=/home/im/Desktop/yocto_BSB/build/tmp/work/rk3588s-poky-linux/linux-rockchip/5.10/recipe-sysroot= -fmacro-prefix-map=/home/im/Desktop/yocto_BSB/build/tmp/work/rk3588s-poky-linux/linux-rockchip/5.10/recipe-sysroot= -fdebug-prefix-map=/home/im/Desktop/yocto_BSB/build/tmp/work/rk3588s-poky-linux/linux-rockchip/5.10/recipe-sysroot-native= -fdebug-prefix-map=/home/im/Desktop/yocto_BSB/build/tmp/work-shared/rk3588s/kernel-source=/usr/src/kernel -fdebug-prefix-map=/home/im/Desktop/yocto_BSB/build/tmp/work-shared/rk3588s/kernel-build-artifacts=/usr/src/kernel --sysroot=/home/im/Desktop/yocto_BSB/build/tmp/work/rk3588s-poky-linux/linux-rockchip/5.10/recipe-sysroot LD=aarch64-poky-linux-ld.bfd --sysroot=/home/im/Desktop/yocto_BSB/build/tmp/work/rk3588s-poky-linux/linux-rockchip/5.10/recipe-sysroot OBJCOPY=aarch64-poky-linux-objcopy STRIP=aarch64-poky-linux-strip HOSTCC=gcc HOSTCFLAGS=-isystem/home/im/Desktop/yocto_BSB/build/tmp/work/rk3588s-poky-linux/linux-rockchip/5.10/recipe-sysroot-native/usr/include -O2 -pipe HOSTLDFLAGS=-L/home/im/Desktop/yocto_BSB/build/tmp/work/rk3588s-poky-linux/linux-rockchip/5.10/recipe-sysroot-native/usr/lib -L/home/im/Desktop/yocto_BSB/build/tmp/work/rk3588s-poky-linux/linux-rockchip/5.10/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/im/Desktop/yocto_BSB/build/tmp/work/rk3588s-poky-linux/linux-rockchip/5.10/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/im/Desktop/yocto_BSB/build/tmp/work/rk3588s-poky-linux/linux-rockchip/5.10/recipe-sysroot-native/lib -Wl,-rpath,/home/im/Desktop/yocto_BSB/build/tmp/work/rk3588s-poky-linux/linux-rockchip/5.10/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/im/Desktop/yocto_BSB/build/tmp/work/rk3588s-poky-linux/linux-rockchip/5.10/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/im/Desktop/yocto_BSB/build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 -pthread HOSTCPP=gcc -E HOSTCXX=g++ HOSTCXXFLAGS=-isystem/home/im/Desktop/yocto_BSB/build/tmp/work/rk3588s-poky-linux/linux-rockchip/5.10/recipe-sysroot-native/usr/include -O2 -pipe HOSTPKG_CONFIG=pkg-config-native PAHOLE=false -j 12 rk3588s-orangepi-5.img | make[3]: No rule to make target 'arch/arm64/boot/dts/rockchip/rk3588s-orangepi-5.dtb'. Stop. | make[2]: [/home/im/Desktop/yocto_BSB/build/tmp/work-shared/rk3588s/kernel-source/Makefile:1444: rockchip/rk3588s-orangepi-5.dtb] Error 2 | make[2]: Waiting for unfinished jobs.... | /home/im/Desktop/yocto_BSB/build/tmp/work-shared/rk3588s/kernel-source/scripts/extract-cert.c: In function 'display_openssl_errors': | /home/im/Desktop/yocto_BSB/build/tmp/work-shared/rk3588s/kernel-source/scripts/extract-cert.c:46:2: warning: 'ERR_get_error_line' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] | 46 | while ((e = ERR_get_error_line(&file, &line))) { | | ^~~~~ | In file included from /home/im/Desktop/yocto_BSB/build/tmp/work-shared/rk3588s/kernel-source/scripts/extract-cert.c:23: | /home/im/Desktop/yocto_BSB/build/tmp/work/rk3588s-poky-linux/linux-rockchip/5.10/recipe-sysroot-native/usr/include/openssl/err.h:423:15: note: declared here | 423 | unsigned long ERR_get_error_line(const char file, int line); | | ^~~~~~ | /home/im/Desktop/yocto_BSB/build/tmp/work-shared/rk3588s/kernel-source/scripts/extract-cert.c: In function 'drain_openssl_errors': | /home/im/Desktop/yocto_BSB/build/tmp/work-shared/rk3588s/kernel-source/scripts/extract-cert.c:60:2: warning: 'ERR_get_error_line' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] | 60 | while (ERR_get_error_line(&file, &line)) {}

In file included from /home/im/Desktop/yocto_BSB/build/tmp/work-shared/rk3588s/kernel-source/scripts/extract-cert.c:23: | /home/im/Desktop/yocto_BSB/build/tmp/work/rk3588s-poky-linux/linux-rockchip/5.10/recipe-sysroot-native/usr/include/openssl/err.h:423:15: note: declared here | 423 | unsigned long ERR_get_error_line(const char file, int line); | | ^~~~~~ | /home/im/Desktop/yocto_BSB/build/tmp/work-shared/rk3588s/kernel-source/scripts/extract-cert.c: In function 'main': | /home/im/Desktop/yocto_BSB/build/tmp/work-shared/rk3588s/kernel-source/scripts/extract-cert.c:130:3: warning: 'ENGINE_load_builtin_engines' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] | 130 | ENGINE_load_builtin_engines(); | | ^~~~~~~ | In file included from /home/im/Desktop/yocto_BSB/build/tmp/work-shared/rk3588s/kernel-source/scripts/extract-cert.c:24: | /home/im/Desktop/yocto_BSB/build/tmp/work/rk3588s-poky-linux/linux-rockchip/5.10/recipe-sysroot-native/usr/include/openssl/engine.h:358:28: note: declared here | 358 | OSSL_DEPRECATEDIN_3_0 void ENGINE_load_builtin_engines(void); | | ^~~~~~~ | /home/im/Desktop/yocto_BSB/build/tmp/work-shared/rk3588s/kernel-source/scripts/extract-cert.c:132:3: warning: 'ENGINE_by_id' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] | 132 | e = ENGINE_by_id("pkcs11"); | | ^ | In file included from /home/im/Desktop/yocto_BSB/build/tmp/work-shared/rk3588s/kernel-source/scripts/extract-cert.c:24: | /home/im/Desktop/yocto_BSB/build/tmp/work/rk3588s-poky-linux/linux-rockchip/5.10/recipe-sysroot-native/usr/include/openssl/engine.h:336:31: note: declared here | 336 | OSSL_DEPRECATEDIN_3_0 ENGINE ENGINE_by_id(const char id); | | ^~~~ | /home/im/Desktop/yocto_BSB/build/tmp/work-shared/rk3588s/kernel-source/scripts/extract-cert.c:134:3: warning: 'ENGINE_init' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] | 134 | if (ENGINE_init(e)) | | ^~ | In file included from /home/im/Desktop/yocto_BSB/build/tmp/work-shared/rk3588s/kernel-source/scripts/extract-cert.c:24: | /home/im/Desktop/yocto_BSB/build/tmp/work/rk3588s-poky-linux/linux-rockchip/5.10/recipe-sysroot-native/usr/include/openssl/engine.h:620:27: note: declared here | 620 | OSSL_DEPRECATEDIN_3_0 int ENGINE_init(ENGINE e); | | ^~~ | /home/im/Desktop/yocto_BSB/build/tmp/work-shared/rk3588s/kernel-source/scripts/extract-cert.c:139:4: warning: 'ENGINE_ctrl_cmd_string' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] | 139 | ERR(!ENGINE_ctrl_cmd_string(e, "PIN", key_pass, 0), "Set PKCS#11 PIN"); | | ^~~ | In file included from /home/im/Desktop/yocto_BSB/build/tmp/work-shared/rk3588s/kernel-source/scripts/extract-cert.c:24: | /home/im/Desktop/yocto_BSB/build/tmp/work/rk3588s-poky-linux/linux-rockchip/5.10/recipe-sysroot-native/usr/include/openssl/engine.h:479:5: note: declared here | 479 | int ENGINE_ctrl_cmd_string(ENGINE e, const char cmd_name, const char arg, | | ^~~~~~ | /home/im/Desktop/yocto_BSB/build/tmp/work-shared/rk3588s/kernel-source/scripts/extract-cert.c:140:3: warning: 'ENGINE_ctrl_cmd' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] | 140 | ENGINE_ctrl_cmd(e, "LOAD_CERT_CTRL", 0, &parms, NULL, 1); | | ^~~~~~~ | In file included from /home/im/Desktop/yocto_BSB/build/tmp/work-shared/rk3588s/kernel-source/scripts/extract-cert.c:24: | /home/im/Desktop/yocto_BSB/build/tmp/work/rk3588s-poky-linux/linux-rockchip/5.10/recipe-sysroot-native/usr/include/openssl/engine.h:450:27: note: declared here | 450 | OSSL_DEPRECATEDIN_3_0 int ENGINE_ctrl_cmd(ENGINE e, const char cmd_name, | | ^~~~~~~ | make[1]: [arch/arm64/Makefile:216: rk3588s-orangepi-5.img] Error 2 | make: *** [/home/im/Desktop/yocto_BSB/build/tmp/work-shared/rk3588s/kernel-source/Makefile:185: __sub-make] Error 2 | ERROR: oe_runmake failed | WARNING: exit code 1 from a shell command. ERROR: Task (/home/im/Desktop/yocto_BSB/build/../meta-rockchip/recipes-kernel/linux/linux-rockchip_5.10.bb:do_compile) failed with exit code '1' NOTE: Tasks Summary: Attempted 2956 tasks of which 2568 didn't need to be rerun and 1 failed.

JeffyCN commented 3 months ago

the dts is not available, please contact your board provider to get the kernel source.

and maybe you can build the kernel manually(not in the yocto), and flash it(boot.img) to the device.

masoudjalalir commented 3 months ago

is it good to use?

https://github.com/torvalds/linux/blob/master/arch/arm64/boot/dts/rockchip/rk3588s-orangepi-5.dts

JeffyCN commented 3 months ago

sorry, i don't know this board, please contact your board's provider.