X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=blobdiff_plain;f=target%2Flinux%2Fgeneric-2.6%2Fpatches-2.6.24%2F070-redboot_space.patch;fp=target%2Flinux%2Fgeneric-2.6%2Fpatches-2.6.24%2F070-redboot_space.patch;h=b4d57cb535ffdadbe735406fd54ce6c683816ed6;hp=2f31555884bbee04ac390d76e2ced703416cc3d1;hb=464d494eb51936971cf61b1de5ee8bb265022a8b;hpb=a602d5cccc0041ed3084e55afd3b8acf1a9aa353 diff --git a/target/linux/generic-2.6/patches-2.6.24/070-redboot_space.patch b/target/linux/generic-2.6/patches-2.6.24/070-redboot_space.patch index 2f31555884..b4d57cb535 100644 --- a/target/linux/generic-2.6/patches-2.6.24/070-redboot_space.patch +++ b/target/linux/generic-2.6/patches-2.6.24/070-redboot_space.patch @@ -15,15 +15,15 @@ + parts[i].size = fl->next->img->flash_base; + parts[i].size &= ~(master->erasesize - 1); + parts[i].size -= parts[i].offset; -+ } +#ifdef CONFIG_MTD_REDBOOT_PARTS_UNALLOCATED -+ else { ++ nrparts--; ++ } else { + i++; + parts[i].offset = parts[i-1].size + parts[i-1].offset; + parts[i].size = fl->next->img->flash_base - parts[i].offset; + parts[i].name = nullname; -+ } #endif ++ } + } tmp_fl = fl; fl = fl->next;