You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ma...@apache.org on 2015/12/04 23:03:10 UTC
[4/6] incubator-mynewt-larva git commit: Allow up to 6 NFFS sectors
in bootloader.
Allow up to 6 NFFS sectors in bootloader.
Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/commit/9ee69e41
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/tree/9ee69e41
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/diff/9ee69e41
Branch: refs/heads/master
Commit: 9ee69e415f0bd86c389054eb64249bad17ea18cb
Parents: b43cedc
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Fri Dec 4 13:52:24 2015 -0800
Committer: Marko Kiiskila <ma...@runtime.io>
Committed: Fri Dec 4 13:52:24 2015 -0800
----------------------------------------------------------------------
project/boot/src/boot.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/blob/9ee69e41/project/boot/src/boot.c
----------------------------------------------------------------------
diff --git a/project/boot/src/boot.c b/project/boot/src/boot.c
index 052d8c0..454e8c1 100755
--- a/project/boot/src/boot.c
+++ b/project/boot/src/boot.c
@@ -24,7 +24,7 @@
#include "bootutil/image.h"
#include "bootutil/loader.h"
-#define NFFS_AREA_MAX 32
+#define NFFS_AREA_MAX 34
#define SEC_CNT_MAX 8
int
@@ -70,7 +70,7 @@ main(void)
img_areas[cnt] = cnt;
}
- cnt = 2;
+ cnt = 6;
rc = flash_area_to_nffs_desc(FLASH_AREA_NFFS, &cnt, &descs[total]);
assert(rc == 0);
total += cnt;