Skip to content

[Bug]: radxa-dragon-q6a build failed #9295

@ggg17226

Description

@ggg17226

What happened?

build image for radxa q6a failed with error:

cp: cannot stat '/usr/lib/linux-image-6.18.7-edge-qcs6490/qcom/qcs6490-radxa-dragon-q6a.dtb': No such file or directory

[🌿] Allocated loop device [ LOOP=/dev/loop0 ]
[🌿] Creating rootfs [ ext4 on /dev/loop0p2 ]
[🔨]   tune2fs 1.47.0 (5-Feb-2023)
[🌿] Mounting rootfs [ /dev/loop0p2 (UUID=6be0b9fe-1af5-4c00-ae03-b608ef633169) ]
[🔨]   UUID=6be0b9fe-1af5-4c00-ae03-b608ef633169 / ext4 defaults,,commit=120,errors=remount-ro 0 1
[🌿] Creating EFI partition [ FAT32 /boot/efi on /dev/loop0p1 label armbi_efi ]
[🔨]   mkfs.fat 4.2 (2021-01-31)
[🌿] Copying files via rsync to [ / (MOUNT root) ]
[🔨]
[🔨]   sent 4.19G bytes  received 1.24M bytes  364.22M bytes/sec
[🔨]   total size is 4.19G  speedup is 1.00
[🌿] Copying files to [ /boot (MOUNT /boot) ]
[🔨]
[🔨]   sent 59.28M bytes  received 6.46K bytes  118.58M bytes/sec
[🔨]   total size is 59.25M  speedup is 1.00
[🌱] Deploying qemu-user-static binary to chroot [ qemu-aarch64-static during initrd# ]
[🔨]   '/usr/bin/qemu-aarch64-static' -> '/data/build/src/armbian-build/.tmp/mount-3904ed14-bb53-4f28-870f-63a7daa4ca47/usr/bin/qemu-aarch64-static'
[💖] initrd cache hit [ initrd.img-6.18.7-edge-qcs6490-cd1318c3eaff91f6ce7ff949726eed9f ]
[🔨]   '/data/build/src/armbian-build/cache/initrd/initrd.img-6.18.7-edge-qcs6490-cd1318c3eaff91f6ce7ff949726eed9f' -> '/data/build/src/armbian-build/.tmp/mount-3904ed14-bb53-4f28-870f-63a7daa4ca47/boot/initrd.img-6.18.7-edge-qcs6490'
[🌿] Re-enabling [ initramfs-tools hook for kernel ]
[🔨]   mode of '/etc/kernel/postinst.d/initramfs-tools' changed from 0644 (rw-r--r--) to 0755 (rwxr-xr-x)
[🌱] Unmounting [ /data/build/src/armbian-build/.tmp/mount-3904ed14-bb53-4f28-870f-63a7daa4ca47 ]
[🌱] Removing qemu-user-static binary from chroot [ qemu-aarch64-static during initrd ]
[🔨]   removed '/data/build/src/armbian-build/.tmp/mount-3904ed14-bb53-4f28-870f-63a7daa4ca47/usr/bin/qemu-aarch64-static'
[🌱] Free SD cache [ 14% ]
[🌱] Mount point [ 85% ]
[🌱] Extension: grub: Configuring GRUB [ UEFI GRUB; SERIALCON=ttyMSM0 ]
[🌿] Extension: grub: GRUB EFI kernel cmdline [ cmdline 'ttyMSM0 console=tty0 console=ttyMSM0 splash=verbose i915.force_probe=*' distro=Armbian timeout=0 ]
[🌱] Extension: grub: Installing bootloader [ GRUB ]
[🔨]   removed '/data/build/src/armbian-build/.tmp/mount-3904ed14-bb53-4f28-870f-63a7daa4ca47/etc/grub.d/10_linux'
[🔨]   removed '/data/build/src/armbian-build/.tmp/mount-3904ed14-bb53-4f28-870f-63a7daa4ca47/etc/grub.d/20_linux_xen'
[🔨]   '/data/build/src/armbian-build/packages/blobs/grub/09_linux_with_dtb.sh' -> '/data/build/src/armbian-build/.tmp/mount-3904ed14-bb53-4f28-870f-63a7daa4ca47/etc/grub.d/09_linux_with_dtb.sh'
[🔨]   mode of '/data/build/src/armbian-build/.tmp/mount-3904ed14-bb53-4f28-870f-63a7daa4ca47/etc/grub.d/09_linux_with_dtb.sh' changed from 0644 (rw-r--r--) to 0755 (rwxr-xr-x)
[🌱] Extension: grub-with-dtb: Deploying DTB for GRUB for image build [ radxa-dragon-q6a ]
[🔨]   Armbian: installing DTB for GRUB: 6.18.7-edge-qcs6490
[🔨]   Armbian: /etc/armbian-grub-with-dtb found, installing DTB for GRUB
[🔨]   Armbian: installing DTB for GRUB: /usr/lib/linux-image-6.18.7-edge-qcs6490/qcom/qcs6490-radxa-dragon-q6a.dtb -> /boot/armbian-dtb-6.18.7-edge-qcs6490
[🔨]   cp: cannot stat '/usr/lib/linux-image-6.18.7-edge-qcs6490/qcom/qcs6490-radxa-dragon-q6a.dtb': No such file or directory
[💥] Error 1 occurred in main shell [ at /data/build/src/armbian-build/lib/functions/logging/runners.sh:223
    run_host_command_logged_raw() --> lib/functions/logging/runners.sh:223
                  chroot_custom() --> lib/functions/logging/runners.sh:158
   grub_pre_install__force_run_kernel_hook_for_armbian_dtb() --> extensions/grub-with-dtb.sh:79
               grub_pre_install() --> <extension_magic>:196
          call_extension_method() --> lib/functions/general/extensions.sh:67
   pre_umount_final_image__install_grub() --> extensions/grub.sh:151
         pre_umount_final_image() --> <extension_magic>:366
          call_extension_method() --> lib/functions/general/extensions.sh:67
   create_image_from_sdcard_rootfs() --> lib/functions/image/rootfs-to-image.sh:108
                do_with_logging() --> lib/functions/logging/section-logging.sh:81
         build_rootfs_and_image() --> lib/functions/main/rootfs-image.sh:104
   full_build_packages_rootfs_and_image() --> lib/functions/main/default-build.sh:36
          do_with_default_build() --> lib/functions/main/default-build.sh:42
         cli_standard_build_run() --> lib/functions/cli/cli-build.sh:25
        armbian_cli_run_command() --> lib/functions/cli/utils-cli.sh:136
                 cli_entrypoint() --> lib/functions/cli/entrypoint.sh:208
                           main() --> ./compile.sh:50
 ]
[💥] Cleaning up [ please wait for cleanups to finish ]
[🌿] Unmounting recursively [ SDCARD - be patient ]
[🌿] Unmounting recursively [ MOUNT - be patient ]
[🚸] Freeing loop [ trap_handler_cleanup_rootfs_and_image /dev/loop0 ]

How to reproduce?

branch : main
commit id: 9aa6e1e

build command :

./compile.sh BOARD=radxa-dragon-q6a \
BRANCH=edge BUILD_DESKTOP=no BUILD_MINIMAL=no \
KERNEL_CONFIGURE=no RELEASE=noble USE_CCACHE=no \
INSTALL_HEADERS=yes EXTERNAL_NEW=compile EXTERNAL=yes  \
ARTIFACT_IGNORE_CACHE=yes

host info:

# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 24.04.3 LTS
Release:        24.04
Codename:       noble

# uname -a
Linux test-1 6.8.0-90-generic #91-Ubuntu SMP PREEMPT_DYNAMIC Tue Nov 18 14:14:30 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux

# lscpu
Architecture:             x86_64
  CPU op-mode(s):         32-bit, 64-bit
  Address sizes:          48 bits physical, 48 bits virtual
  Byte Order:             Little Endian
CPU(s):                   24
  On-line CPU(s) list:    0-23
Vendor ID:                AuthenticAMD
  BIOS Vendor ID:         Advanced Micro Devices, Inc.
  Model name:             AMD Ryzen 9 5900X 12-Core Processor
    BIOS Model name:      AMD Ryzen 9 5900X 12-Core Processor             Unknown CPU @ 3.7GHz
    BIOS CPU family:      107
    CPU family:           25
    Model:                33
    Thread(s) per core:   2
    Core(s) per socket:   12
    Socket(s):            1
    Stepping:             0
    Frequency boost:      enabled
    CPU(s) scaling MHz:   62%
    CPU max MHz:          3700.0000
    CPU min MHz:          2200.0000
    BogoMIPS:             7400.36
    Flags:                fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf rapl pni pclmulqdq monitor sss
                          e3 fma cx16 sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb cat_l3 cd
                          p_l3 hw_pstate ssbd mba ibrs ibpb stibp vmmcall fsgsbase bmi1 avx2 smep bmi2 erms invpcid cqm rdt_a rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local user_shstk clzero irperf
                           xsaveerptr rdpru wbnoinvd arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif v_spec_ctrl umip pku ospke vaes vpclmulqdq rdpid overflow_recov succor smca fsrm debug_
                          swap ibpb_exit_to_user
Virtualization features:
  Virtualization:         AMD-V
Caches (sum of all):
  L1d:                    384 KiB (12 instances)
  L1i:                    384 KiB (12 instances)
  L2:                     6 MiB (12 instances)
  L3:                     64 MiB (2 instances)
NUMA:
  NUMA node(s):           1
  NUMA node0 CPU(s):      0-23
Vulnerabilities:
  Gather data sampling:   Not affected
  Itlb multihit:          Not affected
  L1tf:                   Not affected
  Mds:                    Not affected
  Meltdown:               Not affected
  Mmio stale data:        Not affected
  Reg file data sampling: Not affected
  Retbleed:               Not affected
  Spec rstack overflow:   Mitigation; Safe RET
  Spec store bypass:      Mitigation; Speculative Store Bypass disabled via prctl
  Spectre v1:             Mitigation; usercopy/swapgs barriers and __user pointer sanitization
  Spectre v2:             Mitigation; Retpolines; IBPB conditional; IBRS_FW; STIBP always-on; RSB filling; PBRSB-eIBRS Not affected; BHI Not affected
  Srbds:                  Not affected
  Tsx async abort:        Not affected
  Vmscape:                Mitigation; IBPB before exit to userspace

# lsmem
RANGE                                  SIZE  STATE REMOVABLE  BLOCK
0x0000000000000000-0x00000000cfffffff  3.3G online       yes   0-25
0x0000000100000000-0x000000082fffffff 28.8G online       yes 32-261

Memory block size:       128M
Total online memory:      32G
Total offline memory:      0B

Branch

main (main development branch)

On which host OS are you running the build script and observing this problem?

Ubuntu 24.04 Noble

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working as it should

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions