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

fix wrong kernel name bug on raspberry pi 5 #7692

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

KubaTaba1uga
Copy link

Description

An error occured when I enabled the cloud-init extension with the rpi5b board. From what i understand the /boot/vmlinuz-6.6.70-current-bcm2711 file is being renamed to /boot/Image during the build process. This causes the build to fail with the error:

[🌱] Populating /boot/firmware directory [ bcm2711 ]
[🔨]   cp: cannot stat '/boot/vmlinuz-6.6.70-current-bcm2711': No such file or directory
[💥] Error 1 occurred in main shell [ at /home/taba1uga/build/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:185
             post_family_tweaks() --> <extension_magic>:153
          call_extension_method() --> lib/functions/general/extensions.sh:57
   install_distribution_agnostic() --> lib/functions/rootfs/distro-agnostic.sh:384
                do_with_logging() --> lib/functions/logging/section-logging.sh:81
         build_rootfs_and_image() --> lib/functions/main/rootfs-image.sh:31
   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

I attempted to reproduce the issue with the orangepi5 board, but the issue appears to be specific to the Raspberry Pi 5 board (rpi5b).

This is pull request fixing the bug.

GitHub issue reference:
Jira reference number [AR-9999]

How Has This Been Tested?

I Run the following build command:

./compile.sh build BOARD=rpi5b BRANCH=current BUILD_DESKTOP=no BUILD_MINIMAL=yes KERNEL_CONFIGURE=no RELEASE=bookworm KERNEL_GIT=shallow ENABLE_EXTENSIONS="cloud-init"

Which compiled succesfull. Then i flashed image to sd card and booted raspberry pi 5 using the image. I was able to log in and confirm that cloud-init is working.

Checklist:

Please delete options that are not relevant.

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • Any dependent changes have been merged and published in downstream modules

@github-actions github-actions bot added size/small PR with less then 50 lines Needs review Seeking for review Hardware Hardware related like kernel, U-Boot, ... labels Jan 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Hardware Hardware related like kernel, U-Boot, ... Needs review Seeking for review size/small PR with less then 50 lines
Development

Successfully merging this pull request may close these issues.

1 participant