uboot/tools
Andreas Fenkart 183923d3e4 tools/env: ensure environment starts at erase block boundary
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: Andreas Fenkart <andreas.fenkart@digitalstrom.com>
Acked-by: Stefan Agner <stefan.agner@toradex.com>
2016-08-15 18:46:40 -04:00
..
buildman buildman: Add a quick-start note 2016-07-31 19:37:08 -06:00
dtoc dtoc: Correct the type widening code in fdt_fallback 2016-07-25 12:05:55 -04:00
easylogo Various Makefiles: Add SPDX-License-Identifier tags 2015-11-10 09:19:52 -05:00
env tools/env: ensure environment starts at erase block boundary 2016-08-15 18:46:40 -04:00
gdb
kermit
logos dm: video: test: Test that bitmap display works correctly 2016-01-20 19:10:16 -07:00
omap
patman tools: patman: Handle missing 'END' in non-last commit of a series 2016-07-11 14:06:44 -06:00
scripts tools: fix define2mk.sed to not add quotes around negative integers 2016-06-13 07:46:29 +09:00
tbot test, tools: update tbot documentation 2016-05-13 11:25:59 -04:00
.gitignore tools: Add entry for generated tools/bin2header to tools/.gitignore 2016-05-27 15:47:56 -04:00
Makefile Only build the libfdt python module if 'swig' is available 2016-07-14 20:40:24 -06:00
aisimage.c
aisimage.h
atmel_pmecc_params.c Change my mailaddress 2016-05-02 18:37:09 -04:00
atmelimage.c Change my mailaddress 2016-05-02 18:37:09 -04:00
bin2header.c cmd: Fix license command 2016-03-22 12:16:13 -04:00
bmp_logo.c
default_image.c Respect SOURCE_DATE_EPOCH when building FIT images. 2016-06-24 17:23:10 -04:00
dumpimage.c
dumpimage.h
envcrc.c
fdt_host.h
fdtgrep.c fdtgrep: Improve error handling with invalid device tree 2016-03-14 15:34:50 -06:00
fit_check_sign.c Fix bad return value checks (detected with Coccinelle) 2015-10-24 13:50:30 -04:00
fit_common.c
fit_common.h
fit_image.c tools: Add an error code when fit_handle_file() fails 2016-07-14 18:22:36 -04:00
fit_info.c
gen_eth_addr.c tools: gen_eth_addr: add getpid() to time(0) to avoid duplicated seed 2015-09-28 10:48:25 -04:00
genboardscfg.py tools/genboardscfg.py: remove bogus import subprocess 2016-05-27 15:47:56 -04:00
getline.c
getline.h
gpheader.h
gpimage-common.c
gpimage.c
ifdtool.c x86: ifdtool: Support checking region overlap before U-Boot 2015-09-09 07:48:03 -06:00
ifdtool.h
image-host.c tools, rsa: Further minor cleanups on top of c236ebd and 2b9ec7 2016-07-25 12:01:36 -04:00
imagetool.c Respect SOURCE_DATE_EPOCH when building FIT images. 2016-06-24 17:23:10 -04:00
imagetool.h Respect SOURCE_DATE_EPOCH when building FIT images. 2016-06-24 17:23:10 -04:00
img2brec.sh
img2srec.c
imximage.c imx: tools: imximage: fix CLR bit command 2016-05-17 17:52:19 +02:00
imximage.h imximage: fix commands other than write_data 2015-10-07 13:43:15 +02:00
jtagconsole
kwbimage.c tools/kwbimage: fix size computations for v1 images 2015-11-29 16:02:44 +01:00
kwbimage.h tools/kwbimage: fix endianess issue 2015-11-29 16:02:44 +01:00
kwboot.c tools: kwboot: Add xmodem timeout option 2016-03-24 10:08:49 +01:00
lpc32xximage.c
microcode-tool
microcode-tool.py tools: microcode-tool: Support parsing header file with a license block 2016-01-13 12:20:14 +08:00
mingw_support.c
mingw_support.h
mkenvimage.c
mkexynosspl.c Fix bad return value checks (detected with Coccinelle) 2015-10-24 13:50:30 -04:00
mkimage.c mkimage: Fix argument parsing with signature comment 2016-08-05 20:55:23 -04:00
mkimage.h
mksunxiboot.c sunxi: (mksunxiboot) signature to indicate "sunxi" SPL variant 2015-09-29 11:50:07 +02:00
moveconfig.py tools: moveconfig: support CONFIG_SYS_EXTRA_OPTIONS cleaning 2016-08-05 07:27:18 -04:00
mxsboot.c mxsboot: remove unused include 2016-02-21 11:09:19 +01:00
mxsimage.c
mxsimage.h
ncb.c
netconsole
omapimage.c
omapimage.h
os_support.c
os_support.h
pbl_crc32.c
pbl_crc32.h
pblimage.c
pblimage.h
proftool.c tools/proftool: fix use-after-free 2015-11-16 17:22:18 -05:00
relocate-rela.c
rkcommon.c mkimage: rockchip: add suport for rk33 serial 2016-07-25 20:46:45 -06:00
rkcommon.h rockchip: mkimage: use imagename to select spl hdr & spl size 2015-12-13 17:07:29 -07:00
rkimage.c rockchip: Check image name for the rksd image 2016-05-27 10:23:07 -06:00
rkmux.py rockchip: Add a script to parse datasheets 2016-01-21 20:42:37 -07:00
rksd.c rockchip: mkimage: use imagename to select spl hdr & spl size 2015-12-13 17:07:29 -07:00
rkspi.c rockchip: Drop a debug message when outputing SPI images 2016-01-08 07:59:06 -07:00
socfpgaimage.c
ublimage.c
ublimage.h
ubsha1.c
xway-swap-bytes.c
zynqimage.c tools: zynqimage: Clean up check_params 2015-12-18 13:15:57 +01:00
zynqmpimage.c tools: zynqmpimage: Add Xilinx ZynqMP boot header generation 2016-05-24 11:15:01 +02:00