armbian / build

Armbian Linux build framework generates custom Debian or Ubuntu image for x86, aarch64, riscv64 & armhf
https://www.armbian.com
GNU General Public License v2.0
3.98k stars 2.24k forks source link

[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 antonyhuang-bit opened 1 month ago

antonyhuang-bit commented 1 month ago

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

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

github-actions[bot] commented 1 month ago

Jira ticket: AR-2460

igorpecovnik commented 1 month ago

Is this device already in the system?

antonyhuang-bit commented 1 month ago

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 commented 1 month ago

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 commented 5 days ago

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.