File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -1352,13 +1352,19 @@ if [[ ! $print_cmdline ]]; then
1352
1352
exit 1
1353
1353
fi
1354
1354
unset EFI_MACHINE_TYPE_NAME
1355
+ EFI_SECTION_VMA_INITRD=0x3000000
1355
1356
case $( uname -m) in
1356
1357
x86_64)
1357
1358
EFI_MACHINE_TYPE_NAME=x64
1358
1359
;;
1359
1360
i? 86)
1360
1361
EFI_MACHINE_TYPE_NAME=ia32
1361
1362
;;
1363
+ aarch64)
1364
+ EFI_MACHINE_TYPE_NAME=aa64
1365
+ # aarch64 kernels are uncompressed and thus larger, so we need a bigger gap between vma sections
1366
+ EFI_SECTION_VMA_INITRD=0x4000000
1367
+ ;;
1362
1368
* )
1363
1369
dfatal " Architecture '$( uname -m) ' not supported to create a UEFI executable"
1364
1370
exit 1
@@ -2540,7 +2546,7 @@ if [[ $uefi == yes ]]; then
2540
2546
${uefi_cmdline: +--add-section .cmdline=" $uefi_cmdline " --change-section-vma .cmdline=0x30000} \
2541
2547
${uefi_splash_image: +--add-section .splash=" $uefi_splash_image " --change-section-vma .splash=0x40000} \
2542
2548
--add-section .linux=" $kernel_image " --change-section-vma .linux=0x2000000 \
2543
- --add-section .initrd=" ${DRACUT_TMPDIR} /initramfs.img" --change-section-vma .initrd=0x3000000 \
2549
+ --add-section .initrd=" ${DRACUT_TMPDIR} /initramfs.img" --change-section-vma .initrd=" ${EFI_SECTION_VMA_INITRD} " \
2544
2550
" $uefi_stub " " ${uefi_outdir} /linux.efi" ; then
2545
2551
if [[ -n ${uefi_secureboot_key} && -n ${uefi_secureboot_cert} ]]; then
2546
2552
if sbsign \
You can’t perform that action at this time.
0 commit comments