Added OpenWRT-specific field to imagetag so that we can record the real root length, so that when the CRC fixup is applied and the root length is recorded as zero we can still calculate the rootfs mtd partition size.
charcfeAddress[ADDRESS_LEN];// 72-83: Address in memory of CFE
charcfeLength[IMAGE_LEN];// 84-93: Size of CFE
charflashImageStart[ADDRESS_LEN];// 94-105: Address in memory of image start (kernel for OpenWRT, rootfs for stock firmware)
charrootLength[IMAGE_LEN];// 106-115: Size of rootfs
charflashRootLength[IMAGE_LEN];// 106-115: Size of rootfs for flashing
charkernelAddress[ADDRESS_LEN];// 116-127: Address in memory of kernel
charkernelLength[IMAGE_LEN];// 128-137: Size of kernel
chardualImage[DUALFLAG_LEN];// 138-139: Unused at present
@ -61,7 +61,8 @@ struct bcm_tag {
charimageCRC[CRC_LEN];// 216-219: CRC32 of image less imagetag (kernel for Alice Gate)
charrootfsCRC[CRC_LEN];// 220-223: CRC32 of rootfs partition
charkernelCRC[CRC_LEN];// 224-227: CRC32 of kernel partition
charreserved1[8];// 228-235: Unused at present
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
charreserved1[4];// 232-235: Unused at present
charheaderCRC[CRC_LEN];// 236-239: CRC32 of header excluding tagVersion