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

esp-qcom-image cleanup #689

Merged
merged 6 commits into from
Dec 5, 2024
Merged

Conversation

ricardosalveti
Copy link
Contributor

Improve esp-qcom-image to make it aligned with the partition size and with the correct files for an ESP partition.

Fixes:

  • Change default image size to 512MB, aligned with the default ESP partition size
  • Change sector size to 4096 to allow kernel mounting ESP at runtime
  • Drop systemd-bootconf, not required with UKIs
  • Remove unused files and directories (e.g. /usr, /bin, /var, /etc, etc).

@ricardosalveti
Copy link
Contributor Author

@quic-vkraleti ^^

Change the default vfat sector size for the ESP qcom image from 512 to
4096, as the default is too small for UFS-based devices.

This is required in order for the kernel to be able to mount the esp
partition at runtime.

Signed-off-by: Ricardo Salveti <[email protected]>
Default ESP partition size used for the targets depending on
esp-qcom-image is 512MB, align the vfat image size with the expected
partition size.

Signed-off-by: Ricardo Salveti <[email protected]>
LINGUAS_INSTALL gets set based on the values set in IMAGE_LINGUAS, but
the most common and documented variable for setting the image-based
locales is IMAGE_LINGUAS.

Signed-off-by: Ricardo Salveti <[email protected]>
Set IMAGE_FEATURES to empty as there is no need to include standard
IMAGE_FEATURES on the ESP image, since it should only contain UKI +
systemd-boot.

Signed-off-by: Ricardo Salveti <[email protected]>
systemd-bootconf is not required with type Linaro#2 boot loader entries
(UKIs), and it is currently not used at runtime.

Signed-off-by: Ricardo Salveti <[email protected]>
OE creates a set of directories and files which are desired on standard
images, but are not required for ESP as this is a minimal non-rootfs
standard image.

Remove everything but the 'EFI' folder from the ESP image via a custom
IMAGE_PREPROCESS_COMMAND command, as the base files and directories
are needed during the rootfs task.

Signed-off-by: Ricardo Salveti <[email protected]>
@lumag lumag merged commit 210c102 into Linaro:master Dec 5, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants