Skip to content
Snippets Groups Projects
  1. Sep 06, 2016
  2. Aug 26, 2016
  3. Aug 20, 2016
  4. Aug 15, 2016
    • Andreas Fenkart's avatar
      tools/env: ensure environment starts at erase block boundary · 183923d3
      Andreas Fenkart authored
      
      56086921 added support for unaligned environments access.
      U-boot itself does not support this:
      - env_nand.c fails when using an unaligned offset. It produces an
        error in nand_erase_opts{drivers/mtd/nand/nand_util.c}
      - in env_sf/env_flash the unused space at the end is preserved, but
        not in the beginning. block alignment is assumed
      - env_sata/env_mmc aligns offset/length to the block size of the
        underlying device. data is silently redirected to the beginning of
        a block
      
      There is seems no use case for unaligned environment. If there is
      some useful data at the beginning of the the block (e.g. end of u-boot)
      that would be very unsafe. If the redundant environments are hosted by
      the same erase block then that invalidates the idea of double buffering.
      It might be that unaligned access was allowed in the past, and that
      people with legacy u-boot are trapped. But at the time of 56086921
      it wasn't supported and due to reasons above I guess it was never
      introduced.
      I prefer to remove that (unused) feature in favor of simplicity
      
      Signed-off-by: default avatarAndreas Fenkart <andreas.fenkart@digitalstrom.com>
      Acked-by: default avatarStefan Agner <stefan.agner@toradex.com>
      183923d3
  5. Aug 06, 2016
  6. Aug 05, 2016
  7. Aug 01, 2016
  8. Jul 26, 2016
  9. Jul 25, 2016
  10. Jul 22, 2016
Loading