Commit Graph

59 Commits

Author SHA1 Message Date
Viswanath Kraleti
37c6eb601a qcom-armv8a.conf: Set KERNEL_IMAGETYPES to 'Image'
Move KERNEL_IMAGETYPES setting from qcom-common.inc to qcom-armv8a.conf
as former is common for both qcom-armv7a and qcom-armv8a machines. We
need "Image" type kernel only for qcom-armv8a to support UKI.

Signed-off-by: Viswanath Kraleti <quic_vkraleti@quicinc.com>
2024-10-11 11:21:44 +05:30
Dmitry Baryshkov
f8e1b28131 Merge pull request #622 from quic-vkraleti/master
Support optional dtb loading via UKI
2024-09-05 14:00:49 +03:00
Viswanath Kraleti
fd305a603b linux-qcom-uki.bb: Support optional dtb loading via UKI
UEFI provides default compatible DTB. If a DTB is present in UKI,
systemd-boot passes the same to Linux instead of UEFI provided DTB.
This optional overriding of DTB via UKI allows the users to customize
DTBs as per product needs without regenerating the firmware.

To override DTB via UKI, users need to set EFI_LINUX_IMG_DTB to an
appropriate dtb file name. For example
EFI_LINUX_IMG_DTB = "qcs6490-rb3gen2.dtb"

Signed-off-by: Viswanath Kraleti <quic_vkraleti@quicinc.com>
2024-09-05 14:44:27 +05:30
Dmitry Baryshkov
e5bf97414c qcom-common.inc: set PREFERRED_VERSION for linux-yocto
Now as the OE-Core has gained several linux-yocto versions, specify the
preferred one.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
2024-08-27 07:43:27 +03:00
Viswanath Kraleti
bf8c2a94b3 qcom-common.inc: Add 'Image' to KERNEL_IMAGETYPES
UKI generation needs uncompressed kernel image. Specifying
'Image' in KERNEL_IMAGETYPES ensures uncompressed kernel
image is always built.

Signed-off-by: Viswanath Kraleti <quic_vkraleti@quicinc.com>
2024-01-18 22:30:14 +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
Dmitry Baryshkov
b27a7f1bfc Merge pull request #548 from quic-vkraleti/efi-boot
Efi boot support
2023-12-05 14:29:13 +02:00
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
f928227c46 qcom-common.inc: make it less insisting on the default kernel
As we are transitioning to linux-yocto, make the life of machine config
files easier and let qcom-common.inc be less insisting on the preferred
kernel recipe.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
2023-11-21 15:22:15 +03:00
Dmitry Baryshkov
ca50123dd8 dragonboard410c: move tune inclusion to SoC file
Follow the usual practice and move tune inclusion to the SoC file. Make
32-bit 410c config file use generic 'armv7athf-neon-vfpv4' tune, since
it is not a Cortex-A8.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
2023-07-28 23:25:12 +03:00
Dmitry Baryshkov
359cd0cbde qcom-common.inc: drop legacy/obsolete xf86-input drivers
With the removal of xf86-input-keyboard recipe form oe-core, meta-qcom
now depends on the unavailable package. While we are at it, follow the
change applied in 2016 to oe-core and also drop xf86-input-mouse.
xf86-input-evdev and -libinput should handle everything instead.

Note: the oe-core has also dropped the -evdev driver, but I'd prefer to
be safe than sorry and leave it in place for now.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
2022-08-01 19:31:25 +03:00
Dmitry Baryshkov
9a9c932eb2 qcom-apq8096: enable crc and crypto instructions
APQ8096 supports CRC32 and crypto extensions. Enable corresponding
instructions.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
2022-04-04 12:29:34 +03:00
Dmitry Baryshkov
53ee489288 qcom-apq8064.inc: enable VFPv4 support
Enable VFPv4 support on APQ8064, it is supported by the core.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
2022-04-04 12:28:00 +03:00
Dmitry Baryshkov
d92347a34d qcom-apq8064.inc: switch to Cortex-A15 tune file
APQ8064 core is closer to A15 rather than A8: decode width 3, VFPv4,
128-bit wide NEON. Switch the tune file to Cortex-A15.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
2022-04-04 12:26:13 +03:00
Dmitry Baryshkov
6b2403bfd5 qcom-qcommon.inc: increase INITRAMFS_MAXSIZE
Default INITRAMFS_MAXSIZE is specified as 128 MiB, which can be easily
exceeded by e.g. initramfs-kerneltest-full-image. Increase the maximum
size to 384 MiB, allowing all initramfs test images to fit.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
2021-10-20 19:50:58 +03:00
Bhupesh Sharma
bbadb282bb conf/machine: Add initial support for SA8155P-ADP board
Add configuration files for SA8155P-ADP board which
uses the SM8150 SoC.

Here we create an include (.inc) file and a configuration
(.conf) file for the adp board.

This board doesn't support graphics / display (at least
for now).

Signed-off-by: Bhupesh Sharma <bhupesh.sharma@linaro.org>
2021-09-04 00:58:00 +05:30
Khem Raj
7f306edd18 machines: Adjust to use new location of tune files in oe-core
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-08-18 11:27:04 -07:00
Nicolas Dechesne
ad14150a7a layer: convert to new override syntax
The conversion was mostly automated with:
./scripts/contrib/convert-overrides.py

With a few manual tweaks.

Also change LAYERCOMPAT to honister.

Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
2021-08-03 11:04:14 +02:00
Aníbal Limón
40ae8d5b56 conf/machine: Set default SERIAL_CONSOLES in qcom-common.inc
The SERIAL_CONSOLES var is used inside systemd-serialgetty.bb to
generate systemd unit to get console after boot, this fix no console in
DB845c.

Changes,

Remove SERIAL_CONSOLES set in sdx55-mtp.conf since is the default one.
Add override in sdx55-telit-fn980 to set serial console.

Signed-off-by: Aníbal Limón <anibal.limon@linaro.org>
2021-07-22 07:56:31 -05:00
Nicolas Dechesne
42843203e0 Merge pull request #259 from Mani-Sadhasivam/sdx55
Initial machine support for SDX55
2021-02-15 17:11:57 +01:00
Dmitry Baryshkov
67aa26f6d2 conf/machine/include/*: switch QCOM_BOOTIMG_PAGE_SIZE default
Newer Qualcomm machines default to QCOM_BOOTIMG_PAGE_SIZE being 4096.
Change default from 2048 to 4096 and update machine config files.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
2021-02-09 23:42:30 +03:00
Manivannan Sadhasivam
640b890f5e Initial support for SDX55-MTP
SDX55-MTP based on SDX55 chipset which uses ubi filesystem for rootfs.

Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
2021-02-02 19:15:57 +05:30
Dmitry Baryshkov
622e55961a qcom-common.inc: use android-tools-conf-configfs for adbd
Select android-tools-conf-configfs as PREFERRED_PROVIDER for
android-tools-conf, so that adbd startup scripts will use it for device
configuration.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
2021-01-07 16:57:46 +03:00
Dmitry Baryshkov
c562d92527 qcom-common.conf: add qcom to SOC_FAMILY
Add 'qcom' to SOC_FAMILY variable to let recipes use generic 'qcom'
override. This makes adding support for newer machines/families error
prone, since we can enable all BSP patches/features for all families
without having to list them one by one.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
2020-11-26 20:47:20 +03:00
Aníbal Limón
03f7b62516 conf/machine: Add qcom-common.inc to avoid duplicate settings
Signed-off-by: Aníbal Limón <anibal.limon@linaro.org>
2020-11-26 20:46:07 +03:00