build icon indicating copy to clipboard operation
build copied to clipboard

[Bug]: Can't build legacy branch of kernel for bcm2711

Open KhazAkar opened this issue 1 year ago • 12 comments

What happened?

What happened:

[🐳|🔨]   cp: cannot stat '/usr/lib/linux-image-6.1.93-legacy-bcm2711//broadcom/*.dtb': No such file or directory
[🐳|💥] Error 1 occurred in main shell [ at /armbian/lib/functions/logging/runners.sh:211
    run_host_command_logged_raw() --> lib/functions/logging/runners.sh:211
                  chroot_sdcard() --> lib/functions/logging/runners.sh:122
   post_family_tweaks__populate_boot_firmware_directory() --> config/sources/families/bcm2711.conf:184
             post_family_tweaks() --> <extension_magic>:125
          call_extension_method() --> lib/functions/general/extensions.sh:57
   install_distribution_agnostic() --> lib/functions/rootfs/distro-agnostic.sh:393
                do_with_logging() --> lib/functions/logging/section-logging.sh:81
         build_rootfs_and_image() --> lib/functions/main/rootfs-image.sh:28
   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:176
                           main() --> compile.sh:50

Expectation: It should build, just like current branch.

How to reproduce?

./compile.sh RELEASE=jammy BOARD=rpi4b BRANCH=legacy NETWORKING_STACK=network-manager KERNEL_CONFIGURE=prebuilt BUILD_DESKTOP=no BUILD_MINIMAL=yes EXTERNAL=yes EXTERNAL_NEW=prebuilt INSTALL_HEADERS=yes DISABLE_IPV6=false COMPRESS_OUTPUTIMAGE="sha,xz" KERNEL_GIT=shallow CONSOLE_AUTOLOGIN=no INCLUDE_HOME_DIR=yes

Plus, changes mentioned in logs are from this PR: https://github.com/armbian/build/pull/6503 - but since replacing config.txt from customize-image.sh wasn't working with it, I just appended my own lines to this changes - but shouldn't be relevant here.

Branch

other (only relevant in corner cases)

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

https://paste.armbian.com/qabigucato

Code of Conduct

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

KhazAkar avatar Aug 09 '24 09:08 KhazAkar

Jira ticket: AR-2456

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

Did you try without modifications?

EvilOlaf avatar Aug 09 '24 09:08 EvilOlaf

@EvilOlaf I'm currently testing edge with that change and works. I will stash it, reset and check again on 'legacy' branch.

KhazAkar avatar Aug 09 '24 10:08 KhazAkar

Stashed & reset, set to legacy branch AAAAAAND... Didn't worked. Same error. https://paste.armbian.com/jalujequzu

KhazAkar avatar Aug 09 '24 10:08 KhazAkar

It works on current and edge, but fails on legacy, right?

igorpecovnik avatar Aug 09 '24 13:08 igorpecovnik

@igorpecovnik exactly that.

KhazAkar avatar Aug 09 '24 14:08 KhazAkar

Why do you need legacy? We don't do much here, so its probably broken / unmaintained upstream.

Those are patches: https://github.com/armbian/build/tree/main/patch/kernel/archive/bcm2711-6.1 but should be harmless.

Can't you use 6.6.y kernel for your use case?

igorpecovnik avatar Aug 09 '24 14:08 igorpecovnik

I'm trying to get up & running RPi 3 based device, but on 6.6.x kernel I get error -110 for mmc1 device, which is SDIO based wifi card. 6.10 doesn't even work for me there. Since I want to get this specific ones as well as rpi 4, I need to find something which will work on both of them.

KhazAkar avatar Aug 09 '24 14:08 KhazAkar

I was able to build it now.

igorpecovnik avatar Aug 12 '24 15:08 igorpecovnik

I was able to build it now.

Would you mind saying how did you managed to do so? My bash-fu is not great, so I'd appreciate any help :)

KhazAkar avatar Aug 20 '24 07:08 KhazAkar

jammy fails in a different way now apparently, but I can confirm the problem for noble target against current HEAD with ./compile.sh RELEASE=noble BOARD=rpi4b BRANCH=legacy NETWORKING_STACK=network-manager KERNEL_CONFIGURE=prebuilt BUILD_DESKTOP=no BUILD_MINIMAL=yes EXTERNAL=yes EXTERNAL_NEW=prebuilt INSTALL_HEADERS=yes DISABLE_IPV6=false COMPRESS_OUTPUTIMAGE=sha,xz KERNEL_GIT=shallow CONSOLE_AUTOLOGIN=no INCLUDE_HOME_DIR=yes

https://paste.armbian.com/uhoheyolaf

leggewie avatar Aug 16 '25 20:08 leggewie