build icon indicating copy to clipboard operation
build copied to clipboard

[Bug]: Translate me to carry out the instructions ".../ compile.sh dts-check BOARD=mekotronics-r58x-4x4 BRANCH=vendor ", my dts and dtsi files are automatically deleted, causing me to compile failure

Open antonyhuang-bit opened this issue 1 year ago ‱ 6 comments

What happened?

I want to compile my newly added DTS file properly and my DTS is not deleted

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.1__rk35xx__arm64' ] [đŸŒ±] 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.1__rk35xx__arm64 ] [đŸŒ±] 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

  • branch rk-6.1-rkr3 -> FETCH_HEAD [đŸŒ±] git: Fetch from remote completed, rev-parsing... [ 'kernel:6.1' 'rk-6.1-rkr3' 'FETCH_HEAD' ] [🌿] Using Kernel git revision [ 30da05a12335a6ccc1ca262e2b783f99b69731ec at 'Fri Aug 9 01:42:28 CST 2024' ] [💖] Using cached drivers patch file for rk35xx-vendor [ sha1_30da05a12335a6ccc1ca262e2b783f99b69731ec_rk35xx_vendor_53de5ec0_54342ed7-01ba4719 ] [đŸŒ±] Python3 version [ 3.10.12 - 'Python 3.10.12' ] [đŸŒ±] pip3 version [ 24.1: 'pip 24.1 from /usr/local/lib/python3.10/dist-packages/pip (python 3.10)' ] [đŸŒ±] Using cached pip packages for Python tools [ 54f3b4aed78bb9780e4bf0bde57fcc463b210e5dbf1a407d4f74976f0407b929 ] [đŸŒ±] Calling Python patching script for kernel: [ https://github.com/armbian/linux-rockchip.git - branch:rk-6.1-rkr3 ] [đŸŒ±] Using kernel patch dir: [ rk35xx-vendor-6.1 ] [🔹] Found patching config file: '/home/maizhuo/armbian/build/patch/kernel/rk35xx-vendor-6.1/0000.patching_config.yaml' [🔹] Applying 1 patches from 1 files of which 1 driver patches... [🔹] -> 1/1: /home/maizhuo/armbian/build/cache/patch/kernel-drivers/sha1_30da05a12335a6ccc1ca262e2b783f99b69731ec_rk35xx_vendor_53de5ec0_54342ed7-01ba4719(:1) [🔹] Autopatching DT Makefile in arch/arm64/boot/dts/rockchip with config 'CONFIG_ARCH_ROCKCHIP'... [🔹] Read 24990 bytes from /home/maizhuo/armbian/build/cache/sources/linux-kernel-worktree/6.1__rk35xx__arm64/arch/arm64/boot/dts/rockchip/Makefile [🔹] Read 403 lines from /home/maizhuo/armbian/build/cache/sources/linux-kernel-worktree/6.1__rk35xx__arm64/arch/arm64/boot/dts/rockchip/Makefile [🔹] Wrote 7 lines to /home/maizhuo/armbian/build/cache/sources/linux-kernel-worktree/6.1__rk35xx__arm64/arch/arm64/boot/dts/rockchip/Makefile [🔹] Summary: kernel patching: 1 total patches; 1 applied; 0 with problems [🔹] Summary of kernel patches
    [🔹] ╭───────────────────────────┬──────────────────┬──────────────────── [🔹] │ 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.1__rk35xx__arm64/.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?

  • [ ] Yes, my Ubuntu/Debian/OtherOS is running on WSL2

Relevant log URL

No response

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

antonyhuang-bit avatar Aug 12 '24 06:08 antonyhuang-bit

Jira ticket: AR-2460

github-actions[bot] avatar Aug 12 '24 06:08 github-actions[bot]

Is this device already in the system?

igorpecovnik avatar Aug 12 '24 06:08 igorpecovnik

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

antonyhuang-bit avatar Aug 12 '24 06:08 antonyhuang-bit

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 ...

igorpecovnik avatar Aug 12 '24 06:08 igorpecovnik

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.

SuperKali avatar Sep 06 '24 14:09 SuperKali

@antonyhuang-bit do you still need help with this?

leggewie avatar Apr 27 '25 22:04 leggewie

closing as stale for now

feel free to reopen at any time as necessary

leggewie avatar Jun 22 '25 13:06 leggewie