summaryrefslogtreecommitdiff
path: root/target/linux/brcm63xx/files/arch
diff options
context:
space:
mode:
authorDaniel Dickinson <crazycshore@gmail.com>2010-12-26 04:18:13 +0000
committerDaniel Dickinson <crazycshore@gmail.com>2010-12-26 04:18:13 +0000
commitfc3a1d0ba3ff3f4907eddfe2c08b6008c41121ac (patch)
tree29d80f26c6ec5620625ba7177ba5238184bde0a1 /target/linux/brcm63xx/files/arch
parentb3bcc483b2d075e1151ea814d5e4f5b458b0e1f7 (diff)
downloadmtk-20170518-fc3a1d0ba3ff3f4907eddfe2c08b6008c41121ac.zip
mtk-20170518-fc3a1d0ba3ff3f4907eddfe2c08b6008c41121ac.tar.gz
mtk-20170518-fc3a1d0ba3ff3f4907eddfe2c08b6008c41121ac.tar.bz2
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.
Signed-off-by: Daniel Dickinson <daniel@cshore.neomailbox.net> SVN-Revision: 24838
Diffstat (limited to 'target/linux/brcm63xx/files/arch')
-rw-r--r--target/linux/brcm63xx/files/arch/mips/include/asm/mach-bcm63xx/bcm_tag.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/target/linux/brcm63xx/files/arch/mips/include/asm/mach-bcm63xx/bcm_tag.h b/target/linux/brcm63xx/files/arch/mips/include/asm/mach-bcm63xx/bcm_tag.h
index d6a5ee8..89650d1 100644
--- a/target/linux/brcm63xx/files/arch/mips/include/asm/mach-bcm63xx/bcm_tag.h
+++ b/target/linux/brcm63xx/files/arch/mips/include/asm/mach-bcm63xx/bcm_tag.h
@@ -48,7 +48,7 @@ struct bcm_tag {
char cfeAddress[ADDRESS_LEN]; // 72-83: Address in memory of CFE
char cfeLength[IMAGE_LEN]; // 84-93: Size of CFE
char flashImageStart[ADDRESS_LEN]; // 94-105: Address in memory of image start (kernel for OpenWRT, rootfs for stock firmware)
- char rootLength[IMAGE_LEN]; // 106-115: Size of rootfs
+ char flashRootLength[IMAGE_LEN]; // 106-115: Size of rootfs for flashing
char kernelAddress[ADDRESS_LEN]; // 116-127: Address in memory of kernel
char kernelLength[IMAGE_LEN]; // 128-137: Size of kernel
char dualImage[DUALFLAG_LEN]; // 138-139: Unused at present
@@ -61,7 +61,8 @@ struct bcm_tag {
char imageCRC[CRC_LEN]; // 216-219: CRC32 of image less imagetag (kernel for Alice Gate)
char rootfsCRC[CRC_LEN]; // 220-223: CRC32 of rootfs partition
char kernelCRC[CRC_LEN]; // 224-227: CRC32 of kernel partition
- char reserved1[8]; // 228-235: Unused at present
+ char rootLength[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
+ char reserved1[4]; // 232-235: Unused at present
char headerCRC[CRC_LEN]; // 236-239: CRC32 of header excluding tagVersion
char reserved2[16]; // 240-255: Unused at present
};