The boot.img exceeds 8MB in edge even when building with postmarketos-initramfs-minimal - this makes it impossible flashing to devices with small kernel partitions. In stable v24.06 boot.img is okay.
I'm kinda new to postmarketos, but removing some stuff from 00-default.modules and 00-initramfs-base.files solves the problem for my Samsung Galaxy Tab 2 10.0 - but maybe the files are required for other scenarios...
Just as an additional info:
The "6 ways to build pmos for samsung-espresso10 and flash it to the device" on the wiki states that flashing with heimdall is broken, but it will work when using sparse:
pmbootstrap install --sparse
pmbootstrap export
heimdall flash --DATAFS samsung-espresso10.img
Edited
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Child items 0
Show closed items
No child items are currently assigned. Use child items to break down this issue into smaller parts.
Linked items 0
Link issues together to show that they're related.
Learn more.
@Newbyte I don't maintain espresso, so I've unassigned myself.
Since the problem seems to be due to large initramfs, I don't see what @MightyM17 can do either. Perhaps you should assign this to the maintainers of the initramfs?
The same is probably true if the issue is due to the kconfig changes, since they're also imposed by the kconfig checks. Or could we be allowed to revert some of them in order to reduce kernel size? For example, linux-postmarketos-omap probably doesn't need the Waydroid and Containers stuff, since I doubt the SoCs in question are beefy enough for Waydroid and containers to begin with. UEFI stuff is also not needed for our kernel. I haven't checked how much weight these three add to the kernel size though but I guess not having them would help in some little way .
@chpoulter you may also want to have a look at !5636 (merged). Haven't tested it myself yet, but if you're lucky it might help.
@Newbyte I don't maintain espresso, so I've unassigned myself.
I assigned you since you maintain the omap kernel, which is where the culprit is. But if you're not interested in working on this, then you are of course welcome to unassign yourself.
Perhaps you should assign this to the maintainers of the initramfs?
The problem is not a growing initramfs but a growing kernel, so I don't think so.
The same is probably true if the issue is due to the kconfig changes, since they're also imposed by the kconfig checks. Or could we be allowed to revert some of them in order to reduce kernel size? For example, linux-postmarketos-omap probably doesn't need the Waydroid and Containers stuff, since I doubt the SoCs in question are beefy enough for Waydroid and containers to begin with. UEFI stuff is also not needed for our kernel. I haven't checked how much weight these three add to the kernel size though but I guess not having them would help in some little way
For exynos4, we were able to maintain compliance with the new kconfig check while also fitting the tiny 8 MB boot partitions of some devices: !5569 (merged). However, whether this is feasible for omap I cannot say. It might make sense to let community devices opt-out of e.g. UEFI booting if it doesn't make sense on their platform.
Not sure if this is possible, but maybe it would be more future-proof to use some sort of bootloader in the KERNEL partition, which fetches initramfs and kernel from DATAFS. Then you are free in kernel/initramfs size. You could also boot different operations systems - similar like grub on PCs - plus you could add a loading battery program.