Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- *** imagetag.c 2009-05-23 18:10:39.000000000 +0100
- --- imagetag1.c 2009-05-24 00:05:40.000000000 +0100
- ***************
- *** 52,58 ****
- struct imagecomp kernel; /* 116 - 137: The offset and length of the kernel */
- uint8_t dualimage[2]; /* 138 - 139: use "0" here */
- uint8_t inactive[2]; /* 140 - 141: use "0" here */
- ! uint8_t reserved1[74]; /* 142 - 215: reserved */
- uint32_t imagecrc; /* 216 - 219: crc of the images (net byte order) */
- // uint8_t reserved2[16]; /* 220 - 235: reserved */
- uint8_t reserved2[4]; /* 220 - 223: reserved */
- --- 52,60 ----
- struct imagecomp kernel; /* 116 - 137: The offset and length of the kernel */
- uint8_t dualimage[2]; /* 138 - 139: use "0" here */
- uint8_t inactive[2]; /* 140 - 141: use "0" here */
- ! uint8_t reserved1[50]; /* 142 - 191: reserved */
- ! uint8_t flashver[2]; /* 192 - 193: reserved */
- ! uint8_t reserved4[22]; /* 194 - 215: reserved */
- uint32_t imagecrc; /* 216 - 219: crc of the images (net byte order) */
- // uint8_t reserved2[16]; /* 220 - 235: reserved */
- uint8_t reserved2[4]; /* 220 - 223: reserved */
- ***************
- *** 271,276 ****
- --- 273,279 ----
- sprintf(tag.wrtrootfslen, "%lu", rootfslen);
- }
- + strcpy(tag.flashver, "5");
- tag.imagecrc = htonl(crc);
- tag.headercrc = htonl(crc32(IMAGETAG_CRC_START, (uint8_t*)&tag, sizeof(tag) - 20));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement