On Tue, 20 Jan 2026 13:48:18 +0100 "Tanguy Le Carrour" <[email protected]> wrote: > It would make sense to me to have 1 small image per board. You > download the one you need and **BOOM** you’re good to go.
Having an image that works on multiple boards is possible (the am335x-evm is an example of that), but doing that requires the same u-boot image to work on multiple computers. However in the case of the lime1-a20, lime2, lime2-emmc, there are 3 distinct u-boot images so we need 3 distinct Guix images as well, so here I was not talking about having a single image because that would require work in u-boot first, and that's not done yet. I was more talking about the fact that if we add the lime2, lime2-emmc, lime1-a20, we would end up with 3 almost identical files: - gnu/system/images/a20-olinuxino-lime2.scm - gnu/system/images/a20-olinuxino-lime2-emmc.scm - gnu/system/images/a20-olinuxino-lime1.scm So in that case it would make sense to reduce the code duplication between these files somehow. Though in the long run we also have an issue. Right now we have 11 images. If we want to add all the ARM computers supported by u-boot, we would end up with thousands of images, and that is probably not sustainable for the substitute builders. So in the longer run, it could also make sense to look if it is possible to somehow work with upstream u-boot to find ways to support all the lime2 with the exact same u-boot image to then get rid of all 3 images and have only one. I'm unsure how much that can scale though, because in the case of the "am335x-evm" computers, there is a small I2C eeprom with the computer name (like beaglebone black, beaglebone green, etc) and some other settings as well. So u-boot can find at runtime which computer it is running on and use the right hardware settings and drivers. Sometimes there are also other ways to distinguish between multiple computers or revisions of the same computers (like some pins of the CPU tied to VCC or ground that encode a value that tell the revision or the board). But I'm not sure if all the boards have that. Denis.
pgpp1N1bIdxGZ.pgp
Description: OpenPGP digital signature
