I checked with devtool modify u-boot and I can see these patches applied:
Add missing header which fails on recent GCC
Generic boot code for mender
Integration of mender boot code into u-boot
configs: rpi: enable mender requirements
rpi: Drop reading of fdt_addr from environment
In the rpi 3 3b git config I can see that CONFIG_ENV_OFFSET=0x800000 is the wrong value, but also in the patch file there is this wrong value.
Patch file called “0001-configs-rpi-enable-mender-requirements.patch” contains this:
I thought that this patch was already applied to the zeus branch, but these files are different. However the date is the same “371400a8772d5f6ae4b819ef91cd36b883a8d313 Mon Sep 17 00:00:00 2001 and Tue, 26 Sep 2017 06:23:52 -0400”.
Should I replace the current patch file with this one? If yes, there is a reason why this wasn’t applied to zeus branch? Something that I should check before to say “it’s ok”.
No specific reason, but I was already using zeus, so to not re-init the environment again downloading everything I decided to use zeus.
I can upgrade to dunfell. Do you think that it’s more stable than the zeus branch?
Remove this part. Previously, it was (incorrectly) documented that this should be added to local.conf, but this brought RPi out of line with all other boards, so we removed it for zeus. The reason it worked in previous branches is that the patching methods were different, and they automatically fixed this behind your back. This is no longer possible for zeus and later branches, the alignment and the patch need to match.
Note that even if you have devices that are deployed with the old setting, it is safe to upgrade them, because the setting is only used in fw_env.config, which is stored on the data partition. Hence existing devices will retain their existing alignment, even if you upgrade.