uboot-mediatek: fix various environment errors on u-boot v2025.07
authorShiji Yang <[email protected]>
Mon, 21 Jul 2025 13:53:33 +0000 (21:53 +0800)
committerDaniel Golle <[email protected]>
Mon, 28 Jul 2025 14:07:35 +0000 (15:07 +0100)
commit8a63382018c072ba8c3e9f2a40b216e9a35f2536
tree79ab6499e5435aab47f26629c1ee2c21a1516dbf
parent6f13425f3f8de1cfcac5719faa1ba4da8b0a7259
uboot-mediatek: fix various environment errors on u-boot v2025.07

Fix the crash and warnings for the newly introduced env on mtd
implementation. Also backport an out-of-bound access fix for the
"askenv" command.

Fixes: 41a9c9de66a7 ("uboot-mediatek: update to v2025.07")
Signed-off-by: Shiji Yang <[email protected]>
package/boot/uboot-mediatek/patches/006-env-Fix-possible-out-of-bound-access-in-env_do_env_s.patch [new file with mode: 0644]
package/boot/uboot-mediatek/patches/130-01-env-mtd-add-the-missing-put_mtd_device.patch [new file with mode: 0644]
package/boot/uboot-mediatek/patches/130-02-env-mtd-initialize-saved_buf-pointer.patch [new file with mode: 0644]