Skip to content
Snippets Groups Projects
Forked from KED Software Projects / Miscellaneous / KED U-Boot Fork
Source project has a limited visibility.
  • Max Krummenacher's avatar
    333ee16d
    tools/env: fix environment alignment tests for block devices · 333ee16d
    Max Krummenacher authored
    
    commit 183923d3 enforces that the
    environment must start at an erase block boundary.
    
    For block devices the sample fw_env.config does not mandate a erase block size
    for block devices. A missing setting defaults to the full env size.
    
    Depending on the environment location the alignment check now errors out for
    perfectly legal settings.
    
    Fix this by defaulting to the standard blocksize of 0x200 for environments
    stored in a block device.
    That keeps the fw_env.config files for block devices working even with that
    new check.
    
    Signed-off-by: default avatarMax Krummenacher <max.krummenacher@toradex.com>
    333ee16d
    History
    tools/env: fix environment alignment tests for block devices
    Max Krummenacher authored
    
    commit 183923d3 enforces that the
    environment must start at an erase block boundary.
    
    For block devices the sample fw_env.config does not mandate a erase block size
    for block devices. A missing setting defaults to the full env size.
    
    Depending on the environment location the alignment check now errors out for
    perfectly legal settings.
    
    Fix this by defaulting to the standard blocksize of 0x200 for environments
    stored in a block device.
    That keeps the fw_env.config files for block devices working even with that
    new check.
    
    Signed-off-by: default avatarMax Krummenacher <max.krummenacher@toradex.com>