- name: Install requires packages
run: |
sudo apt-get update
- sudo apt-get -y install build-essential uuid-dev iasl nasm gcc-aarch64-linux-gnu abootimg python3-distutils python3-pil python3-git gettext
+ sudo apt-get -y install build-essential uuid-dev iasl nasm gcc-aarch64-linux-gnu mkbootimg python3-distutils python3-pil python3-git gettext
- name: Build device ${{ matrix.device }}
run: |
- name: Install requires packages
run: |
sudo apt-get update
- sudo apt-get -y install build-essential uuid-dev iasl nasm gcc-aarch64-linux-gnu abootimg python3-distutils python3-pil python3-git gettext
+ sudo apt-get -y install build-essential uuid-dev iasl nasm gcc-aarch64-linux-gnu mkbootimg python3-distutils python3-pil python3-git gettext
- name: Build device ${{ matrix.device }}
run: |
```bash
sudo apt update
sudo apt upgrade
-sudo apt install build-essential uuid-dev iasl git nasm gcc-aarch64-linux-gnu abootimg python3-distutils python3-pil python3-git gettext
+sudo apt install build-essential uuid-dev iasl git nasm gcc-aarch64-linux-gnu mkbootimg python3-distutils python3-pil python3-git gettext
```
If you are using GCC 11+, modify `edk2/BaseTools/Source/C/Makefiles/header.makefile`
```bash\r
sudo apt update\r
sudo apt upgrade\r
-sudo apt install build-essential uuid-dev iasl git nasm gcc-aarch64-linux-gnu abootimg python3-distutils python3-pil python3-git gettext\r
+sudo apt install build-essential uuid-dev iasl git nasm gcc-aarch64-linux-gnu mkbootimg python3-distutils python3-pil python3-git gettext\r
```\r
\r
如果你的编译器为 GCC 11+, 请手动修改 `edk2/BaseTools/Source/C/Makefiles/header.makefile`\r
"device_specific/${DEVICE}.dtb" \
> "workspace/uefi-${DEVICE}.img.gz-dtb" \
||return "$?"
- abootimg \
- --create "${OUTDIR}/boot-${DEVICE}.img" \
- -k "workspace/uefi-${DEVICE}.img.gz-dtb" \
- -r ramdisk \
+ mkbootimg \
+ --kernel "workspace/uefi-${DEVICE}.img.gz-dtb" \
+ --ramdisk ramdisk \
+ --kernel_offset 0x00000000 \
+ --ramdisk_offset 0x00000000 \
+ --tags_offset 0x00000000 \
+ --os_version 12.0.0 \
+ --os_patch_level 2022-04 \
+ --header_version 1 \
+ -o "${OUTDIR}/boot-${DEVICE}.img" \
||return "$?"
echo "Build done: ${OUTDIR}/boot-${DEVICE}.img"
set +x