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>
SVN-Revision: 26680
charimageCRC[CRC_LEN];// 216-219: CRC32 of image less imagetag (kernel for Alice Gate)
charimageCRC[CRC_LEN];// 216-219: CRC32 of image less imagetag (kernel for Alice Gate)
charrootfsCRC[CRC_LEN];// 220-223: CRC32 of rootfs partition
charrootfsCRC[CRC_LEN];// 220-223: CRC32 of rootfs partition
charkernelCRC[CRC_LEN];// 224-227: CRC32 of kernel partition
charkernelCRC[CRC_LEN];// 224-227: CRC32 of kernel partition
charrootLength[4];// 228-231: steal from reserved1 to keep the real root length so we can use in the flash map even after we have change the rootLength to 0 to satisfy devices that check CRC on every boot
charimageSequence[4];// 228-231: Image sequence number
charreserved1[4];// 232-235: Unused at present
charrootLength[4];// 232-235: steal from reserved1 to keep the real root length so we can use in the flash map even after we have change the rootLength to 0 to satisfy devices that check CRC on every boot
charheaderCRC[CRC_LEN];// 236-239: CRC32 of header excluding tagVersion
charheaderCRC[CRC_LEN];// 236-239: CRC32 of header excluding tagVersion
option "reserved1" - "String for first reserved section." string optional
option "reserved2" - "String for second reserved section." string optional
option "reserved2" - "String for second reserved section." string optional
option "kernel-file-has-header" - "Indicates that the kernel file includes the kernel header with correct load address and entry point, so no changes are needed" flag off
option "kernel-file-has-header" - "Indicates that the kernel file includes the kernel header with correct load address and entry point, so no changes are needed" flag off
" --reserved1=STRING String for first reserved section.",
" --reserved2=STRING String for second reserved section.",
" --reserved2=STRING String for second reserved section.",
" --kernel-file-has-header Indicates that the kernel file includes the \n kernel header with correct load address and \n entry point, so no changes are needed \n (default=off)",
" --kernel-file-has-header Indicates that the kernel file includes the \n kernel header with correct load address and \n entry point, so no changes are needed \n (default=off)",