
12 Jan
2022
12 Jan
'22
12:47 p.m.
From: Rafał Miłecki rafal@milecki.pl
Hi,
I'm a long time OpenWrt developer and just recently I started working with some devices using U-Boot.
I was trying to understand how environment variables are read in user space and I had some problems understanding fw_env_open() logic. I eventually got it but I thought I may help further developers by simpliifying its code a bit.
I hope you may find those patches useful and review / apply them.
Rafał Miłecki (2): fw_env: make flash_io() take buffer as an argument fw_env: simplify logic & code paths in the fw_env_open()
tools/env/fw_env.c | 105 +++++++++++++++++++-------------------------- 1 file changed, 45 insertions(+), 60 deletions(-)
--
2.31.1