openwrt/package
Bjørn Mork c241885687 kernel: ubootenv-nvram: driver for RAM backed environments
The vendor U-Boot implementaion on Telenor branded ZyXEL EX5700
devices does not store its environment on flash. It is instead
kept in a memory region.  This is persistent over reboots, but
not over power cycling.

The dual partition failsafe system used by the vendor U-Boot
requires the OS to modify a variable in this memory environment.
This driver allows the ordinary uboot-envtools to access a
memory region like it was a partition on NOR flash.

The specific vendor U-Boot adds a "no-map" /reserved-memory
section and a top level /ubootenv node pointing to the memory
environment.  The driver uses this device specific fact to
locate the region.  The matching and probing code will likely
have to be adjusted for any other devices to be supported.

Example partial device tree:

 / {
    ..
    ubootenv {
        memory-region = <&uenv>;
        compatible = "ubootenv";
    };
    ..
    reserved-memory {
        ..
        uenv: ubootenv@7ffe8000 {
            no-map;
            reg = <0 0x7ffe8000 0 0x4000>;
        };

Signed-off-by: Bjørn Mork <bjorn@mork.no>
(cherry picked from commit b2e810f495)
2024-08-07 12:12:30 +02:00
..
base-files OpenWrt v23.05.4: revert to branch defaults 2024-07-16 23:51:26 +02:00
boot uboot-mediatek: enable rootwait for jdcloud re-cp-03 2024-07-15 16:10:16 +02:00
devel perf: opt-out of lto usage 2023-08-11 12:53:34 +02:00
firmware wireless-regdb: Update to version 2024.07.04 2024-07-11 00:23:36 +02:00
kernel kernel: ubootenv-nvram: driver for RAM backed environments 2024-08-07 12:12:30 +02:00
libs wolfssl: Update to version 5.7.2 2024-07-16 00:05:18 +02:00
network hostapd: fix SAE H2E security vulnerability 2024-08-02 23:18:03 +02:00
system ca-certificates: add missing license information 2024-07-10 23:07:36 +02:00
utils ucode: update to Git 1a8a0bcf725520820802ad433db22d8f64fbed6c (2024-07-11) 2024-07-14 01:27:28 +02:00
Makefile build: do not depend on $(STAGING_DIR)/.prepared when in SDK 2024-03-04 23:59:24 +01:00