From d1d7930d5d86e7a537fa46e1137bb4131ee52c07 Mon Sep 17 00:00:00 2001 From: Deepak Kodihalli Date: Tue, 11 Jul 2017 23:01:39 -0500 Subject: vpnor: make PNOR block size configurable The vpnor code would assume a PNOR FFS block size of 4K. Make it possible to supply this value, since it needn't always be 4K. Change-Id: I21463b05f1047e93705ba82d46f746056568dcc5 Signed-off-by: Deepak Kodihalli --- mboxd.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'mboxd.c') diff --git a/mboxd.c b/mboxd.c index e1f3251..ffd8c84 100644 --- a/mboxd.c +++ b/mboxd.c @@ -312,14 +312,6 @@ int main(int argc, char **argv) MSG_INFO("Starting Daemon\n"); -#ifdef VIRTUAL_PNOR_ENABLED - vpnor_create_partition_table(context); - - strcpy(context->paths.ro_loc, PARTITION_FILES_RO_LOC); - strcpy(context->paths.rw_loc, PARTITION_FILES_RW_LOC); - strcpy(context->paths.prsv_loc, PARTITION_FILES_PRSV_LOC); -#endif - rc = init_signals(context, &set); if (rc) { goto finish; @@ -362,6 +354,14 @@ int main(int argc, char **argv) goto finish; } +#ifdef VIRTUAL_PNOR_ENABLED + vpnor_create_partition_table(context); + + strcpy(context->paths.ro_loc, PARTITION_FILES_RO_LOC); + strcpy(context->paths.rw_loc, PARTITION_FILES_RW_LOC); + strcpy(context->paths.prsv_loc, PARTITION_FILES_PRSV_LOC); +#endif + MSG_INFO("Entering Polling Loop\n"); rc = poll_loop(context); -- cgit v1.2.1