[PATCH 7/8] [DO NOT MERGE, DIRTY HACK] sunxi: use UBI for environement storage

Icenowy Zheng uwu at icenowy.me
Fri Oct 14 05:05:19 CEST 2022


Signed-off-by: Icenowy Zheng <uwu at icenowy.me>
---
 board/sunxi/board.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/board/sunxi/board.c b/board/sunxi/board.c
index 21a2407e06..f4138573d4 100644
--- a/board/sunxi/board.c
+++ b/board/sunxi/board.c
@@ -133,6 +133,7 @@ void i2c_init_board(void)
  */
 enum env_location env_get_location(enum env_operation op, int prio)
 {
+	return prio ? ENVL_UNKNOWN : ENVL_UBI;
 	if (prio > 1)
 		return ENVL_UNKNOWN;
 
-- 
2.37.1



More information about the U-Boot mailing list