Commit Graph

10 Commits

Author SHA1 Message Date
Viswanath Kraleti
f48bd85edf classes/linux-qcom-dtbbin.bbclass: Add a bbclass to generate dtb image
To be ARM System Ready IR compliant, QCOM UEFI implementation is now
supporting loading a matching device-tree by reading 'combined-dtb.dtb'
from the dtb partition.

linux-qcom-dtbbin.bbclass when inherited by kernel recipe, generates one
vfat image per dtb by packing dtb as 'combined-dtb.dtb'. This image can
be flashed into dtb parititon for UEFI to read and load device-tree.

Signed-off-by: Viswanath Kraleti <quic_vkraleti@quicinc.com>
2024-09-05 16:01:07 +05:30
Dmitry Baryshkov
ebd05ac35d Merge pull request #562 from quic-vkraleti/master
Fix dependency loop between INITRAMFS_IMAGE and UKI
2024-01-19 01:27:52 +02:00
Viswanath Kraleti
239eac4a32 linux-qcom-bootimg: Don't look for initramfs image with IMAGE_NAME_SUFFIX
initramfs images are no longer appended with '.rootfs' suffix. Adjust
baseinitrd lookup accordingly.

Signed-off-by: Viswanath Kraleti <quic_vkraleti@quicinc.com>
2024-01-18 23:07:06 +05:30
Viswanath Kraleti
5b2106aa90 recipes-kernel: Add linux-qcom-uki recipe
linux-qcom-uki recipe generates UKI by combining UEFI stub, kernel image,
initrd, os-release, optional dtb and other metadata like kernel cmdline.

Drop uki.bbclass as linux-qcom-uki is taking care of UKI generation.

Signed-off-by: Viswanath Kraleti <vkraleti@qti.qualcomm.com>
2024-01-18 22:38:38 +05:30
Viswanath Kraleti
708e9feb34 qcom-common.inc: Drop EFILINUXDIR variable
Oe-core's image-uefi.conf defined EFI_UKI_PATH to point to the uki
inside an esp image. Use this variable in place of EFILINUXDIR.

Also, renamed a few other EFI variables for readability.

Signed-off-by: Viswanath Kraleti <quic_vkraleti@quicinc.com>
2024-01-16 23:18:00 +05:30
Viswanath Kraleti
37dbdfa8c8 linux-qcom-bootimg: Fix a typo in adding task dependencies
Make sure qcom_img_deploy task run only after initramfs is available

Signed-off-by: Viswanath Kraleti <quic_vkraleti@quicinc.com>
2023-12-05 11:03:25 +05:30
Viswanath Kraleti
c48b6ca881 linux-qcom-bootimg: Read dtb from KERNEL_DTBDEST
KERNEL_DTBDEST is the right place to look for dtb files. This variable
may deafult to KERNEL_IMAGEDEST but not always. So to avoid failures
it is must to read dtb files only from KERNEL_DTBDEST.

Signed-off-by: Viswanath Kraleti <quic_vkraleti@quicinc.com>
2023-12-05 11:03:22 +05:30
Viswanath Kraleti
b568621c47 classes: Add bbclass for generating UKI
A unified kernel image (UKI) can be booted directly from UEFI.
The UKI is composed by an UEFI stub, the kernel Image, initrd and
other metadata like kernel cmdline.

This bbclass upon inherting in kernel recipe, generates UKI and
places the same under DEPLOY_DIR_IMAGE.

Signed-off-by: Viswanath Kraleti <quic_vkraleti@quicinc.com>
2023-12-05 11:02:46 +05:30
Dmitry Baryshkov
2029315516 linux-qcom-bootimg: convert to the bbclass
In order to improve sharing of the bootimg code, convert it to the
BitBake class instead of it being just an include.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
2023-11-03 20:20:13 +03:00
Nicolas Dechesne
3a70f96d66 classes: qcom-firmware-mount: automatically mount firmware partition
On some Qualcomm platform, the firmware reside in their own partition, in such
situation we can mount this partition automatically at boot.

Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
2015-10-12 20:11:07 +01:00