Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(364)

Unified Diff: data_layout.c

Issue 6611009: Add the nand device support for cbootimage tool. (Closed) Base URL: http://git.chromium.org/git/cbootimage.git@master
Patch Set: Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« cbootimage.c ('K') | « data_layout.h ('k') | nvbctlib.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: data_layout.c
diff --git a/data_layout.c b/data_layout.c
index 139e5376f0e4b29cd0218c28feba25edb2b92fc5..53e9274a91a9399dc7fcb1474af46f9c318a8ca5 100644
--- a/data_layout.c
+++ b/data_layout.c
@@ -79,7 +79,6 @@ set_bl_data(build_image_context *context,
static int write_bootloaders(build_image_context *context);
static void find_new_journal_blk(build_image_context *context);
-static int begin_update (build_image_context *context);
static int finish_update(build_image_context *context);
static u_int32_t
iceil_log2(u_int32_t a, u_int32_t b)
@@ -871,7 +870,7 @@ find_new_journal_blk(build_image_context *context)
* - Write the good BCT to slot 0 of the journal block.
* - Erase block 0
*/
-static int
+int
begin_update(build_image_context *context)
{
u_int32_t pages_per_bct;
@@ -896,6 +895,7 @@ begin_update(build_image_context *context)
block_size_log2, page_size_log2);
}
+ SET_VALUE(boot_data_version, NVBOOT_BOOTDATA_VERSION(2, 1));
robotboy 2011/03/03 18:08:46 Similarly here, is this just a bug fix?
GET_VALUE(bct_size, &bct_size);
GET_VALUE(hash_size, &hash_size);
GET_VALUE(reserved_size, &reserved_size);
« cbootimage.c ('K') | « data_layout.h ('k') | nvbctlib.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698