Fix GPIO offset in BT/WL fixup script and EEPROM update and other SB related changes#1242
Merged
Conversation
|
One or more environments require approval before deploying workflow runs. Maintainers, please inspect changes carefully for improper handling of secrets or other sensitive information. To approve pending deployments, submit an approved review, or a commented review with |
Recent changes have once again reached the initramfs limit. Change-type: patch Signed-off-by: Alex Gonzalez <alexg@balena.io>
When performing a hostOS update we perform atomic writes of individual files, that is, first we copy a new file, and then we rename. The rename operation is atomic on some filesystems like ext4, but on vfat it has not been atomic until Linux kernel v6.0. Even if probably no longer needed with >v6.0 kernels, we still use fatrw to keep a checksummed copy of the file. The boot.img that contains the kernel and initramfs has increased in size and two copies of it no longer fits in the boot partition. Changelog-entry: increase the boot partition size for CM4 to support secure boot Signed-off-by: Alex Gonzalez <alexg@balena.io>
For kernel 6.12, the GPIO offsets have changed so use the new offset. The sysfs interface is deprecated, but gpiod tools cannot be used to set persistent GPIO values, and there doesn't seem to be a better alternative. Changelog-entry: fix kexec fixup script on CM4/RPI4. Signed-off-by: Alex Gonzalez <alexg@balena.io>
Recent discussions have settled around doubling the rootfs size as this will also be the strategy used for re-partitioning. * The current rootfs size is (700 - 40 - 20 ) / 2 = 320 MiB * To double it (1340 - 40 - 20) / 2 = 640MiB This commits sets the rootfs size to 655360 bytes, 640MiB. Signed-off-by: Alex Gonzalez <alexg@balena.io>
Previously the audio driver was directly called from the device tree, and the audio pins were owned by the audio driver. Hence, unloading the audio driver would free pins 40/41 and they could be dynamically assigned to SPI0 and re-used to program the EEPROM. On recent kernels the audio driver is now a platform driver called from the vchiq driver (message queuing to the video core), and the audio pins are now owned by the vchiq driver which cannot be unloaded. Hence, these pins cannot be dynamically re-assigned. This commits remaps the audio pins to GPIOs 12/13 freeing up GPIOs 40/41 to use for re-programming. This is done only for the raspberrypicm4-ioboard-sb given that it's a new board and we do not have to worry about existing applications. For other device types, in particular the Raspberrypi 4 that uses by default pins 40/41 for the headphones output, this won't work. We will need to move to self-update support, although that still requires to re-program the EEPROM to configure it. Changelog-entry: remap audio pins for raspberrypicm4-ioboard-sb Signed-off-by: Alex Gonzalez <alexg@balena.io>
If flasher is re-run, try to prevent the previous encrypted data to be accessible. Change-type: patch Signed-off-by: Alex Gonzalez <alexg@balena.io>
Make sure the encrypted partitions structure is as expected - bail out if strange partitions are encountered. Changelog-entry: perform encryption partition assertions on mount Signed-off-by: Alex Gonzalez <alexg@balena.io>
acostach
approved these changes
Jul 3, 2025
Contributor
Author
|
/rebase |
1 similar comment
Contributor
Author
|
/rebase |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.