[U-Boot] [PATCH 0/6] tools/env: refactor flash read/write function

Andreas Fenkart andreas.fenkart at digitalstrom.com
Mon Aug 29 23:16:56 CEST 2016


Take advantage of the environment being block aligned
block alignment is enforced since 183923d3e4

Andreas Fenkart (6):
  tools/env: factor out environment_end function
  tools/env: pass bad block offset by value
  tools/env: lookup dev_type directly from
    flash_read_buf/flash_write_buf
  tools/env: flash_write_buf: enforce offset to be start of environment
  tools/env: flash_write_buf: remove block alignment calculations
  tools/env: flash_read_buf: enforce offset to be start of environment

 tools/env/fw_env.c | 121 ++++++++++++++++++++---------------------------------
 1 file changed, 45 insertions(+), 76 deletions(-)

-- 
2.8.1



More information about the U-Boot mailing list