diff options
author | Daniel Dickinson <daniel@cshore.neomailbox.net> | 2011-04-15 12:18:25 +0000 |
---|---|---|
committer | Daniel Dickinson <daniel@cshore.neomailbox.net> | 2011-04-15 12:18:25 +0000 |
commit | b2ae50ed2791c7ca9ee1d4592259829e0941f9c3 (patch) | |
tree | be3eed32a0f0f4abc6895b3890ee1276d15d3a42 /tools/firmware-utils/src/imagetag_cmdline.h | |
parent | 9c505aa1f616514d031341e6fb1d2262b506a9d3 (diff) | |
download | upstream-b2ae50ed2791c7ca9ee1d4592259829e0941f9c3.tar.gz upstream-b2ae50ed2791c7ca9ee1d4592259829e0941f9c3.tar.bz2 upstream-b2ae50ed2791c7ca9ee1d4592259829e0941f9c3.zip |
bcm63xx: Move the OpenWrt rootfs length field
Dual image capable CFEs store an image sequence at the same place as
currently OpenWrt stores the actual rootfs length, so it will get
overwritten when flashing through such a CFE.
To prevent this from happening, move the rootfs length field to the next
four bytes, thus completely using the reserved1 field.
Since the reserved1 field is now completely in use, it does not make sense
to allow it to be set from the imagetag utility, so remove the option.
Signed-off-by: Jonas Gorski <jonas.gorski+openwrt@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26680 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'tools/firmware-utils/src/imagetag_cmdline.h')
-rw-r--r-- | tools/firmware-utils/src/imagetag_cmdline.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/tools/firmware-utils/src/imagetag_cmdline.h b/tools/firmware-utils/src/imagetag_cmdline.h index a389148417..c566a9f293 100644 --- a/tools/firmware-utils/src/imagetag_cmdline.h +++ b/tools/firmware-utils/src/imagetag_cmdline.h @@ -104,9 +104,6 @@ struct gengetopt_args_info char * inactive_arg; /**< @brief Inactive Flag (2=not-specified). (default='2'). */ char * inactive_orig; /**< @brief Inactive Flag (2=not-specified). original value given at command line. */ const char *inactive_help; /**< @brief Inactive Flag (2=not-specified). help description. */ - char * reserved1_arg; /**< @brief String for first reserved section.. */ - char * reserved1_orig; /**< @brief String for first reserved section. original value given at command line. */ - const char *reserved1_help; /**< @brief String for first reserved section. help description. */ char * reserved2_arg; /**< @brief String for second reserved section.. */ char * reserved2_orig; /**< @brief String for second reserved section. original value given at command line. */ const char *reserved2_help; /**< @brief String for second reserved section. help description. */ @@ -137,7 +134,6 @@ struct gengetopt_args_info unsigned int rsa_signature_given ; /**< @brief Whether rsa-signature was given. */ unsigned int second_image_flag_given ; /**< @brief Whether second-image-flag was given. */ unsigned int inactive_given ; /**< @brief Whether inactive was given. */ - unsigned int reserved1_given ; /**< @brief Whether reserved1 was given. */ unsigned int reserved2_given ; /**< @brief Whether reserved2 was given. */ unsigned int kernel_file_has_header_given ; /**< @brief Whether kernel-file-has-header was given. */ |