dynenv-harden.patch
commit94a2dd3e2b0a0a3dd64e1c1e91309b08134894b4
authormokopatches <unknown@openmoko.org>
Fri, 11 Apr 2008 13:26:38 +0000 (11 14:26 +0100)
committerwarmcat <andy@warmcat.com>
Fri, 11 Apr 2008 13:26:38 +0000 (11 14:26 +0100)
tree4f2c4f3b7be860d1e324c7bcc80ec25ab99adf0d
parentc0593972b650cdc6bb995214ccb83f7758656252
dynenv-harden.patch
common/cmd_nand.c: globalized arg_off_size
include/util.h: new header to convenience functions, such as arg_off_size
common/cmd_dynenv.c (do_dynenv): use arg_off_size to sanity-check offset and to
  allow use of partition name
common/cmd_dynenv.c (do_dynenv): indicate in no uncertain terms when an update
  would not work due to Flash bits already cleared
common/cmd_dynenv.c (do_dynenv): update CFG_ENV_OFFSET after successful "dynenv
  set", so that we can write the new environment without having to reboot

- Werner Almesberger <werner@openmoko.org>
common/cmd_dynenv.c
common/cmd_nand.c
include/util.h [new file with mode: 0644]