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

Merged
merged 5 commits into from
Mar 5, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix wrong kernel name bug on raspberry pi 5
  • Loading branch information
KubaTaba1uga committed Jan 11, 2025
commit 08b3ad5463f0f0d4217cf11956734259af815bb0
12 changes: 12 additions & 0 deletions config/sources/families/bcm2711.conf
Original file line number Diff line number Diff line change
@@ -110,6 +110,18 @@ function post_family_tweaks_bsp__add_hooks_to_move_kernel_initrd_and_dtb() {
target=/boot/firmware
dtb_dir=/usr/lib/linux-image-$abi/

# The kernel image can be named either "Image" (standardized for ARM platforms)
# or "vmlinuz-${abi}" (default naming convention for Linux kernels). We need
# too support both conventions.
if [[ -f /boot/Image ]]; then
cp /boot/Image ${target}/vmlinuz
elif [[ -f /boot/vmlinuz-${abi} ]]; then
cp /boot/vmlinuz-${abi} ${target}/vmlinuz
else
echo "Error: No kernel file (Image or vmlinuz-${abi}) found in /boot!"
exit 1
fi

cp /boot/vmlinuz-${abi} ${target}/vmlinuz
cp ${dtb_dir}/broadcom/*.dtb ${target}/
cp -r ${dtb_dir}/overlays ${target}/