Open antonyhuang-bit opened 1 month ago
Jira ticket: AR-2460
Is this device already in the system?
Is this device already in the system?èŻ„èźŸć€æŻćŠć·Čćšçł»ç»äžïŒ
Thank you for your reply , This device has not been added to the system yet, I am trying to add it
I am trying to add it
Understand.
We don't have the best manual (they are in fact terrible) but try to study it, code, examples, try command kernel-patch
, add code to the sources with a patch or put DT directly ...
I am trying to add it
The fastest method is to fork the kernel on your GitHub profile, add the dts and related changes, clone this repository https://github.com/armbian/build and edit the config/sources/families/rockchip-rk3588.conf
file changing the kernel pointers to your repository.
What happened?
How to reproduce?
./compile.sh dts-check BOARD=mekotronics-r58x-4x4 BRANCH=vendor
(base) maizhuo@maizhuo-virtual-machine:~/armbian/build$ ./compile.sh dts-check BOARD=mekotronics-r58x-4x4 BRANCH=vendor [đż] Applying cmdline param [ 'BRANCH': '(unset)' --> 'vendor' early ] [đż] Applying cmdline param [ 'BOARD': '(unset)' --> 'mekotronics-r58x-4x4' early ] [đ±] artifact [ kernel :: kernel() ] [đž] This script requires root privileges; Docker is unavailable [ trying to use sudo ] [sudo] password for maizhuo: [đż] Applying cmdline param [ 'PREFER_DOCKER': '(unset)' --> 'no' early ] [đ±] Skip cmdline param [ 'ARMBIAN_RELAUNCHED': already set to 'yes' early ] [đż] Applying cmdline param [ 'BRANCH': '(unset)' --> 'vendor' early ] [đż] Applying cmdline param [ 'BOARD': '(unset)' --> 'mekotronics-r58x-4x4' early ] [đż] Applying cmdline param [ 'SET_OWNER_TO_UID': '(unset)' --> '1000' early ] [đ±] artifact [ kernel :: kernel() ] [đ±] Starting single build process [ mekotronics-r58x-4x4 ] [đ±] Checking [ basic host setup ] [đ±] Build host OS release [ jammy ] [đ±] Build host architecture [ amd64 ] [đ±] Sourcing board configuration [ /home/maizhuo/armbian/build/config/boards/mekotronics-r58x-4x4.csc ] [đ±] shared vendor code [ Mekotronics (RK3588) config ] [đż] Enabling extension [ bluetooth-hciattach ] [â ] change-tracking: after sourcing board file config/boards/mekotronics-r58x-4x4.csc [ BOARDFAMILY='rockchip-rk3588' ] [â ] change-tracking: after sourcing board file config/boards/mekotronics-r58x-4x4.csc [ BOOTCONFIG='mekotronics_r58x-rk3588-4x4_docker_defconfig mekotronics_r58x-rk3588-4x4_linux_defconfig' ] [â ] change-tracking: after defaulting LINUXFAMILY to BOARDFAMILY [ LINUXFAMILY='rockchip-rk3588' ] [đ±] Starting main configuration [đ±] Using REVISION from [ main VERSION file: '24.8.0-trunk' ] [đ±] Sourcing family configuration [ /home/maizhuo/armbian/build/config/sources/families/rockchip-rk3588.conf ] [đż] Enabling extension [ rkbin-tools ] [đ±] Determined BOOT_SOC from BOOTCONFIG [ BOOT_SOC: 'rk3588'; BOOTCONFIG: 'mekotronics_r58x-rk3588-4x4_docker_defconfig mekotronics_r58x-rk3588-4x4_linux_defconfig' ] [â ] change-tracking: after sourcing family config [ KERNELSOURCE='https://github.com/armbian/linux-rockchip.git' ] [â ] change-tracking: after sourcing family config [ KERNEL_MAJOR_MINOR='6.1' ] [â ] change-tracking: after sourcing family config [ KERNELBRANCH='branch:rk-6.1-rkr3' ] [â ] change-tracking: after sourcing family config [ LINUXFAMILY='rk35xx' # (was: 'rockchip-rk3588') ] [â ] change-tracking: after sourcing family config [ KERNELPATCHDIR='rk35xx-vendor-6.1' ] [â ] change-tracking: after sourcing family config [ BOOTSOURCE='https://github.com/radxa/u-boot.git' ] [â ] change-tracking: after sourcing family config [ BOOTBRANCH='branch:next-dev-v2024.03' ] [â ] change-tracking: after sourcing family config [ BOOTPATCHDIR='legacy/u-boot-radxa-rk35xx' ] [â ] change-tracking: after sourcing family config [ BOOTDIR='u-boot-rockchip64' ] [â ] change-tracking: after sourcing family config [ NETWORKING_STACK='network-manager' ] [đ±] Sourcing arch configuration [ arm64.conf ] [đ±] Using NETWORKING_STACK [ NETWORKING_STACK: network-manager ] [đ±] Adding networking extensions [ net-network-manager, net-chrony ] [đż] Enabling extension [ net-network-manager ] [đż] Enabling extension [ net-chrony ] [đ±] Extension manager [ processed 14 Extension Methods calls and 22 Extension Method implementations ] [đ±] Extension: bluetooth-hciattach: mekotronics-r58x-4x4 [ adding bluetooth packages to image ] [đ±] mekotronics-r58x-4x4 [ Configuring mekotronics-r58x-4x4 vendor u-boot ] [đ±] rockchip64_common: defaulting SERIALCON [ Setting SERIALCON to ttyFIQ0 for BRANCH='vendor' ] [đ±] Extension: bluetooth-hciattach: mekotronics-r58x-4x4 [ initializing config ] [đ±] Extension: net-chrony: Adding extra package to image [ chrony ] [đ±] Extension: net-network-manager: Adding extra packages to image [ network-manager network-manager-openvpn netplan.io ] [â ] change-tracking: after late_family_config hooks [ LINUXCONFIG='linux-rk35xx-vendor' ] [â ] change-tracking: after late_family_config hooks [ KERNEL_PATCH_ARCHIVE_BASE='rk35xx' ] [â ] change-tracking: before handling KERNEL_MAJOR_MINOR in config_post_main [ BOOTSOURCEDIR='u-boot-worktree/u-boot-rockchip64/next-dev-v2024.03' ] [â ] change-tracking: before calling extension_finish_config [ LINUXSOURCEDIR='linux-kernel-worktree/6.1rk35xxarm64' ] [đ±] Minimal configuration prepared for build [ prep_conf_main_minimal_ni ] [âš] Repeat Build Options (early) [ ./compile.sh dts-check BOARD=mekotronics-r58x-4x4 BRANCH=vendor ] [đ±] Checked directory OK for mount options [ /home/maizhuo/armbian/build/.tmp ('main temporary dir') ] [đ±] Preparing [ host ] [đ±] Syncing clock [ host ] [đš] 12 Aug 10:12:14 ntpdate[4534]: adjust time server 202.112.29.82 offset -0.046937 sec [đ±] Ignoring toolchains [ SKIP_EXTERNAL_TOOLCHAINS: yes ] [đ±] Setting kernel git cache TTL to [ 120 ] [đ±] Producing new & caching [ GIT_INFO_KERNEL ] [đ±] Fetching SHA1 of 'branch' 'refs/heads/rk-6.1-rkr3' [ https://github.com/armbian/linux-rockchip.git ] [đ±] SHA1 of branch refs/heads/rk-6.1-rkr3 [ '30da05a12335a6ccc1ca262e2b783f99b69731ec' ] [đ±] User patches directory for kernel [ /home/maizhuo/armbian/build/userpatches/kernel/rk35xx-vendor-6.1 ] [đ±] Using kernel config file [ config/kernel/linux-rk35xx-vendor.config ] [đ±] Kernel build starting [ linux-kernel-worktree/6.1rk35xxarm64 ] [đ±] Using full Kernel bare tree for 6.1 [ existing worktree points to full ] [đ] Kernel bare tree already exists [ /home/maizhuo/armbian/build/cache/git-bare/kernel ] [đ±] Getting sources from Git [ kernel:6.1 rk-6.1-rkr3 ] [đż] Fetching updates from remote repository [ kernel:6.1 rk-6.1-rkr3 ] POST git-upload-pack (321 bytes) From https://github.com/armbian/linux-rockchip
[đš] âââââââââââââââââââââââââââââŹâââââââââââââââââââŹââââââââââââââââââââ [đš] â Patch / Status â Diffstat / files â Author / Subject
[đš] âââââââââââââââââââââââââââââŒâââââââââââââââââââŒââââââââââââââââââââ [đš] â sha1_30da05a12335a6ccc1c â (+0/-0)[] ? â Armbian Autopatcher [đš] â a262e2b783f99b69731ec_rk3 â â [AUTOGEN]
[đš] â 5xx_vendor_53de5ec0_54342 â â /home/maizhuo/armbi [đš] â ed7-01ba4719 â â
[đš] âââââââââââââââââââââââââââââŒâââââââââââââââââââŒââââââââââââââââââââ [đš] â Armbian Bare DT â â Armbian Autopatcher [đš] â auto-patch â â Armbian Bare DT fil [đš] â â â arch/arm64/boot/dts [đš] âââââââââââââââââââââââââââââŒâââââââââââââââââââŒââââââââââââââââââââ [đš] â Armbian DT Makefile â Makefile â Armbian Autopatcher [đš] â auto-patch â â Armbian DT Makefile [đš] â â â AutoPatch for
[đš] â â â arch/arm64/boot/dts [đš] â â â one-rule-for-all-dt [đš] â â â (arm 32-bit) style [đš] â â â (incremental)
[đš] â°ââââââââââââââââââââââââââââŽâââââââââââââââââââŽââââââââââââââââââââ [đż] Cross compilation [ target arm64 on host amd64 ] [đ±] Compiler version [ aarch64-linux-gnu-gcc 11.4.0 ] [đ±] Configuring kernel [ linux-rk35xx-vendor ] [đ±] Using kernel config file [ config/kernel/linux-rk35xx-vendor.config ] [đš] '/home/maizhuo/armbian/build/config/kernel/linux-rk35xx-vendor.config' -> '/home/maizhuo/armbian/build/cache/sources/linux-kernel-worktree/6.1rk35xxarm64/.config' [đš] HOSTCC scripts/basic/fixdep [đš] LEX scripts/kconfig/lexer.lex.c [đš] YACC scripts/kconfig/parser.tab.[ch] [đš] HOSTCC scripts/kconfig/lexer.lex.o [đš] HOSTCC scripts/kconfig/parser.tab.o [đš] HOSTLD scripts/kconfig/conf [đš] # [đš] # No change to .config [đš] # [đš] '.config' -> '.config_after_kernel_config_extension' [đš] # [đš] # No change to .config [đš] # [đż] No misconfigurations or missing kernel option dependencies detected [ info ] [đ±] Kernel configuration [ linux-rk35xx-vendor ] [đ±] Validating dts/dtb file for selected board [ rockchip/rk3588-blueberry-r58-4X4-linux.dtb ; see output below ] [đš] SYNC include/config/auto.conf.cmd [đš] LEX scripts/dtc/dtc-lexer.lex.c [đš] YACC scripts/dtc/dtc-parser.tab.[ch] [đš] HOSTLD scripts/dtc/fdtoverlay [đš] HOSTCC scripts/dtc/dtc-lexer.lex.o [đš] HOSTCC scripts/dtc/dtc-parser.tab.o [đš] HOSTLD scripts/dtc/dtc [đš] make[2]: No rule to make target 'arch/arm64/boot/dts/rockchip/rk3588-blueberry-r58-4X4-linux.dtb'. Stop. [đš] make[1]: [scripts/Makefile.build:500: arch/arm64/boot/dts/rockchip] Error 2 [đš] make: *** [Makefile:1471: rockchip/rk3588-blueberry-r58-4X4-linux.dtb] Error 2 [đ„] Error 2 occurred in main shell [ at /home/maizhuo/armbian/build/lib/functions/logging/runners.sh:211 run_host_command_logged_raw() --> lib/functions/logging/runners.sh:211 run_host_command_logged() --> lib/functions/logging/runners.sh:193 run_kernel_make_internal() --> lib/functions/compilation/kernel-make.sh:62 run_kernel_make() --> lib/functions/compilation/kernel-make.sh:66 validate_dts() --> lib/functions/compilation/kernel-dts-check.sh:20 do_with_logging() --> lib/functions/logging/section-logging.sh:81 compile_kernel() --> lib/functions/compilation/kernel.sh:85 artifact_kernel_build_from_sources() --> lib/functions/artifacts/artifact-kernel.sh:240 artifact_build_from_sources() --> lib/functions/artifacts/artifacts-obtain.sh:34 obtain_complete_artifact() --> lib/functions/artifacts/artifacts-obtain.sh:280 do_with_default_build() --> lib/functions/main/default-build.sh:42 cli_artifact_run() --> lib/functions/cli/cli-artifact.sh:67 armbian_cli_run_command() --> lib/functions/cli/utils-cli.sh:136 cli_entrypoint() --> lib/functions/cli/entrypoint.sh:176 main() --> compile.sh:50 ] [đ„] Cleaning up [ please wait for cleanups to finish ] [đż] ANSI log file built; inspect it by running: [ less -RS output/logs/log-dts-check-9bed64ed-e839-48fb-b59b-a53fe236bef5.log.ans ] [đż] Share log manually (or SHARE_LOG=yes): [ curl --data-binary @output/logs/log-dts-check-9bed64ed-e839-48fb-b59b-a53fe236bef5.log.ans https://paste.armbian.com/log ] (base) maizhuo@maizhuo-virtual-machine:~/armbian/build$
Branch
main (main development branch)
On which host OS are you running the build script and observing this problem?
Ubuntu 22.04 Jammy
Are you building on Windows WSL2?
Relevant log URL
No response
Code of Conduct