Hei hei, some references, see below.
Am Fri, Apr 25, 2025 at 09:03:17AM -0600 schrieb Simon Glass: > Hi Tom, > > On Fri, 25 Apr 2025 at 08:37, Tom Rini <tr...@konsulko.com> wrote: > > > > On Fri, Apr 25, 2025 at 08:35:52AM -0600, Simon Glass wrote: > > > Hi Tom, > > > > > > On Thu, 24 Apr 2025 at 12:49, Tom Rini <tr...@konsulko.com> wrote: > > > > > > > > On Thu, Apr 24, 2025 at 12:31:38PM -0600, Simon Glass wrote: > > > > > Hi Martin, > > > > > […] > > > > > > > > > > Can't you change it, since you are introducing new support here? > > > > > > > > > > If not, then you could perhaps set the env variables to lowercase when > > > > > you find uppercase variables? I suppose that would require updating > > > > > the client to do the same thing too? > > > > > > > > > > It would be very confusing for a user to have upper-case variables for > > > > > some things. > > > > > > > > Simon, this is an unreasonable request. This is how RAUC has been > > > > working and deployed for years and years. It would be a nightmare trying > > > > to handle migration of existing deployments for an aesthetic change. > > > > > > Yes, I figured. Perhaps it could support lower case in future? This is > > > the first I have seen on RAUC in U-Boot, although I do see this file > > > which has both lower and upper case: > > > > > > include/env/phytec/rauc.env > > > > I don't think there's any need to complicate RAUC support here (nor > > in the future Mender nor swupdate nor any other long standing OTA > > mechanism that might be more easily integrated via bootstd than > > environment patching). > > Let's see what the author says. I assume that U-Boot has its own code > in RAUC so it might not be too bad. It has: https://github.com/rauc/rauc/blob/master/src/bootloaders/uboot.c These env variable are names are hardcoded: BOOT_ORDER BOOT_A_LEFT BOOT_B_LEFT I played with RAUC and U-Boot back in 2021/2022, and if I remember correctly these variable names did not change since initial support for U-Boot in RAUC. That probably was back in 2016 and done by Jan Lübbe: https://github.com/rauc/rauc/pull/45 (I used a custom boot script based on the example coming with RAUC and hooked that into distroboot for my usecase back then.) In retrospect it might have been better from RAUC side to hook into the bootcount feature of U-Boot, which was already present at the time? But now it's like Tom said: these env variables are the interface for years. It would require at least coordination with RAUC devs if there should be used any other interface. Adding Jan in Cc, maybe he wants to add some context from RAUC side. Greets Alex