mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
last minute bugfixes
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@305 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -84,11 +84,13 @@ int main(int argc, char **argv)
|
||||
if (argc > 1 && !strcmp(argv[1],"--move")) {
|
||||
if (ptr->offsets[1] >= ptr->len) {
|
||||
printf("Partition already moved outside trx\n");
|
||||
#if 0
|
||||
} else if (ptr->offsets[1] & 0x0001ffff) {
|
||||
printf("Partition does not start on a block boundary\n");
|
||||
#endif
|
||||
} else {
|
||||
init_crc32();
|
||||
bzero((void *)((int)ptr + ptr->len), (size_t)(len - ptr->len));
|
||||
//bzero((void *)((int)ptr + ptr->len), (size_t)(len - ptr->len));
|
||||
ptr->len = ptr->offsets[1];
|
||||
ptr->crc32 = crc32buf((void *) &(ptr->flag_version), ptr->len - offsetof(struct trx_header, flag_version));
|
||||
msync(ptr,len,MS_SYNC|MS_INVALIDATE);
|
||||
|
||||
Reference in New Issue
Block a user