Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[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 #7064

Open
1 of 2 tasks
antonyhuang-bit opened this issue Aug 12, 2024 · 5 comments
Labels
Can be closed? Ping developers on stalled issue / PR Improper usage Provided input is not in the expected data format or structure User error A mistake that is made by the user

Comments

@antonyhuang-bit
Copy link

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

  • I agree to follow this project's Code of Conduct
@antonyhuang-bit antonyhuang-bit added the Bug Something isn't working as it should label Aug 12, 2024
Copy link

Jira ticket: AR-2460

@igorpecovnik
Copy link
Member

Is this device already in the system?

@antonyhuang-bit
Copy link
Author

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

@igorpecovnik igorpecovnik added User error A mistake that is made by the user Improper usage Provided input is not in the expected data format or structure and removed Bug Something isn't working as it should labels Aug 12, 2024
@igorpecovnik
Copy link
Member

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

@SuperKali
Copy link
Member

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.

@EvilOlaf EvilOlaf added the Can be closed? Ping developers on stalled issue / PR label Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Can be closed? Ping developers on stalled issue / PR Improper usage Provided input is not in the expected data format or structure User error A mistake that is made by the user
Development

No branches or pull requests

4 participants